@apicity/polymarket 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/zod.d.ts CHANGED
@@ -32,165 +32,102 @@ export declare const PolymarketOptionsSchema: z.ZodObject<{
32
32
  clobApiKey: z.ZodOptional<z.ZodString>;
33
33
  clobApiSecret: z.ZodOptional<z.ZodString>;
34
34
  clobApiPassphrase: z.ZodOptional<z.ZodString>;
35
- clobApiCredentials: z.ZodOptional<z.ZodType<PolymarketClobApiCredentials, z.ZodTypeDef, PolymarketClobApiCredentials>>;
36
- clobL1Headers: z.ZodOptional<z.ZodType<PolymarketClobL1Headers, z.ZodTypeDef, PolymarketClobL1Headers>>;
37
- clobL2HeaderSigner: z.ZodOptional<z.ZodType<PolymarketClobL2HeaderSigner, z.ZodTypeDef, PolymarketClobL2HeaderSigner>>;
35
+ clobApiCredentials: z.ZodOptional<z.ZodCustom<PolymarketClobApiCredentials, PolymarketClobApiCredentials>>;
36
+ clobL1Headers: z.ZodOptional<z.ZodCustom<PolymarketClobL1Headers, PolymarketClobL1Headers>>;
37
+ clobL2HeaderSigner: z.ZodOptional<z.ZodCustom<PolymarketClobL2HeaderSigner, PolymarketClobL2HeaderSigner>>;
38
38
  clobPrivateKey: z.ZodOptional<z.ZodString>;
39
39
  clobFunderAddress: z.ZodOptional<z.ZodString>;
40
- clobSignatureType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
40
+ clobSignatureType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
41
41
  timeout: z.ZodOptional<z.ZodNumber>;
42
- fetch: z.ZodOptional<z.ZodType<typeof fetch, z.ZodTypeDef, typeof fetch>>;
43
- }, "strip", z.ZodTypeAny, {
44
- gammaBaseURL?: string | undefined;
45
- dataBaseURL?: string | undefined;
46
- clobBaseURL?: string | undefined;
47
- clobAddress?: string | undefined;
48
- clobApiKey?: string | undefined;
49
- clobApiSecret?: string | undefined;
50
- clobApiPassphrase?: string | undefined;
51
- clobApiCredentials?: PolymarketClobApiCredentials | undefined;
52
- clobL1Headers?: PolymarketClobL1Headers | undefined;
53
- clobL2HeaderSigner?: PolymarketClobL2HeaderSigner | undefined;
54
- clobPrivateKey?: string | undefined;
55
- clobFunderAddress?: string | undefined;
56
- clobSignatureType?: 0 | 1 | 2 | 3 | undefined;
57
- timeout?: number | undefined;
58
- fetch?: typeof fetch | undefined;
59
- }, {
60
- gammaBaseURL?: string | undefined;
61
- dataBaseURL?: string | undefined;
62
- clobBaseURL?: string | undefined;
63
- clobAddress?: string | undefined;
64
- clobApiKey?: string | undefined;
65
- clobApiSecret?: string | undefined;
66
- clobApiPassphrase?: string | undefined;
67
- clobApiCredentials?: PolymarketClobApiCredentials | undefined;
68
- clobL1Headers?: PolymarketClobL1Headers | undefined;
69
- clobL2HeaderSigner?: PolymarketClobL2HeaderSigner | undefined;
70
- clobPrivateKey?: string | undefined;
71
- clobFunderAddress?: string | undefined;
72
- clobSignatureType?: 0 | 1 | 2 | 3 | undefined;
73
- timeout?: number | undefined;
74
- fetch?: typeof fetch | undefined;
75
- }>;
42
+ fetch: z.ZodOptional<z.ZodCustom<typeof fetch, typeof fetch>>;
43
+ }, z.core.$strip>;
76
44
  export type PolymarketOptions = z.infer<typeof PolymarketOptionsSchema>;
77
- export declare const PolymarketClobSideSchema: z.ZodEnum<["BUY", "SELL"]>;
45
+ export declare const PolymarketClobSideSchema: z.ZodEnum<{
46
+ BUY: "BUY";
47
+ SELL: "SELL";
48
+ }>;
78
49
  export declare const PolymarketClobTokenBatchRequestSchema: z.ZodArray<z.ZodObject<{
79
50
  token_id: z.ZodString;
80
- }, "strip", z.ZodTypeAny, {
81
- token_id: string;
82
- }, {
83
- token_id: string;
84
- }>, "many">;
51
+ }, z.core.$strip>>;
85
52
  export type PolymarketClobTokenBatchRequest = z.input<typeof PolymarketClobTokenBatchRequestSchema>;
53
+ export type PolymarketClobTokenBatchRequestInput = PolymarketClobTokenBatchRequest;
86
54
  export type PolymarketClobTokenBatchParsedRequest = z.output<typeof PolymarketClobTokenBatchRequestSchema>;
87
55
  export declare const PolymarketClobPricesBatchRequestSchema: z.ZodArray<z.ZodObject<{
88
56
  token_id: z.ZodString;
89
- side: z.ZodEnum<["BUY", "SELL"]>;
90
- }, "strip", z.ZodTypeAny, {
91
- token_id: string;
92
- side: "BUY" | "SELL";
93
- }, {
94
- token_id: string;
95
- side: "BUY" | "SELL";
96
- }>, "many">;
57
+ side: z.ZodEnum<{
58
+ BUY: "BUY";
59
+ SELL: "SELL";
60
+ }>;
61
+ }, z.core.$strip>>;
97
62
  export type PolymarketClobPricesBatchRequest = z.input<typeof PolymarketClobPricesBatchRequestSchema>;
63
+ export type PolymarketClobPricesBatchRequestInput = PolymarketClobPricesBatchRequest;
98
64
  export type PolymarketClobPricesBatchParsedRequest = z.output<typeof PolymarketClobPricesBatchRequestSchema>;
99
- export declare const PolymarketClobPriceHistoryIntervalSchema: z.ZodEnum<["1m", "1h", "6h", "1d", "1w", "max"]>;
65
+ export declare const PolymarketClobPriceHistoryIntervalSchema: z.ZodEnum<{
66
+ "1m": "1m";
67
+ "1h": "1h";
68
+ "6h": "6h";
69
+ "1d": "1d";
70
+ "1w": "1w";
71
+ max: "max";
72
+ }>;
100
73
  export declare const PolymarketClobBatchPricesHistoryRequestSchema: z.ZodObject<{
101
- markets: z.ZodArray<z.ZodString, "many">;
102
- interval: z.ZodOptional<z.ZodEnum<["1m", "1h", "6h", "1d", "1w", "max"]>>;
74
+ markets: z.ZodArray<z.ZodString>;
75
+ interval: z.ZodOptional<z.ZodEnum<{
76
+ "1m": "1m";
77
+ "1h": "1h";
78
+ "6h": "6h";
79
+ "1d": "1d";
80
+ "1w": "1w";
81
+ max: "max";
82
+ }>>;
103
83
  startTs: z.ZodOptional<z.ZodNumber>;
104
84
  endTs: z.ZodOptional<z.ZodNumber>;
105
85
  fidelity: z.ZodOptional<z.ZodNumber>;
106
- }, "strip", z.ZodTypeAny, {
107
- markets: string[];
108
- interval?: "1m" | "1h" | "6h" | "1d" | "1w" | "max" | undefined;
109
- startTs?: number | undefined;
110
- endTs?: number | undefined;
111
- fidelity?: number | undefined;
112
- }, {
113
- markets: string[];
114
- interval?: "1m" | "1h" | "6h" | "1d" | "1w" | "max" | undefined;
115
- startTs?: number | undefined;
116
- endTs?: number | undefined;
117
- fidelity?: number | undefined;
118
- }>;
86
+ }, z.core.$strip>;
119
87
  export type PolymarketClobBatchPricesHistoryRequest = z.input<typeof PolymarketClobBatchPricesHistoryRequestSchema>;
88
+ export type PolymarketClobBatchPricesHistoryRequestInput = PolymarketClobBatchPricesHistoryRequest;
120
89
  export type PolymarketClobBatchPricesHistoryParsedRequest = z.output<typeof PolymarketClobBatchPricesHistoryRequestSchema>;
121
90
  export declare const PolymarketClobTokenIdsQuerySchema: z.ZodObject<{
122
- token_ids: z.ZodArray<z.ZodString, "many">;
123
- }, "strip", z.ZodTypeAny, {
124
- token_ids: string[];
125
- }, {
126
- token_ids: string[];
127
- }>;
91
+ token_ids: z.ZodArray<z.ZodString>;
92
+ }, z.core.$strip>;
128
93
  export type PolymarketClobTokenIdsQuery = z.infer<typeof PolymarketClobTokenIdsQuerySchema>;
129
- export declare const PolymarketClobPricesQuerySchema: z.ZodEffects<z.ZodObject<{
130
- token_ids: z.ZodArray<z.ZodString, "many">;
131
- sides: z.ZodArray<z.ZodEnum<["BUY", "SELL"]>, "many">;
132
- }, "strip", z.ZodTypeAny, {
133
- token_ids: string[];
134
- sides: ("BUY" | "SELL")[];
135
- }, {
136
- token_ids: string[];
137
- sides: ("BUY" | "SELL")[];
138
- }>, {
139
- token_ids: string[];
140
- sides: ("BUY" | "SELL")[];
141
- }, {
142
- token_ids: string[];
143
- sides: ("BUY" | "SELL")[];
144
- }>;
94
+ export declare const PolymarketClobPricesQuerySchema: z.ZodObject<{
95
+ token_ids: z.ZodArray<z.ZodString>;
96
+ sides: z.ZodArray<z.ZodEnum<{
97
+ BUY: "BUY";
98
+ SELL: "SELL";
99
+ }>>;
100
+ }, z.core.$strip>;
145
101
  export type PolymarketClobPricesQuery = z.infer<typeof PolymarketClobPricesQuerySchema>;
146
- export declare const PolymarketClobLiveActivityRequestSchema: z.ZodArray<z.ZodString, "many">;
102
+ export declare const PolymarketClobLiveActivityRequestSchema: z.ZodArray<z.ZodString>;
147
103
  export type PolymarketClobLiveActivityRequest = z.input<typeof PolymarketClobLiveActivityRequestSchema>;
104
+ export type PolymarketClobLiveActivityRequestInput = PolymarketClobLiveActivityRequest;
148
105
  export type PolymarketClobLiveActivityParsedRequest = z.output<typeof PolymarketClobLiveActivityRequestSchema>;
149
- export declare const PolymarketClobSignatureTypeSchema: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
150
- export declare const PolymarketClobOrderTypeSchema: z.ZodEnum<["GTC", "FOK", "GTD", "FAK"]>;
106
+ export declare const PolymarketClobSignatureTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
107
+ export declare const PolymarketClobOrderTypeSchema: z.ZodEnum<{
108
+ GTC: "GTC";
109
+ FOK: "FOK";
110
+ GTD: "GTD";
111
+ FAK: "FAK";
112
+ }>;
151
113
  export declare const PolymarketClobSignedOrderSchema: z.ZodObject<{
152
114
  maker: z.ZodString;
153
115
  signer: z.ZodString;
154
116
  tokenId: z.ZodString;
155
117
  makerAmount: z.ZodString;
156
118
  takerAmount: z.ZodString;
157
- side: z.ZodEnum<["BUY", "SELL"]>;
119
+ side: z.ZodEnum<{
120
+ BUY: "BUY";
121
+ SELL: "SELL";
122
+ }>;
158
123
  expiration: z.ZodString;
159
124
  timestamp: z.ZodString;
160
125
  metadata: z.ZodOptional<z.ZodString>;
161
126
  builder: z.ZodString;
162
127
  signature: z.ZodString;
163
128
  salt: z.ZodNumber;
164
- signatureType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
165
- }, "strip", z.ZodTypeAny, {
166
- side: "BUY" | "SELL";
167
- maker: string;
168
- signer: string;
169
- tokenId: string;
170
- makerAmount: string;
171
- takerAmount: string;
172
- expiration: string;
173
- timestamp: string;
174
- builder: string;
175
- signature: string;
176
- salt: number;
177
- signatureType: 0 | 1 | 2 | 3;
178
- metadata?: string | undefined;
179
- }, {
180
- side: "BUY" | "SELL";
181
- maker: string;
182
- signer: string;
183
- tokenId: string;
184
- makerAmount: string;
185
- takerAmount: string;
186
- expiration: string;
187
- timestamp: string;
188
- builder: string;
189
- signature: string;
190
- salt: number;
191
- signatureType: 0 | 1 | 2 | 3;
192
- metadata?: string | undefined;
193
- }>;
129
+ signatureType: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
130
+ }, z.core.$strip>;
194
131
  export type PolymarketClobSignedOrder = z.infer<typeof PolymarketClobSignedOrderSchema>;
195
132
  export declare const PolymarketClobPostOrderRequestSchema: z.ZodObject<{
196
133
  order: z.ZodObject<{
@@ -199,113 +136,47 @@ export declare const PolymarketClobPostOrderRequestSchema: z.ZodObject<{
199
136
  tokenId: z.ZodString;
200
137
  makerAmount: z.ZodString;
201
138
  takerAmount: z.ZodString;
202
- side: z.ZodEnum<["BUY", "SELL"]>;
139
+ side: z.ZodEnum<{
140
+ BUY: "BUY";
141
+ SELL: "SELL";
142
+ }>;
203
143
  expiration: z.ZodString;
204
144
  timestamp: z.ZodString;
205
145
  metadata: z.ZodOptional<z.ZodString>;
206
146
  builder: z.ZodString;
207
147
  signature: z.ZodString;
208
148
  salt: z.ZodNumber;
209
- signatureType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
210
- }, "strip", z.ZodTypeAny, {
211
- side: "BUY" | "SELL";
212
- maker: string;
213
- signer: string;
214
- tokenId: string;
215
- makerAmount: string;
216
- takerAmount: string;
217
- expiration: string;
218
- timestamp: string;
219
- builder: string;
220
- signature: string;
221
- salt: number;
222
- signatureType: 0 | 1 | 2 | 3;
223
- metadata?: string | undefined;
224
- }, {
225
- side: "BUY" | "SELL";
226
- maker: string;
227
- signer: string;
228
- tokenId: string;
229
- makerAmount: string;
230
- takerAmount: string;
231
- expiration: string;
232
- timestamp: string;
233
- builder: string;
234
- signature: string;
235
- salt: number;
236
- signatureType: 0 | 1 | 2 | 3;
237
- metadata?: string | undefined;
238
- }>;
149
+ signatureType: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
150
+ }, z.core.$strip>;
239
151
  owner: z.ZodString;
240
- orderType: z.ZodOptional<z.ZodEnum<["GTC", "FOK", "GTD", "FAK"]>>;
152
+ orderType: z.ZodOptional<z.ZodEnum<{
153
+ GTC: "GTC";
154
+ FOK: "FOK";
155
+ GTD: "GTD";
156
+ FAK: "FAK";
157
+ }>>;
241
158
  deferExec: z.ZodOptional<z.ZodBoolean>;
242
159
  postOnly: z.ZodOptional<z.ZodBoolean>;
243
- }, "strip", z.ZodTypeAny, {
244
- order: {
245
- side: "BUY" | "SELL";
246
- maker: string;
247
- signer: string;
248
- tokenId: string;
249
- makerAmount: string;
250
- takerAmount: string;
251
- expiration: string;
252
- timestamp: string;
253
- builder: string;
254
- signature: string;
255
- salt: number;
256
- signatureType: 0 | 1 | 2 | 3;
257
- metadata?: string | undefined;
258
- };
259
- owner: string;
260
- orderType?: "GTC" | "FOK" | "GTD" | "FAK" | undefined;
261
- deferExec?: boolean | undefined;
262
- postOnly?: boolean | undefined;
263
- }, {
264
- order: {
265
- side: "BUY" | "SELL";
266
- maker: string;
267
- signer: string;
268
- tokenId: string;
269
- makerAmount: string;
270
- takerAmount: string;
271
- expiration: string;
272
- timestamp: string;
273
- builder: string;
274
- signature: string;
275
- salt: number;
276
- signatureType: 0 | 1 | 2 | 3;
277
- metadata?: string | undefined;
278
- };
279
- owner: string;
280
- orderType?: "GTC" | "FOK" | "GTD" | "FAK" | undefined;
281
- deferExec?: boolean | undefined;
282
- postOnly?: boolean | undefined;
283
- }>;
160
+ }, z.core.$strip>;
284
161
  export type PolymarketClobPostOrderRequest = z.input<typeof PolymarketClobPostOrderRequestSchema>;
162
+ export type PolymarketClobPostOrderRequestInput = PolymarketClobPostOrderRequest;
285
163
  export type PolymarketClobPostOrderParsedRequest = z.output<typeof PolymarketClobPostOrderRequestSchema>;
286
164
  export declare const PolymarketClobPlaceOrderRequestSchema: z.ZodObject<{
287
165
  tokenID: z.ZodString;
288
- side: z.ZodEnum<["BUY", "SELL"]>;
166
+ side: z.ZodEnum<{
167
+ BUY: "BUY";
168
+ SELL: "SELL";
169
+ }>;
289
170
  price: z.ZodNumber;
290
171
  size: z.ZodNumber;
291
- orderType: z.ZodOptional<z.ZodEnum<["GTC", "GTD"]>>;
172
+ orderType: z.ZodOptional<z.ZodEnum<{
173
+ GTC: "GTC";
174
+ GTD: "GTD";
175
+ }>>;
292
176
  expiration: z.ZodOptional<z.ZodNumber>;
293
- }, "strip", z.ZodTypeAny, {
294
- side: "BUY" | "SELL";
295
- tokenID: string;
296
- price: number;
297
- size: number;
298
- expiration?: number | undefined;
299
- orderType?: "GTC" | "GTD" | undefined;
300
- }, {
301
- side: "BUY" | "SELL";
302
- tokenID: string;
303
- price: number;
304
- size: number;
305
- expiration?: number | undefined;
306
- orderType?: "GTC" | "GTD" | undefined;
307
- }>;
177
+ }, z.core.$strip>;
308
178
  export type PolymarketClobPlaceOrderRequest = z.input<typeof PolymarketClobPlaceOrderRequestSchema>;
179
+ export type PolymarketClobPlaceOrderRequestInput = PolymarketClobPlaceOrderRequest;
309
180
  export type PolymarketClobPlaceOrderParsedRequest = z.output<typeof PolymarketClobPlaceOrderRequestSchema>;
310
181
  export declare const PolymarketClobPostOrdersRequestSchema: z.ZodArray<z.ZodObject<{
311
182
  order: z.ZodObject<{
@@ -314,144 +185,63 @@ export declare const PolymarketClobPostOrdersRequestSchema: z.ZodArray<z.ZodObje
314
185
  tokenId: z.ZodString;
315
186
  makerAmount: z.ZodString;
316
187
  takerAmount: z.ZodString;
317
- side: z.ZodEnum<["BUY", "SELL"]>;
188
+ side: z.ZodEnum<{
189
+ BUY: "BUY";
190
+ SELL: "SELL";
191
+ }>;
318
192
  expiration: z.ZodString;
319
193
  timestamp: z.ZodString;
320
194
  metadata: z.ZodOptional<z.ZodString>;
321
195
  builder: z.ZodString;
322
196
  signature: z.ZodString;
323
197
  salt: z.ZodNumber;
324
- signatureType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
325
- }, "strip", z.ZodTypeAny, {
326
- side: "BUY" | "SELL";
327
- maker: string;
328
- signer: string;
329
- tokenId: string;
330
- makerAmount: string;
331
- takerAmount: string;
332
- expiration: string;
333
- timestamp: string;
334
- builder: string;
335
- signature: string;
336
- salt: number;
337
- signatureType: 0 | 1 | 2 | 3;
338
- metadata?: string | undefined;
339
- }, {
340
- side: "BUY" | "SELL";
341
- maker: string;
342
- signer: string;
343
- tokenId: string;
344
- makerAmount: string;
345
- takerAmount: string;
346
- expiration: string;
347
- timestamp: string;
348
- builder: string;
349
- signature: string;
350
- salt: number;
351
- signatureType: 0 | 1 | 2 | 3;
352
- metadata?: string | undefined;
353
- }>;
198
+ signatureType: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
199
+ }, z.core.$strip>;
354
200
  owner: z.ZodString;
355
- orderType: z.ZodOptional<z.ZodEnum<["GTC", "FOK", "GTD", "FAK"]>>;
201
+ orderType: z.ZodOptional<z.ZodEnum<{
202
+ GTC: "GTC";
203
+ FOK: "FOK";
204
+ GTD: "GTD";
205
+ FAK: "FAK";
206
+ }>>;
356
207
  deferExec: z.ZodOptional<z.ZodBoolean>;
357
208
  postOnly: z.ZodOptional<z.ZodBoolean>;
358
- }, "strip", z.ZodTypeAny, {
359
- order: {
360
- side: "BUY" | "SELL";
361
- maker: string;
362
- signer: string;
363
- tokenId: string;
364
- makerAmount: string;
365
- takerAmount: string;
366
- expiration: string;
367
- timestamp: string;
368
- builder: string;
369
- signature: string;
370
- salt: number;
371
- signatureType: 0 | 1 | 2 | 3;
372
- metadata?: string | undefined;
373
- };
374
- owner: string;
375
- orderType?: "GTC" | "FOK" | "GTD" | "FAK" | undefined;
376
- deferExec?: boolean | undefined;
377
- postOnly?: boolean | undefined;
378
- }, {
379
- order: {
380
- side: "BUY" | "SELL";
381
- maker: string;
382
- signer: string;
383
- tokenId: string;
384
- makerAmount: string;
385
- takerAmount: string;
386
- expiration: string;
387
- timestamp: string;
388
- builder: string;
389
- signature: string;
390
- salt: number;
391
- signatureType: 0 | 1 | 2 | 3;
392
- metadata?: string | undefined;
393
- };
394
- owner: string;
395
- orderType?: "GTC" | "FOK" | "GTD" | "FAK" | undefined;
396
- deferExec?: boolean | undefined;
397
- postOnly?: boolean | undefined;
398
- }>, "many">;
209
+ }, z.core.$strip>>;
399
210
  export type PolymarketClobPostOrdersRequest = z.input<typeof PolymarketClobPostOrdersRequestSchema>;
211
+ export type PolymarketClobPostOrdersRequestInput = PolymarketClobPostOrdersRequest;
400
212
  export type PolymarketClobPostOrdersParsedRequest = z.output<typeof PolymarketClobPostOrdersRequestSchema>;
401
213
  export declare const PolymarketClobCancelOrderRequestSchema: z.ZodObject<{
402
214
  orderID: z.ZodString;
403
- }, "strip", z.ZodTypeAny, {
404
- orderID: string;
405
- }, {
406
- orderID: string;
407
- }>;
215
+ }, z.core.$strip>;
408
216
  export type PolymarketClobCancelOrderRequest = z.input<typeof PolymarketClobCancelOrderRequestSchema>;
217
+ export type PolymarketClobCancelOrderRequestInput = PolymarketClobCancelOrderRequest;
409
218
  export type PolymarketClobCancelOrderParsedRequest = z.output<typeof PolymarketClobCancelOrderRequestSchema>;
410
- export declare const PolymarketClobCancelOrdersRequestSchema: z.ZodArray<z.ZodString, "many">;
219
+ export declare const PolymarketClobCancelOrdersRequestSchema: z.ZodArray<z.ZodString>;
411
220
  export type PolymarketClobCancelOrdersRequest = z.input<typeof PolymarketClobCancelOrdersRequestSchema>;
221
+ export type PolymarketClobCancelOrdersRequestInput = PolymarketClobCancelOrdersRequest;
412
222
  export type PolymarketClobCancelOrdersParsedRequest = z.output<typeof PolymarketClobCancelOrdersRequestSchema>;
413
223
  export declare const PolymarketClobCancelMarketOrdersRequestSchema: z.ZodObject<{
414
224
  market: z.ZodString;
415
225
  asset_id: z.ZodString;
416
- }, "strip", z.ZodTypeAny, {
417
- market: string;
418
- asset_id: string;
419
- }, {
420
- market: string;
421
- asset_id: string;
422
- }>;
226
+ }, z.core.$strip>;
423
227
  export type PolymarketClobCancelMarketOrdersRequest = z.input<typeof PolymarketClobCancelMarketOrdersRequestSchema>;
228
+ export type PolymarketClobCancelMarketOrdersRequestInput = PolymarketClobCancelMarketOrdersRequest;
424
229
  export type PolymarketClobCancelMarketOrdersParsedRequest = z.output<typeof PolymarketClobCancelMarketOrdersRequestSchema>;
425
230
  export declare const PolymarketClobBalanceAllowanceQuerySchema: z.ZodObject<{
426
- asset_type: z.ZodEnum<["COLLATERAL", "CONDITIONAL"]>;
231
+ asset_type: z.ZodEnum<{
232
+ COLLATERAL: "COLLATERAL";
233
+ CONDITIONAL: "CONDITIONAL";
234
+ }>;
427
235
  token_id: z.ZodOptional<z.ZodString>;
428
- signature_type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
429
- }, "strip", z.ZodTypeAny, {
430
- asset_type: "COLLATERAL" | "CONDITIONAL";
431
- token_id?: string | undefined;
432
- signature_type?: 0 | 1 | 2 | 3 | undefined;
433
- }, {
434
- asset_type: "COLLATERAL" | "CONDITIONAL";
435
- token_id?: string | undefined;
436
- signature_type?: 0 | 1 | 2 | 3 | undefined;
437
- }>;
236
+ signature_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
237
+ }, z.core.$strip>;
438
238
  export type PolymarketClobBalanceAllowanceQuery = z.infer<typeof PolymarketClobBalanceAllowanceQuerySchema>;
439
239
  export declare const PolymarketClobUserOrdersQuerySchema: z.ZodObject<{
440
240
  id: z.ZodOptional<z.ZodString>;
441
241
  market: z.ZodOptional<z.ZodString>;
442
242
  asset_id: z.ZodOptional<z.ZodString>;
443
243
  next_cursor: z.ZodOptional<z.ZodString>;
444
- }, "strip", z.ZodTypeAny, {
445
- market?: string | undefined;
446
- asset_id?: string | undefined;
447
- id?: string | undefined;
448
- next_cursor?: string | undefined;
449
- }, {
450
- market?: string | undefined;
451
- asset_id?: string | undefined;
452
- id?: string | undefined;
453
- next_cursor?: string | undefined;
454
- }>;
244
+ }, z.core.$strip>;
455
245
  export type PolymarketClobUserOrdersQuery = z.infer<typeof PolymarketClobUserOrdersQuerySchema>;
456
246
  export declare const PolymarketClobUserTradesQuerySchema: z.ZodObject<{
457
247
  id: z.ZodOptional<z.ZodString>;
@@ -461,248 +251,130 @@ export declare const PolymarketClobUserTradesQuerySchema: z.ZodObject<{
461
251
  before: z.ZodOptional<z.ZodString>;
462
252
  after: z.ZodOptional<z.ZodString>;
463
253
  next_cursor: z.ZodOptional<z.ZodString>;
464
- }, "strip", z.ZodTypeAny, {
465
- market?: string | undefined;
466
- asset_id?: string | undefined;
467
- id?: string | undefined;
468
- next_cursor?: string | undefined;
469
- maker_address?: string | undefined;
470
- before?: string | undefined;
471
- after?: string | undefined;
472
- }, {
473
- market?: string | undefined;
474
- asset_id?: string | undefined;
475
- id?: string | undefined;
476
- next_cursor?: string | undefined;
477
- maker_address?: string | undefined;
478
- before?: string | undefined;
479
- after?: string | undefined;
480
- }>;
254
+ }, z.core.$strip>;
481
255
  export type PolymarketClobUserTradesQuery = z.infer<typeof PolymarketClobUserTradesQuerySchema>;
482
256
  export declare const PolymarketClobNotificationsQuerySchema: z.ZodObject<{
483
- signature_type: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
484
- }, "strip", z.ZodTypeAny, {
485
- signature_type: 0 | 1 | 2 | 3;
486
- }, {
487
- signature_type: 0 | 1 | 2 | 3;
488
- }>;
257
+ signature_type: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
258
+ }, z.core.$strip>;
489
259
  export type PolymarketClobNotificationsQuery = z.infer<typeof PolymarketClobNotificationsQuerySchema>;
490
260
  export declare const PolymarketClobDropNotificationsQuerySchema: z.ZodObject<{
491
- ids: z.ZodArray<z.ZodString, "many">;
492
- }, "strip", z.ZodTypeAny, {
493
- ids: string[];
494
- }, {
495
- ids: string[];
496
- }>;
261
+ ids: z.ZodArray<z.ZodString>;
262
+ }, z.core.$strip>;
497
263
  export type PolymarketClobDropNotificationsQuery = z.infer<typeof PolymarketClobDropNotificationsQuerySchema>;
498
264
  export declare const PolymarketClobOrderScoringQuerySchema: z.ZodObject<{
499
265
  order_id: z.ZodString;
500
- }, "strip", z.ZodTypeAny, {
501
- order_id: string;
502
- }, {
503
- order_id: string;
504
- }>;
266
+ }, z.core.$strip>;
505
267
  export type PolymarketClobOrderScoringQuery = z.infer<typeof PolymarketClobOrderScoringQuerySchema>;
506
268
  export declare const PolymarketClobOrdersScoringQuerySchema: z.ZodObject<{
507
- order_ids: z.ZodArray<z.ZodString, "many">;
508
- }, "strip", z.ZodTypeAny, {
509
- order_ids: string[];
510
- }, {
511
- order_ids: string[];
512
- }>;
269
+ order_ids: z.ZodArray<z.ZodString>;
270
+ }, z.core.$strip>;
513
271
  export type PolymarketClobOrdersScoringQuery = z.infer<typeof PolymarketClobOrdersScoringQuerySchema>;
514
- export declare const PolymarketClobOrdersScoringRequestSchema: z.ZodArray<z.ZodString, "many">;
272
+ export declare const PolymarketClobOrdersScoringRequestSchema: z.ZodArray<z.ZodString>;
515
273
  export type PolymarketClobOrdersScoringRequest = z.input<typeof PolymarketClobOrdersScoringRequestSchema>;
274
+ export type PolymarketClobOrdersScoringRequestInput = PolymarketClobOrdersScoringRequest;
516
275
  export type PolymarketClobOrdersScoringParsedRequest = z.output<typeof PolymarketClobOrdersScoringRequestSchema>;
517
276
  export declare const PolymarketClobHeartbeatRequestSchema: z.ZodObject<{
518
277
  heartbeat_id: z.ZodString;
519
- }, "strip", z.ZodTypeAny, {
520
- heartbeat_id: string;
521
- }, {
522
- heartbeat_id: string;
523
- }>;
278
+ }, z.core.$strip>;
524
279
  export type PolymarketClobHeartbeatRequest = z.input<typeof PolymarketClobHeartbeatRequestSchema>;
280
+ export type PolymarketClobHeartbeatRequestInput = PolymarketClobHeartbeatRequest;
525
281
  export type PolymarketClobHeartbeatParsedRequest = z.output<typeof PolymarketClobHeartbeatRequestSchema>;
526
282
  export declare const PolymarketClobRewardsUserQuerySchema: z.ZodObject<{
527
283
  date: z.ZodString;
528
- signature_type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
284
+ signature_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
529
285
  maker_address: z.ZodOptional<z.ZodString>;
530
286
  sponsored: z.ZodOptional<z.ZodBoolean>;
531
287
  next_cursor: z.ZodOptional<z.ZodString>;
532
- }, "strip", z.ZodTypeAny, {
533
- date: string;
534
- signature_type?: 0 | 1 | 2 | 3 | undefined;
535
- next_cursor?: string | undefined;
536
- maker_address?: string | undefined;
537
- sponsored?: boolean | undefined;
538
- }, {
539
- date: string;
540
- signature_type?: 0 | 1 | 2 | 3 | undefined;
541
- next_cursor?: string | undefined;
542
- maker_address?: string | undefined;
543
- sponsored?: boolean | undefined;
544
- }>;
288
+ }, z.core.$strip>;
545
289
  export type PolymarketClobRewardsUserQuery = z.infer<typeof PolymarketClobRewardsUserQuerySchema>;
546
290
  export declare const PolymarketClobRewardsUserTotalQuerySchema: z.ZodObject<{
547
291
  date: z.ZodString;
548
- signature_type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
292
+ signature_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
549
293
  maker_address: z.ZodOptional<z.ZodString>;
550
294
  sponsored: z.ZodOptional<z.ZodBoolean>;
551
- }, "strip", z.ZodTypeAny, {
552
- date: string;
553
- signature_type?: 0 | 1 | 2 | 3 | undefined;
554
- maker_address?: string | undefined;
555
- sponsored?: boolean | undefined;
556
- }, {
557
- date: string;
558
- signature_type?: 0 | 1 | 2 | 3 | undefined;
559
- maker_address?: string | undefined;
560
- sponsored?: boolean | undefined;
561
- }>;
295
+ }, z.core.$strip>;
562
296
  export type PolymarketClobRewardsUserTotalQuery = z.infer<typeof PolymarketClobRewardsUserTotalQuerySchema>;
563
297
  export declare const PolymarketClobRewardPercentagesQuerySchema: z.ZodObject<{
564
- signature_type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
298
+ signature_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
565
299
  maker_address: z.ZodOptional<z.ZodString>;
566
- }, "strip", z.ZodTypeAny, {
567
- signature_type?: 0 | 1 | 2 | 3 | undefined;
568
- maker_address?: string | undefined;
569
- }, {
570
- signature_type?: 0 | 1 | 2 | 3 | undefined;
571
- maker_address?: string | undefined;
572
- }>;
300
+ }, z.core.$strip>;
573
301
  export type PolymarketClobRewardPercentagesQuery = z.infer<typeof PolymarketClobRewardPercentagesQuerySchema>;
574
302
  export declare const PolymarketClobRewardsUserMarketsQuerySchema: z.ZodObject<{
575
303
  date: z.ZodOptional<z.ZodString>;
576
- signature_type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
304
+ signature_type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
577
305
  maker_address: z.ZodOptional<z.ZodString>;
578
306
  sponsored: z.ZodOptional<z.ZodBoolean>;
579
307
  next_cursor: z.ZodOptional<z.ZodString>;
580
308
  page_size: z.ZodOptional<z.ZodNumber>;
581
309
  q: z.ZodOptional<z.ZodString>;
582
- tag_slug: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
310
+ tag_slug: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
583
311
  favorite_markets: z.ZodOptional<z.ZodBoolean>;
584
312
  no_competition: z.ZodOptional<z.ZodBoolean>;
585
313
  only_mergeable: z.ZodOptional<z.ZodBoolean>;
586
314
  only_open_orders: z.ZodOptional<z.ZodBoolean>;
587
315
  only_open_positions: z.ZodOptional<z.ZodBoolean>;
588
- order_by: z.ZodOptional<z.ZodEnum<["currentRewards", "volume24hr", "volume1wk", "volume1mo", "volume1yr", "liquidity", "endDate", "createdAt", "competitive"]>>;
589
- position: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
590
- }, "strip", z.ZodTypeAny, {
591
- date?: string | undefined;
592
- signature_type?: 0 | 1 | 2 | 3 | undefined;
593
- next_cursor?: string | undefined;
594
- maker_address?: string | undefined;
595
- sponsored?: boolean | undefined;
596
- page_size?: number | undefined;
597
- q?: string | undefined;
598
- tag_slug?: string | string[] | undefined;
599
- favorite_markets?: boolean | undefined;
600
- no_competition?: boolean | undefined;
601
- only_mergeable?: boolean | undefined;
602
- only_open_orders?: boolean | undefined;
603
- only_open_positions?: boolean | undefined;
604
- order_by?: "currentRewards" | "volume24hr" | "volume1wk" | "volume1mo" | "volume1yr" | "liquidity" | "endDate" | "createdAt" | "competitive" | undefined;
605
- position?: "ASC" | "DESC" | undefined;
606
- }, {
607
- date?: string | undefined;
608
- signature_type?: 0 | 1 | 2 | 3 | undefined;
609
- next_cursor?: string | undefined;
610
- maker_address?: string | undefined;
611
- sponsored?: boolean | undefined;
612
- page_size?: number | undefined;
613
- q?: string | undefined;
614
- tag_slug?: string | string[] | undefined;
615
- favorite_markets?: boolean | undefined;
616
- no_competition?: boolean | undefined;
617
- only_mergeable?: boolean | undefined;
618
- only_open_orders?: boolean | undefined;
619
- only_open_positions?: boolean | undefined;
620
- order_by?: "currentRewards" | "volume24hr" | "volume1wk" | "volume1mo" | "volume1yr" | "liquidity" | "endDate" | "createdAt" | "competitive" | undefined;
621
- position?: "ASC" | "DESC" | undefined;
622
- }>;
316
+ order_by: z.ZodOptional<z.ZodEnum<{
317
+ currentRewards: "currentRewards";
318
+ volume24hr: "volume24hr";
319
+ volume1wk: "volume1wk";
320
+ volume1mo: "volume1mo";
321
+ volume1yr: "volume1yr";
322
+ liquidity: "liquidity";
323
+ endDate: "endDate";
324
+ createdAt: "createdAt";
325
+ competitive: "competitive";
326
+ }>>;
327
+ position: z.ZodOptional<z.ZodEnum<{
328
+ ASC: "ASC";
329
+ DESC: "DESC";
330
+ }>>;
331
+ }, z.core.$strip>;
623
332
  export type PolymarketClobRewardsUserMarketsQuery = z.infer<typeof PolymarketClobRewardsUserMarketsQuerySchema>;
624
333
  export declare const PolymarketClobRewardsCurrentQuerySchema: z.ZodObject<{
625
334
  sponsored: z.ZodOptional<z.ZodBoolean>;
626
335
  next_cursor: z.ZodOptional<z.ZodString>;
627
- }, "strip", z.ZodTypeAny, {
628
- next_cursor?: string | undefined;
629
- sponsored?: boolean | undefined;
630
- }, {
631
- next_cursor?: string | undefined;
632
- sponsored?: boolean | undefined;
633
- }>;
336
+ }, z.core.$strip>;
634
337
  export type PolymarketClobRewardsCurrentQuery = z.infer<typeof PolymarketClobRewardsCurrentQuerySchema>;
635
338
  export declare const PolymarketClobRewardsMarketQuerySchema: z.ZodObject<{
636
339
  sponsored: z.ZodOptional<z.ZodBoolean>;
637
340
  next_cursor: z.ZodOptional<z.ZodString>;
638
- }, "strip", z.ZodTypeAny, {
639
- next_cursor?: string | undefined;
640
- sponsored?: boolean | undefined;
641
- }, {
642
- next_cursor?: string | undefined;
643
- sponsored?: boolean | undefined;
644
- }>;
341
+ }, z.core.$strip>;
645
342
  export type PolymarketClobRewardsMarketQuery = z.infer<typeof PolymarketClobRewardsMarketQuerySchema>;
646
343
  export declare const PolymarketClobRewardsMultiMarketsQuerySchema: z.ZodObject<{
647
344
  q: z.ZodOptional<z.ZodString>;
648
- tag_slug: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
649
- event_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
345
+ tag_slug: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
346
+ event_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
650
347
  event_title: z.ZodOptional<z.ZodString>;
651
348
  sponsored: z.ZodOptional<z.ZodBoolean>;
652
349
  next_cursor: z.ZodOptional<z.ZodString>;
653
350
  page_size: z.ZodOptional<z.ZodNumber>;
654
- order_by: z.ZodOptional<z.ZodEnum<["currentRewards", "volume24hr", "volume1wk", "volume1mo", "volume1yr", "liquidity", "endDate", "createdAt", "competitive"]>>;
655
- position: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
351
+ order_by: z.ZodOptional<z.ZodEnum<{
352
+ currentRewards: "currentRewards";
353
+ volume24hr: "volume24hr";
354
+ volume1wk: "volume1wk";
355
+ volume1mo: "volume1mo";
356
+ volume1yr: "volume1yr";
357
+ liquidity: "liquidity";
358
+ endDate: "endDate";
359
+ createdAt: "createdAt";
360
+ competitive: "competitive";
361
+ }>>;
362
+ position: z.ZodOptional<z.ZodEnum<{
363
+ ASC: "ASC";
364
+ DESC: "DESC";
365
+ }>>;
656
366
  min_volume: z.ZodOptional<z.ZodNumber>;
657
367
  max_volume: z.ZodOptional<z.ZodNumber>;
658
368
  min_spread: z.ZodOptional<z.ZodNumber>;
659
369
  max_spread: z.ZodOptional<z.ZodNumber>;
660
370
  min_price: z.ZodOptional<z.ZodNumber>;
661
371
  max_price: z.ZodOptional<z.ZodNumber>;
662
- }, "strip", z.ZodTypeAny, {
663
- next_cursor?: string | undefined;
664
- sponsored?: boolean | undefined;
665
- page_size?: number | undefined;
666
- q?: string | undefined;
667
- tag_slug?: string | string[] | undefined;
668
- order_by?: "currentRewards" | "volume24hr" | "volume1wk" | "volume1mo" | "volume1yr" | "liquidity" | "endDate" | "createdAt" | "competitive" | undefined;
669
- position?: "ASC" | "DESC" | undefined;
670
- event_id?: string | string[] | undefined;
671
- event_title?: string | undefined;
672
- min_volume?: number | undefined;
673
- max_volume?: number | undefined;
674
- min_spread?: number | undefined;
675
- max_spread?: number | undefined;
676
- min_price?: number | undefined;
677
- max_price?: number | undefined;
678
- }, {
679
- next_cursor?: string | undefined;
680
- sponsored?: boolean | undefined;
681
- page_size?: number | undefined;
682
- q?: string | undefined;
683
- tag_slug?: string | string[] | undefined;
684
- order_by?: "currentRewards" | "volume24hr" | "volume1wk" | "volume1mo" | "volume1yr" | "liquidity" | "endDate" | "createdAt" | "competitive" | undefined;
685
- position?: "ASC" | "DESC" | undefined;
686
- event_id?: string | string[] | undefined;
687
- event_title?: string | undefined;
688
- min_volume?: number | undefined;
689
- max_volume?: number | undefined;
690
- min_spread?: number | undefined;
691
- max_spread?: number | undefined;
692
- min_price?: number | undefined;
693
- max_price?: number | undefined;
694
- }>;
372
+ }, z.core.$strip>;
695
373
  export type PolymarketClobRewardsMultiMarketsQuery = z.infer<typeof PolymarketClobRewardsMultiMarketsQuerySchema>;
696
374
  export declare const PolymarketClobRebatesCurrentQuerySchema: z.ZodObject<{
697
375
  date: z.ZodString;
698
376
  maker_address: z.ZodString;
699
- }, "strip", z.ZodTypeAny, {
700
- date: string;
701
- maker_address: string;
702
- }, {
703
- date: string;
704
- maker_address: string;
705
- }>;
377
+ }, z.core.$strip>;
706
378
  export type PolymarketClobRebatesCurrentQuery = z.infer<typeof PolymarketClobRebatesCurrentQuerySchema>;
707
379
  export declare const PolymarketClobBuilderTradesQuerySchema: z.ZodObject<{
708
380
  builder_code: z.ZodString;
@@ -712,22 +384,6 @@ export declare const PolymarketClobBuilderTradesQuerySchema: z.ZodObject<{
712
384
  before: z.ZodOptional<z.ZodString>;
713
385
  after: z.ZodOptional<z.ZodString>;
714
386
  next_cursor: z.ZodOptional<z.ZodString>;
715
- }, "strip", z.ZodTypeAny, {
716
- builder_code: string;
717
- market?: string | undefined;
718
- asset_id?: string | undefined;
719
- id?: string | undefined;
720
- next_cursor?: string | undefined;
721
- before?: string | undefined;
722
- after?: string | undefined;
723
- }, {
724
- builder_code: string;
725
- market?: string | undefined;
726
- asset_id?: string | undefined;
727
- id?: string | undefined;
728
- next_cursor?: string | undefined;
729
- before?: string | undefined;
730
- after?: string | undefined;
731
- }>;
387
+ }, z.core.$strip>;
732
388
  export type PolymarketClobBuilderTradesQuery = z.infer<typeof PolymarketClobBuilderTradesQuerySchema>;
733
389
  //# sourceMappingURL=zod.d.ts.map