@polymarket/client 0.1.0-beta.7 → 0.1.0-beta.8

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,10 +1,10 @@
1
1
  import { OrderResponse } from '@polymarket/bindings/clob';
2
- import { aK as RateLimitError, aM as RequestRejectedError, bn as SigningError, bu as TransportError, bx as UnexpectedResponseError, U as UserInputError, a6 as InsufficientLiquidityError, h as BaseSecureClient, dC as PrepareLimitOrderRequest, dr as OrderWorkflow, dq as OrderPostingWorkflow, dE as PrepareMarketOrderRequest, m as CancelledSigningError, aC as PostOrderError, bp as TimeoutError, bq as TransactionFailedError, ed as SignedOrder, B as BaseClient } from './types-C9xs0MNQ.js';
2
+ import { aR as RateLimitError, aT as RequestRejectedError, by as SigningError, bF as TransportError, bI as UnexpectedResponseError, U as UserInputError, a9 as InsufficientLiquidityError, h as BaseSecureClient, ey as PrepareLimitOrderRequest, ea as OrderWorkflow, e9 as OrderPostingWorkflow, eA as PrepareMarketOrderRequest, m as CancelledSigningError, aI as PostOrderError, bA as TimeoutError, bB as TransactionFailedError, fd as SignedOrder, B as BaseClient } from './types-5uGoLhNm.js';
3
3
  import { SportsMarketTypesResponse, SportsMetadata } from '@polymarket/bindings/gamma';
4
4
 
5
5
  type PrepareMarketOrderError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
6
6
  declare const PrepareMarketOrderError: {
7
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
7
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | InsufficientLiquidityError | SigningError;
8
8
  };
9
9
  /**
10
10
  * Starts the market-order workflow.
@@ -28,7 +28,7 @@ declare const PrepareMarketOrderError: {
28
28
  declare function prepareMarketOrder(client: BaseSecureClient, request: PrepareMarketOrderRequest): Promise<OrderWorkflow>;
29
29
  type PrepareLimitOrderError = RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
30
30
  declare const PrepareLimitOrderError: {
31
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
31
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
32
32
  };
33
33
  /**
34
34
  * Starts the limit-order workflow.
@@ -53,7 +53,7 @@ declare const PrepareLimitOrderError: {
53
53
  declare function prepareLimitOrder(client: BaseSecureClient, request: PrepareLimitOrderRequest): Promise<OrderWorkflow>;
54
54
  type PrepareMarketOrderPostingError = PrepareMarketOrderError;
55
55
  declare const PrepareMarketOrderPostingError: {
56
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
56
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | InsufficientLiquidityError | SigningError;
57
57
  };
58
58
  /**
59
59
  * Starts and posts a market-order workflow.
@@ -77,7 +77,7 @@ declare const PrepareMarketOrderPostingError: {
77
77
  declare function prepareMarketOrderPosting(client: BaseSecureClient, request: PrepareMarketOrderRequest): Promise<OrderPostingWorkflow>;
78
78
  type PrepareLimitOrderPostingError = PrepareLimitOrderError;
79
79
  declare const PrepareLimitOrderPostingError: {
80
- isError(error: unknown): error is SigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
80
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | SigningError;
81
81
  };
82
82
  /**
83
83
  * Starts and posts a limit-order workflow.
@@ -103,7 +103,7 @@ declare function prepareLimitOrderPosting(client: BaseSecureClient, request: Pre
103
103
 
104
104
  type CreateMarketOrderError = PrepareMarketOrderError | CancelledSigningError;
105
105
  declare const CreateMarketOrderError: {
106
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | InsufficientLiquidityError;
106
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | InsufficientLiquidityError | SigningError;
107
107
  };
108
108
  /**
109
109
  * Creates a signed market order for the authenticated account.
@@ -127,7 +127,7 @@ declare const CreateMarketOrderError: {
127
127
  declare function createMarketOrder(client: BaseSecureClient, request: PrepareMarketOrderRequest): Promise<SignedOrder>;
128
128
  type PlaceMarketOrderError = CreateMarketOrderError | PostOrderError | TimeoutError | TransactionFailedError;
129
129
  declare const PlaceMarketOrderError: {
130
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError | InsufficientLiquidityError;
130
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | InsufficientLiquidityError | SigningError;
131
131
  };
132
132
  /**
133
133
  * Creates and posts a market order for the authenticated account.
@@ -151,7 +151,7 @@ declare const PlaceMarketOrderError: {
151
151
  declare function placeMarketOrder(client: BaseSecureClient, request: PrepareMarketOrderRequest): Promise<OrderResponse>;
152
152
  type CreateLimitOrderError = PrepareLimitOrderError | CancelledSigningError;
153
153
  declare const CreateLimitOrderError: {
154
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
154
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | CancelledSigningError | SigningError;
155
155
  };
156
156
  /**
157
157
  * Creates a signed limit order for the authenticated account.
@@ -169,7 +169,7 @@ declare const CreateLimitOrderError: {
169
169
  declare function createLimitOrder(client: BaseSecureClient, request: PrepareLimitOrderRequest): Promise<SignedOrder>;
170
170
  type PlaceLimitOrderError = CreateLimitOrderError | PostOrderError | TimeoutError | TransactionFailedError;
171
171
  declare const PlaceLimitOrderError: {
172
- isError(error: unknown): error is SigningError | CancelledSigningError | TransportError | TransactionFailedError | UserInputError | UnexpectedResponseError | RequestRejectedError | RateLimitError | TimeoutError;
172
+ isError(error: unknown): error is UserInputError | UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError | TimeoutError | TransactionFailedError | CancelledSigningError | SigningError;
173
173
  };
174
174
  /**
175
175
  * Creates and posts a limit order for the authenticated account.
@@ -188,7 +188,7 @@ declare function placeLimitOrder(client: BaseSecureClient, request: PrepareLimit
188
188
 
189
189
  type ListSportsError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
190
190
  declare const ListSportsError: {
191
- isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
191
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
192
192
  };
193
193
  /**
194
194
  * Lists available sports metadata.
@@ -209,7 +209,7 @@ declare const ListSportsError: {
209
209
  declare function listSports(client: BaseClient): Promise<SportsMetadata[]>;
210
210
  type FetchSportsMarketTypesError = RateLimitError | RequestRejectedError | TransportError | UnexpectedResponseError;
211
211
  declare const FetchSportsMarketTypesError: {
212
- isError(error: unknown): error is TransportError | UnexpectedResponseError | RequestRejectedError | RateLimitError;
212
+ isError(error: unknown): error is UnexpectedResponseError | TransportError | RequestRejectedError | RateLimitError;
213
213
  };
214
214
  /**
215
215
  * Fetches the available market types grouped by sport.