@polymarket/bindings 0.6.0 → 0.7.0

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.
@@ -1,6 +1,6 @@
1
1
  import * as _polymarket_types from '@polymarket/types';
2
- import { TxHash } from '@polymarket/types';
3
- import { BaseUnits, ConditionId, TokenId, DecimalString, IsoDateTimeString, TradeStatus, NotificationId, EpochMilliseconds, ApiKey, OrderSide, OrderId, TickSizeValue } from '../index.js';
2
+ import { TxHash, EvmAddress } from '@polymarket/types';
3
+ import { BaseUnits, ConditionId, TokenId, DecimalString, IsoDateTimeString, TradeStatus, ApiKey, OrderSide, OrderId, NotificationId, EpochMilliseconds, CommentId, CommentParentEntityType, ImageOptimizationId, ComboConditionId, PositionId, QuestionId, OrderType, TickSizeValue, SessionSignerScope, SessionSignerKnownScope } from '../index.js';
4
4
  import { z } from 'zod';
5
5
  export { S as SignatureType, a as SignatureTypeSchema } from '../signature-type-CrLAA9AN.js';
6
6
 
@@ -585,22 +585,6 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
585
585
  next_cursor: string;
586
586
  }>>;
587
587
  type ClobTradesPage = z.infer<typeof ClobTradesPageSchema>;
588
- declare const NotificationSchema: z.ZodObject<{
589
- id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
590
- owner: z.ZodString;
591
- payload: z.ZodUnknown;
592
- timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
593
- type: z.ZodNumber;
594
- }, z.core.$strip>;
595
- type Notification = z.infer<typeof NotificationSchema>;
596
- declare const NotificationsResponseSchema: z.ZodArray<z.ZodObject<{
597
- id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
598
- owner: z.ZodString;
599
- payload: z.ZodUnknown;
600
- timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
601
- type: z.ZodNumber;
602
- }, z.core.$strip>>;
603
- type NotificationsResponse = z.infer<typeof NotificationsResponseSchema>;
604
588
  declare enum AssetType {
605
589
  COLLATERAL = "COLLATERAL",
606
590
  CONDITIONAL = "CONDITIONAL"
@@ -1634,185 +1618,2478 @@ declare const FetchNegRiskResponseSchema: z.ZodPipe<z.ZodObject<{
1634
1618
  type NegRisk = z.infer<typeof NegRiskSchema>;
1635
1619
  type FetchNegRiskResponse = z.infer<typeof FetchNegRiskResponseSchema>;
1636
1620
 
1637
- type OrderBookLevel = {
1638
- price: DecimalString;
1639
- size: DecimalString;
1640
- };
1641
- /** SHA-1 hash of the serialized order book summary, encoded as bare lowercase hex. */
1642
- type OrderBookHash = string & {
1643
- readonly __tag: 'OrderBookHash';
1644
- };
1645
- type OrderBook = {
1646
- /** Condition ID for the market this book belongs to. */
1647
- conditionId: ConditionId;
1648
- tokenId: TokenId;
1649
- timestamp?: EpochMilliseconds | null;
1650
- /** Bid levels in ascending price order, lowest bid first. */
1651
- bids: OrderBookLevel[];
1652
- /** Ask levels in descending price order, highest ask first. */
1653
- asks: OrderBookLevel[];
1654
- minOrderSize: DecimalString;
1655
- tickSize: TickSizeValue;
1656
- negRisk: boolean;
1657
- lastTradePrice?: DecimalString | null;
1658
- hash: OrderBookHash;
1659
- };
1660
- declare const OrderBookLevelSchema: z.ZodObject<{
1661
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1662
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1663
- }, z.core.$strip>;
1664
- declare const OrderBookHashSchema: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
1665
- declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
1666
- market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1621
+ /**
1622
+ * Kind of account notification. The wire value is an integer discriminant;
1623
+ * each kind carries a payload whose shape is tied to the kind.
1624
+ */
1625
+ declare enum NotificationType {
1626
+ ORDER_CANCELLATION = 1,
1627
+ ORDER_FILL = 2,
1628
+ MARKET_REGISTERED = 3,
1629
+ MARKET_RESOLVED = 4,
1630
+ REWARD_PAYOUT = 5,
1631
+ CHILD_COMMENT_CREATED = 6,
1632
+ YIELD_PAYOUT = 7,
1633
+ ORDER_FILL_FAILED = 8,
1634
+ AUTO_REDEEMED = 9,
1635
+ COMBO_AUTO_REDEEMED = 10
1636
+ }
1637
+ declare const NotificationTypeSchema: z.ZodEnum<typeof NotificationType>;
1638
+ /**
1639
+ * Payload of an order lifecycle notification (cancellation, fill, and
1640
+ * failed fill share this shape).
1641
+ *
1642
+ * `transactionHash` and `tradeId` are only populated on fills. The
1643
+ * market-display fields (`question`, `marketSlug`, `icon`, `image`,
1644
+ * `eventSlug`, `seriesSlug`) are filled best-effort by the producer and may
1645
+ * be empty strings; older notifications may omit them entirely, along with
1646
+ * `orderType`.
1647
+ */
1648
+ declare const OrderNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1667
1649
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1668
- timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
1669
- bids: z.ZodArray<z.ZodObject<{
1670
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1671
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1672
- }, z.core.$strip>>;
1673
- asks: z.ZodArray<z.ZodObject<{
1674
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1675
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1676
- }, z.core.$strip>>;
1677
- min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1678
- tick_size: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodTransform<number, DecimalString>>, z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>;
1679
- neg_risk: z.ZodBoolean;
1680
- last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1681
- hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
1650
+ eventSlug: z.ZodOptional<z.ZodString>;
1651
+ icon: z.ZodOptional<z.ZodString>;
1652
+ image: z.ZodOptional<z.ZodString>;
1653
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1654
+ market_slug: z.ZodOptional<z.ZodString>;
1655
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1656
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
1657
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1658
+ outcome: z.ZodString;
1659
+ outcome_index: z.ZodNumber;
1660
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1661
+ question: z.ZodOptional<z.ZodString>;
1662
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1663
+ seriesSlug: z.ZodOptional<z.ZodString>;
1664
+ side: z.ZodEnum<typeof OrderSide>;
1665
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
1666
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
1667
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
1682
1668
  }, z.core.$strip>, z.ZodTransform<{
1683
1669
  conditionId: ConditionId;
1684
1670
  tokenId: TokenId;
1685
- minOrderSize: DecimalString;
1686
- tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1687
- negRisk: boolean;
1688
- lastTradePrice: DecimalString | null | undefined;
1689
- bids: {
1690
- price: DecimalString;
1691
- size: DecimalString;
1692
- }[];
1693
- asks: {
1694
- price: DecimalString;
1695
- size: DecimalString;
1696
- }[];
1697
- hash: OrderBookHash;
1698
- timestamp?: EpochMilliseconds | null | undefined;
1671
+ marketSlug: string | undefined;
1672
+ matchedSize: DecimalString;
1673
+ orderId: OrderId;
1674
+ orderType: OrderType | undefined;
1675
+ originalSize: DecimalString;
1676
+ outcomeIndex: number;
1677
+ remainingSize: DecimalString;
1678
+ tradeId: string | undefined;
1679
+ transactionHash: _polymarket_types.TxHash | undefined;
1680
+ outcome: string;
1681
+ price: DecimalString;
1682
+ side: OrderSide;
1683
+ eventSlug?: string | undefined;
1684
+ icon?: string | undefined;
1685
+ image?: string | undefined;
1686
+ question?: string | undefined;
1687
+ seriesSlug?: string | undefined;
1699
1688
  }, {
1700
- market: ConditionId;
1701
1689
  asset_id: TokenId;
1702
- bids: {
1703
- price: DecimalString;
1704
- size: DecimalString;
1705
- }[];
1706
- asks: {
1707
- price: DecimalString;
1708
- size: DecimalString;
1709
- }[];
1710
- min_order_size: DecimalString;
1711
- tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1712
- neg_risk: boolean;
1713
- hash: OrderBookHash;
1714
- timestamp?: EpochMilliseconds | null | undefined;
1715
- last_trade_price?: DecimalString | null | undefined;
1690
+ market: ConditionId;
1691
+ matched_size: DecimalString;
1692
+ order_id: OrderId;
1693
+ original_size: DecimalString;
1694
+ outcome: string;
1695
+ outcome_index: number;
1696
+ price: DecimalString;
1697
+ remaining_size: DecimalString;
1698
+ side: OrderSide;
1699
+ eventSlug?: string | undefined;
1700
+ icon?: string | undefined;
1701
+ image?: string | undefined;
1702
+ market_slug?: string | undefined;
1703
+ question?: string | undefined;
1704
+ seriesSlug?: string | undefined;
1705
+ trade_id?: string | undefined;
1706
+ transaction_hash?: _polymarket_types.TxHash | undefined;
1707
+ type?: OrderType | undefined;
1716
1708
  }>>;
1717
- declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
1718
- market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1719
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1720
- timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
1721
- bids: z.ZodArray<z.ZodObject<{
1722
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1723
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1724
- }, z.core.$strip>>;
1725
- asks: z.ZodArray<z.ZodObject<{
1726
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1727
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1728
- }, z.core.$strip>>;
1729
- min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1730
- tick_size: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodTransform<number, DecimalString>>, z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>;
1731
- neg_risk: z.ZodBoolean;
1732
- last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1733
- hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
1709
+ type OrderNotificationPayload = z.infer<typeof OrderNotificationPayloadSchema>;
1710
+ /**
1711
+ * One outcome token inside a market lifecycle notification payload. On a
1712
+ * market-resolved notification, `winner` marks the winning outcome.
1713
+ */
1714
+ declare const MarketNotificationTokenSchema: z.ZodPipe<z.ZodObject<{
1715
+ outcome: z.ZodString;
1716
+ price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
1717
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1718
+ winner: z.ZodBoolean;
1734
1719
  }, z.core.$strip>, z.ZodTransform<{
1735
- conditionId: ConditionId;
1736
1720
  tokenId: TokenId;
1737
- minOrderSize: DecimalString;
1738
- tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1739
- negRisk: boolean;
1740
- lastTradePrice: DecimalString | null | undefined;
1741
- bids: {
1742
- price: DecimalString;
1743
- size: DecimalString;
1744
- }[];
1745
- asks: {
1746
- price: DecimalString;
1747
- size: DecimalString;
1748
- }[];
1749
- hash: OrderBookHash;
1750
- timestamp?: EpochMilliseconds | null | undefined;
1721
+ outcome: string;
1722
+ winner: boolean;
1723
+ price?: DecimalString | undefined;
1751
1724
  }, {
1752
- market: ConditionId;
1753
- asset_id: TokenId;
1754
- bids: {
1755
- price: DecimalString;
1756
- size: DecimalString;
1757
- }[];
1758
- asks: {
1759
- price: DecimalString;
1760
- size: DecimalString;
1761
- }[];
1762
- min_order_size: DecimalString;
1763
- tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1764
- neg_risk: boolean;
1765
- hash: OrderBookHash;
1766
- timestamp?: EpochMilliseconds | null | undefined;
1767
- last_trade_price?: DecimalString | null | undefined;
1725
+ outcome: string;
1726
+ token_id: TokenId;
1727
+ winner: boolean;
1728
+ price?: DecimalString | undefined;
1768
1729
  }>>;
1769
- declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
1770
- market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1771
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1772
- timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
1773
- bids: z.ZodArray<z.ZodObject<{
1774
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1775
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1776
- }, z.core.$strip>>;
1777
- asks: z.ZodArray<z.ZodObject<{
1778
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1779
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1780
- }, z.core.$strip>>;
1781
- min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1782
- tick_size: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodTransform<number, DecimalString>>, z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>;
1783
- neg_risk: z.ZodBoolean;
1784
- last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1785
- hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
1730
+ type MarketNotificationToken = z.infer<typeof MarketNotificationTokenSchema>;
1731
+ /** Liquidity-rewards parameters carried on a market lifecycle notification. */
1732
+ declare const MarketNotificationRewardsSchema: z.ZodPipe<z.ZodObject<{
1733
+ max_spread: z.ZodNumber;
1734
+ min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1735
+ rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
1736
+ asset_address: z.ZodString;
1737
+ rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1738
+ }, z.core.$strip>, z.ZodTransform<{
1739
+ assetAddress: string;
1740
+ dailyRate: DecimalString;
1741
+ }, {
1742
+ asset_address: string;
1743
+ rewards_daily_rate: DecimalString;
1744
+ }>>>>>;
1745
+ }, z.core.$strip>, z.ZodTransform<{
1746
+ maxSpread: number;
1747
+ minSize: DecimalString;
1748
+ rates?: {
1749
+ assetAddress: string;
1750
+ dailyRate: DecimalString;
1751
+ }[] | null | undefined;
1752
+ }, {
1753
+ max_spread: number;
1754
+ min_size: DecimalString;
1755
+ rates?: {
1756
+ assetAddress: string;
1757
+ dailyRate: DecimalString;
1758
+ }[] | null | undefined;
1759
+ }>>;
1760
+ type MarketNotificationRewards = z.infer<typeof MarketNotificationRewardsSchema>;
1761
+ /**
1762
+ * Payload of a market lifecycle notification (market registered and market
1763
+ * resolved share this shape: the market the notification is about).
1764
+ *
1765
+ * Fields marked optional are absent on notifications written before the
1766
+ * producer started including them.
1767
+ */
1768
+ declare const MarketNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1769
+ accepting_order_timestamp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
1770
+ accepting_orders: z.ZodBoolean;
1771
+ active: z.ZodBoolean;
1772
+ archived: z.ZodOptional<z.ZodBoolean>;
1773
+ closed: z.ZodBoolean;
1774
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1775
+ description: z.ZodString;
1776
+ enable_order_book: z.ZodOptional<z.ZodBoolean>;
1777
+ end_date_iso: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
1778
+ eventSlug: z.ZodOptional<z.ZodString>;
1779
+ fpmm: z.ZodString;
1780
+ game_start_time: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
1781
+ icon: z.ZodString;
1782
+ image: z.ZodString;
1783
+ is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
1784
+ maker_base_fee: z.ZodNullable<z.ZodNumber>;
1785
+ market_slug: z.ZodString;
1786
+ minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1787
+ minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1788
+ neg_risk: z.ZodOptional<z.ZodBoolean>;
1789
+ neg_risk_market_id: z.ZodOptional<z.ZodString>;
1790
+ neg_risk_request_id: z.ZodOptional<z.ZodString>;
1791
+ notifications_enabled: z.ZodOptional<z.ZodBoolean>;
1792
+ question: z.ZodString;
1793
+ question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
1794
+ rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1795
+ max_spread: z.ZodNumber;
1796
+ min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1797
+ rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
1798
+ asset_address: z.ZodString;
1799
+ rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1800
+ }, z.core.$strip>, z.ZodTransform<{
1801
+ assetAddress: string;
1802
+ dailyRate: DecimalString;
1803
+ }, {
1804
+ asset_address: string;
1805
+ rewards_daily_rate: DecimalString;
1806
+ }>>>>>;
1807
+ }, z.core.$strip>, z.ZodTransform<{
1808
+ maxSpread: number;
1809
+ minSize: DecimalString;
1810
+ rates?: {
1811
+ assetAddress: string;
1812
+ dailyRate: DecimalString;
1813
+ }[] | null | undefined;
1814
+ }, {
1815
+ max_spread: number;
1816
+ min_size: DecimalString;
1817
+ rates?: {
1818
+ assetAddress: string;
1819
+ dailyRate: DecimalString;
1820
+ }[] | null | undefined;
1821
+ }>>>;
1822
+ seconds_delay: z.ZodNumber;
1823
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1824
+ taker_base_fee: z.ZodNullable<z.ZodNumber>;
1825
+ tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
1826
+ outcome: z.ZodString;
1827
+ price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
1828
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1829
+ winner: z.ZodBoolean;
1830
+ }, z.core.$strip>, z.ZodTransform<{
1831
+ tokenId: TokenId;
1832
+ outcome: string;
1833
+ winner: boolean;
1834
+ price?: DecimalString | undefined;
1835
+ }, {
1836
+ outcome: string;
1837
+ token_id: TokenId;
1838
+ winner: boolean;
1839
+ price?: DecimalString | undefined;
1840
+ }>>>;
1786
1841
  }, z.core.$strip>, z.ZodTransform<{
1842
+ acceptingOrders: boolean;
1843
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
1787
1844
  conditionId: ConditionId;
1788
- tokenId: TokenId;
1789
- minOrderSize: DecimalString;
1790
- tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1791
- negRisk: boolean;
1792
- lastTradePrice: DecimalString | null | undefined;
1793
- bids: {
1794
- price: DecimalString;
1795
- size: DecimalString;
1796
- }[];
1797
- asks: {
1798
- price: DecimalString;
1799
- size: DecimalString;
1845
+ enableOrderBook: boolean | undefined;
1846
+ endDate: IsoDateTimeString | null | undefined;
1847
+ gameStartTime: IsoDateTimeString | null | undefined;
1848
+ is5050Outcome: boolean | undefined;
1849
+ makerBaseFee: number | null;
1850
+ marketSlug: string;
1851
+ minimumOrderSize: DecimalString;
1852
+ minimumTickSize: DecimalString;
1853
+ negRisk: boolean | undefined;
1854
+ negRiskMarketId: string | undefined;
1855
+ negRiskRequestId: string | undefined;
1856
+ notificationsEnabled: boolean | undefined;
1857
+ questionId: QuestionId;
1858
+ secondsDelay: number;
1859
+ takerBaseFee: number | null;
1860
+ active: boolean;
1861
+ closed: boolean;
1862
+ description: string;
1863
+ fpmm: string;
1864
+ icon: string;
1865
+ image: string;
1866
+ question: string;
1867
+ tokens: {
1868
+ tokenId: TokenId;
1869
+ outcome: string;
1870
+ winner: boolean;
1871
+ price?: DecimalString | undefined;
1800
1872
  }[];
1801
- hash: OrderBookHash;
1802
- timestamp?: EpochMilliseconds | null | undefined;
1873
+ archived?: boolean | undefined;
1874
+ eventSlug?: string | undefined;
1875
+ rewards?: {
1876
+ maxSpread: number;
1877
+ minSize: DecimalString;
1878
+ rates?: {
1879
+ assetAddress: string;
1880
+ dailyRate: DecimalString;
1881
+ }[] | null | undefined;
1882
+ } | undefined;
1883
+ tags?: string[] | null | undefined;
1803
1884
  }, {
1804
- market: ConditionId;
1805
- asset_id: TokenId;
1806
- bids: {
1807
- price: DecimalString;
1808
- size: DecimalString;
1809
- }[];
1810
- asks: {
1811
- price: DecimalString;
1812
- size: DecimalString;
1885
+ accepting_orders: boolean;
1886
+ active: boolean;
1887
+ closed: boolean;
1888
+ condition_id: ConditionId;
1889
+ description: string;
1890
+ fpmm: string;
1891
+ icon: string;
1892
+ image: string;
1893
+ maker_base_fee: number | null;
1894
+ market_slug: string;
1895
+ minimum_order_size: DecimalString;
1896
+ minimum_tick_size: DecimalString;
1897
+ question: string;
1898
+ question_id: QuestionId;
1899
+ seconds_delay: number;
1900
+ taker_base_fee: number | null;
1901
+ tokens: {
1902
+ tokenId: TokenId;
1903
+ outcome: string;
1904
+ winner: boolean;
1905
+ price?: DecimalString | undefined;
1813
1906
  }[];
1814
- min_order_size: DecimalString;
1815
- tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1907
+ accepting_order_timestamp?: IsoDateTimeString | null | undefined;
1908
+ archived?: boolean | undefined;
1909
+ enable_order_book?: boolean | undefined;
1910
+ end_date_iso?: IsoDateTimeString | null | undefined;
1911
+ eventSlug?: string | undefined;
1912
+ game_start_time?: IsoDateTimeString | null | undefined;
1913
+ is_50_50_outcome?: boolean | undefined;
1914
+ neg_risk?: boolean | undefined;
1915
+ neg_risk_market_id?: string | undefined;
1916
+ neg_risk_request_id?: string | undefined;
1917
+ notifications_enabled?: boolean | undefined;
1918
+ rewards?: {
1919
+ maxSpread: number;
1920
+ minSize: DecimalString;
1921
+ rates?: {
1922
+ assetAddress: string;
1923
+ dailyRate: DecimalString;
1924
+ }[] | null | undefined;
1925
+ } | undefined;
1926
+ tags?: string[] | null | undefined;
1927
+ }>>;
1928
+ type MarketNotificationPayload = z.infer<typeof MarketNotificationPayloadSchema>;
1929
+ /** Payload of a liquidity-reward payout notification. */
1930
+ declare const RewardPayoutNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1931
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
1932
+ reward: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1933
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
1934
+ }, z.core.$strip>, z.ZodTransform<{
1935
+ transactionHash: _polymarket_types.TxHash;
1936
+ proxyWallet: _polymarket_types.EvmAddress;
1937
+ reward: DecimalString;
1938
+ }, {
1939
+ proxyWallet: _polymarket_types.EvmAddress;
1940
+ reward: DecimalString;
1941
+ txnHash: _polymarket_types.TxHash;
1942
+ }>>;
1943
+ type RewardPayoutNotificationPayload = z.infer<typeof RewardPayoutNotificationPayloadSchema>;
1944
+ /** Payload of a yield payout notification. */
1945
+ declare const YieldPayoutNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1946
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1947
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
1948
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
1949
+ }, z.core.$strip>, z.ZodTransform<{
1950
+ transactionHash: _polymarket_types.TxHash;
1951
+ amount: DecimalString;
1952
+ proxyWallet: _polymarket_types.EvmAddress;
1953
+ }, {
1954
+ amount: DecimalString;
1955
+ proxyWallet: _polymarket_types.EvmAddress;
1956
+ txnHash: _polymarket_types.TxHash;
1957
+ }>>;
1958
+ type YieldPayoutNotificationPayload = z.infer<typeof YieldPayoutNotificationPayloadSchema>;
1959
+ /**
1960
+ * Payload of a child-comment notification: the reply comment, its author's
1961
+ * profile, and the event or series the thread belongs to.
1962
+ */
1963
+ declare const ChildCommentNotificationPayloadSchema: z.ZodObject<{
1964
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1965
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
1966
+ eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1967
+ eventTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1968
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
1969
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1970
+ parentCommentID: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>>>;
1971
+ parentEntityID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1972
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof CommentParentEntityType>>>;
1973
+ profile: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
1974
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1975
+ pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1976
+ displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1977
+ bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1978
+ isMod: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1979
+ isCreator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1980
+ proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1981
+ baseAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1982
+ profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1983
+ profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1984
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<ImageOptimizationId, string>>;
1985
+ imageUrlSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1986
+ imageUrlOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1987
+ imageSizeKbSource: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1988
+ imageSizeKbOptimized: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1989
+ imageOptimizedComplete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1990
+ imageOptimizedLastUpdated: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
1991
+ relID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1992
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1993
+ relname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1994
+ }, z.core.$strip>>>;
1995
+ positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1996
+ tokenId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
1997
+ positionSize: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>>>;
1998
+ }, z.core.$strip>>>>;
1999
+ }, z.core.$strip>, z.ZodTransform<{
2000
+ wallet: string | null | undefined;
2001
+ name?: string | null | undefined;
2002
+ pseudonym?: string | null | undefined;
2003
+ displayUsernamePublic?: boolean | null | undefined;
2004
+ bio?: string | null | undefined;
2005
+ isMod?: boolean | null | undefined;
2006
+ isCreator?: boolean | null | undefined;
2007
+ baseAddress?: string | null | undefined;
2008
+ profileImage?: string | null | undefined;
2009
+ profileImageOptimized?: {
2010
+ id: ImageOptimizationId;
2011
+ imageUrlSource?: string | null | undefined;
2012
+ imageUrlOptimized?: string | null | undefined;
2013
+ imageSizeKbSource?: number | null | undefined;
2014
+ imageSizeKbOptimized?: number | null | undefined;
2015
+ imageOptimizedComplete?: boolean | null | undefined;
2016
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
2017
+ relID?: number | null | undefined;
2018
+ field?: string | null | undefined;
2019
+ relname?: string | null | undefined;
2020
+ } | null | undefined;
2021
+ positions?: {
2022
+ tokenId?: TokenId | null | undefined;
2023
+ positionSize?: BaseUnits | null | undefined;
2024
+ }[] | null | undefined;
2025
+ }, {
2026
+ name?: string | null | undefined;
2027
+ pseudonym?: string | null | undefined;
2028
+ displayUsernamePublic?: boolean | null | undefined;
2029
+ bio?: string | null | undefined;
2030
+ isMod?: boolean | null | undefined;
2031
+ isCreator?: boolean | null | undefined;
2032
+ proxyWallet?: string | null | undefined;
2033
+ baseAddress?: string | null | undefined;
2034
+ profileImage?: string | null | undefined;
2035
+ profileImageOptimized?: {
2036
+ id: ImageOptimizationId;
2037
+ imageUrlSource?: string | null | undefined;
2038
+ imageUrlOptimized?: string | null | undefined;
2039
+ imageSizeKbSource?: number | null | undefined;
2040
+ imageSizeKbOptimized?: number | null | undefined;
2041
+ imageOptimizedComplete?: boolean | null | undefined;
2042
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
2043
+ relID?: number | null | undefined;
2044
+ field?: string | null | undefined;
2045
+ relname?: string | null | undefined;
2046
+ } | null | undefined;
2047
+ positions?: {
2048
+ tokenId?: TokenId | null | undefined;
2049
+ positionSize?: BaseUnits | null | undefined;
2050
+ }[] | null | undefined;
2051
+ }>>>>;
2052
+ seriesSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2053
+ seriesTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2054
+ userAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2055
+ }, z.core.$strip>;
2056
+ type ChildCommentNotificationPayload = z.infer<typeof ChildCommentNotificationPayloadSchema>;
2057
+ /**
2058
+ * Payload of an auto-redeem notification: a winning position redeemed
2059
+ * on-chain on the account's behalf.
2060
+ */
2061
+ declare const AutoRedeemedNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
2062
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2063
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2064
+ image: z.ZodString;
2065
+ marketUrl: z.ZodOptional<z.ZodString>;
2066
+ negRisk: z.ZodBoolean;
2067
+ portfolioUrl: z.ZodOptional<z.ZodString>;
2068
+ position: z.ZodOptional<z.ZodString>;
2069
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2070
+ question: z.ZodString;
2071
+ slug: z.ZodString;
2072
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2073
+ }, z.core.$strip>, z.ZodTransform<{
2074
+ marketSlug: string;
2075
+ transactionHash: _polymarket_types.TxHash;
2076
+ amount: DecimalString;
2077
+ conditionId: ConditionId;
2078
+ image: string;
2079
+ negRisk: boolean;
2080
+ proxyWallet: _polymarket_types.EvmAddress;
2081
+ question: string;
2082
+ marketUrl?: string | undefined;
2083
+ portfolioUrl?: string | undefined;
2084
+ position?: string | undefined;
2085
+ }, {
2086
+ amount: DecimalString;
2087
+ conditionId: ConditionId;
2088
+ image: string;
2089
+ negRisk: boolean;
2090
+ proxyWallet: _polymarket_types.EvmAddress;
2091
+ question: string;
2092
+ slug: string;
2093
+ txnHash: _polymarket_types.TxHash;
2094
+ marketUrl?: string | undefined;
2095
+ portfolioUrl?: string | undefined;
2096
+ position?: string | undefined;
2097
+ }>>;
2098
+ type AutoRedeemedNotificationPayload = z.infer<typeof AutoRedeemedNotificationPayloadSchema>;
2099
+ /**
2100
+ * Payload of a combo auto-redeem notification: a winning combo position
2101
+ * redeemed on-chain on the account's behalf. `legs` is the combo arity.
2102
+ */
2103
+ declare const ComboAutoRedeemedNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
2104
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2105
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
2106
+ legs: z.ZodNumber;
2107
+ outcomeIndex: z.ZodNumber;
2108
+ portfolioUrl: z.ZodOptional<z.ZodString>;
2109
+ positionId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
2110
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2111
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2112
+ }, z.core.$strip>, z.ZodTransform<{
2113
+ transactionHash: _polymarket_types.TxHash;
2114
+ amount: DecimalString;
2115
+ conditionId: ComboConditionId;
2116
+ legs: number;
2117
+ outcomeIndex: number;
2118
+ positionId: PositionId;
2119
+ proxyWallet: _polymarket_types.EvmAddress;
2120
+ portfolioUrl?: string | undefined;
2121
+ }, {
2122
+ amount: DecimalString;
2123
+ conditionId: ComboConditionId;
2124
+ legs: number;
2125
+ outcomeIndex: number;
2126
+ positionId: PositionId;
2127
+ proxyWallet: _polymarket_types.EvmAddress;
2128
+ txnHash: _polymarket_types.TxHash;
2129
+ portfolioUrl?: string | undefined;
2130
+ }>>;
2131
+ type ComboAutoRedeemedNotificationPayload = z.infer<typeof ComboAutoRedeemedNotificationPayloadSchema>;
2132
+ declare const OrderCancellationNotificationSchema: z.ZodObject<{
2133
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2134
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2135
+ payload: z.ZodPipe<z.ZodObject<{
2136
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2137
+ eventSlug: z.ZodOptional<z.ZodString>;
2138
+ icon: z.ZodOptional<z.ZodString>;
2139
+ image: z.ZodOptional<z.ZodString>;
2140
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2141
+ market_slug: z.ZodOptional<z.ZodString>;
2142
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2143
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
2144
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2145
+ outcome: z.ZodString;
2146
+ outcome_index: z.ZodNumber;
2147
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2148
+ question: z.ZodOptional<z.ZodString>;
2149
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2150
+ seriesSlug: z.ZodOptional<z.ZodString>;
2151
+ side: z.ZodEnum<typeof OrderSide>;
2152
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
2153
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
2154
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2155
+ }, z.core.$strip>, z.ZodTransform<{
2156
+ conditionId: ConditionId;
2157
+ tokenId: TokenId;
2158
+ marketSlug: string | undefined;
2159
+ matchedSize: DecimalString;
2160
+ orderId: OrderId;
2161
+ orderType: OrderType | undefined;
2162
+ originalSize: DecimalString;
2163
+ outcomeIndex: number;
2164
+ remainingSize: DecimalString;
2165
+ tradeId: string | undefined;
2166
+ transactionHash: _polymarket_types.TxHash | undefined;
2167
+ outcome: string;
2168
+ price: DecimalString;
2169
+ side: OrderSide;
2170
+ eventSlug?: string | undefined;
2171
+ icon?: string | undefined;
2172
+ image?: string | undefined;
2173
+ question?: string | undefined;
2174
+ seriesSlug?: string | undefined;
2175
+ }, {
2176
+ asset_id: TokenId;
2177
+ market: ConditionId;
2178
+ matched_size: DecimalString;
2179
+ order_id: OrderId;
2180
+ original_size: DecimalString;
2181
+ outcome: string;
2182
+ outcome_index: number;
2183
+ price: DecimalString;
2184
+ remaining_size: DecimalString;
2185
+ side: OrderSide;
2186
+ eventSlug?: string | undefined;
2187
+ icon?: string | undefined;
2188
+ image?: string | undefined;
2189
+ market_slug?: string | undefined;
2190
+ question?: string | undefined;
2191
+ seriesSlug?: string | undefined;
2192
+ trade_id?: string | undefined;
2193
+ transaction_hash?: _polymarket_types.TxHash | undefined;
2194
+ type?: OrderType | undefined;
2195
+ }>>;
2196
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2197
+ type: z.ZodLiteral<NotificationType.ORDER_CANCELLATION>;
2198
+ }, z.core.$strip>;
2199
+ type OrderCancellationNotification = z.infer<typeof OrderCancellationNotificationSchema>;
2200
+ declare const OrderFillNotificationSchema: z.ZodObject<{
2201
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2202
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2203
+ payload: z.ZodPipe<z.ZodObject<{
2204
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2205
+ eventSlug: z.ZodOptional<z.ZodString>;
2206
+ icon: z.ZodOptional<z.ZodString>;
2207
+ image: z.ZodOptional<z.ZodString>;
2208
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2209
+ market_slug: z.ZodOptional<z.ZodString>;
2210
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2211
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
2212
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2213
+ outcome: z.ZodString;
2214
+ outcome_index: z.ZodNumber;
2215
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2216
+ question: z.ZodOptional<z.ZodString>;
2217
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2218
+ seriesSlug: z.ZodOptional<z.ZodString>;
2219
+ side: z.ZodEnum<typeof OrderSide>;
2220
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
2221
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
2222
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2223
+ }, z.core.$strip>, z.ZodTransform<{
2224
+ conditionId: ConditionId;
2225
+ tokenId: TokenId;
2226
+ marketSlug: string | undefined;
2227
+ matchedSize: DecimalString;
2228
+ orderId: OrderId;
2229
+ orderType: OrderType | undefined;
2230
+ originalSize: DecimalString;
2231
+ outcomeIndex: number;
2232
+ remainingSize: DecimalString;
2233
+ tradeId: string | undefined;
2234
+ transactionHash: _polymarket_types.TxHash | undefined;
2235
+ outcome: string;
2236
+ price: DecimalString;
2237
+ side: OrderSide;
2238
+ eventSlug?: string | undefined;
2239
+ icon?: string | undefined;
2240
+ image?: string | undefined;
2241
+ question?: string | undefined;
2242
+ seriesSlug?: string | undefined;
2243
+ }, {
2244
+ asset_id: TokenId;
2245
+ market: ConditionId;
2246
+ matched_size: DecimalString;
2247
+ order_id: OrderId;
2248
+ original_size: DecimalString;
2249
+ outcome: string;
2250
+ outcome_index: number;
2251
+ price: DecimalString;
2252
+ remaining_size: DecimalString;
2253
+ side: OrderSide;
2254
+ eventSlug?: string | undefined;
2255
+ icon?: string | undefined;
2256
+ image?: string | undefined;
2257
+ market_slug?: string | undefined;
2258
+ question?: string | undefined;
2259
+ seriesSlug?: string | undefined;
2260
+ trade_id?: string | undefined;
2261
+ transaction_hash?: _polymarket_types.TxHash | undefined;
2262
+ type?: OrderType | undefined;
2263
+ }>>;
2264
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2265
+ type: z.ZodLiteral<NotificationType.ORDER_FILL>;
2266
+ }, z.core.$strip>;
2267
+ type OrderFillNotification = z.infer<typeof OrderFillNotificationSchema>;
2268
+ declare const MarketRegisteredNotificationSchema: z.ZodObject<{
2269
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2270
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2271
+ payload: z.ZodPipe<z.ZodObject<{
2272
+ accepting_order_timestamp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
2273
+ accepting_orders: z.ZodBoolean;
2274
+ active: z.ZodBoolean;
2275
+ archived: z.ZodOptional<z.ZodBoolean>;
2276
+ closed: z.ZodBoolean;
2277
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2278
+ description: z.ZodString;
2279
+ enable_order_book: z.ZodOptional<z.ZodBoolean>;
2280
+ end_date_iso: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
2281
+ eventSlug: z.ZodOptional<z.ZodString>;
2282
+ fpmm: z.ZodString;
2283
+ game_start_time: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
2284
+ icon: z.ZodString;
2285
+ image: z.ZodString;
2286
+ is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
2287
+ maker_base_fee: z.ZodNullable<z.ZodNumber>;
2288
+ market_slug: z.ZodString;
2289
+ minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2290
+ minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2291
+ neg_risk: z.ZodOptional<z.ZodBoolean>;
2292
+ neg_risk_market_id: z.ZodOptional<z.ZodString>;
2293
+ neg_risk_request_id: z.ZodOptional<z.ZodString>;
2294
+ notifications_enabled: z.ZodOptional<z.ZodBoolean>;
2295
+ question: z.ZodString;
2296
+ question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
2297
+ rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
2298
+ max_spread: z.ZodNumber;
2299
+ min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2300
+ rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
2301
+ asset_address: z.ZodString;
2302
+ rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2303
+ }, z.core.$strip>, z.ZodTransform<{
2304
+ assetAddress: string;
2305
+ dailyRate: DecimalString;
2306
+ }, {
2307
+ asset_address: string;
2308
+ rewards_daily_rate: DecimalString;
2309
+ }>>>>>;
2310
+ }, z.core.$strip>, z.ZodTransform<{
2311
+ maxSpread: number;
2312
+ minSize: DecimalString;
2313
+ rates?: {
2314
+ assetAddress: string;
2315
+ dailyRate: DecimalString;
2316
+ }[] | null | undefined;
2317
+ }, {
2318
+ max_spread: number;
2319
+ min_size: DecimalString;
2320
+ rates?: {
2321
+ assetAddress: string;
2322
+ dailyRate: DecimalString;
2323
+ }[] | null | undefined;
2324
+ }>>>;
2325
+ seconds_delay: z.ZodNumber;
2326
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2327
+ taker_base_fee: z.ZodNullable<z.ZodNumber>;
2328
+ tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
2329
+ outcome: z.ZodString;
2330
+ price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
2331
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2332
+ winner: z.ZodBoolean;
2333
+ }, z.core.$strip>, z.ZodTransform<{
2334
+ tokenId: TokenId;
2335
+ outcome: string;
2336
+ winner: boolean;
2337
+ price?: DecimalString | undefined;
2338
+ }, {
2339
+ outcome: string;
2340
+ token_id: TokenId;
2341
+ winner: boolean;
2342
+ price?: DecimalString | undefined;
2343
+ }>>>;
2344
+ }, z.core.$strip>, z.ZodTransform<{
2345
+ acceptingOrders: boolean;
2346
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
2347
+ conditionId: ConditionId;
2348
+ enableOrderBook: boolean | undefined;
2349
+ endDate: IsoDateTimeString | null | undefined;
2350
+ gameStartTime: IsoDateTimeString | null | undefined;
2351
+ is5050Outcome: boolean | undefined;
2352
+ makerBaseFee: number | null;
2353
+ marketSlug: string;
2354
+ minimumOrderSize: DecimalString;
2355
+ minimumTickSize: DecimalString;
2356
+ negRisk: boolean | undefined;
2357
+ negRiskMarketId: string | undefined;
2358
+ negRiskRequestId: string | undefined;
2359
+ notificationsEnabled: boolean | undefined;
2360
+ questionId: QuestionId;
2361
+ secondsDelay: number;
2362
+ takerBaseFee: number | null;
2363
+ active: boolean;
2364
+ closed: boolean;
2365
+ description: string;
2366
+ fpmm: string;
2367
+ icon: string;
2368
+ image: string;
2369
+ question: string;
2370
+ tokens: {
2371
+ tokenId: TokenId;
2372
+ outcome: string;
2373
+ winner: boolean;
2374
+ price?: DecimalString | undefined;
2375
+ }[];
2376
+ archived?: boolean | undefined;
2377
+ eventSlug?: string | undefined;
2378
+ rewards?: {
2379
+ maxSpread: number;
2380
+ minSize: DecimalString;
2381
+ rates?: {
2382
+ assetAddress: string;
2383
+ dailyRate: DecimalString;
2384
+ }[] | null | undefined;
2385
+ } | undefined;
2386
+ tags?: string[] | null | undefined;
2387
+ }, {
2388
+ accepting_orders: boolean;
2389
+ active: boolean;
2390
+ closed: boolean;
2391
+ condition_id: ConditionId;
2392
+ description: string;
2393
+ fpmm: string;
2394
+ icon: string;
2395
+ image: string;
2396
+ maker_base_fee: number | null;
2397
+ market_slug: string;
2398
+ minimum_order_size: DecimalString;
2399
+ minimum_tick_size: DecimalString;
2400
+ question: string;
2401
+ question_id: QuestionId;
2402
+ seconds_delay: number;
2403
+ taker_base_fee: number | null;
2404
+ tokens: {
2405
+ tokenId: TokenId;
2406
+ outcome: string;
2407
+ winner: boolean;
2408
+ price?: DecimalString | undefined;
2409
+ }[];
2410
+ accepting_order_timestamp?: IsoDateTimeString | null | undefined;
2411
+ archived?: boolean | undefined;
2412
+ enable_order_book?: boolean | undefined;
2413
+ end_date_iso?: IsoDateTimeString | null | undefined;
2414
+ eventSlug?: string | undefined;
2415
+ game_start_time?: IsoDateTimeString | null | undefined;
2416
+ is_50_50_outcome?: boolean | undefined;
2417
+ neg_risk?: boolean | undefined;
2418
+ neg_risk_market_id?: string | undefined;
2419
+ neg_risk_request_id?: string | undefined;
2420
+ notifications_enabled?: boolean | undefined;
2421
+ rewards?: {
2422
+ maxSpread: number;
2423
+ minSize: DecimalString;
2424
+ rates?: {
2425
+ assetAddress: string;
2426
+ dailyRate: DecimalString;
2427
+ }[] | null | undefined;
2428
+ } | undefined;
2429
+ tags?: string[] | null | undefined;
2430
+ }>>;
2431
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2432
+ type: z.ZodLiteral<NotificationType.MARKET_REGISTERED>;
2433
+ }, z.core.$strip>;
2434
+ type MarketRegisteredNotification = z.infer<typeof MarketRegisteredNotificationSchema>;
2435
+ declare const MarketResolvedNotificationSchema: z.ZodObject<{
2436
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2437
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2438
+ payload: z.ZodPipe<z.ZodObject<{
2439
+ accepting_order_timestamp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
2440
+ accepting_orders: z.ZodBoolean;
2441
+ active: z.ZodBoolean;
2442
+ archived: z.ZodOptional<z.ZodBoolean>;
2443
+ closed: z.ZodBoolean;
2444
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2445
+ description: z.ZodString;
2446
+ enable_order_book: z.ZodOptional<z.ZodBoolean>;
2447
+ end_date_iso: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
2448
+ eventSlug: z.ZodOptional<z.ZodString>;
2449
+ fpmm: z.ZodString;
2450
+ game_start_time: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
2451
+ icon: z.ZodString;
2452
+ image: z.ZodString;
2453
+ is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
2454
+ maker_base_fee: z.ZodNullable<z.ZodNumber>;
2455
+ market_slug: z.ZodString;
2456
+ minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2457
+ minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2458
+ neg_risk: z.ZodOptional<z.ZodBoolean>;
2459
+ neg_risk_market_id: z.ZodOptional<z.ZodString>;
2460
+ neg_risk_request_id: z.ZodOptional<z.ZodString>;
2461
+ notifications_enabled: z.ZodOptional<z.ZodBoolean>;
2462
+ question: z.ZodString;
2463
+ question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
2464
+ rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
2465
+ max_spread: z.ZodNumber;
2466
+ min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2467
+ rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
2468
+ asset_address: z.ZodString;
2469
+ rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2470
+ }, z.core.$strip>, z.ZodTransform<{
2471
+ assetAddress: string;
2472
+ dailyRate: DecimalString;
2473
+ }, {
2474
+ asset_address: string;
2475
+ rewards_daily_rate: DecimalString;
2476
+ }>>>>>;
2477
+ }, z.core.$strip>, z.ZodTransform<{
2478
+ maxSpread: number;
2479
+ minSize: DecimalString;
2480
+ rates?: {
2481
+ assetAddress: string;
2482
+ dailyRate: DecimalString;
2483
+ }[] | null | undefined;
2484
+ }, {
2485
+ max_spread: number;
2486
+ min_size: DecimalString;
2487
+ rates?: {
2488
+ assetAddress: string;
2489
+ dailyRate: DecimalString;
2490
+ }[] | null | undefined;
2491
+ }>>>;
2492
+ seconds_delay: z.ZodNumber;
2493
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2494
+ taker_base_fee: z.ZodNullable<z.ZodNumber>;
2495
+ tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
2496
+ outcome: z.ZodString;
2497
+ price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
2498
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2499
+ winner: z.ZodBoolean;
2500
+ }, z.core.$strip>, z.ZodTransform<{
2501
+ tokenId: TokenId;
2502
+ outcome: string;
2503
+ winner: boolean;
2504
+ price?: DecimalString | undefined;
2505
+ }, {
2506
+ outcome: string;
2507
+ token_id: TokenId;
2508
+ winner: boolean;
2509
+ price?: DecimalString | undefined;
2510
+ }>>>;
2511
+ }, z.core.$strip>, z.ZodTransform<{
2512
+ acceptingOrders: boolean;
2513
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
2514
+ conditionId: ConditionId;
2515
+ enableOrderBook: boolean | undefined;
2516
+ endDate: IsoDateTimeString | null | undefined;
2517
+ gameStartTime: IsoDateTimeString | null | undefined;
2518
+ is5050Outcome: boolean | undefined;
2519
+ makerBaseFee: number | null;
2520
+ marketSlug: string;
2521
+ minimumOrderSize: DecimalString;
2522
+ minimumTickSize: DecimalString;
2523
+ negRisk: boolean | undefined;
2524
+ negRiskMarketId: string | undefined;
2525
+ negRiskRequestId: string | undefined;
2526
+ notificationsEnabled: boolean | undefined;
2527
+ questionId: QuestionId;
2528
+ secondsDelay: number;
2529
+ takerBaseFee: number | null;
2530
+ active: boolean;
2531
+ closed: boolean;
2532
+ description: string;
2533
+ fpmm: string;
2534
+ icon: string;
2535
+ image: string;
2536
+ question: string;
2537
+ tokens: {
2538
+ tokenId: TokenId;
2539
+ outcome: string;
2540
+ winner: boolean;
2541
+ price?: DecimalString | undefined;
2542
+ }[];
2543
+ archived?: boolean | undefined;
2544
+ eventSlug?: string | undefined;
2545
+ rewards?: {
2546
+ maxSpread: number;
2547
+ minSize: DecimalString;
2548
+ rates?: {
2549
+ assetAddress: string;
2550
+ dailyRate: DecimalString;
2551
+ }[] | null | undefined;
2552
+ } | undefined;
2553
+ tags?: string[] | null | undefined;
2554
+ }, {
2555
+ accepting_orders: boolean;
2556
+ active: boolean;
2557
+ closed: boolean;
2558
+ condition_id: ConditionId;
2559
+ description: string;
2560
+ fpmm: string;
2561
+ icon: string;
2562
+ image: string;
2563
+ maker_base_fee: number | null;
2564
+ market_slug: string;
2565
+ minimum_order_size: DecimalString;
2566
+ minimum_tick_size: DecimalString;
2567
+ question: string;
2568
+ question_id: QuestionId;
2569
+ seconds_delay: number;
2570
+ taker_base_fee: number | null;
2571
+ tokens: {
2572
+ tokenId: TokenId;
2573
+ outcome: string;
2574
+ winner: boolean;
2575
+ price?: DecimalString | undefined;
2576
+ }[];
2577
+ accepting_order_timestamp?: IsoDateTimeString | null | undefined;
2578
+ archived?: boolean | undefined;
2579
+ enable_order_book?: boolean | undefined;
2580
+ end_date_iso?: IsoDateTimeString | null | undefined;
2581
+ eventSlug?: string | undefined;
2582
+ game_start_time?: IsoDateTimeString | null | undefined;
2583
+ is_50_50_outcome?: boolean | undefined;
2584
+ neg_risk?: boolean | undefined;
2585
+ neg_risk_market_id?: string | undefined;
2586
+ neg_risk_request_id?: string | undefined;
2587
+ notifications_enabled?: boolean | undefined;
2588
+ rewards?: {
2589
+ maxSpread: number;
2590
+ minSize: DecimalString;
2591
+ rates?: {
2592
+ assetAddress: string;
2593
+ dailyRate: DecimalString;
2594
+ }[] | null | undefined;
2595
+ } | undefined;
2596
+ tags?: string[] | null | undefined;
2597
+ }>>;
2598
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2599
+ type: z.ZodLiteral<NotificationType.MARKET_RESOLVED>;
2600
+ }, z.core.$strip>;
2601
+ type MarketResolvedNotification = z.infer<typeof MarketResolvedNotificationSchema>;
2602
+ declare const RewardPayoutNotificationSchema: z.ZodObject<{
2603
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2604
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2605
+ payload: z.ZodPipe<z.ZodObject<{
2606
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2607
+ reward: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2608
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2609
+ }, z.core.$strip>, z.ZodTransform<{
2610
+ transactionHash: _polymarket_types.TxHash;
2611
+ proxyWallet: _polymarket_types.EvmAddress;
2612
+ reward: DecimalString;
2613
+ }, {
2614
+ proxyWallet: _polymarket_types.EvmAddress;
2615
+ reward: DecimalString;
2616
+ txnHash: _polymarket_types.TxHash;
2617
+ }>>;
2618
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2619
+ type: z.ZodLiteral<NotificationType.REWARD_PAYOUT>;
2620
+ }, z.core.$strip>;
2621
+ type RewardPayoutNotification = z.infer<typeof RewardPayoutNotificationSchema>;
2622
+ declare const ChildCommentCreatedNotificationSchema: z.ZodObject<{
2623
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2624
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2625
+ payload: z.ZodObject<{
2626
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2627
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
2628
+ eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2629
+ eventTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2630
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
2631
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2632
+ parentCommentID: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>>>;
2633
+ parentEntityID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2634
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof CommentParentEntityType>>>;
2635
+ profile: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
2636
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2637
+ pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2638
+ displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2639
+ bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2640
+ isMod: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2641
+ isCreator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2642
+ proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2643
+ baseAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2644
+ profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2645
+ profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2646
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<ImageOptimizationId, string>>;
2647
+ imageUrlSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2648
+ imageUrlOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2649
+ imageSizeKbSource: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2650
+ imageSizeKbOptimized: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2651
+ imageOptimizedComplete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2652
+ imageOptimizedLastUpdated: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
2653
+ relID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2654
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2655
+ relname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2656
+ }, z.core.$strip>>>;
2657
+ positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2658
+ tokenId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
2659
+ positionSize: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>>>;
2660
+ }, z.core.$strip>>>>;
2661
+ }, z.core.$strip>, z.ZodTransform<{
2662
+ wallet: string | null | undefined;
2663
+ name?: string | null | undefined;
2664
+ pseudonym?: string | null | undefined;
2665
+ displayUsernamePublic?: boolean | null | undefined;
2666
+ bio?: string | null | undefined;
2667
+ isMod?: boolean | null | undefined;
2668
+ isCreator?: boolean | null | undefined;
2669
+ baseAddress?: string | null | undefined;
2670
+ profileImage?: string | null | undefined;
2671
+ profileImageOptimized?: {
2672
+ id: ImageOptimizationId;
2673
+ imageUrlSource?: string | null | undefined;
2674
+ imageUrlOptimized?: string | null | undefined;
2675
+ imageSizeKbSource?: number | null | undefined;
2676
+ imageSizeKbOptimized?: number | null | undefined;
2677
+ imageOptimizedComplete?: boolean | null | undefined;
2678
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
2679
+ relID?: number | null | undefined;
2680
+ field?: string | null | undefined;
2681
+ relname?: string | null | undefined;
2682
+ } | null | undefined;
2683
+ positions?: {
2684
+ tokenId?: TokenId | null | undefined;
2685
+ positionSize?: BaseUnits | null | undefined;
2686
+ }[] | null | undefined;
2687
+ }, {
2688
+ name?: string | null | undefined;
2689
+ pseudonym?: string | null | undefined;
2690
+ displayUsernamePublic?: boolean | null | undefined;
2691
+ bio?: string | null | undefined;
2692
+ isMod?: boolean | null | undefined;
2693
+ isCreator?: boolean | null | undefined;
2694
+ proxyWallet?: string | null | undefined;
2695
+ baseAddress?: string | null | undefined;
2696
+ profileImage?: string | null | undefined;
2697
+ profileImageOptimized?: {
2698
+ id: ImageOptimizationId;
2699
+ imageUrlSource?: string | null | undefined;
2700
+ imageUrlOptimized?: string | null | undefined;
2701
+ imageSizeKbSource?: number | null | undefined;
2702
+ imageSizeKbOptimized?: number | null | undefined;
2703
+ imageOptimizedComplete?: boolean | null | undefined;
2704
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
2705
+ relID?: number | null | undefined;
2706
+ field?: string | null | undefined;
2707
+ relname?: string | null | undefined;
2708
+ } | null | undefined;
2709
+ positions?: {
2710
+ tokenId?: TokenId | null | undefined;
2711
+ positionSize?: BaseUnits | null | undefined;
2712
+ }[] | null | undefined;
2713
+ }>>>>;
2714
+ seriesSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2715
+ seriesTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2716
+ userAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2717
+ }, z.core.$strip>;
2718
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2719
+ type: z.ZodLiteral<NotificationType.CHILD_COMMENT_CREATED>;
2720
+ }, z.core.$strip>;
2721
+ type ChildCommentCreatedNotification = z.infer<typeof ChildCommentCreatedNotificationSchema>;
2722
+ declare const YieldPayoutNotificationSchema: z.ZodObject<{
2723
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2724
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2725
+ payload: z.ZodPipe<z.ZodObject<{
2726
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2727
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2728
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2729
+ }, z.core.$strip>, z.ZodTransform<{
2730
+ transactionHash: _polymarket_types.TxHash;
2731
+ amount: DecimalString;
2732
+ proxyWallet: _polymarket_types.EvmAddress;
2733
+ }, {
2734
+ amount: DecimalString;
2735
+ proxyWallet: _polymarket_types.EvmAddress;
2736
+ txnHash: _polymarket_types.TxHash;
2737
+ }>>;
2738
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2739
+ type: z.ZodLiteral<NotificationType.YIELD_PAYOUT>;
2740
+ }, z.core.$strip>;
2741
+ type YieldPayoutNotification = z.infer<typeof YieldPayoutNotificationSchema>;
2742
+ declare const OrderFillFailedNotificationSchema: z.ZodObject<{
2743
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2744
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2745
+ payload: z.ZodPipe<z.ZodObject<{
2746
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2747
+ eventSlug: z.ZodOptional<z.ZodString>;
2748
+ icon: z.ZodOptional<z.ZodString>;
2749
+ image: z.ZodOptional<z.ZodString>;
2750
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2751
+ market_slug: z.ZodOptional<z.ZodString>;
2752
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2753
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
2754
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2755
+ outcome: z.ZodString;
2756
+ outcome_index: z.ZodNumber;
2757
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2758
+ question: z.ZodOptional<z.ZodString>;
2759
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2760
+ seriesSlug: z.ZodOptional<z.ZodString>;
2761
+ side: z.ZodEnum<typeof OrderSide>;
2762
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
2763
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
2764
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2765
+ }, z.core.$strip>, z.ZodTransform<{
2766
+ conditionId: ConditionId;
2767
+ tokenId: TokenId;
2768
+ marketSlug: string | undefined;
2769
+ matchedSize: DecimalString;
2770
+ orderId: OrderId;
2771
+ orderType: OrderType | undefined;
2772
+ originalSize: DecimalString;
2773
+ outcomeIndex: number;
2774
+ remainingSize: DecimalString;
2775
+ tradeId: string | undefined;
2776
+ transactionHash: _polymarket_types.TxHash | undefined;
2777
+ outcome: string;
2778
+ price: DecimalString;
2779
+ side: OrderSide;
2780
+ eventSlug?: string | undefined;
2781
+ icon?: string | undefined;
2782
+ image?: string | undefined;
2783
+ question?: string | undefined;
2784
+ seriesSlug?: string | undefined;
2785
+ }, {
2786
+ asset_id: TokenId;
2787
+ market: ConditionId;
2788
+ matched_size: DecimalString;
2789
+ order_id: OrderId;
2790
+ original_size: DecimalString;
2791
+ outcome: string;
2792
+ outcome_index: number;
2793
+ price: DecimalString;
2794
+ remaining_size: DecimalString;
2795
+ side: OrderSide;
2796
+ eventSlug?: string | undefined;
2797
+ icon?: string | undefined;
2798
+ image?: string | undefined;
2799
+ market_slug?: string | undefined;
2800
+ question?: string | undefined;
2801
+ seriesSlug?: string | undefined;
2802
+ trade_id?: string | undefined;
2803
+ transaction_hash?: _polymarket_types.TxHash | undefined;
2804
+ type?: OrderType | undefined;
2805
+ }>>;
2806
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2807
+ type: z.ZodLiteral<NotificationType.ORDER_FILL_FAILED>;
2808
+ }, z.core.$strip>;
2809
+ type OrderFillFailedNotification = z.infer<typeof OrderFillFailedNotificationSchema>;
2810
+ declare const AutoRedeemedNotificationSchema: z.ZodObject<{
2811
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2812
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2813
+ payload: z.ZodPipe<z.ZodObject<{
2814
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2815
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2816
+ image: z.ZodString;
2817
+ marketUrl: z.ZodOptional<z.ZodString>;
2818
+ negRisk: z.ZodBoolean;
2819
+ portfolioUrl: z.ZodOptional<z.ZodString>;
2820
+ position: z.ZodOptional<z.ZodString>;
2821
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2822
+ question: z.ZodString;
2823
+ slug: z.ZodString;
2824
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2825
+ }, z.core.$strip>, z.ZodTransform<{
2826
+ marketSlug: string;
2827
+ transactionHash: _polymarket_types.TxHash;
2828
+ amount: DecimalString;
2829
+ conditionId: ConditionId;
2830
+ image: string;
2831
+ negRisk: boolean;
2832
+ proxyWallet: _polymarket_types.EvmAddress;
2833
+ question: string;
2834
+ marketUrl?: string | undefined;
2835
+ portfolioUrl?: string | undefined;
2836
+ position?: string | undefined;
2837
+ }, {
2838
+ amount: DecimalString;
2839
+ conditionId: ConditionId;
2840
+ image: string;
2841
+ negRisk: boolean;
2842
+ proxyWallet: _polymarket_types.EvmAddress;
2843
+ question: string;
2844
+ slug: string;
2845
+ txnHash: _polymarket_types.TxHash;
2846
+ marketUrl?: string | undefined;
2847
+ portfolioUrl?: string | undefined;
2848
+ position?: string | undefined;
2849
+ }>>;
2850
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2851
+ type: z.ZodLiteral<NotificationType.AUTO_REDEEMED>;
2852
+ }, z.core.$strip>;
2853
+ type AutoRedeemedNotification = z.infer<typeof AutoRedeemedNotificationSchema>;
2854
+ declare const ComboAutoRedeemedNotificationSchema: z.ZodObject<{
2855
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2856
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2857
+ payload: z.ZodPipe<z.ZodObject<{
2858
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2859
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
2860
+ legs: z.ZodNumber;
2861
+ outcomeIndex: z.ZodNumber;
2862
+ portfolioUrl: z.ZodOptional<z.ZodString>;
2863
+ positionId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
2864
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2865
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2866
+ }, z.core.$strip>, z.ZodTransform<{
2867
+ transactionHash: _polymarket_types.TxHash;
2868
+ amount: DecimalString;
2869
+ conditionId: ComboConditionId;
2870
+ legs: number;
2871
+ outcomeIndex: number;
2872
+ positionId: PositionId;
2873
+ proxyWallet: _polymarket_types.EvmAddress;
2874
+ portfolioUrl?: string | undefined;
2875
+ }, {
2876
+ amount: DecimalString;
2877
+ conditionId: ComboConditionId;
2878
+ legs: number;
2879
+ outcomeIndex: number;
2880
+ positionId: PositionId;
2881
+ proxyWallet: _polymarket_types.EvmAddress;
2882
+ txnHash: _polymarket_types.TxHash;
2883
+ portfolioUrl?: string | undefined;
2884
+ }>>;
2885
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2886
+ type: z.ZodLiteral<NotificationType.COMBO_AUTO_REDEEMED>;
2887
+ }, z.core.$strip>;
2888
+ type ComboAutoRedeemedNotification = z.infer<typeof ComboAutoRedeemedNotificationSchema>;
2889
+ /**
2890
+ * Account notification. Discriminated on `type`: narrowing on it also
2891
+ * narrows `payload` to the shape carried by that notification kind.
2892
+ */
2893
+ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2894
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2895
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2896
+ payload: z.ZodPipe<z.ZodObject<{
2897
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2898
+ eventSlug: z.ZodOptional<z.ZodString>;
2899
+ icon: z.ZodOptional<z.ZodString>;
2900
+ image: z.ZodOptional<z.ZodString>;
2901
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2902
+ market_slug: z.ZodOptional<z.ZodString>;
2903
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2904
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
2905
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2906
+ outcome: z.ZodString;
2907
+ outcome_index: z.ZodNumber;
2908
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2909
+ question: z.ZodOptional<z.ZodString>;
2910
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2911
+ seriesSlug: z.ZodOptional<z.ZodString>;
2912
+ side: z.ZodEnum<typeof OrderSide>;
2913
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
2914
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
2915
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2916
+ }, z.core.$strip>, z.ZodTransform<{
2917
+ conditionId: ConditionId;
2918
+ tokenId: TokenId;
2919
+ marketSlug: string | undefined;
2920
+ matchedSize: DecimalString;
2921
+ orderId: OrderId;
2922
+ orderType: OrderType | undefined;
2923
+ originalSize: DecimalString;
2924
+ outcomeIndex: number;
2925
+ remainingSize: DecimalString;
2926
+ tradeId: string | undefined;
2927
+ transactionHash: _polymarket_types.TxHash | undefined;
2928
+ outcome: string;
2929
+ price: DecimalString;
2930
+ side: OrderSide;
2931
+ eventSlug?: string | undefined;
2932
+ icon?: string | undefined;
2933
+ image?: string | undefined;
2934
+ question?: string | undefined;
2935
+ seriesSlug?: string | undefined;
2936
+ }, {
2937
+ asset_id: TokenId;
2938
+ market: ConditionId;
2939
+ matched_size: DecimalString;
2940
+ order_id: OrderId;
2941
+ original_size: DecimalString;
2942
+ outcome: string;
2943
+ outcome_index: number;
2944
+ price: DecimalString;
2945
+ remaining_size: DecimalString;
2946
+ side: OrderSide;
2947
+ eventSlug?: string | undefined;
2948
+ icon?: string | undefined;
2949
+ image?: string | undefined;
2950
+ market_slug?: string | undefined;
2951
+ question?: string | undefined;
2952
+ seriesSlug?: string | undefined;
2953
+ trade_id?: string | undefined;
2954
+ transaction_hash?: _polymarket_types.TxHash | undefined;
2955
+ type?: OrderType | undefined;
2956
+ }>>;
2957
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2958
+ type: z.ZodLiteral<NotificationType.ORDER_CANCELLATION>;
2959
+ }, z.core.$strip>, z.ZodObject<{
2960
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2961
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2962
+ payload: z.ZodPipe<z.ZodObject<{
2963
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2964
+ eventSlug: z.ZodOptional<z.ZodString>;
2965
+ icon: z.ZodOptional<z.ZodString>;
2966
+ image: z.ZodOptional<z.ZodString>;
2967
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2968
+ market_slug: z.ZodOptional<z.ZodString>;
2969
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2970
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
2971
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2972
+ outcome: z.ZodString;
2973
+ outcome_index: z.ZodNumber;
2974
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2975
+ question: z.ZodOptional<z.ZodString>;
2976
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2977
+ seriesSlug: z.ZodOptional<z.ZodString>;
2978
+ side: z.ZodEnum<typeof OrderSide>;
2979
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
2980
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
2981
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2982
+ }, z.core.$strip>, z.ZodTransform<{
2983
+ conditionId: ConditionId;
2984
+ tokenId: TokenId;
2985
+ marketSlug: string | undefined;
2986
+ matchedSize: DecimalString;
2987
+ orderId: OrderId;
2988
+ orderType: OrderType | undefined;
2989
+ originalSize: DecimalString;
2990
+ outcomeIndex: number;
2991
+ remainingSize: DecimalString;
2992
+ tradeId: string | undefined;
2993
+ transactionHash: _polymarket_types.TxHash | undefined;
2994
+ outcome: string;
2995
+ price: DecimalString;
2996
+ side: OrderSide;
2997
+ eventSlug?: string | undefined;
2998
+ icon?: string | undefined;
2999
+ image?: string | undefined;
3000
+ question?: string | undefined;
3001
+ seriesSlug?: string | undefined;
3002
+ }, {
3003
+ asset_id: TokenId;
3004
+ market: ConditionId;
3005
+ matched_size: DecimalString;
3006
+ order_id: OrderId;
3007
+ original_size: DecimalString;
3008
+ outcome: string;
3009
+ outcome_index: number;
3010
+ price: DecimalString;
3011
+ remaining_size: DecimalString;
3012
+ side: OrderSide;
3013
+ eventSlug?: string | undefined;
3014
+ icon?: string | undefined;
3015
+ image?: string | undefined;
3016
+ market_slug?: string | undefined;
3017
+ question?: string | undefined;
3018
+ seriesSlug?: string | undefined;
3019
+ trade_id?: string | undefined;
3020
+ transaction_hash?: _polymarket_types.TxHash | undefined;
3021
+ type?: OrderType | undefined;
3022
+ }>>;
3023
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3024
+ type: z.ZodLiteral<NotificationType.ORDER_FILL>;
3025
+ }, z.core.$strip>, z.ZodObject<{
3026
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3027
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3028
+ payload: z.ZodPipe<z.ZodObject<{
3029
+ accepting_order_timestamp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
3030
+ accepting_orders: z.ZodBoolean;
3031
+ active: z.ZodBoolean;
3032
+ archived: z.ZodOptional<z.ZodBoolean>;
3033
+ closed: z.ZodBoolean;
3034
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3035
+ description: z.ZodString;
3036
+ enable_order_book: z.ZodOptional<z.ZodBoolean>;
3037
+ end_date_iso: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
3038
+ eventSlug: z.ZodOptional<z.ZodString>;
3039
+ fpmm: z.ZodString;
3040
+ game_start_time: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
3041
+ icon: z.ZodString;
3042
+ image: z.ZodString;
3043
+ is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
3044
+ maker_base_fee: z.ZodNullable<z.ZodNumber>;
3045
+ market_slug: z.ZodString;
3046
+ minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3047
+ minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3048
+ neg_risk: z.ZodOptional<z.ZodBoolean>;
3049
+ neg_risk_market_id: z.ZodOptional<z.ZodString>;
3050
+ neg_risk_request_id: z.ZodOptional<z.ZodString>;
3051
+ notifications_enabled: z.ZodOptional<z.ZodBoolean>;
3052
+ question: z.ZodString;
3053
+ question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
3054
+ rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
3055
+ max_spread: z.ZodNumber;
3056
+ min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3057
+ rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
3058
+ asset_address: z.ZodString;
3059
+ rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3060
+ }, z.core.$strip>, z.ZodTransform<{
3061
+ assetAddress: string;
3062
+ dailyRate: DecimalString;
3063
+ }, {
3064
+ asset_address: string;
3065
+ rewards_daily_rate: DecimalString;
3066
+ }>>>>>;
3067
+ }, z.core.$strip>, z.ZodTransform<{
3068
+ maxSpread: number;
3069
+ minSize: DecimalString;
3070
+ rates?: {
3071
+ assetAddress: string;
3072
+ dailyRate: DecimalString;
3073
+ }[] | null | undefined;
3074
+ }, {
3075
+ max_spread: number;
3076
+ min_size: DecimalString;
3077
+ rates?: {
3078
+ assetAddress: string;
3079
+ dailyRate: DecimalString;
3080
+ }[] | null | undefined;
3081
+ }>>>;
3082
+ seconds_delay: z.ZodNumber;
3083
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3084
+ taker_base_fee: z.ZodNullable<z.ZodNumber>;
3085
+ tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
3086
+ outcome: z.ZodString;
3087
+ price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
3088
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
3089
+ winner: z.ZodBoolean;
3090
+ }, z.core.$strip>, z.ZodTransform<{
3091
+ tokenId: TokenId;
3092
+ outcome: string;
3093
+ winner: boolean;
3094
+ price?: DecimalString | undefined;
3095
+ }, {
3096
+ outcome: string;
3097
+ token_id: TokenId;
3098
+ winner: boolean;
3099
+ price?: DecimalString | undefined;
3100
+ }>>>;
3101
+ }, z.core.$strip>, z.ZodTransform<{
3102
+ acceptingOrders: boolean;
3103
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
3104
+ conditionId: ConditionId;
3105
+ enableOrderBook: boolean | undefined;
3106
+ endDate: IsoDateTimeString | null | undefined;
3107
+ gameStartTime: IsoDateTimeString | null | undefined;
3108
+ is5050Outcome: boolean | undefined;
3109
+ makerBaseFee: number | null;
3110
+ marketSlug: string;
3111
+ minimumOrderSize: DecimalString;
3112
+ minimumTickSize: DecimalString;
3113
+ negRisk: boolean | undefined;
3114
+ negRiskMarketId: string | undefined;
3115
+ negRiskRequestId: string | undefined;
3116
+ notificationsEnabled: boolean | undefined;
3117
+ questionId: QuestionId;
3118
+ secondsDelay: number;
3119
+ takerBaseFee: number | null;
3120
+ active: boolean;
3121
+ closed: boolean;
3122
+ description: string;
3123
+ fpmm: string;
3124
+ icon: string;
3125
+ image: string;
3126
+ question: string;
3127
+ tokens: {
3128
+ tokenId: TokenId;
3129
+ outcome: string;
3130
+ winner: boolean;
3131
+ price?: DecimalString | undefined;
3132
+ }[];
3133
+ archived?: boolean | undefined;
3134
+ eventSlug?: string | undefined;
3135
+ rewards?: {
3136
+ maxSpread: number;
3137
+ minSize: DecimalString;
3138
+ rates?: {
3139
+ assetAddress: string;
3140
+ dailyRate: DecimalString;
3141
+ }[] | null | undefined;
3142
+ } | undefined;
3143
+ tags?: string[] | null | undefined;
3144
+ }, {
3145
+ accepting_orders: boolean;
3146
+ active: boolean;
3147
+ closed: boolean;
3148
+ condition_id: ConditionId;
3149
+ description: string;
3150
+ fpmm: string;
3151
+ icon: string;
3152
+ image: string;
3153
+ maker_base_fee: number | null;
3154
+ market_slug: string;
3155
+ minimum_order_size: DecimalString;
3156
+ minimum_tick_size: DecimalString;
3157
+ question: string;
3158
+ question_id: QuestionId;
3159
+ seconds_delay: number;
3160
+ taker_base_fee: number | null;
3161
+ tokens: {
3162
+ tokenId: TokenId;
3163
+ outcome: string;
3164
+ winner: boolean;
3165
+ price?: DecimalString | undefined;
3166
+ }[];
3167
+ accepting_order_timestamp?: IsoDateTimeString | null | undefined;
3168
+ archived?: boolean | undefined;
3169
+ enable_order_book?: boolean | undefined;
3170
+ end_date_iso?: IsoDateTimeString | null | undefined;
3171
+ eventSlug?: string | undefined;
3172
+ game_start_time?: IsoDateTimeString | null | undefined;
3173
+ is_50_50_outcome?: boolean | undefined;
3174
+ neg_risk?: boolean | undefined;
3175
+ neg_risk_market_id?: string | undefined;
3176
+ neg_risk_request_id?: string | undefined;
3177
+ notifications_enabled?: boolean | undefined;
3178
+ rewards?: {
3179
+ maxSpread: number;
3180
+ minSize: DecimalString;
3181
+ rates?: {
3182
+ assetAddress: string;
3183
+ dailyRate: DecimalString;
3184
+ }[] | null | undefined;
3185
+ } | undefined;
3186
+ tags?: string[] | null | undefined;
3187
+ }>>;
3188
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3189
+ type: z.ZodLiteral<NotificationType.MARKET_REGISTERED>;
3190
+ }, z.core.$strip>, z.ZodObject<{
3191
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3192
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3193
+ payload: z.ZodPipe<z.ZodObject<{
3194
+ accepting_order_timestamp: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
3195
+ accepting_orders: z.ZodBoolean;
3196
+ active: z.ZodBoolean;
3197
+ archived: z.ZodOptional<z.ZodBoolean>;
3198
+ closed: z.ZodBoolean;
3199
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3200
+ description: z.ZodString;
3201
+ enable_order_book: z.ZodOptional<z.ZodBoolean>;
3202
+ end_date_iso: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
3203
+ eventSlug: z.ZodOptional<z.ZodString>;
3204
+ fpmm: z.ZodString;
3205
+ game_start_time: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
3206
+ icon: z.ZodString;
3207
+ image: z.ZodString;
3208
+ is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
3209
+ maker_base_fee: z.ZodNullable<z.ZodNumber>;
3210
+ market_slug: z.ZodString;
3211
+ minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3212
+ minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3213
+ neg_risk: z.ZodOptional<z.ZodBoolean>;
3214
+ neg_risk_market_id: z.ZodOptional<z.ZodString>;
3215
+ neg_risk_request_id: z.ZodOptional<z.ZodString>;
3216
+ notifications_enabled: z.ZodOptional<z.ZodBoolean>;
3217
+ question: z.ZodString;
3218
+ question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
3219
+ rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
3220
+ max_spread: z.ZodNumber;
3221
+ min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3222
+ rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
3223
+ asset_address: z.ZodString;
3224
+ rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3225
+ }, z.core.$strip>, z.ZodTransform<{
3226
+ assetAddress: string;
3227
+ dailyRate: DecimalString;
3228
+ }, {
3229
+ asset_address: string;
3230
+ rewards_daily_rate: DecimalString;
3231
+ }>>>>>;
3232
+ }, z.core.$strip>, z.ZodTransform<{
3233
+ maxSpread: number;
3234
+ minSize: DecimalString;
3235
+ rates?: {
3236
+ assetAddress: string;
3237
+ dailyRate: DecimalString;
3238
+ }[] | null | undefined;
3239
+ }, {
3240
+ max_spread: number;
3241
+ min_size: DecimalString;
3242
+ rates?: {
3243
+ assetAddress: string;
3244
+ dailyRate: DecimalString;
3245
+ }[] | null | undefined;
3246
+ }>>>;
3247
+ seconds_delay: z.ZodNumber;
3248
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3249
+ taker_base_fee: z.ZodNullable<z.ZodNumber>;
3250
+ tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
3251
+ outcome: z.ZodString;
3252
+ price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
3253
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
3254
+ winner: z.ZodBoolean;
3255
+ }, z.core.$strip>, z.ZodTransform<{
3256
+ tokenId: TokenId;
3257
+ outcome: string;
3258
+ winner: boolean;
3259
+ price?: DecimalString | undefined;
3260
+ }, {
3261
+ outcome: string;
3262
+ token_id: TokenId;
3263
+ winner: boolean;
3264
+ price?: DecimalString | undefined;
3265
+ }>>>;
3266
+ }, z.core.$strip>, z.ZodTransform<{
3267
+ acceptingOrders: boolean;
3268
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
3269
+ conditionId: ConditionId;
3270
+ enableOrderBook: boolean | undefined;
3271
+ endDate: IsoDateTimeString | null | undefined;
3272
+ gameStartTime: IsoDateTimeString | null | undefined;
3273
+ is5050Outcome: boolean | undefined;
3274
+ makerBaseFee: number | null;
3275
+ marketSlug: string;
3276
+ minimumOrderSize: DecimalString;
3277
+ minimumTickSize: DecimalString;
3278
+ negRisk: boolean | undefined;
3279
+ negRiskMarketId: string | undefined;
3280
+ negRiskRequestId: string | undefined;
3281
+ notificationsEnabled: boolean | undefined;
3282
+ questionId: QuestionId;
3283
+ secondsDelay: number;
3284
+ takerBaseFee: number | null;
3285
+ active: boolean;
3286
+ closed: boolean;
3287
+ description: string;
3288
+ fpmm: string;
3289
+ icon: string;
3290
+ image: string;
3291
+ question: string;
3292
+ tokens: {
3293
+ tokenId: TokenId;
3294
+ outcome: string;
3295
+ winner: boolean;
3296
+ price?: DecimalString | undefined;
3297
+ }[];
3298
+ archived?: boolean | undefined;
3299
+ eventSlug?: string | undefined;
3300
+ rewards?: {
3301
+ maxSpread: number;
3302
+ minSize: DecimalString;
3303
+ rates?: {
3304
+ assetAddress: string;
3305
+ dailyRate: DecimalString;
3306
+ }[] | null | undefined;
3307
+ } | undefined;
3308
+ tags?: string[] | null | undefined;
3309
+ }, {
3310
+ accepting_orders: boolean;
3311
+ active: boolean;
3312
+ closed: boolean;
3313
+ condition_id: ConditionId;
3314
+ description: string;
3315
+ fpmm: string;
3316
+ icon: string;
3317
+ image: string;
3318
+ maker_base_fee: number | null;
3319
+ market_slug: string;
3320
+ minimum_order_size: DecimalString;
3321
+ minimum_tick_size: DecimalString;
3322
+ question: string;
3323
+ question_id: QuestionId;
3324
+ seconds_delay: number;
3325
+ taker_base_fee: number | null;
3326
+ tokens: {
3327
+ tokenId: TokenId;
3328
+ outcome: string;
3329
+ winner: boolean;
3330
+ price?: DecimalString | undefined;
3331
+ }[];
3332
+ accepting_order_timestamp?: IsoDateTimeString | null | undefined;
3333
+ archived?: boolean | undefined;
3334
+ enable_order_book?: boolean | undefined;
3335
+ end_date_iso?: IsoDateTimeString | null | undefined;
3336
+ eventSlug?: string | undefined;
3337
+ game_start_time?: IsoDateTimeString | null | undefined;
3338
+ is_50_50_outcome?: boolean | undefined;
3339
+ neg_risk?: boolean | undefined;
3340
+ neg_risk_market_id?: string | undefined;
3341
+ neg_risk_request_id?: string | undefined;
3342
+ notifications_enabled?: boolean | undefined;
3343
+ rewards?: {
3344
+ maxSpread: number;
3345
+ minSize: DecimalString;
3346
+ rates?: {
3347
+ assetAddress: string;
3348
+ dailyRate: DecimalString;
3349
+ }[] | null | undefined;
3350
+ } | undefined;
3351
+ tags?: string[] | null | undefined;
3352
+ }>>;
3353
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3354
+ type: z.ZodLiteral<NotificationType.MARKET_RESOLVED>;
3355
+ }, z.core.$strip>, z.ZodObject<{
3356
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3357
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3358
+ payload: z.ZodPipe<z.ZodObject<{
3359
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
3360
+ reward: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3361
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
3362
+ }, z.core.$strip>, z.ZodTransform<{
3363
+ transactionHash: _polymarket_types.TxHash;
3364
+ proxyWallet: _polymarket_types.EvmAddress;
3365
+ reward: DecimalString;
3366
+ }, {
3367
+ proxyWallet: _polymarket_types.EvmAddress;
3368
+ reward: DecimalString;
3369
+ txnHash: _polymarket_types.TxHash;
3370
+ }>>;
3371
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3372
+ type: z.ZodLiteral<NotificationType.REWARD_PAYOUT>;
3373
+ }, z.core.$strip>, z.ZodObject<{
3374
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3375
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3376
+ payload: z.ZodObject<{
3377
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3378
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
3379
+ eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3380
+ eventTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3381
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
3382
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3383
+ parentCommentID: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>>>;
3384
+ parentEntityID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3385
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof CommentParentEntityType>>>;
3386
+ profile: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
3387
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3388
+ pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3389
+ displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3390
+ bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3391
+ isMod: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3392
+ isCreator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3393
+ proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3394
+ baseAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3395
+ profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3396
+ profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3397
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<ImageOptimizationId, string>>;
3398
+ imageUrlSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3399
+ imageUrlOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3400
+ imageSizeKbSource: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3401
+ imageSizeKbOptimized: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3402
+ imageOptimizedComplete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3403
+ imageOptimizedLastUpdated: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
3404
+ relID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3405
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3406
+ relname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3407
+ }, z.core.$strip>>>;
3408
+ positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3409
+ tokenId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
3410
+ positionSize: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>>>;
3411
+ }, z.core.$strip>>>>;
3412
+ }, z.core.$strip>, z.ZodTransform<{
3413
+ wallet: string | null | undefined;
3414
+ name?: string | null | undefined;
3415
+ pseudonym?: string | null | undefined;
3416
+ displayUsernamePublic?: boolean | null | undefined;
3417
+ bio?: string | null | undefined;
3418
+ isMod?: boolean | null | undefined;
3419
+ isCreator?: boolean | null | undefined;
3420
+ baseAddress?: string | null | undefined;
3421
+ profileImage?: string | null | undefined;
3422
+ profileImageOptimized?: {
3423
+ id: ImageOptimizationId;
3424
+ imageUrlSource?: string | null | undefined;
3425
+ imageUrlOptimized?: string | null | undefined;
3426
+ imageSizeKbSource?: number | null | undefined;
3427
+ imageSizeKbOptimized?: number | null | undefined;
3428
+ imageOptimizedComplete?: boolean | null | undefined;
3429
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
3430
+ relID?: number | null | undefined;
3431
+ field?: string | null | undefined;
3432
+ relname?: string | null | undefined;
3433
+ } | null | undefined;
3434
+ positions?: {
3435
+ tokenId?: TokenId | null | undefined;
3436
+ positionSize?: BaseUnits | null | undefined;
3437
+ }[] | null | undefined;
3438
+ }, {
3439
+ name?: string | null | undefined;
3440
+ pseudonym?: string | null | undefined;
3441
+ displayUsernamePublic?: boolean | null | undefined;
3442
+ bio?: string | null | undefined;
3443
+ isMod?: boolean | null | undefined;
3444
+ isCreator?: boolean | null | undefined;
3445
+ proxyWallet?: string | null | undefined;
3446
+ baseAddress?: string | null | undefined;
3447
+ profileImage?: string | null | undefined;
3448
+ profileImageOptimized?: {
3449
+ id: ImageOptimizationId;
3450
+ imageUrlSource?: string | null | undefined;
3451
+ imageUrlOptimized?: string | null | undefined;
3452
+ imageSizeKbSource?: number | null | undefined;
3453
+ imageSizeKbOptimized?: number | null | undefined;
3454
+ imageOptimizedComplete?: boolean | null | undefined;
3455
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
3456
+ relID?: number | null | undefined;
3457
+ field?: string | null | undefined;
3458
+ relname?: string | null | undefined;
3459
+ } | null | undefined;
3460
+ positions?: {
3461
+ tokenId?: TokenId | null | undefined;
3462
+ positionSize?: BaseUnits | null | undefined;
3463
+ }[] | null | undefined;
3464
+ }>>>>;
3465
+ seriesSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3466
+ seriesTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3467
+ userAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3468
+ }, z.core.$strip>;
3469
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3470
+ type: z.ZodLiteral<NotificationType.CHILD_COMMENT_CREATED>;
3471
+ }, z.core.$strip>, z.ZodObject<{
3472
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3473
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3474
+ payload: z.ZodPipe<z.ZodObject<{
3475
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3476
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
3477
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
3478
+ }, z.core.$strip>, z.ZodTransform<{
3479
+ transactionHash: _polymarket_types.TxHash;
3480
+ amount: DecimalString;
3481
+ proxyWallet: _polymarket_types.EvmAddress;
3482
+ }, {
3483
+ amount: DecimalString;
3484
+ proxyWallet: _polymarket_types.EvmAddress;
3485
+ txnHash: _polymarket_types.TxHash;
3486
+ }>>;
3487
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3488
+ type: z.ZodLiteral<NotificationType.YIELD_PAYOUT>;
3489
+ }, z.core.$strip>, z.ZodObject<{
3490
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3491
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3492
+ payload: z.ZodPipe<z.ZodObject<{
3493
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
3494
+ eventSlug: z.ZodOptional<z.ZodString>;
3495
+ icon: z.ZodOptional<z.ZodString>;
3496
+ image: z.ZodOptional<z.ZodString>;
3497
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3498
+ market_slug: z.ZodOptional<z.ZodString>;
3499
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3500
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
3501
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3502
+ outcome: z.ZodString;
3503
+ outcome_index: z.ZodNumber;
3504
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3505
+ question: z.ZodOptional<z.ZodString>;
3506
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3507
+ seriesSlug: z.ZodOptional<z.ZodString>;
3508
+ side: z.ZodEnum<typeof OrderSide>;
3509
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
3510
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
3511
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
3512
+ }, z.core.$strip>, z.ZodTransform<{
3513
+ conditionId: ConditionId;
3514
+ tokenId: TokenId;
3515
+ marketSlug: string | undefined;
3516
+ matchedSize: DecimalString;
3517
+ orderId: OrderId;
3518
+ orderType: OrderType | undefined;
3519
+ originalSize: DecimalString;
3520
+ outcomeIndex: number;
3521
+ remainingSize: DecimalString;
3522
+ tradeId: string | undefined;
3523
+ transactionHash: _polymarket_types.TxHash | undefined;
3524
+ outcome: string;
3525
+ price: DecimalString;
3526
+ side: OrderSide;
3527
+ eventSlug?: string | undefined;
3528
+ icon?: string | undefined;
3529
+ image?: string | undefined;
3530
+ question?: string | undefined;
3531
+ seriesSlug?: string | undefined;
3532
+ }, {
3533
+ asset_id: TokenId;
3534
+ market: ConditionId;
3535
+ matched_size: DecimalString;
3536
+ order_id: OrderId;
3537
+ original_size: DecimalString;
3538
+ outcome: string;
3539
+ outcome_index: number;
3540
+ price: DecimalString;
3541
+ remaining_size: DecimalString;
3542
+ side: OrderSide;
3543
+ eventSlug?: string | undefined;
3544
+ icon?: string | undefined;
3545
+ image?: string | undefined;
3546
+ market_slug?: string | undefined;
3547
+ question?: string | undefined;
3548
+ seriesSlug?: string | undefined;
3549
+ trade_id?: string | undefined;
3550
+ transaction_hash?: _polymarket_types.TxHash | undefined;
3551
+ type?: OrderType | undefined;
3552
+ }>>;
3553
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3554
+ type: z.ZodLiteral<NotificationType.ORDER_FILL_FAILED>;
3555
+ }, z.core.$strip>, z.ZodObject<{
3556
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3557
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3558
+ payload: z.ZodPipe<z.ZodObject<{
3559
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3560
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3561
+ image: z.ZodString;
3562
+ marketUrl: z.ZodOptional<z.ZodString>;
3563
+ negRisk: z.ZodBoolean;
3564
+ portfolioUrl: z.ZodOptional<z.ZodString>;
3565
+ position: z.ZodOptional<z.ZodString>;
3566
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
3567
+ question: z.ZodString;
3568
+ slug: z.ZodString;
3569
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
3570
+ }, z.core.$strip>, z.ZodTransform<{
3571
+ marketSlug: string;
3572
+ transactionHash: _polymarket_types.TxHash;
3573
+ amount: DecimalString;
3574
+ conditionId: ConditionId;
3575
+ image: string;
3576
+ negRisk: boolean;
3577
+ proxyWallet: _polymarket_types.EvmAddress;
3578
+ question: string;
3579
+ marketUrl?: string | undefined;
3580
+ portfolioUrl?: string | undefined;
3581
+ position?: string | undefined;
3582
+ }, {
3583
+ amount: DecimalString;
3584
+ conditionId: ConditionId;
3585
+ image: string;
3586
+ negRisk: boolean;
3587
+ proxyWallet: _polymarket_types.EvmAddress;
3588
+ question: string;
3589
+ slug: string;
3590
+ txnHash: _polymarket_types.TxHash;
3591
+ marketUrl?: string | undefined;
3592
+ portfolioUrl?: string | undefined;
3593
+ position?: string | undefined;
3594
+ }>>;
3595
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3596
+ type: z.ZodLiteral<NotificationType.AUTO_REDEEMED>;
3597
+ }, z.core.$strip>, z.ZodObject<{
3598
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3599
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3600
+ payload: z.ZodPipe<z.ZodObject<{
3601
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3602
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
3603
+ legs: z.ZodNumber;
3604
+ outcomeIndex: z.ZodNumber;
3605
+ portfolioUrl: z.ZodOptional<z.ZodString>;
3606
+ positionId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
3607
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
3608
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
3609
+ }, z.core.$strip>, z.ZodTransform<{
3610
+ transactionHash: _polymarket_types.TxHash;
3611
+ amount: DecimalString;
3612
+ conditionId: ComboConditionId;
3613
+ legs: number;
3614
+ outcomeIndex: number;
3615
+ positionId: PositionId;
3616
+ proxyWallet: _polymarket_types.EvmAddress;
3617
+ portfolioUrl?: string | undefined;
3618
+ }, {
3619
+ amount: DecimalString;
3620
+ conditionId: ComboConditionId;
3621
+ legs: number;
3622
+ outcomeIndex: number;
3623
+ positionId: PositionId;
3624
+ proxyWallet: _polymarket_types.EvmAddress;
3625
+ txnHash: _polymarket_types.TxHash;
3626
+ portfolioUrl?: string | undefined;
3627
+ }>>;
3628
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3629
+ type: z.ZodLiteral<NotificationType.COMBO_AUTO_REDEEMED>;
3630
+ }, z.core.$strip>], "type">;
3631
+ type Notification = z.infer<typeof NotificationSchema>;
3632
+ /**
3633
+ * Notifications with types unknown to this SDK version are omitted so newly
3634
+ * introduced kinds cannot fail the feed; recognized types validate strictly.
3635
+ */
3636
+ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<({
3637
+ id: NotificationId;
3638
+ owner: ApiKey;
3639
+ payload: {
3640
+ conditionId: ConditionId;
3641
+ tokenId: TokenId;
3642
+ marketSlug: string | undefined;
3643
+ matchedSize: DecimalString;
3644
+ orderId: OrderId;
3645
+ orderType: OrderType | undefined;
3646
+ originalSize: DecimalString;
3647
+ outcomeIndex: number;
3648
+ remainingSize: DecimalString;
3649
+ tradeId: string | undefined;
3650
+ transactionHash: _polymarket_types.TxHash | undefined;
3651
+ outcome: string;
3652
+ price: DecimalString;
3653
+ side: OrderSide;
3654
+ eventSlug?: string | undefined;
3655
+ icon?: string | undefined;
3656
+ image?: string | undefined;
3657
+ question?: string | undefined;
3658
+ seriesSlug?: string | undefined;
3659
+ };
3660
+ timestamp: EpochMilliseconds;
3661
+ type: NotificationType.ORDER_CANCELLATION;
3662
+ } | {
3663
+ id: NotificationId;
3664
+ owner: ApiKey;
3665
+ payload: {
3666
+ conditionId: ConditionId;
3667
+ tokenId: TokenId;
3668
+ marketSlug: string | undefined;
3669
+ matchedSize: DecimalString;
3670
+ orderId: OrderId;
3671
+ orderType: OrderType | undefined;
3672
+ originalSize: DecimalString;
3673
+ outcomeIndex: number;
3674
+ remainingSize: DecimalString;
3675
+ tradeId: string | undefined;
3676
+ transactionHash: _polymarket_types.TxHash | undefined;
3677
+ outcome: string;
3678
+ price: DecimalString;
3679
+ side: OrderSide;
3680
+ eventSlug?: string | undefined;
3681
+ icon?: string | undefined;
3682
+ image?: string | undefined;
3683
+ question?: string | undefined;
3684
+ seriesSlug?: string | undefined;
3685
+ };
3686
+ timestamp: EpochMilliseconds;
3687
+ type: NotificationType.ORDER_FILL;
3688
+ } | {
3689
+ id: NotificationId;
3690
+ owner: ApiKey;
3691
+ payload: {
3692
+ acceptingOrders: boolean;
3693
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
3694
+ conditionId: ConditionId;
3695
+ enableOrderBook: boolean | undefined;
3696
+ endDate: IsoDateTimeString | null | undefined;
3697
+ gameStartTime: IsoDateTimeString | null | undefined;
3698
+ is5050Outcome: boolean | undefined;
3699
+ makerBaseFee: number | null;
3700
+ marketSlug: string;
3701
+ minimumOrderSize: DecimalString;
3702
+ minimumTickSize: DecimalString;
3703
+ negRisk: boolean | undefined;
3704
+ negRiskMarketId: string | undefined;
3705
+ negRiskRequestId: string | undefined;
3706
+ notificationsEnabled: boolean | undefined;
3707
+ questionId: QuestionId;
3708
+ secondsDelay: number;
3709
+ takerBaseFee: number | null;
3710
+ active: boolean;
3711
+ closed: boolean;
3712
+ description: string;
3713
+ fpmm: string;
3714
+ icon: string;
3715
+ image: string;
3716
+ question: string;
3717
+ tokens: {
3718
+ tokenId: TokenId;
3719
+ outcome: string;
3720
+ winner: boolean;
3721
+ price?: DecimalString | undefined;
3722
+ }[];
3723
+ archived?: boolean | undefined;
3724
+ eventSlug?: string | undefined;
3725
+ rewards?: {
3726
+ maxSpread: number;
3727
+ minSize: DecimalString;
3728
+ rates?: {
3729
+ assetAddress: string;
3730
+ dailyRate: DecimalString;
3731
+ }[] | null | undefined;
3732
+ } | undefined;
3733
+ tags?: string[] | null | undefined;
3734
+ };
3735
+ timestamp: EpochMilliseconds;
3736
+ type: NotificationType.MARKET_REGISTERED;
3737
+ } | {
3738
+ id: NotificationId;
3739
+ owner: ApiKey;
3740
+ payload: {
3741
+ acceptingOrders: boolean;
3742
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
3743
+ conditionId: ConditionId;
3744
+ enableOrderBook: boolean | undefined;
3745
+ endDate: IsoDateTimeString | null | undefined;
3746
+ gameStartTime: IsoDateTimeString | null | undefined;
3747
+ is5050Outcome: boolean | undefined;
3748
+ makerBaseFee: number | null;
3749
+ marketSlug: string;
3750
+ minimumOrderSize: DecimalString;
3751
+ minimumTickSize: DecimalString;
3752
+ negRisk: boolean | undefined;
3753
+ negRiskMarketId: string | undefined;
3754
+ negRiskRequestId: string | undefined;
3755
+ notificationsEnabled: boolean | undefined;
3756
+ questionId: QuestionId;
3757
+ secondsDelay: number;
3758
+ takerBaseFee: number | null;
3759
+ active: boolean;
3760
+ closed: boolean;
3761
+ description: string;
3762
+ fpmm: string;
3763
+ icon: string;
3764
+ image: string;
3765
+ question: string;
3766
+ tokens: {
3767
+ tokenId: TokenId;
3768
+ outcome: string;
3769
+ winner: boolean;
3770
+ price?: DecimalString | undefined;
3771
+ }[];
3772
+ archived?: boolean | undefined;
3773
+ eventSlug?: string | undefined;
3774
+ rewards?: {
3775
+ maxSpread: number;
3776
+ minSize: DecimalString;
3777
+ rates?: {
3778
+ assetAddress: string;
3779
+ dailyRate: DecimalString;
3780
+ }[] | null | undefined;
3781
+ } | undefined;
3782
+ tags?: string[] | null | undefined;
3783
+ };
3784
+ timestamp: EpochMilliseconds;
3785
+ type: NotificationType.MARKET_RESOLVED;
3786
+ } | {
3787
+ id: NotificationId;
3788
+ owner: ApiKey;
3789
+ payload: {
3790
+ transactionHash: _polymarket_types.TxHash;
3791
+ proxyWallet: _polymarket_types.EvmAddress;
3792
+ reward: DecimalString;
3793
+ };
3794
+ timestamp: EpochMilliseconds;
3795
+ type: NotificationType.REWARD_PAYOUT;
3796
+ } | {
3797
+ id: NotificationId;
3798
+ owner: ApiKey;
3799
+ payload: {
3800
+ id: CommentId;
3801
+ body?: string | null | undefined;
3802
+ createdAt?: IsoDateTimeString | null | undefined;
3803
+ eventSlug?: string | null | undefined;
3804
+ eventTitle?: string | null | undefined;
3805
+ image?: string | null | undefined;
3806
+ parentCommentID?: CommentId | null | undefined;
3807
+ parentEntityID?: number | null | undefined;
3808
+ parentEntityType?: CommentParentEntityType | null | undefined;
3809
+ profile?: {
3810
+ wallet: string | null | undefined;
3811
+ name?: string | null | undefined;
3812
+ pseudonym?: string | null | undefined;
3813
+ displayUsernamePublic?: boolean | null | undefined;
3814
+ bio?: string | null | undefined;
3815
+ isMod?: boolean | null | undefined;
3816
+ isCreator?: boolean | null | undefined;
3817
+ baseAddress?: string | null | undefined;
3818
+ profileImage?: string | null | undefined;
3819
+ profileImageOptimized?: {
3820
+ id: ImageOptimizationId;
3821
+ imageUrlSource?: string | null | undefined;
3822
+ imageUrlOptimized?: string | null | undefined;
3823
+ imageSizeKbSource?: number | null | undefined;
3824
+ imageSizeKbOptimized?: number | null | undefined;
3825
+ imageOptimizedComplete?: boolean | null | undefined;
3826
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
3827
+ relID?: number | null | undefined;
3828
+ field?: string | null | undefined;
3829
+ relname?: string | null | undefined;
3830
+ } | null | undefined;
3831
+ positions?: {
3832
+ tokenId?: TokenId | null | undefined;
3833
+ positionSize?: BaseUnits | null | undefined;
3834
+ }[] | null | undefined;
3835
+ } | null | undefined;
3836
+ seriesSlug?: string | null | undefined;
3837
+ seriesTitle?: string | null | undefined;
3838
+ userAddress?: string | null | undefined;
3839
+ };
3840
+ timestamp: EpochMilliseconds;
3841
+ type: NotificationType.CHILD_COMMENT_CREATED;
3842
+ } | {
3843
+ id: NotificationId;
3844
+ owner: ApiKey;
3845
+ payload: {
3846
+ transactionHash: _polymarket_types.TxHash;
3847
+ amount: DecimalString;
3848
+ proxyWallet: _polymarket_types.EvmAddress;
3849
+ };
3850
+ timestamp: EpochMilliseconds;
3851
+ type: NotificationType.YIELD_PAYOUT;
3852
+ } | {
3853
+ id: NotificationId;
3854
+ owner: ApiKey;
3855
+ payload: {
3856
+ conditionId: ConditionId;
3857
+ tokenId: TokenId;
3858
+ marketSlug: string | undefined;
3859
+ matchedSize: DecimalString;
3860
+ orderId: OrderId;
3861
+ orderType: OrderType | undefined;
3862
+ originalSize: DecimalString;
3863
+ outcomeIndex: number;
3864
+ remainingSize: DecimalString;
3865
+ tradeId: string | undefined;
3866
+ transactionHash: _polymarket_types.TxHash | undefined;
3867
+ outcome: string;
3868
+ price: DecimalString;
3869
+ side: OrderSide;
3870
+ eventSlug?: string | undefined;
3871
+ icon?: string | undefined;
3872
+ image?: string | undefined;
3873
+ question?: string | undefined;
3874
+ seriesSlug?: string | undefined;
3875
+ };
3876
+ timestamp: EpochMilliseconds;
3877
+ type: NotificationType.ORDER_FILL_FAILED;
3878
+ } | {
3879
+ id: NotificationId;
3880
+ owner: ApiKey;
3881
+ payload: {
3882
+ marketSlug: string;
3883
+ transactionHash: _polymarket_types.TxHash;
3884
+ amount: DecimalString;
3885
+ conditionId: ConditionId;
3886
+ image: string;
3887
+ negRisk: boolean;
3888
+ proxyWallet: _polymarket_types.EvmAddress;
3889
+ question: string;
3890
+ marketUrl?: string | undefined;
3891
+ portfolioUrl?: string | undefined;
3892
+ position?: string | undefined;
3893
+ };
3894
+ timestamp: EpochMilliseconds;
3895
+ type: NotificationType.AUTO_REDEEMED;
3896
+ } | {
3897
+ id: NotificationId;
3898
+ owner: ApiKey;
3899
+ payload: {
3900
+ transactionHash: _polymarket_types.TxHash;
3901
+ amount: DecimalString;
3902
+ conditionId: ComboConditionId;
3903
+ legs: number;
3904
+ outcomeIndex: number;
3905
+ positionId: PositionId;
3906
+ proxyWallet: _polymarket_types.EvmAddress;
3907
+ portfolioUrl?: string | undefined;
3908
+ };
3909
+ timestamp: EpochMilliseconds;
3910
+ type: NotificationType.COMBO_AUTO_REDEEMED;
3911
+ })[], unknown[]>>;
3912
+ type NotificationsResponse = z.infer<typeof NotificationsResponseSchema>;
3913
+
3914
+ type OrderBookLevel = {
3915
+ price: DecimalString;
3916
+ size: DecimalString;
3917
+ };
3918
+ /** SHA-1 hash of the serialized order book summary, encoded as bare lowercase hex. */
3919
+ type OrderBookHash = string & {
3920
+ readonly __tag: 'OrderBookHash';
3921
+ };
3922
+ type OrderBook = {
3923
+ /** Condition ID for the market this book belongs to. */
3924
+ conditionId: ConditionId;
3925
+ tokenId: TokenId;
3926
+ timestamp?: EpochMilliseconds | null;
3927
+ /** Bid levels in ascending price order, lowest bid first. */
3928
+ bids: OrderBookLevel[];
3929
+ /** Ask levels in descending price order, highest ask first. */
3930
+ asks: OrderBookLevel[];
3931
+ minOrderSize: DecimalString;
3932
+ tickSize: TickSizeValue;
3933
+ negRisk: boolean;
3934
+ lastTradePrice?: DecimalString | null;
3935
+ hash: OrderBookHash;
3936
+ };
3937
+ declare const OrderBookLevelSchema: z.ZodObject<{
3938
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3939
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3940
+ }, z.core.$strip>;
3941
+ declare const OrderBookHashSchema: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
3942
+ declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
3943
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3944
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
3945
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
3946
+ bids: z.ZodArray<z.ZodObject<{
3947
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3948
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3949
+ }, z.core.$strip>>;
3950
+ asks: z.ZodArray<z.ZodObject<{
3951
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3952
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3953
+ }, z.core.$strip>>;
3954
+ min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3955
+ tick_size: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodTransform<number, DecimalString>>, z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>;
3956
+ neg_risk: z.ZodBoolean;
3957
+ last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
3958
+ hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
3959
+ }, z.core.$strip>, z.ZodTransform<{
3960
+ conditionId: ConditionId;
3961
+ tokenId: TokenId;
3962
+ minOrderSize: DecimalString;
3963
+ tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
3964
+ negRisk: boolean;
3965
+ lastTradePrice: DecimalString | null | undefined;
3966
+ bids: {
3967
+ price: DecimalString;
3968
+ size: DecimalString;
3969
+ }[];
3970
+ asks: {
3971
+ price: DecimalString;
3972
+ size: DecimalString;
3973
+ }[];
3974
+ hash: OrderBookHash;
3975
+ timestamp?: EpochMilliseconds | null | undefined;
3976
+ }, {
3977
+ market: ConditionId;
3978
+ asset_id: TokenId;
3979
+ bids: {
3980
+ price: DecimalString;
3981
+ size: DecimalString;
3982
+ }[];
3983
+ asks: {
3984
+ price: DecimalString;
3985
+ size: DecimalString;
3986
+ }[];
3987
+ min_order_size: DecimalString;
3988
+ tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
3989
+ neg_risk: boolean;
3990
+ hash: OrderBookHash;
3991
+ timestamp?: EpochMilliseconds | null | undefined;
3992
+ last_trade_price?: DecimalString | null | undefined;
3993
+ }>>;
3994
+ declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
3995
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3996
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
3997
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
3998
+ bids: z.ZodArray<z.ZodObject<{
3999
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4000
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4001
+ }, z.core.$strip>>;
4002
+ asks: z.ZodArray<z.ZodObject<{
4003
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4004
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4005
+ }, z.core.$strip>>;
4006
+ min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4007
+ tick_size: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodTransform<number, DecimalString>>, z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>;
4008
+ neg_risk: z.ZodBoolean;
4009
+ last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
4010
+ hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
4011
+ }, z.core.$strip>, z.ZodTransform<{
4012
+ conditionId: ConditionId;
4013
+ tokenId: TokenId;
4014
+ minOrderSize: DecimalString;
4015
+ tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
4016
+ negRisk: boolean;
4017
+ lastTradePrice: DecimalString | null | undefined;
4018
+ bids: {
4019
+ price: DecimalString;
4020
+ size: DecimalString;
4021
+ }[];
4022
+ asks: {
4023
+ price: DecimalString;
4024
+ size: DecimalString;
4025
+ }[];
4026
+ hash: OrderBookHash;
4027
+ timestamp?: EpochMilliseconds | null | undefined;
4028
+ }, {
4029
+ market: ConditionId;
4030
+ asset_id: TokenId;
4031
+ bids: {
4032
+ price: DecimalString;
4033
+ size: DecimalString;
4034
+ }[];
4035
+ asks: {
4036
+ price: DecimalString;
4037
+ size: DecimalString;
4038
+ }[];
4039
+ min_order_size: DecimalString;
4040
+ tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
4041
+ neg_risk: boolean;
4042
+ hash: OrderBookHash;
4043
+ timestamp?: EpochMilliseconds | null | undefined;
4044
+ last_trade_price?: DecimalString | null | undefined;
4045
+ }>>;
4046
+ declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4047
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
4048
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
4049
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
4050
+ bids: z.ZodArray<z.ZodObject<{
4051
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4052
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4053
+ }, z.core.$strip>>;
4054
+ asks: z.ZodArray<z.ZodObject<{
4055
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4056
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4057
+ }, z.core.$strip>>;
4058
+ min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4059
+ tick_size: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodTransform<number, DecimalString>>, z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>;
4060
+ neg_risk: z.ZodBoolean;
4061
+ last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
4062
+ hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
4063
+ }, z.core.$strip>, z.ZodTransform<{
4064
+ conditionId: ConditionId;
4065
+ tokenId: TokenId;
4066
+ minOrderSize: DecimalString;
4067
+ tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
4068
+ negRisk: boolean;
4069
+ lastTradePrice: DecimalString | null | undefined;
4070
+ bids: {
4071
+ price: DecimalString;
4072
+ size: DecimalString;
4073
+ }[];
4074
+ asks: {
4075
+ price: DecimalString;
4076
+ size: DecimalString;
4077
+ }[];
4078
+ hash: OrderBookHash;
4079
+ timestamp?: EpochMilliseconds | null | undefined;
4080
+ }, {
4081
+ market: ConditionId;
4082
+ asset_id: TokenId;
4083
+ bids: {
4084
+ price: DecimalString;
4085
+ size: DecimalString;
4086
+ }[];
4087
+ asks: {
4088
+ price: DecimalString;
4089
+ size: DecimalString;
4090
+ }[];
4091
+ min_order_size: DecimalString;
4092
+ tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1816
4093
  neg_risk: boolean;
1817
4094
  hash: OrderBookHash;
1818
4095
  timestamp?: EpochMilliseconds | null | undefined;
@@ -1840,6 +4117,7 @@ declare enum OrderResponseErrorCode {
1840
4117
  INVALID_NONCE = "invalid_nonce",
1841
4118
  INVALID_EXPIRATION = "invalid_expiration",
1842
4119
  POST_ONLY_WOULD_CROSS = "post_only_would_cross",
4120
+ POST_ONLY_MODE = "post_only_mode",
1843
4121
  FOK_NOT_FILLED = "fok_not_filled",
1844
4122
  FAK_NOT_FILLED = "fak_not_filled",
1845
4123
  UNKNOWN = "unknown"
@@ -2405,6 +4683,45 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
2405
4683
  }>>;
2406
4684
  type PaginatedMarketRewards = z.infer<typeof PaginatedMarketRewardsSchema>;
2407
4685
 
4686
+ type ActiveSessionSigner = {
4687
+ address: EvmAddress;
4688
+ scopes: SessionSignerScope[];
4689
+ validUntil: number;
4690
+ };
4691
+ declare const ActiveSessionSignerSchema: z.ZodPipe<z.ZodObject<{
4692
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
4693
+ scopes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<SessionSignerKnownScope | (string & {}), string>>>;
4694
+ valid_until: z.ZodNumber;
4695
+ }, z.core.$strip>, z.ZodTransform<{
4696
+ validUntil: number;
4697
+ address: EvmAddress;
4698
+ scopes: (SessionSignerKnownScope | (string & {}))[];
4699
+ }, {
4700
+ address: EvmAddress;
4701
+ scopes: (SessionSignerKnownScope | (string & {}))[];
4702
+ valid_until: number;
4703
+ }>>;
4704
+ type ActiveSessionSignersResponse = {
4705
+ signers: ActiveSessionSigner[];
4706
+ wallet: EvmAddress;
4707
+ };
4708
+ declare const ActiveSessionSignersResponseSchema: z.ZodObject<{
4709
+ signers: z.ZodArray<z.ZodPipe<z.ZodObject<{
4710
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
4711
+ scopes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<SessionSignerKnownScope | (string & {}), string>>>;
4712
+ valid_until: z.ZodNumber;
4713
+ }, z.core.$strip>, z.ZodTransform<{
4714
+ validUntil: number;
4715
+ address: EvmAddress;
4716
+ scopes: (SessionSignerKnownScope | (string & {}))[];
4717
+ }, {
4718
+ address: EvmAddress;
4719
+ scopes: (SessionSignerKnownScope | (string & {}))[];
4720
+ valid_until: number;
4721
+ }>>>;
4722
+ wallet: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
4723
+ }, z.core.$strip>;
4724
+
2408
4725
  declare const TickSizeSchema: z.ZodPipe<z.ZodObject<{
2409
4726
  minimum_tick_size: z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>;
2410
4727
  }, z.core.$strip>, z.ZodTransform<{
@@ -2422,4 +4739,4 @@ declare const FetchTickSizeResponseSchema: z.ZodPipe<z.ZodObject<{
2422
4739
  type TickSize = z.infer<typeof TickSizeSchema>;
2423
4740
  type FetchTickSizeResponse = z.infer<typeof FetchTickSizeResponseSchema>;
2424
4741
 
2425
- export { type AcceptedOrderResponse, AcceptedOrderResponseSchema, type ApiKeyCreds, ApiKeyCredsSchema, type ApiKeysResponse, ApiKeysResponseSchema, AssetType, AssetTypeSchema, type BalanceAllowanceResponse, BalanceAllowanceResponseSchema, type BuilderApiKey, type BuilderApiKeyCreds, BuilderApiKeyCredsSchema, BuilderApiKeySchema, type BuilderApiKeysResponse, BuilderApiKeysResponseSchema, type BuilderFeeRates, BuilderFeeRatesSchema, type BuilderTrade, BuilderTradeSchema, type CancelOrdersResponse, CancelOrdersResponseSchema, type ClobTrade, ClobTradeSchema, type ClobTradesPage, ClobTradesPageSchema, type ClosedOnlyMode, ClosedOnlyModeSchema, type ConditionByToken, ConditionByTokenSchema, type CurrentReward, type CurrentRewardConfig, CurrentRewardSchema, END_CURSOR, EarningSchema, type FetchBuilderFeeRatesResponse, FetchBuilderFeeRatesResponseSchema, type FetchMarketInfoResponse, FetchMarketInfoResponseSchema, type FetchNegRiskResponse, FetchNegRiskResponseSchema, type FetchOrderBookResponse, FetchOrderBookResponseSchema, type FetchTickSizeResponse, FetchTickSizeResponseSchema, type LastTradePrice, type LastTradePriceForToken, type LastTradePriceForTokenResponse, LastTradePriceSchema, type LastTradePrices, LastTradePricesSchema, MakerOrderSchema, type MarketFeeInfo, MarketFeeInfoSchema, type MarketInfo, MarketInfoSchema, type MarketReward, MarketRewardSchema, type MarketToken, MarketTokenSchema, type Midpoint, MidpointSchema, type Midpoints, MidpointsSchema, type NegRisk, NegRiskSchema, type Notification, NotificationSchema, type NotificationsResponse, NotificationsResponseSchema, type OpenOrder, OpenOrderSchema, type OpenOrdersPage, OpenOrdersPageSchema, type OrderBook, type OrderBookHash, OrderBookHashSchema, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, type OrderBooks, OrderBooksSchema, OrderPostStatus, OrderPostStatusSchema, type OrderResponse, OrderResponseErrorCode, OrderResponseErrorCodeSchema, OrderResponseSchema, type OrderResponses, OrderResponsesSchema, type OrderScoringResponse, OrderScoringResponseSchema, type OrdersScoringResponse, OrdersScoringResponseSchema, type PaginatedBuilderTrades, PaginatedBuilderTradesSchema, type PaginatedCurrentRewards, PaginatedCurrentRewardsSchema, type PaginatedMarketRewards, PaginatedMarketRewardsSchema, type Price, type PriceHistory, PriceHistoryInterval, PriceHistoryIntervalSchema, type PriceHistoryPoint, PriceHistorySchema, PriceSchema, type Prices, type PricesBySide, PricesSchema, type RejectedOrderResponse, RejectedOrderResponseSchema, type ResolveConditionByTokenResponse, ResolveConditionByTokenResponseSchema, type RewardConfig, type RewardToken, RewardsConfigSchema, type RewardsPercentages, RewardsPercentagesSchema, type Spread, SpreadSchema, type Spreads, SpreadsSchema, type TickSize, TickSizeSchema, TokenSchema, type TotalUserEarning, TotalUserEarningSchema, type TotalUserEarningsResponse, TotalUserEarningsResponseSchema, type UserEarning, UserEarningSchema, type UserEarningsPage, UserEarningsPageSchema, type UserRewardsEarning, UserRewardsEarningSchema, type UserRewardsEarningsPage, UserRewardsEarningsPageSchema };
4742
+ export { type AcceptedOrderResponse, AcceptedOrderResponseSchema, type ActiveSessionSigner, ActiveSessionSignerSchema, type ActiveSessionSignersResponse, ActiveSessionSignersResponseSchema, type ApiKeyCreds, ApiKeyCredsSchema, type ApiKeysResponse, ApiKeysResponseSchema, AssetType, AssetTypeSchema, type AutoRedeemedNotification, type AutoRedeemedNotificationPayload, AutoRedeemedNotificationPayloadSchema, AutoRedeemedNotificationSchema, type BalanceAllowanceResponse, BalanceAllowanceResponseSchema, type BuilderApiKey, type BuilderApiKeyCreds, BuilderApiKeyCredsSchema, BuilderApiKeySchema, type BuilderApiKeysResponse, BuilderApiKeysResponseSchema, type BuilderFeeRates, BuilderFeeRatesSchema, type BuilderTrade, BuilderTradeSchema, type CancelOrdersResponse, CancelOrdersResponseSchema, type ChildCommentCreatedNotification, ChildCommentCreatedNotificationSchema, type ChildCommentNotificationPayload, ChildCommentNotificationPayloadSchema, type ClobTrade, ClobTradeSchema, type ClobTradesPage, ClobTradesPageSchema, type ClosedOnlyMode, ClosedOnlyModeSchema, type ComboAutoRedeemedNotification, type ComboAutoRedeemedNotificationPayload, ComboAutoRedeemedNotificationPayloadSchema, ComboAutoRedeemedNotificationSchema, type ConditionByToken, ConditionByTokenSchema, type CurrentReward, type CurrentRewardConfig, CurrentRewardSchema, END_CURSOR, EarningSchema, type FetchBuilderFeeRatesResponse, FetchBuilderFeeRatesResponseSchema, type FetchMarketInfoResponse, FetchMarketInfoResponseSchema, type FetchNegRiskResponse, FetchNegRiskResponseSchema, type FetchOrderBookResponse, FetchOrderBookResponseSchema, type FetchTickSizeResponse, FetchTickSizeResponseSchema, type LastTradePrice, type LastTradePriceForToken, type LastTradePriceForTokenResponse, LastTradePriceSchema, type LastTradePrices, LastTradePricesSchema, MakerOrderSchema, type MarketFeeInfo, MarketFeeInfoSchema, type MarketInfo, MarketInfoSchema, type MarketNotificationPayload, MarketNotificationPayloadSchema, type MarketNotificationRewards, MarketNotificationRewardsSchema, type MarketNotificationToken, MarketNotificationTokenSchema, type MarketRegisteredNotification, MarketRegisteredNotificationSchema, type MarketResolvedNotification, MarketResolvedNotificationSchema, type MarketReward, MarketRewardSchema, type MarketToken, MarketTokenSchema, type Midpoint, MidpointSchema, type Midpoints, MidpointsSchema, type NegRisk, NegRiskSchema, type Notification, NotificationSchema, NotificationType, NotificationTypeSchema, type NotificationsResponse, NotificationsResponseSchema, type OpenOrder, OpenOrderSchema, type OpenOrdersPage, OpenOrdersPageSchema, type OrderBook, type OrderBookHash, OrderBookHashSchema, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, type OrderBooks, OrderBooksSchema, type OrderCancellationNotification, OrderCancellationNotificationSchema, type OrderFillFailedNotification, OrderFillFailedNotificationSchema, type OrderFillNotification, OrderFillNotificationSchema, type OrderNotificationPayload, OrderNotificationPayloadSchema, OrderPostStatus, OrderPostStatusSchema, type OrderResponse, OrderResponseErrorCode, OrderResponseErrorCodeSchema, OrderResponseSchema, type OrderResponses, OrderResponsesSchema, type OrderScoringResponse, OrderScoringResponseSchema, type OrdersScoringResponse, OrdersScoringResponseSchema, type PaginatedBuilderTrades, PaginatedBuilderTradesSchema, type PaginatedCurrentRewards, PaginatedCurrentRewardsSchema, type PaginatedMarketRewards, PaginatedMarketRewardsSchema, type Price, type PriceHistory, PriceHistoryInterval, PriceHistoryIntervalSchema, type PriceHistoryPoint, PriceHistorySchema, PriceSchema, type Prices, type PricesBySide, PricesSchema, type RejectedOrderResponse, RejectedOrderResponseSchema, type ResolveConditionByTokenResponse, ResolveConditionByTokenResponseSchema, type RewardConfig, type RewardPayoutNotification, type RewardPayoutNotificationPayload, RewardPayoutNotificationPayloadSchema, RewardPayoutNotificationSchema, type RewardToken, RewardsConfigSchema, type RewardsPercentages, RewardsPercentagesSchema, type Spread, SpreadSchema, type Spreads, SpreadsSchema, type TickSize, TickSizeSchema, TokenSchema, type TotalUserEarning, TotalUserEarningSchema, type TotalUserEarningsResponse, TotalUserEarningsResponseSchema, type UserEarning, UserEarningSchema, type UserEarningsPage, UserEarningsPageSchema, type UserRewardsEarning, UserRewardsEarningSchema, type UserRewardsEarningsPage, UserRewardsEarningsPageSchema, type YieldPayoutNotification, type YieldPayoutNotificationPayload, YieldPayoutNotificationPayloadSchema, YieldPayoutNotificationSchema };