@polymarket/bindings 0.6.0 → 0.8.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.
- package/dist/chunk-2WODFBG4.js +2 -0
- package/dist/chunk-2WODFBG4.js.map +1 -0
- package/dist/chunk-E3SBSYCF.js +2 -0
- package/dist/{chunk-UDKFL2IM.js.map → chunk-E3SBSYCF.js.map} +1 -1
- package/dist/{chunk-QX4CCP47.js → chunk-ZLKBCIHA.js} +2 -2
- package/dist/{chunk-QX4CCP47.js.map → chunk-ZLKBCIHA.js.map} +1 -1
- package/dist/clob/index.d.ts +2815 -322
- package/dist/clob/index.js +1 -1
- package/dist/clob/index.js.map +1 -1
- package/dist/combos/index.d.ts +14 -10
- package/dist/combos/index.js +1 -1
- package/dist/combos/index.js.map +1 -1
- package/dist/data/index.d.ts +490 -154
- package/dist/data/index.js +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/gamma/index.js +1 -1
- package/dist/gamma/index.js.map +1 -1
- package/dist/index.d.ts +22 -8
- package/dist/index.js +1 -1
- package/dist/{orders-BDfNkzav.d.ts → orders-CAELACaR.d.ts} +1 -1
- package/dist/perps/index.d.ts +11 -11
- package/dist/perps/index.js +1 -1
- package/dist/relayer/index.d.ts +43 -2
- package/dist/relayer/index.js +1 -1
- package/dist/relayer/index.js.map +1 -1
- package/dist/subscriptions/index.d.ts +446 -242
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-AY4D74DC.js +0 -2
- package/dist/chunk-AY4D74DC.js.map +0 -1
- package/dist/chunk-UDKFL2IM.js +0 -2
package/dist/clob/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _polymarket_types from '@polymarket/types';
|
|
2
|
-
import { TxHash } from '@polymarket/types';
|
|
3
|
-
import { BaseUnits,
|
|
2
|
+
import { TxHash, EvmAddress } from '@polymarket/types';
|
|
3
|
+
import { BaseUnits, TokenId, PositionId, ConditionId, DecimalString, IsoDateTimeString, TradeStatus, ApiKey, OrderSide, OrderId, TickSizeValue, NotificationId, EpochMilliseconds, CommentId, CommentParentEntityType, ImageOptimizationId, ComboConditionId, QuestionId, OrderType, 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
|
|
|
@@ -14,9 +14,12 @@ declare const ClosedOnlyModeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
14
14
|
type ClosedOnlyMode = z.infer<typeof ClosedOnlyModeSchema>;
|
|
15
15
|
type OpenOrder = {
|
|
16
16
|
id: string;
|
|
17
|
+
/** Exchange asset identifier for a CTF token or Polymarket V2 position. */
|
|
18
|
+
assetId: TokenId | PositionId;
|
|
19
|
+
/** @deprecated Use `assetId`. */
|
|
20
|
+
tokenId: TokenId | PositionId;
|
|
17
21
|
/** Condition ID for the market associated with this order. */
|
|
18
22
|
conditionId: ConditionId;
|
|
19
|
-
tokenId: TokenId;
|
|
20
23
|
owner: string;
|
|
21
24
|
makerAddress: string;
|
|
22
25
|
side: string;
|
|
@@ -31,7 +34,7 @@ type OpenOrder = {
|
|
|
31
34
|
expiresAt?: IsoDateTimeString;
|
|
32
35
|
};
|
|
33
36
|
declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
34
|
-
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
37
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
35
38
|
associate_trades: z.ZodArray<z.ZodString>;
|
|
36
39
|
created_at: 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>>]>;
|
|
37
40
|
expiration: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString | undefined, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
@@ -48,7 +51,8 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
48
51
|
status: z.ZodString;
|
|
49
52
|
}, z.core.$strip>, z.ZodTransform<{
|
|
50
53
|
conditionId: ConditionId;
|
|
51
|
-
|
|
54
|
+
assetId: PositionId | TokenId;
|
|
55
|
+
tokenId: PositionId | TokenId;
|
|
52
56
|
associateTrades: string[];
|
|
53
57
|
createdAt: IsoDateTimeString;
|
|
54
58
|
makerAddress: string;
|
|
@@ -64,7 +68,8 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
64
68
|
} | {
|
|
65
69
|
expiresAt: IsoDateTimeString;
|
|
66
70
|
conditionId: ConditionId;
|
|
67
|
-
|
|
71
|
+
assetId: PositionId | TokenId;
|
|
72
|
+
tokenId: PositionId | TokenId;
|
|
68
73
|
associateTrades: string[];
|
|
69
74
|
createdAt: IsoDateTimeString;
|
|
70
75
|
makerAddress: string;
|
|
@@ -78,7 +83,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
78
83
|
side: string;
|
|
79
84
|
status: string;
|
|
80
85
|
}, {
|
|
81
|
-
asset_id: TokenId;
|
|
86
|
+
asset_id: PositionId | TokenId;
|
|
82
87
|
associate_trades: string[];
|
|
83
88
|
created_at: IsoDateTimeString;
|
|
84
89
|
expiration: IsoDateTimeString | undefined;
|
|
@@ -97,7 +102,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
97
102
|
declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
98
103
|
count: z.ZodNumber;
|
|
99
104
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
100
|
-
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
105
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
101
106
|
associate_trades: z.ZodArray<z.ZodString>;
|
|
102
107
|
created_at: 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>>]>;
|
|
103
108
|
expiration: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString | undefined, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
@@ -114,7 +119,8 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
114
119
|
status: z.ZodString;
|
|
115
120
|
}, z.core.$strip>, z.ZodTransform<{
|
|
116
121
|
conditionId: ConditionId;
|
|
117
|
-
|
|
122
|
+
assetId: PositionId | TokenId;
|
|
123
|
+
tokenId: PositionId | TokenId;
|
|
118
124
|
associateTrades: string[];
|
|
119
125
|
createdAt: IsoDateTimeString;
|
|
120
126
|
makerAddress: string;
|
|
@@ -130,7 +136,8 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
130
136
|
} | {
|
|
131
137
|
expiresAt: IsoDateTimeString;
|
|
132
138
|
conditionId: ConditionId;
|
|
133
|
-
|
|
139
|
+
assetId: PositionId | TokenId;
|
|
140
|
+
tokenId: PositionId | TokenId;
|
|
134
141
|
associateTrades: string[];
|
|
135
142
|
createdAt: IsoDateTimeString;
|
|
136
143
|
makerAddress: string;
|
|
@@ -144,7 +151,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
144
151
|
side: string;
|
|
145
152
|
status: string;
|
|
146
153
|
}, {
|
|
147
|
-
asset_id: TokenId;
|
|
154
|
+
asset_id: PositionId | TokenId;
|
|
148
155
|
associate_trades: string[];
|
|
149
156
|
created_at: IsoDateTimeString;
|
|
150
157
|
expiration: IsoDateTimeString | undefined;
|
|
@@ -167,7 +174,8 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
167
174
|
count: number;
|
|
168
175
|
data: ({
|
|
169
176
|
conditionId: ConditionId;
|
|
170
|
-
|
|
177
|
+
assetId: PositionId | TokenId;
|
|
178
|
+
tokenId: PositionId | TokenId;
|
|
171
179
|
associateTrades: string[];
|
|
172
180
|
createdAt: IsoDateTimeString;
|
|
173
181
|
makerAddress: string;
|
|
@@ -183,7 +191,8 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
183
191
|
} | {
|
|
184
192
|
expiresAt: IsoDateTimeString;
|
|
185
193
|
conditionId: ConditionId;
|
|
186
|
-
|
|
194
|
+
assetId: PositionId | TokenId;
|
|
195
|
+
tokenId: PositionId | TokenId;
|
|
187
196
|
associateTrades: string[];
|
|
188
197
|
createdAt: IsoDateTimeString;
|
|
189
198
|
makerAddress: string;
|
|
@@ -202,7 +211,8 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
202
211
|
count: number;
|
|
203
212
|
data: ({
|
|
204
213
|
conditionId: ConditionId;
|
|
205
|
-
|
|
214
|
+
assetId: PositionId | TokenId;
|
|
215
|
+
tokenId: PositionId | TokenId;
|
|
206
216
|
associateTrades: string[];
|
|
207
217
|
createdAt: IsoDateTimeString;
|
|
208
218
|
makerAddress: string;
|
|
@@ -218,7 +228,8 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
218
228
|
} | {
|
|
219
229
|
expiresAt: IsoDateTimeString;
|
|
220
230
|
conditionId: ConditionId;
|
|
221
|
-
|
|
231
|
+
assetId: PositionId | TokenId;
|
|
232
|
+
tokenId: PositionId | TokenId;
|
|
222
233
|
associateTrades: string[];
|
|
223
234
|
createdAt: IsoDateTimeString;
|
|
224
235
|
makerAddress: string;
|
|
@@ -236,18 +247,10 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
236
247
|
next_cursor: string;
|
|
237
248
|
}>>;
|
|
238
249
|
type OpenOrdersPage = z.infer<typeof OpenOrdersPageSchema>;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
244
|
-
order_id: z.ZodString;
|
|
245
|
-
outcome: z.ZodString;
|
|
246
|
-
owner: z.ZodString;
|
|
247
|
-
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
248
|
-
side: z.ZodString;
|
|
249
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
250
|
-
tokenId: TokenId;
|
|
250
|
+
type MakerOrder = {
|
|
251
|
+
assetId: TokenId | PositionId;
|
|
252
|
+
/** @deprecated Use `assetId`. */
|
|
253
|
+
tokenId: TokenId | PositionId;
|
|
251
254
|
feeRateBps: DecimalString | null;
|
|
252
255
|
makerAddress: string;
|
|
253
256
|
matchedAmount: DecimalString;
|
|
@@ -256,23 +259,15 @@ declare const MakerOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
256
259
|
owner: string;
|
|
257
260
|
price: DecimalString;
|
|
258
261
|
side: string;
|
|
259
|
-
}
|
|
260
|
-
asset_id: TokenId;
|
|
261
|
-
fee_rate_bps: DecimalString | null;
|
|
262
|
-
maker_address: string;
|
|
263
|
-
matched_amount: DecimalString;
|
|
264
|
-
order_id: string;
|
|
265
|
-
outcome: string;
|
|
266
|
-
owner: string;
|
|
267
|
-
price: DecimalString;
|
|
268
|
-
side: string;
|
|
269
|
-
}>>;
|
|
270
|
-
type MakerOrder = z.output<typeof MakerOrderSchema>;
|
|
262
|
+
};
|
|
271
263
|
type ClobTrade = {
|
|
272
264
|
id: string;
|
|
265
|
+
/** Exchange asset identifier for a CTF token or Polymarket V2 position. */
|
|
266
|
+
assetId: TokenId | PositionId;
|
|
267
|
+
/** @deprecated Use `assetId`. */
|
|
268
|
+
tokenId: TokenId | PositionId;
|
|
273
269
|
/** Condition ID for the market associated with this trade. */
|
|
274
270
|
conditionId: ConditionId;
|
|
275
|
-
tokenId: TokenId;
|
|
276
271
|
owner: string;
|
|
277
272
|
makerAddress: string;
|
|
278
273
|
takerOrderId: string;
|
|
@@ -290,14 +285,14 @@ type ClobTrade = {
|
|
|
290
285
|
updatedAt: IsoDateTimeString;
|
|
291
286
|
};
|
|
292
287
|
declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
293
|
-
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
288
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
294
289
|
bucket_index: z.ZodNumber;
|
|
295
290
|
fee_rate_bps: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
296
291
|
id: z.ZodString;
|
|
297
292
|
last_update: 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>>]>;
|
|
298
293
|
maker_address: z.ZodString;
|
|
299
294
|
maker_orders: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
300
|
-
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
295
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
301
296
|
fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
302
297
|
maker_address: z.ZodString;
|
|
303
298
|
matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -307,7 +302,8 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
307
302
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
308
303
|
side: z.ZodString;
|
|
309
304
|
}, z.core.$strip>, z.ZodTransform<{
|
|
310
|
-
|
|
305
|
+
assetId: PositionId | TokenId;
|
|
306
|
+
tokenId: PositionId | TokenId;
|
|
311
307
|
feeRateBps: DecimalString | null;
|
|
312
308
|
makerAddress: string;
|
|
313
309
|
matchedAmount: DecimalString;
|
|
@@ -317,7 +313,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
317
313
|
price: DecimalString;
|
|
318
314
|
side: string;
|
|
319
315
|
}, {
|
|
320
|
-
asset_id: TokenId;
|
|
316
|
+
asset_id: PositionId | TokenId;
|
|
321
317
|
fee_rate_bps: DecimalString | null;
|
|
322
318
|
maker_address: string;
|
|
323
319
|
matched_amount: DecimalString;
|
|
@@ -343,13 +339,15 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
343
339
|
transaction_hash: z.ZodString;
|
|
344
340
|
}, z.core.$strip>, z.ZodTransform<{
|
|
345
341
|
conditionId: ConditionId;
|
|
346
|
-
|
|
342
|
+
assetId: PositionId | TokenId;
|
|
343
|
+
tokenId: PositionId | TokenId;
|
|
347
344
|
bucketIndex: number;
|
|
348
345
|
feeRateBps: DecimalString;
|
|
349
346
|
updatedAt: IsoDateTimeString;
|
|
350
347
|
makerAddress: string;
|
|
351
348
|
makerOrders: {
|
|
352
|
-
|
|
349
|
+
assetId: PositionId | TokenId;
|
|
350
|
+
tokenId: PositionId | TokenId;
|
|
353
351
|
feeRateBps: DecimalString | null;
|
|
354
352
|
makerAddress: string;
|
|
355
353
|
matchedAmount: DecimalString;
|
|
@@ -371,14 +369,15 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
371
369
|
size: DecimalString;
|
|
372
370
|
status: TradeStatus;
|
|
373
371
|
}, {
|
|
374
|
-
asset_id: TokenId;
|
|
372
|
+
asset_id: PositionId | TokenId;
|
|
375
373
|
bucket_index: number;
|
|
376
374
|
fee_rate_bps: DecimalString;
|
|
377
375
|
id: string;
|
|
378
376
|
last_update: IsoDateTimeString;
|
|
379
377
|
maker_address: string;
|
|
380
378
|
maker_orders: {
|
|
381
|
-
|
|
379
|
+
assetId: PositionId | TokenId;
|
|
380
|
+
tokenId: PositionId | TokenId;
|
|
382
381
|
feeRateBps: DecimalString | null;
|
|
383
382
|
makerAddress: string;
|
|
384
383
|
matchedAmount: DecimalString;
|
|
@@ -403,14 +402,14 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
403
402
|
declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
404
403
|
count: z.ZodNumber;
|
|
405
404
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
406
|
-
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
405
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
407
406
|
bucket_index: z.ZodNumber;
|
|
408
407
|
fee_rate_bps: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
409
408
|
id: z.ZodString;
|
|
410
409
|
last_update: 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>>]>;
|
|
411
410
|
maker_address: z.ZodString;
|
|
412
411
|
maker_orders: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
413
|
-
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
412
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
414
413
|
fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
415
414
|
maker_address: z.ZodString;
|
|
416
415
|
matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -420,7 +419,8 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
420
419
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
421
420
|
side: z.ZodString;
|
|
422
421
|
}, z.core.$strip>, z.ZodTransform<{
|
|
423
|
-
|
|
422
|
+
assetId: PositionId | TokenId;
|
|
423
|
+
tokenId: PositionId | TokenId;
|
|
424
424
|
feeRateBps: DecimalString | null;
|
|
425
425
|
makerAddress: string;
|
|
426
426
|
matchedAmount: DecimalString;
|
|
@@ -430,7 +430,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
430
430
|
price: DecimalString;
|
|
431
431
|
side: string;
|
|
432
432
|
}, {
|
|
433
|
-
asset_id: TokenId;
|
|
433
|
+
asset_id: PositionId | TokenId;
|
|
434
434
|
fee_rate_bps: DecimalString | null;
|
|
435
435
|
maker_address: string;
|
|
436
436
|
matched_amount: DecimalString;
|
|
@@ -456,13 +456,15 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
456
456
|
transaction_hash: z.ZodString;
|
|
457
457
|
}, z.core.$strip>, z.ZodTransform<{
|
|
458
458
|
conditionId: ConditionId;
|
|
459
|
-
|
|
459
|
+
assetId: PositionId | TokenId;
|
|
460
|
+
tokenId: PositionId | TokenId;
|
|
460
461
|
bucketIndex: number;
|
|
461
462
|
feeRateBps: DecimalString;
|
|
462
463
|
updatedAt: IsoDateTimeString;
|
|
463
464
|
makerAddress: string;
|
|
464
465
|
makerOrders: {
|
|
465
|
-
|
|
466
|
+
assetId: PositionId | TokenId;
|
|
467
|
+
tokenId: PositionId | TokenId;
|
|
466
468
|
feeRateBps: DecimalString | null;
|
|
467
469
|
makerAddress: string;
|
|
468
470
|
matchedAmount: DecimalString;
|
|
@@ -484,14 +486,15 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
484
486
|
size: DecimalString;
|
|
485
487
|
status: TradeStatus;
|
|
486
488
|
}, {
|
|
487
|
-
asset_id: TokenId;
|
|
489
|
+
asset_id: PositionId | TokenId;
|
|
488
490
|
bucket_index: number;
|
|
489
491
|
fee_rate_bps: DecimalString;
|
|
490
492
|
id: string;
|
|
491
493
|
last_update: IsoDateTimeString;
|
|
492
494
|
maker_address: string;
|
|
493
495
|
maker_orders: {
|
|
494
|
-
|
|
496
|
+
assetId: PositionId | TokenId;
|
|
497
|
+
tokenId: PositionId | TokenId;
|
|
495
498
|
feeRateBps: DecimalString | null;
|
|
496
499
|
makerAddress: string;
|
|
497
500
|
matchedAmount: DecimalString;
|
|
@@ -520,13 +523,15 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
520
523
|
count: number;
|
|
521
524
|
data: {
|
|
522
525
|
conditionId: ConditionId;
|
|
523
|
-
|
|
526
|
+
assetId: PositionId | TokenId;
|
|
527
|
+
tokenId: PositionId | TokenId;
|
|
524
528
|
bucketIndex: number;
|
|
525
529
|
feeRateBps: DecimalString;
|
|
526
530
|
updatedAt: IsoDateTimeString;
|
|
527
531
|
makerAddress: string;
|
|
528
532
|
makerOrders: {
|
|
529
|
-
|
|
533
|
+
assetId: PositionId | TokenId;
|
|
534
|
+
tokenId: PositionId | TokenId;
|
|
530
535
|
feeRateBps: DecimalString | null;
|
|
531
536
|
makerAddress: string;
|
|
532
537
|
matchedAmount: DecimalString;
|
|
@@ -553,13 +558,15 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
553
558
|
count: number;
|
|
554
559
|
data: {
|
|
555
560
|
conditionId: ConditionId;
|
|
556
|
-
|
|
561
|
+
assetId: PositionId | TokenId;
|
|
562
|
+
tokenId: PositionId | TokenId;
|
|
557
563
|
bucketIndex: number;
|
|
558
564
|
feeRateBps: DecimalString;
|
|
559
565
|
updatedAt: IsoDateTimeString;
|
|
560
566
|
makerAddress: string;
|
|
561
567
|
makerOrders: {
|
|
562
|
-
|
|
568
|
+
assetId: PositionId | TokenId;
|
|
569
|
+
tokenId: PositionId | TokenId;
|
|
563
570
|
feeRateBps: DecimalString | null;
|
|
564
571
|
makerAddress: string;
|
|
565
572
|
matchedAmount: DecimalString;
|
|
@@ -585,22 +592,6 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
585
592
|
next_cursor: string;
|
|
586
593
|
}>>;
|
|
587
594
|
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
595
|
declare enum AssetType {
|
|
605
596
|
COLLATERAL = "COLLATERAL",
|
|
606
597
|
CONDITIONAL = "CONDITIONAL"
|
|
@@ -737,16 +728,24 @@ type RewardsPercentages = z.infer<typeof RewardsPercentagesSchema>;
|
|
|
737
728
|
declare const TokenSchema: z.ZodPipe<z.ZodObject<{
|
|
738
729
|
outcome: z.ZodString;
|
|
739
730
|
price: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
740
|
-
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
731
|
+
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
741
732
|
}, z.core.$strip>, z.ZodTransform<{
|
|
742
|
-
|
|
733
|
+
assetId: PositionId | TokenId;
|
|
734
|
+
tokenId: PositionId | TokenId;
|
|
743
735
|
outcome: string;
|
|
744
736
|
price: DecimalString;
|
|
745
737
|
}, {
|
|
746
738
|
outcome: string;
|
|
747
739
|
price: DecimalString;
|
|
748
|
-
token_id: TokenId;
|
|
740
|
+
token_id: PositionId | TokenId;
|
|
749
741
|
}>>;
|
|
742
|
+
type RewardMarketToken = {
|
|
743
|
+
assetId: TokenId | PositionId;
|
|
744
|
+
/** @deprecated Use `assetId`. */
|
|
745
|
+
tokenId: TokenId | PositionId;
|
|
746
|
+
outcome: string;
|
|
747
|
+
price: DecimalString;
|
|
748
|
+
};
|
|
750
749
|
declare const RewardsConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
751
750
|
asset_address: z.ZodString;
|
|
752
751
|
end_date: 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>>]>;
|
|
@@ -825,15 +824,16 @@ declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
|
|
|
825
824
|
tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
826
825
|
outcome: z.ZodString;
|
|
827
826
|
price: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
828
|
-
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
827
|
+
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
829
828
|
}, z.core.$strip>, z.ZodTransform<{
|
|
830
|
-
|
|
829
|
+
assetId: PositionId | TokenId;
|
|
830
|
+
tokenId: PositionId | TokenId;
|
|
831
831
|
outcome: string;
|
|
832
832
|
price: DecimalString;
|
|
833
833
|
}, {
|
|
834
834
|
outcome: string;
|
|
835
835
|
price: DecimalString;
|
|
836
|
-
token_id: TokenId;
|
|
836
|
+
token_id: PositionId | TokenId;
|
|
837
837
|
}>>>;
|
|
838
838
|
}, z.core.$strip>, z.ZodTransform<{
|
|
839
839
|
conditionId: ConditionId;
|
|
@@ -859,7 +859,8 @@ declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
|
|
|
859
859
|
image: string;
|
|
860
860
|
question: string;
|
|
861
861
|
tokens: {
|
|
862
|
-
|
|
862
|
+
assetId: PositionId | TokenId;
|
|
863
|
+
tokenId: PositionId | TokenId;
|
|
863
864
|
outcome: string;
|
|
864
865
|
price: DecimalString;
|
|
865
866
|
}[];
|
|
@@ -887,12 +888,37 @@ declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
|
|
|
887
888
|
rewards_max_spread: number;
|
|
888
889
|
rewards_min_size: DecimalString;
|
|
889
890
|
tokens: {
|
|
890
|
-
|
|
891
|
+
assetId: PositionId | TokenId;
|
|
892
|
+
tokenId: PositionId | TokenId;
|
|
891
893
|
outcome: string;
|
|
892
894
|
price: DecimalString;
|
|
893
895
|
}[];
|
|
894
896
|
}>>;
|
|
895
|
-
type UserRewardsEarning =
|
|
897
|
+
type UserRewardsEarning = {
|
|
898
|
+
conditionId: ConditionId;
|
|
899
|
+
earningPercentage: number;
|
|
900
|
+
earnings: Array<{
|
|
901
|
+
assetAddress: string;
|
|
902
|
+
assetRate: DecimalString;
|
|
903
|
+
earnings: DecimalString;
|
|
904
|
+
}>;
|
|
905
|
+
eventSlug: string;
|
|
906
|
+
image: string;
|
|
907
|
+
makerAddress: string;
|
|
908
|
+
marketCompetitiveness: number;
|
|
909
|
+
marketSlug: string;
|
|
910
|
+
question: string;
|
|
911
|
+
rewardsConfig: Array<{
|
|
912
|
+
assetAddress: string;
|
|
913
|
+
endDate: IsoDateTimeString;
|
|
914
|
+
ratePerDay: DecimalString;
|
|
915
|
+
startDate: IsoDateTimeString;
|
|
916
|
+
totalRewards: DecimalString;
|
|
917
|
+
}>;
|
|
918
|
+
rewardsMaxSpread: number;
|
|
919
|
+
rewardsMinSize: DecimalString;
|
|
920
|
+
tokens: RewardMarketToken[];
|
|
921
|
+
};
|
|
896
922
|
declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
897
923
|
count: z.ZodNumber;
|
|
898
924
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
@@ -941,15 +967,16 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
941
967
|
tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
942
968
|
outcome: z.ZodString;
|
|
943
969
|
price: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
944
|
-
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
970
|
+
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
945
971
|
}, z.core.$strip>, z.ZodTransform<{
|
|
946
|
-
|
|
972
|
+
assetId: PositionId | TokenId;
|
|
973
|
+
tokenId: PositionId | TokenId;
|
|
947
974
|
outcome: string;
|
|
948
975
|
price: DecimalString;
|
|
949
976
|
}, {
|
|
950
977
|
outcome: string;
|
|
951
978
|
price: DecimalString;
|
|
952
|
-
token_id: TokenId;
|
|
979
|
+
token_id: PositionId | TokenId;
|
|
953
980
|
}>>>;
|
|
954
981
|
}, z.core.$strip>, z.ZodTransform<{
|
|
955
982
|
conditionId: ConditionId;
|
|
@@ -975,7 +1002,8 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
975
1002
|
image: string;
|
|
976
1003
|
question: string;
|
|
977
1004
|
tokens: {
|
|
978
|
-
|
|
1005
|
+
assetId: PositionId | TokenId;
|
|
1006
|
+
tokenId: PositionId | TokenId;
|
|
979
1007
|
outcome: string;
|
|
980
1008
|
price: DecimalString;
|
|
981
1009
|
}[];
|
|
@@ -1003,7 +1031,8 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1003
1031
|
rewards_max_spread: number;
|
|
1004
1032
|
rewards_min_size: DecimalString;
|
|
1005
1033
|
tokens: {
|
|
1006
|
-
|
|
1034
|
+
assetId: PositionId | TokenId;
|
|
1035
|
+
tokenId: PositionId | TokenId;
|
|
1007
1036
|
outcome: string;
|
|
1008
1037
|
price: DecimalString;
|
|
1009
1038
|
}[];
|
|
@@ -1037,7 +1066,8 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1037
1066
|
image: string;
|
|
1038
1067
|
question: string;
|
|
1039
1068
|
tokens: {
|
|
1040
|
-
|
|
1069
|
+
assetId: PositionId | TokenId;
|
|
1070
|
+
tokenId: PositionId | TokenId;
|
|
1041
1071
|
outcome: string;
|
|
1042
1072
|
price: DecimalString;
|
|
1043
1073
|
}[];
|
|
@@ -1069,7 +1099,8 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1069
1099
|
image: string;
|
|
1070
1100
|
question: string;
|
|
1071
1101
|
tokens: {
|
|
1072
|
-
|
|
1102
|
+
assetId: PositionId | TokenId;
|
|
1103
|
+
tokenId: PositionId | TokenId;
|
|
1073
1104
|
outcome: string;
|
|
1074
1105
|
price: DecimalString;
|
|
1075
1106
|
}[];
|
|
@@ -1130,12 +1161,15 @@ type BuilderApiKeysResponse = z.infer<typeof BuilderApiKeysResponseSchema>;
|
|
|
1130
1161
|
|
|
1131
1162
|
type BuilderTrade = {
|
|
1132
1163
|
id: string;
|
|
1164
|
+
/** Exchange asset identifier for a CTF token or Polymarket V2 position. */
|
|
1165
|
+
assetId: TokenId | PositionId;
|
|
1166
|
+
/** @deprecated Use `assetId`. */
|
|
1167
|
+
tokenId: TokenId | PositionId;
|
|
1133
1168
|
tradeType: string;
|
|
1134
1169
|
takerOrderHash: string;
|
|
1135
1170
|
builder: string;
|
|
1136
1171
|
/** Condition ID for the market associated with this trade. */
|
|
1137
1172
|
conditionId: ConditionId;
|
|
1138
|
-
tokenId: TokenId;
|
|
1139
1173
|
side: OrderSide;
|
|
1140
1174
|
size: DecimalString;
|
|
1141
1175
|
sizeUsdc: DecimalString;
|
|
@@ -1160,7 +1194,7 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1160
1194
|
takerOrderHash: z.ZodString;
|
|
1161
1195
|
builder: z.ZodString;
|
|
1162
1196
|
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
1163
|
-
assetId: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1197
|
+
assetId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
1164
1198
|
side: z.ZodEnum<typeof OrderSide>;
|
|
1165
1199
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1166
1200
|
sizeUsdc: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -1180,7 +1214,8 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1180
1214
|
updatedAt: z.ZodOptional<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>>]>>;
|
|
1181
1215
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1182
1216
|
conditionId: ConditionId;
|
|
1183
|
-
|
|
1217
|
+
assetId: PositionId | TokenId;
|
|
1218
|
+
tokenId: PositionId | TokenId;
|
|
1184
1219
|
errMsg: string | null | undefined;
|
|
1185
1220
|
matchedAt: IsoDateTimeString;
|
|
1186
1221
|
id: string;
|
|
@@ -1208,7 +1243,7 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1208
1243
|
takerOrderHash: string;
|
|
1209
1244
|
builder: string;
|
|
1210
1245
|
market: ConditionId;
|
|
1211
|
-
assetId: TokenId;
|
|
1246
|
+
assetId: PositionId | TokenId;
|
|
1212
1247
|
side: OrderSide;
|
|
1213
1248
|
size: DecimalString;
|
|
1214
1249
|
sizeUsdc: DecimalString;
|
|
@@ -1237,7 +1272,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1237
1272
|
takerOrderHash: z.ZodString;
|
|
1238
1273
|
builder: z.ZodString;
|
|
1239
1274
|
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
1240
|
-
assetId: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1275
|
+
assetId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
1241
1276
|
side: z.ZodEnum<typeof OrderSide>;
|
|
1242
1277
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1243
1278
|
sizeUsdc: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -1257,7 +1292,8 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1257
1292
|
updatedAt: z.ZodOptional<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>>]>>;
|
|
1258
1293
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1259
1294
|
conditionId: ConditionId;
|
|
1260
|
-
|
|
1295
|
+
assetId: PositionId | TokenId;
|
|
1296
|
+
tokenId: PositionId | TokenId;
|
|
1261
1297
|
errMsg: string | null | undefined;
|
|
1262
1298
|
matchedAt: IsoDateTimeString;
|
|
1263
1299
|
id: string;
|
|
@@ -1285,7 +1321,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1285
1321
|
takerOrderHash: string;
|
|
1286
1322
|
builder: string;
|
|
1287
1323
|
market: ConditionId;
|
|
1288
|
-
assetId: TokenId;
|
|
1324
|
+
assetId: PositionId | TokenId;
|
|
1289
1325
|
side: OrderSide;
|
|
1290
1326
|
size: DecimalString;
|
|
1291
1327
|
sizeUsdc: DecimalString;
|
|
@@ -1310,7 +1346,8 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1310
1346
|
count: number;
|
|
1311
1347
|
data: {
|
|
1312
1348
|
conditionId: ConditionId;
|
|
1313
|
-
|
|
1349
|
+
assetId: PositionId | TokenId;
|
|
1350
|
+
tokenId: PositionId | TokenId;
|
|
1314
1351
|
errMsg: string | null | undefined;
|
|
1315
1352
|
matchedAt: IsoDateTimeString;
|
|
1316
1353
|
id: string;
|
|
@@ -1339,7 +1376,8 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1339
1376
|
next_cursor: string;
|
|
1340
1377
|
data: {
|
|
1341
1378
|
conditionId: ConditionId;
|
|
1342
|
-
|
|
1379
|
+
assetId: PositionId | TokenId;
|
|
1380
|
+
tokenId: PositionId | TokenId;
|
|
1343
1381
|
errMsg: string | null | undefined;
|
|
1344
1382
|
matchedAt: IsoDateTimeString;
|
|
1345
1383
|
id: string;
|
|
@@ -1411,7 +1449,7 @@ declare const MidpointSchema: z.ZodObject<{
|
|
|
1411
1449
|
mid: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1412
1450
|
}, z.core.$strip>;
|
|
1413
1451
|
type Midpoint = z.infer<typeof MidpointSchema>;
|
|
1414
|
-
declare const MidpointsSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1452
|
+
declare const MidpointsSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1415
1453
|
type Midpoints = z.infer<typeof MidpointsSchema>;
|
|
1416
1454
|
declare const PriceSchema: z.ZodObject<{
|
|
1417
1455
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -1419,13 +1457,13 @@ declare const PriceSchema: z.ZodObject<{
|
|
|
1419
1457
|
type Price = z.infer<typeof PriceSchema>;
|
|
1420
1458
|
declare const PricesBySideSchema: z.ZodRecord<z.ZodEnum<typeof OrderSide> & z.core.$partial, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1421
1459
|
type PricesBySide = z.infer<typeof PricesBySideSchema>;
|
|
1422
|
-
declare const PricesSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>, z.ZodRecord<z.ZodEnum<typeof OrderSide> & z.core.$partial, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
1460
|
+
declare const PricesSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>, z.ZodRecord<z.ZodEnum<typeof OrderSide> & z.core.$partial, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
1423
1461
|
type Prices = z.infer<typeof PricesSchema>;
|
|
1424
1462
|
declare const SpreadSchema: z.ZodObject<{
|
|
1425
1463
|
spread: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1426
1464
|
}, z.core.$strip>;
|
|
1427
1465
|
type Spread = z.infer<typeof SpreadSchema>;
|
|
1428
|
-
declare const SpreadsSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1466
|
+
declare const SpreadsSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1429
1467
|
type Spreads = z.infer<typeof SpreadsSchema>;
|
|
1430
1468
|
declare const LastTradePriceValueSchema: z.ZodObject<{
|
|
1431
1469
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -1442,38 +1480,37 @@ declare const LastTradePriceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1442
1480
|
price: DecimalString;
|
|
1443
1481
|
side: "" | OrderSide;
|
|
1444
1482
|
}>>;
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
1450
|
-
tokenId: TokenId;
|
|
1483
|
+
type LastTradePriceForAssetResponse = {
|
|
1484
|
+
assetId: TokenId | PositionId;
|
|
1485
|
+
/** @deprecated Use `assetId`. */
|
|
1486
|
+
tokenId: TokenId | PositionId;
|
|
1451
1487
|
price: DecimalString;
|
|
1452
1488
|
side: OrderSide;
|
|
1453
|
-
}
|
|
1489
|
+
};
|
|
1490
|
+
/** @deprecated Use `LastTradePriceForAssetResponse`. */
|
|
1491
|
+
type LastTradePriceForTokenResponse = LastTradePriceForAssetResponse;
|
|
1492
|
+
type LastTradePriceForAsset = {
|
|
1493
|
+
assetId: TokenId | PositionId;
|
|
1494
|
+
/** @deprecated Use `assetId`. */
|
|
1495
|
+
tokenId: TokenId | PositionId;
|
|
1454
1496
|
price: DecimalString;
|
|
1455
1497
|
side: OrderSide;
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
type
|
|
1459
|
-
declare const LastTradePriceForTokenSchema: z.ZodObject<{
|
|
1460
|
-
tokenId: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1461
|
-
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1462
|
-
side: z.ZodEnum<typeof OrderSide>;
|
|
1463
|
-
}, z.core.$strip>;
|
|
1464
|
-
type LastTradePriceForToken = z.infer<typeof LastTradePriceForTokenSchema>;
|
|
1498
|
+
};
|
|
1499
|
+
/** @deprecated Use `LastTradePriceForAsset`. */
|
|
1500
|
+
type LastTradePriceForToken = LastTradePriceForAsset;
|
|
1465
1501
|
declare const LastTradePricesSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1466
1502
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1467
1503
|
side: z.ZodEnum<typeof OrderSide>;
|
|
1468
|
-
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1504
|
+
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
1469
1505
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1470
|
-
|
|
1506
|
+
assetId: PositionId | TokenId;
|
|
1507
|
+
tokenId: PositionId | TokenId;
|
|
1471
1508
|
price: DecimalString;
|
|
1472
1509
|
side: OrderSide;
|
|
1473
1510
|
}, {
|
|
1474
1511
|
price: DecimalString;
|
|
1475
1512
|
side: OrderSide;
|
|
1476
|
-
token_id: TokenId;
|
|
1513
|
+
token_id: PositionId | TokenId;
|
|
1477
1514
|
}>>>;
|
|
1478
1515
|
type LastTradePrices = z.infer<typeof LastTradePricesSchema>;
|
|
1479
1516
|
declare const PriceHistoryPointSchema: z.ZodObject<{
|
|
@@ -1511,13 +1548,14 @@ declare const MarketFeeInfoSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1511
1548
|
e: number;
|
|
1512
1549
|
}>>;
|
|
1513
1550
|
declare const MarketTokenSchema: z.ZodPipe<z.ZodObject<{
|
|
1514
|
-
t: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1551
|
+
t: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
1515
1552
|
o: z.ZodString;
|
|
1516
1553
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1517
|
-
|
|
1554
|
+
assetId: PositionId | TokenId;
|
|
1555
|
+
tokenId: PositionId | TokenId;
|
|
1518
1556
|
outcome: string;
|
|
1519
1557
|
}, {
|
|
1520
|
-
t: TokenId;
|
|
1558
|
+
t: PositionId | TokenId;
|
|
1521
1559
|
o: string;
|
|
1522
1560
|
}>>;
|
|
1523
1561
|
declare const MarketInfoSchema: z.ZodPipe<z.ZodObject<{
|
|
@@ -1534,13 +1572,14 @@ declare const MarketInfoSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1534
1572
|
mts: 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>]>;
|
|
1535
1573
|
nr: z.ZodOptional<z.ZodBoolean>;
|
|
1536
1574
|
t: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1537
|
-
t: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1575
|
+
t: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
1538
1576
|
o: z.ZodString;
|
|
1539
1577
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1540
|
-
|
|
1578
|
+
assetId: PositionId | TokenId;
|
|
1579
|
+
tokenId: PositionId | TokenId;
|
|
1541
1580
|
outcome: string;
|
|
1542
1581
|
}, {
|
|
1543
|
-
t: TokenId;
|
|
1582
|
+
t: PositionId | TokenId;
|
|
1544
1583
|
o: string;
|
|
1545
1584
|
}>>>;
|
|
1546
1585
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -1551,13 +1590,15 @@ declare const MarketInfoSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1551
1590
|
negRisk: boolean;
|
|
1552
1591
|
tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
1553
1592
|
tokens: {
|
|
1554
|
-
|
|
1593
|
+
assetId: PositionId | TokenId;
|
|
1594
|
+
tokenId: PositionId | TokenId;
|
|
1555
1595
|
outcome: string;
|
|
1556
1596
|
}[];
|
|
1557
1597
|
}, {
|
|
1558
1598
|
mts: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
1559
1599
|
t: {
|
|
1560
|
-
|
|
1600
|
+
assetId: PositionId | TokenId;
|
|
1601
|
+
tokenId: PositionId | TokenId;
|
|
1561
1602
|
outcome: string;
|
|
1562
1603
|
}[];
|
|
1563
1604
|
fd?: {
|
|
@@ -1580,13 +1621,14 @@ declare const FetchMarketInfoResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1580
1621
|
mts: 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>]>;
|
|
1581
1622
|
nr: z.ZodOptional<z.ZodBoolean>;
|
|
1582
1623
|
t: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1583
|
-
t: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1624
|
+
t: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
1584
1625
|
o: z.ZodString;
|
|
1585
1626
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1586
|
-
|
|
1627
|
+
assetId: PositionId | TokenId;
|
|
1628
|
+
tokenId: PositionId | TokenId;
|
|
1587
1629
|
outcome: string;
|
|
1588
1630
|
}, {
|
|
1589
|
-
t: TokenId;
|
|
1631
|
+
t: PositionId | TokenId;
|
|
1590
1632
|
o: string;
|
|
1591
1633
|
}>>>;
|
|
1592
1634
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -1597,13 +1639,15 @@ declare const FetchMarketInfoResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1597
1639
|
negRisk: boolean;
|
|
1598
1640
|
tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
1599
1641
|
tokens: {
|
|
1600
|
-
|
|
1642
|
+
assetId: PositionId | TokenId;
|
|
1643
|
+
tokenId: PositionId | TokenId;
|
|
1601
1644
|
outcome: string;
|
|
1602
1645
|
}[];
|
|
1603
1646
|
}, {
|
|
1604
1647
|
mts: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
1605
1648
|
t: {
|
|
1606
|
-
|
|
1649
|
+
assetId: PositionId | TokenId;
|
|
1650
|
+
tokenId: PositionId | TokenId;
|
|
1607
1651
|
outcome: string;
|
|
1608
1652
|
}[];
|
|
1609
1653
|
fd?: {
|
|
@@ -1613,9 +1657,19 @@ declare const FetchMarketInfoResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1613
1657
|
nr?: boolean | undefined;
|
|
1614
1658
|
}>>;
|
|
1615
1659
|
type MarketFeeInfo = z.infer<typeof MarketFeeInfoSchema>;
|
|
1616
|
-
type MarketToken =
|
|
1617
|
-
|
|
1618
|
-
|
|
1660
|
+
type MarketToken = {
|
|
1661
|
+
assetId: TokenId | PositionId;
|
|
1662
|
+
/** @deprecated Use `assetId`. */
|
|
1663
|
+
tokenId: TokenId | PositionId;
|
|
1664
|
+
outcome: string;
|
|
1665
|
+
};
|
|
1666
|
+
type MarketInfo = {
|
|
1667
|
+
feeInfo: MarketFeeInfo;
|
|
1668
|
+
negRisk: boolean;
|
|
1669
|
+
tickSize: TickSizeValue;
|
|
1670
|
+
tokens: MarketToken[];
|
|
1671
|
+
};
|
|
1672
|
+
type FetchMarketInfoResponse = MarketInfo;
|
|
1619
1673
|
|
|
1620
1674
|
declare const NegRiskSchema: z.ZodPipe<z.ZodObject<{
|
|
1621
1675
|
neg_risk: z.ZodBoolean;
|
|
@@ -1634,175 +1688,2562 @@ declare const FetchNegRiskResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1634
1688
|
type NegRisk = z.infer<typeof NegRiskSchema>;
|
|
1635
1689
|
type FetchNegRiskResponse = z.infer<typeof FetchNegRiskResponseSchema>;
|
|
1636
1690
|
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
declare const
|
|
1665
|
-
|
|
1691
|
+
/**
|
|
1692
|
+
* Kind of account notification. The wire value is an integer discriminant;
|
|
1693
|
+
* each kind carries a payload whose shape is tied to the kind.
|
|
1694
|
+
*/
|
|
1695
|
+
declare enum NotificationType {
|
|
1696
|
+
ORDER_CANCELLATION = 1,
|
|
1697
|
+
ORDER_FILL = 2,
|
|
1698
|
+
MARKET_REGISTERED = 3,
|
|
1699
|
+
MARKET_RESOLVED = 4,
|
|
1700
|
+
REWARD_PAYOUT = 5,
|
|
1701
|
+
CHILD_COMMENT_CREATED = 6,
|
|
1702
|
+
YIELD_PAYOUT = 7,
|
|
1703
|
+
ORDER_FILL_FAILED = 8,
|
|
1704
|
+
AUTO_REDEEMED = 9,
|
|
1705
|
+
COMBO_AUTO_REDEEMED = 10
|
|
1706
|
+
}
|
|
1707
|
+
declare const NotificationTypeSchema: z.ZodEnum<typeof NotificationType>;
|
|
1708
|
+
/**
|
|
1709
|
+
* Payload of an order lifecycle notification (cancellation, fill, and
|
|
1710
|
+
* failed fill share this shape).
|
|
1711
|
+
*
|
|
1712
|
+
* `transactionHash` and `tradeId` are only populated on fills. The
|
|
1713
|
+
* market-display fields (`question`, `marketSlug`, `icon`, `image`,
|
|
1714
|
+
* `eventSlug`, `seriesSlug`) are filled best-effort by the producer and may
|
|
1715
|
+
* be empty strings; older notifications may omit them entirely, along with
|
|
1716
|
+
* `orderType`.
|
|
1717
|
+
*/
|
|
1718
|
+
declare const OrderNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
1719
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
1720
|
+
eventSlug: z.ZodOptional<z.ZodString>;
|
|
1721
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1722
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1666
1723
|
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
1724
|
+
market_slug: z.ZodOptional<z.ZodString>;
|
|
1725
|
+
matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1726
|
+
order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
|
|
1727
|
+
original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1728
|
+
outcome: z.ZodString;
|
|
1729
|
+
outcome_index: z.ZodNumber;
|
|
1730
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1731
|
+
question: z.ZodOptional<z.ZodString>;
|
|
1732
|
+
remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1733
|
+
seriesSlug: z.ZodOptional<z.ZodString>;
|
|
1734
|
+
side: z.ZodEnum<typeof OrderSide>;
|
|
1735
|
+
trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
1736
|
+
transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
|
|
1737
|
+
type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
|
|
1682
1738
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1683
1739
|
conditionId: ConditionId;
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1740
|
+
assetId: PositionId | TokenId;
|
|
1741
|
+
tokenId: PositionId | TokenId;
|
|
1742
|
+
marketSlug: string | undefined;
|
|
1743
|
+
matchedSize: DecimalString;
|
|
1744
|
+
orderId: OrderId;
|
|
1745
|
+
orderType: OrderType | undefined;
|
|
1746
|
+
originalSize: DecimalString;
|
|
1747
|
+
outcomeIndex: number;
|
|
1748
|
+
remainingSize: DecimalString;
|
|
1749
|
+
tradeId: string | undefined;
|
|
1750
|
+
transactionHash: TxHash | undefined;
|
|
1751
|
+
outcome: string;
|
|
1752
|
+
price: DecimalString;
|
|
1753
|
+
side: OrderSide;
|
|
1754
|
+
eventSlug?: string | undefined;
|
|
1755
|
+
icon?: string | undefined;
|
|
1756
|
+
image?: string | undefined;
|
|
1757
|
+
question?: string | undefined;
|
|
1758
|
+
seriesSlug?: string | undefined;
|
|
1699
1759
|
}, {
|
|
1760
|
+
asset_id: PositionId | TokenId;
|
|
1700
1761
|
market: ConditionId;
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1762
|
+
matched_size: DecimalString;
|
|
1763
|
+
order_id: OrderId;
|
|
1764
|
+
original_size: DecimalString;
|
|
1765
|
+
outcome: string;
|
|
1766
|
+
outcome_index: number;
|
|
1767
|
+
price: DecimalString;
|
|
1768
|
+
remaining_size: DecimalString;
|
|
1769
|
+
side: OrderSide;
|
|
1770
|
+
eventSlug?: string | undefined;
|
|
1771
|
+
icon?: string | undefined;
|
|
1772
|
+
image?: string | undefined;
|
|
1773
|
+
market_slug?: string | undefined;
|
|
1774
|
+
question?: string | undefined;
|
|
1775
|
+
seriesSlug?: string | undefined;
|
|
1776
|
+
trade_id?: string | undefined;
|
|
1777
|
+
transaction_hash?: TxHash | undefined;
|
|
1778
|
+
type?: OrderType | undefined;
|
|
1716
1779
|
}>>;
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
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>>;
|
|
1734
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
1780
|
+
type OrderNotificationPayload = {
|
|
1781
|
+
assetId: TokenId | PositionId;
|
|
1782
|
+
/** @deprecated Use `assetId`. */
|
|
1783
|
+
tokenId: TokenId | PositionId;
|
|
1735
1784
|
conditionId: ConditionId;
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1785
|
+
eventSlug?: string;
|
|
1786
|
+
icon?: string;
|
|
1787
|
+
image?: string;
|
|
1788
|
+
marketSlug: string | undefined;
|
|
1789
|
+
matchedSize: DecimalString;
|
|
1790
|
+
orderId: OrderId;
|
|
1791
|
+
orderType: OrderType | undefined;
|
|
1792
|
+
originalSize: DecimalString;
|
|
1793
|
+
outcome: string;
|
|
1794
|
+
outcomeIndex: number;
|
|
1795
|
+
price: DecimalString;
|
|
1796
|
+
question?: string;
|
|
1797
|
+
remainingSize: DecimalString;
|
|
1798
|
+
seriesSlug?: string;
|
|
1799
|
+
side: OrderSide;
|
|
1800
|
+
tradeId: string | undefined;
|
|
1801
|
+
transactionHash: TxHash | undefined;
|
|
1802
|
+
};
|
|
1803
|
+
/**
|
|
1804
|
+
* One outcome token inside a market lifecycle notification payload. On a
|
|
1805
|
+
* market-resolved notification, `winner` marks the winning outcome.
|
|
1806
|
+
*/
|
|
1807
|
+
declare const MarketNotificationTokenSchema: z.ZodPipe<z.ZodObject<{
|
|
1808
|
+
outcome: z.ZodString;
|
|
1809
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
1810
|
+
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
1811
|
+
winner: z.ZodBoolean;
|
|
1812
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1813
|
+
assetId: PositionId | TokenId;
|
|
1814
|
+
tokenId: PositionId | TokenId;
|
|
1815
|
+
outcome: string;
|
|
1816
|
+
winner: boolean;
|
|
1817
|
+
price?: DecimalString | undefined;
|
|
1751
1818
|
}, {
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
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;
|
|
1819
|
+
outcome: string;
|
|
1820
|
+
token_id: PositionId | TokenId;
|
|
1821
|
+
winner: boolean;
|
|
1822
|
+
price?: DecimalString | undefined;
|
|
1768
1823
|
}>>;
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1824
|
+
type MarketNotificationToken = {
|
|
1825
|
+
assetId: TokenId | PositionId;
|
|
1826
|
+
/** @deprecated Use `assetId`. */
|
|
1827
|
+
tokenId: TokenId | PositionId;
|
|
1828
|
+
outcome: string;
|
|
1829
|
+
price?: DecimalString;
|
|
1830
|
+
winner: boolean;
|
|
1831
|
+
};
|
|
1832
|
+
/** Liquidity-rewards parameters carried on a market lifecycle notification. */
|
|
1833
|
+
declare const MarketNotificationRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
1834
|
+
max_spread: z.ZodNumber;
|
|
1835
|
+
min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
1836
|
+
rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1837
|
+
asset_address: z.ZodString;
|
|
1838
|
+
rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
1839
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1840
|
+
assetAddress: string;
|
|
1841
|
+
dailyRate: DecimalString;
|
|
1842
|
+
}, {
|
|
1843
|
+
asset_address: string;
|
|
1844
|
+
rewards_daily_rate: DecimalString;
|
|
1845
|
+
}>>>>>;
|
|
1786
1846
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1847
|
+
maxSpread: number;
|
|
1848
|
+
minSize: DecimalString;
|
|
1849
|
+
rates?: {
|
|
1850
|
+
assetAddress: string;
|
|
1851
|
+
dailyRate: DecimalString;
|
|
1852
|
+
}[] | null | undefined;
|
|
1853
|
+
}, {
|
|
1854
|
+
max_spread: number;
|
|
1855
|
+
min_size: DecimalString;
|
|
1856
|
+
rates?: {
|
|
1857
|
+
assetAddress: string;
|
|
1858
|
+
dailyRate: DecimalString;
|
|
1859
|
+
}[] | null | undefined;
|
|
1860
|
+
}>>;
|
|
1861
|
+
type MarketNotificationRewards = z.infer<typeof MarketNotificationRewardsSchema>;
|
|
1862
|
+
/**
|
|
1863
|
+
* Payload of a market lifecycle notification (market registered and market
|
|
1864
|
+
* resolved share this shape: the market the notification is about).
|
|
1865
|
+
*
|
|
1866
|
+
* Fields marked optional are absent on notifications written before the
|
|
1867
|
+
* producer started including them.
|
|
1868
|
+
*/
|
|
1869
|
+
declare const MarketNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
1870
|
+
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>>]>>>;
|
|
1871
|
+
accepting_orders: z.ZodBoolean;
|
|
1872
|
+
active: z.ZodBoolean;
|
|
1873
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
1874
|
+
closed: z.ZodBoolean;
|
|
1875
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
1876
|
+
description: z.ZodString;
|
|
1877
|
+
enable_order_book: z.ZodOptional<z.ZodBoolean>;
|
|
1878
|
+
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>>]>>>;
|
|
1879
|
+
eventSlug: z.ZodOptional<z.ZodString>;
|
|
1880
|
+
fpmm: z.ZodString;
|
|
1881
|
+
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>>]>>>;
|
|
1882
|
+
icon: z.ZodString;
|
|
1883
|
+
image: z.ZodString;
|
|
1884
|
+
is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
|
|
1885
|
+
maker_base_fee: z.ZodNullable<z.ZodNumber>;
|
|
1886
|
+
market_slug: z.ZodString;
|
|
1887
|
+
minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
1888
|
+
minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
1889
|
+
neg_risk: z.ZodOptional<z.ZodBoolean>;
|
|
1890
|
+
neg_risk_market_id: z.ZodOptional<z.ZodString>;
|
|
1891
|
+
neg_risk_request_id: z.ZodOptional<z.ZodString>;
|
|
1892
|
+
notifications_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1893
|
+
question: z.ZodString;
|
|
1894
|
+
question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
|
|
1895
|
+
rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
1896
|
+
max_spread: z.ZodNumber;
|
|
1897
|
+
min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
1898
|
+
rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1899
|
+
asset_address: z.ZodString;
|
|
1900
|
+
rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
1901
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1902
|
+
assetAddress: string;
|
|
1903
|
+
dailyRate: DecimalString;
|
|
1904
|
+
}, {
|
|
1905
|
+
asset_address: string;
|
|
1906
|
+
rewards_daily_rate: DecimalString;
|
|
1907
|
+
}>>>>>;
|
|
1908
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1909
|
+
maxSpread: number;
|
|
1910
|
+
minSize: DecimalString;
|
|
1911
|
+
rates?: {
|
|
1912
|
+
assetAddress: string;
|
|
1913
|
+
dailyRate: DecimalString;
|
|
1914
|
+
}[] | null | undefined;
|
|
1915
|
+
}, {
|
|
1916
|
+
max_spread: number;
|
|
1917
|
+
min_size: DecimalString;
|
|
1918
|
+
rates?: {
|
|
1919
|
+
assetAddress: string;
|
|
1920
|
+
dailyRate: DecimalString;
|
|
1921
|
+
}[] | null | undefined;
|
|
1922
|
+
}>>>;
|
|
1923
|
+
seconds_delay: z.ZodNumber;
|
|
1924
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1925
|
+
taker_base_fee: z.ZodNullable<z.ZodNumber>;
|
|
1926
|
+
tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1927
|
+
outcome: z.ZodString;
|
|
1928
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
1929
|
+
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
1930
|
+
winner: z.ZodBoolean;
|
|
1931
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1932
|
+
assetId: PositionId | TokenId;
|
|
1933
|
+
tokenId: PositionId | TokenId;
|
|
1934
|
+
outcome: string;
|
|
1935
|
+
winner: boolean;
|
|
1936
|
+
price?: DecimalString | undefined;
|
|
1937
|
+
}, {
|
|
1938
|
+
outcome: string;
|
|
1939
|
+
token_id: PositionId | TokenId;
|
|
1940
|
+
winner: boolean;
|
|
1941
|
+
price?: DecimalString | undefined;
|
|
1942
|
+
}>>>;
|
|
1943
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1944
|
+
acceptingOrders: boolean;
|
|
1945
|
+
acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
|
|
1946
|
+
conditionId: ConditionId;
|
|
1947
|
+
enableOrderBook: boolean | undefined;
|
|
1948
|
+
endDate: IsoDateTimeString | null | undefined;
|
|
1949
|
+
gameStartTime: IsoDateTimeString | null | undefined;
|
|
1950
|
+
is5050Outcome: boolean | undefined;
|
|
1951
|
+
makerBaseFee: number | null;
|
|
1952
|
+
marketSlug: string;
|
|
1953
|
+
minimumOrderSize: DecimalString;
|
|
1954
|
+
minimumTickSize: DecimalString;
|
|
1955
|
+
negRisk: boolean | undefined;
|
|
1956
|
+
negRiskMarketId: string | undefined;
|
|
1957
|
+
negRiskRequestId: string | undefined;
|
|
1958
|
+
notificationsEnabled: boolean | undefined;
|
|
1959
|
+
questionId: QuestionId;
|
|
1960
|
+
secondsDelay: number;
|
|
1961
|
+
takerBaseFee: number | null;
|
|
1962
|
+
active: boolean;
|
|
1963
|
+
closed: boolean;
|
|
1964
|
+
description: string;
|
|
1965
|
+
fpmm: string;
|
|
1966
|
+
icon: string;
|
|
1967
|
+
image: string;
|
|
1968
|
+
question: string;
|
|
1969
|
+
tokens: {
|
|
1970
|
+
assetId: PositionId | TokenId;
|
|
1971
|
+
tokenId: PositionId | TokenId;
|
|
1972
|
+
outcome: string;
|
|
1973
|
+
winner: boolean;
|
|
1974
|
+
price?: DecimalString | undefined;
|
|
1975
|
+
}[];
|
|
1976
|
+
archived?: boolean | undefined;
|
|
1977
|
+
eventSlug?: string | undefined;
|
|
1978
|
+
rewards?: {
|
|
1979
|
+
maxSpread: number;
|
|
1980
|
+
minSize: DecimalString;
|
|
1981
|
+
rates?: {
|
|
1982
|
+
assetAddress: string;
|
|
1983
|
+
dailyRate: DecimalString;
|
|
1984
|
+
}[] | null | undefined;
|
|
1985
|
+
} | undefined;
|
|
1986
|
+
tags?: string[] | null | undefined;
|
|
1987
|
+
}, {
|
|
1988
|
+
accepting_orders: boolean;
|
|
1989
|
+
active: boolean;
|
|
1990
|
+
closed: boolean;
|
|
1991
|
+
condition_id: ConditionId;
|
|
1992
|
+
description: string;
|
|
1993
|
+
fpmm: string;
|
|
1994
|
+
icon: string;
|
|
1995
|
+
image: string;
|
|
1996
|
+
maker_base_fee: number | null;
|
|
1997
|
+
market_slug: string;
|
|
1998
|
+
minimum_order_size: DecimalString;
|
|
1999
|
+
minimum_tick_size: DecimalString;
|
|
2000
|
+
question: string;
|
|
2001
|
+
question_id: QuestionId;
|
|
2002
|
+
seconds_delay: number;
|
|
2003
|
+
taker_base_fee: number | null;
|
|
2004
|
+
tokens: {
|
|
2005
|
+
assetId: PositionId | TokenId;
|
|
2006
|
+
tokenId: PositionId | TokenId;
|
|
2007
|
+
outcome: string;
|
|
2008
|
+
winner: boolean;
|
|
2009
|
+
price?: DecimalString | undefined;
|
|
2010
|
+
}[];
|
|
2011
|
+
accepting_order_timestamp?: IsoDateTimeString | null | undefined;
|
|
2012
|
+
archived?: boolean | undefined;
|
|
2013
|
+
enable_order_book?: boolean | undefined;
|
|
2014
|
+
end_date_iso?: IsoDateTimeString | null | undefined;
|
|
2015
|
+
eventSlug?: string | undefined;
|
|
2016
|
+
game_start_time?: IsoDateTimeString | null | undefined;
|
|
2017
|
+
is_50_50_outcome?: boolean | undefined;
|
|
2018
|
+
neg_risk?: boolean | undefined;
|
|
2019
|
+
neg_risk_market_id?: string | undefined;
|
|
2020
|
+
neg_risk_request_id?: string | undefined;
|
|
2021
|
+
notifications_enabled?: boolean | undefined;
|
|
2022
|
+
rewards?: {
|
|
2023
|
+
maxSpread: number;
|
|
2024
|
+
minSize: DecimalString;
|
|
2025
|
+
rates?: {
|
|
2026
|
+
assetAddress: string;
|
|
2027
|
+
dailyRate: DecimalString;
|
|
2028
|
+
}[] | null | undefined;
|
|
2029
|
+
} | undefined;
|
|
2030
|
+
tags?: string[] | null | undefined;
|
|
2031
|
+
}>>;
|
|
2032
|
+
type MarketNotificationPayload = {
|
|
2033
|
+
acceptingOrders: boolean;
|
|
2034
|
+
acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
|
|
2035
|
+
active: boolean;
|
|
2036
|
+
archived?: boolean;
|
|
2037
|
+
closed: boolean;
|
|
2038
|
+
conditionId: ConditionId;
|
|
2039
|
+
description: string;
|
|
2040
|
+
enableOrderBook: boolean | undefined;
|
|
2041
|
+
endDate: IsoDateTimeString | null | undefined;
|
|
2042
|
+
eventSlug?: string;
|
|
2043
|
+
fpmm: string;
|
|
2044
|
+
gameStartTime: IsoDateTimeString | null | undefined;
|
|
2045
|
+
icon: string;
|
|
2046
|
+
image: string;
|
|
2047
|
+
is5050Outcome: boolean | undefined;
|
|
2048
|
+
makerBaseFee: number | null;
|
|
2049
|
+
marketSlug: string;
|
|
2050
|
+
minimumOrderSize: DecimalString;
|
|
2051
|
+
minimumTickSize: DecimalString;
|
|
2052
|
+
negRisk: boolean | undefined;
|
|
2053
|
+
negRiskMarketId: string | undefined;
|
|
2054
|
+
negRiskRequestId: string | undefined;
|
|
2055
|
+
notificationsEnabled: boolean | undefined;
|
|
2056
|
+
question: string;
|
|
2057
|
+
questionId: QuestionId;
|
|
2058
|
+
rewards?: MarketNotificationRewards;
|
|
2059
|
+
secondsDelay: number;
|
|
2060
|
+
tags?: string[] | null;
|
|
2061
|
+
takerBaseFee: number | null;
|
|
2062
|
+
tokens: MarketNotificationToken[];
|
|
2063
|
+
};
|
|
2064
|
+
/** Payload of a liquidity-reward payout notification. */
|
|
2065
|
+
declare const RewardPayoutNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
2066
|
+
proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
2067
|
+
reward: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2068
|
+
txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
|
|
2069
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2070
|
+
transactionHash: TxHash;
|
|
2071
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2072
|
+
reward: DecimalString;
|
|
2073
|
+
}, {
|
|
2074
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2075
|
+
reward: DecimalString;
|
|
2076
|
+
txnHash: TxHash;
|
|
2077
|
+
}>>;
|
|
2078
|
+
type RewardPayoutNotificationPayload = z.infer<typeof RewardPayoutNotificationPayloadSchema>;
|
|
2079
|
+
/** Payload of a yield payout notification. */
|
|
2080
|
+
declare const YieldPayoutNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
2081
|
+
amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2082
|
+
proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
2083
|
+
txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
|
|
2084
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2085
|
+
transactionHash: TxHash;
|
|
2086
|
+
amount: DecimalString;
|
|
2087
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2088
|
+
}, {
|
|
2089
|
+
amount: DecimalString;
|
|
2090
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2091
|
+
txnHash: TxHash;
|
|
2092
|
+
}>>;
|
|
2093
|
+
type YieldPayoutNotificationPayload = z.infer<typeof YieldPayoutNotificationPayloadSchema>;
|
|
2094
|
+
/**
|
|
2095
|
+
* Payload of a child-comment notification: the reply comment, its author's
|
|
2096
|
+
* profile, and the event or series the thread belongs to.
|
|
2097
|
+
*/
|
|
2098
|
+
declare const ChildCommentNotificationPayloadSchema: z.ZodObject<{
|
|
2099
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2100
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
2101
|
+
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2102
|
+
eventTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2103
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
|
|
2104
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2105
|
+
parentCommentID: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>>>;
|
|
2106
|
+
parentEntityID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2107
|
+
parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof CommentParentEntityType>>>;
|
|
2108
|
+
profile: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
2109
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2110
|
+
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2111
|
+
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2112
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2113
|
+
isMod: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2114
|
+
isCreator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2115
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2116
|
+
baseAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2117
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2118
|
+
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2119
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<ImageOptimizationId, string>>;
|
|
2120
|
+
imageUrlSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2121
|
+
imageUrlOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2122
|
+
imageSizeKbSource: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2123
|
+
imageSizeKbOptimized: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2124
|
+
imageOptimizedComplete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2125
|
+
imageOptimizedLastUpdated: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
2126
|
+
relID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2127
|
+
field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2128
|
+
relname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2129
|
+
}, z.core.$strip>>>;
|
|
2130
|
+
positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2131
|
+
tokenId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
2132
|
+
positionSize: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>>>;
|
|
2133
|
+
}, z.core.$strip>>>>;
|
|
2134
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2135
|
+
wallet: string | null | undefined;
|
|
2136
|
+
name?: string | null | undefined;
|
|
2137
|
+
pseudonym?: string | null | undefined;
|
|
2138
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
2139
|
+
bio?: string | null | undefined;
|
|
2140
|
+
isMod?: boolean | null | undefined;
|
|
2141
|
+
isCreator?: boolean | null | undefined;
|
|
2142
|
+
baseAddress?: string | null | undefined;
|
|
2143
|
+
profileImage?: string | null | undefined;
|
|
2144
|
+
profileImageOptimized?: {
|
|
2145
|
+
id: ImageOptimizationId;
|
|
2146
|
+
imageUrlSource?: string | null | undefined;
|
|
2147
|
+
imageUrlOptimized?: string | null | undefined;
|
|
2148
|
+
imageSizeKbSource?: number | null | undefined;
|
|
2149
|
+
imageSizeKbOptimized?: number | null | undefined;
|
|
2150
|
+
imageOptimizedComplete?: boolean | null | undefined;
|
|
2151
|
+
imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
|
|
2152
|
+
relID?: number | null | undefined;
|
|
2153
|
+
field?: string | null | undefined;
|
|
2154
|
+
relname?: string | null | undefined;
|
|
2155
|
+
} | null | undefined;
|
|
2156
|
+
positions?: {
|
|
2157
|
+
tokenId?: TokenId | null | undefined;
|
|
2158
|
+
positionSize?: BaseUnits | null | undefined;
|
|
2159
|
+
}[] | null | undefined;
|
|
2160
|
+
}, {
|
|
2161
|
+
name?: string | null | undefined;
|
|
2162
|
+
pseudonym?: string | null | undefined;
|
|
2163
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
2164
|
+
bio?: string | null | undefined;
|
|
2165
|
+
isMod?: boolean | null | undefined;
|
|
2166
|
+
isCreator?: boolean | null | undefined;
|
|
2167
|
+
proxyWallet?: string | null | undefined;
|
|
2168
|
+
baseAddress?: string | null | undefined;
|
|
2169
|
+
profileImage?: string | null | undefined;
|
|
2170
|
+
profileImageOptimized?: {
|
|
2171
|
+
id: ImageOptimizationId;
|
|
2172
|
+
imageUrlSource?: string | null | undefined;
|
|
2173
|
+
imageUrlOptimized?: string | null | undefined;
|
|
2174
|
+
imageSizeKbSource?: number | null | undefined;
|
|
2175
|
+
imageSizeKbOptimized?: number | null | undefined;
|
|
2176
|
+
imageOptimizedComplete?: boolean | null | undefined;
|
|
2177
|
+
imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
|
|
2178
|
+
relID?: number | null | undefined;
|
|
2179
|
+
field?: string | null | undefined;
|
|
2180
|
+
relname?: string | null | undefined;
|
|
2181
|
+
} | null | undefined;
|
|
2182
|
+
positions?: {
|
|
2183
|
+
tokenId?: TokenId | null | undefined;
|
|
2184
|
+
positionSize?: BaseUnits | null | undefined;
|
|
2185
|
+
}[] | null | undefined;
|
|
2186
|
+
}>>>>;
|
|
2187
|
+
seriesSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2188
|
+
seriesTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2189
|
+
userAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2190
|
+
}, z.core.$strip>;
|
|
2191
|
+
type ChildCommentNotificationPayload = z.infer<typeof ChildCommentNotificationPayloadSchema>;
|
|
2192
|
+
/**
|
|
2193
|
+
* Payload of an auto-redeem notification: a winning position redeemed
|
|
2194
|
+
* on-chain on the account's behalf.
|
|
2195
|
+
*/
|
|
2196
|
+
declare const AutoRedeemedNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
2197
|
+
amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2198
|
+
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
2199
|
+
image: z.ZodString;
|
|
2200
|
+
marketUrl: z.ZodOptional<z.ZodString>;
|
|
2201
|
+
negRisk: z.ZodBoolean;
|
|
2202
|
+
portfolioUrl: z.ZodOptional<z.ZodString>;
|
|
2203
|
+
position: z.ZodOptional<z.ZodString>;
|
|
2204
|
+
proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
2205
|
+
question: z.ZodString;
|
|
2206
|
+
slug: z.ZodString;
|
|
2207
|
+
txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
|
|
2208
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2209
|
+
marketSlug: string;
|
|
2210
|
+
transactionHash: TxHash;
|
|
2211
|
+
amount: DecimalString;
|
|
2212
|
+
conditionId: ConditionId;
|
|
2213
|
+
image: string;
|
|
2214
|
+
negRisk: boolean;
|
|
2215
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2216
|
+
question: string;
|
|
2217
|
+
marketUrl?: string | undefined;
|
|
2218
|
+
portfolioUrl?: string | undefined;
|
|
2219
|
+
position?: string | undefined;
|
|
2220
|
+
}, {
|
|
2221
|
+
amount: DecimalString;
|
|
2222
|
+
conditionId: ConditionId;
|
|
2223
|
+
image: string;
|
|
2224
|
+
negRisk: boolean;
|
|
2225
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2226
|
+
question: string;
|
|
2227
|
+
slug: string;
|
|
2228
|
+
txnHash: TxHash;
|
|
2229
|
+
marketUrl?: string | undefined;
|
|
2230
|
+
portfolioUrl?: string | undefined;
|
|
2231
|
+
position?: string | undefined;
|
|
2232
|
+
}>>;
|
|
2233
|
+
type AutoRedeemedNotificationPayload = z.infer<typeof AutoRedeemedNotificationPayloadSchema>;
|
|
2234
|
+
/**
|
|
2235
|
+
* Payload of a combo auto-redeem notification: a winning combo position
|
|
2236
|
+
* redeemed on-chain on the account's behalf. `legs` is the combo arity.
|
|
2237
|
+
*/
|
|
2238
|
+
declare const ComboAutoRedeemedNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
|
|
2239
|
+
amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2240
|
+
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
|
|
2241
|
+
legs: z.ZodNumber;
|
|
2242
|
+
outcomeIndex: z.ZodNumber;
|
|
2243
|
+
portfolioUrl: z.ZodOptional<z.ZodString>;
|
|
2244
|
+
positionId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
|
|
2245
|
+
proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
2246
|
+
txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
|
|
2247
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2248
|
+
transactionHash: TxHash;
|
|
2249
|
+
amount: DecimalString;
|
|
2250
|
+
conditionId: ComboConditionId;
|
|
2251
|
+
legs: number;
|
|
2252
|
+
outcomeIndex: number;
|
|
2253
|
+
positionId: PositionId;
|
|
2254
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2255
|
+
portfolioUrl?: string | undefined;
|
|
2256
|
+
}, {
|
|
2257
|
+
amount: DecimalString;
|
|
2258
|
+
conditionId: ComboConditionId;
|
|
2259
|
+
legs: number;
|
|
2260
|
+
outcomeIndex: number;
|
|
2261
|
+
positionId: PositionId;
|
|
2262
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2263
|
+
txnHash: TxHash;
|
|
2264
|
+
portfolioUrl?: string | undefined;
|
|
2265
|
+
}>>;
|
|
2266
|
+
type ComboAutoRedeemedNotificationPayload = z.infer<typeof ComboAutoRedeemedNotificationPayloadSchema>;
|
|
2267
|
+
declare const OrderCancellationNotificationSchema: z.ZodObject<{
|
|
2268
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
2269
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
2270
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
2271
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
2272
|
+
eventSlug: z.ZodOptional<z.ZodString>;
|
|
2273
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2274
|
+
image: z.ZodOptional<z.ZodString>;
|
|
2275
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
2276
|
+
market_slug: z.ZodOptional<z.ZodString>;
|
|
2277
|
+
matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2278
|
+
order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
|
|
2279
|
+
original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2280
|
+
outcome: z.ZodString;
|
|
2281
|
+
outcome_index: z.ZodNumber;
|
|
2282
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2283
|
+
question: z.ZodOptional<z.ZodString>;
|
|
2284
|
+
remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2285
|
+
seriesSlug: z.ZodOptional<z.ZodString>;
|
|
2286
|
+
side: z.ZodEnum<typeof OrderSide>;
|
|
2287
|
+
trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
2288
|
+
transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
|
|
2289
|
+
type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
|
|
2290
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2291
|
+
conditionId: ConditionId;
|
|
2292
|
+
assetId: PositionId | TokenId;
|
|
2293
|
+
tokenId: PositionId | TokenId;
|
|
2294
|
+
marketSlug: string | undefined;
|
|
2295
|
+
matchedSize: DecimalString;
|
|
2296
|
+
orderId: OrderId;
|
|
2297
|
+
orderType: OrderType | undefined;
|
|
2298
|
+
originalSize: DecimalString;
|
|
2299
|
+
outcomeIndex: number;
|
|
2300
|
+
remainingSize: DecimalString;
|
|
2301
|
+
tradeId: string | undefined;
|
|
2302
|
+
transactionHash: TxHash | undefined;
|
|
2303
|
+
outcome: string;
|
|
2304
|
+
price: DecimalString;
|
|
2305
|
+
side: OrderSide;
|
|
2306
|
+
eventSlug?: string | undefined;
|
|
2307
|
+
icon?: string | undefined;
|
|
2308
|
+
image?: string | undefined;
|
|
2309
|
+
question?: string | undefined;
|
|
2310
|
+
seriesSlug?: string | undefined;
|
|
2311
|
+
}, {
|
|
2312
|
+
asset_id: PositionId | TokenId;
|
|
2313
|
+
market: ConditionId;
|
|
2314
|
+
matched_size: DecimalString;
|
|
2315
|
+
order_id: OrderId;
|
|
2316
|
+
original_size: DecimalString;
|
|
2317
|
+
outcome: string;
|
|
2318
|
+
outcome_index: number;
|
|
2319
|
+
price: DecimalString;
|
|
2320
|
+
remaining_size: DecimalString;
|
|
2321
|
+
side: OrderSide;
|
|
2322
|
+
eventSlug?: string | undefined;
|
|
2323
|
+
icon?: string | undefined;
|
|
2324
|
+
image?: string | undefined;
|
|
2325
|
+
market_slug?: string | undefined;
|
|
2326
|
+
question?: string | undefined;
|
|
2327
|
+
seriesSlug?: string | undefined;
|
|
2328
|
+
trade_id?: string | undefined;
|
|
2329
|
+
transaction_hash?: TxHash | undefined;
|
|
2330
|
+
type?: OrderType | undefined;
|
|
2331
|
+
}>>;
|
|
2332
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
2333
|
+
type: z.ZodLiteral<NotificationType.ORDER_CANCELLATION>;
|
|
2334
|
+
}, z.core.$strip>;
|
|
2335
|
+
type OrderCancellationNotification = z.infer<typeof OrderCancellationNotificationSchema>;
|
|
2336
|
+
declare const OrderFillNotificationSchema: z.ZodObject<{
|
|
2337
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
2338
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
2339
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
2340
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
2341
|
+
eventSlug: z.ZodOptional<z.ZodString>;
|
|
2342
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2343
|
+
image: z.ZodOptional<z.ZodString>;
|
|
2344
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
2345
|
+
market_slug: z.ZodOptional<z.ZodString>;
|
|
2346
|
+
matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2347
|
+
order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
|
|
2348
|
+
original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2349
|
+
outcome: z.ZodString;
|
|
2350
|
+
outcome_index: z.ZodNumber;
|
|
2351
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2352
|
+
question: z.ZodOptional<z.ZodString>;
|
|
2353
|
+
remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2354
|
+
seriesSlug: z.ZodOptional<z.ZodString>;
|
|
2355
|
+
side: z.ZodEnum<typeof OrderSide>;
|
|
2356
|
+
trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
2357
|
+
transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
|
|
2358
|
+
type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
|
|
2359
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2360
|
+
conditionId: ConditionId;
|
|
2361
|
+
assetId: PositionId | TokenId;
|
|
2362
|
+
tokenId: PositionId | TokenId;
|
|
2363
|
+
marketSlug: string | undefined;
|
|
2364
|
+
matchedSize: DecimalString;
|
|
2365
|
+
orderId: OrderId;
|
|
2366
|
+
orderType: OrderType | undefined;
|
|
2367
|
+
originalSize: DecimalString;
|
|
2368
|
+
outcomeIndex: number;
|
|
2369
|
+
remainingSize: DecimalString;
|
|
2370
|
+
tradeId: string | undefined;
|
|
2371
|
+
transactionHash: TxHash | undefined;
|
|
2372
|
+
outcome: string;
|
|
2373
|
+
price: DecimalString;
|
|
2374
|
+
side: OrderSide;
|
|
2375
|
+
eventSlug?: string | undefined;
|
|
2376
|
+
icon?: string | undefined;
|
|
2377
|
+
image?: string | undefined;
|
|
2378
|
+
question?: string | undefined;
|
|
2379
|
+
seriesSlug?: string | undefined;
|
|
2380
|
+
}, {
|
|
2381
|
+
asset_id: PositionId | TokenId;
|
|
2382
|
+
market: ConditionId;
|
|
2383
|
+
matched_size: DecimalString;
|
|
2384
|
+
order_id: OrderId;
|
|
2385
|
+
original_size: DecimalString;
|
|
2386
|
+
outcome: string;
|
|
2387
|
+
outcome_index: number;
|
|
2388
|
+
price: DecimalString;
|
|
2389
|
+
remaining_size: DecimalString;
|
|
2390
|
+
side: OrderSide;
|
|
2391
|
+
eventSlug?: string | undefined;
|
|
2392
|
+
icon?: string | undefined;
|
|
2393
|
+
image?: string | undefined;
|
|
2394
|
+
market_slug?: string | undefined;
|
|
2395
|
+
question?: string | undefined;
|
|
2396
|
+
seriesSlug?: string | undefined;
|
|
2397
|
+
trade_id?: string | undefined;
|
|
2398
|
+
transaction_hash?: TxHash | undefined;
|
|
2399
|
+
type?: OrderType | undefined;
|
|
2400
|
+
}>>;
|
|
2401
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
2402
|
+
type: z.ZodLiteral<NotificationType.ORDER_FILL>;
|
|
2403
|
+
}, z.core.$strip>;
|
|
2404
|
+
type OrderFillNotification = z.infer<typeof OrderFillNotificationSchema>;
|
|
2405
|
+
declare const MarketRegisteredNotificationSchema: z.ZodObject<{
|
|
2406
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
2407
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
2408
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
2409
|
+
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>>]>>>;
|
|
2410
|
+
accepting_orders: z.ZodBoolean;
|
|
2411
|
+
active: z.ZodBoolean;
|
|
2412
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
2413
|
+
closed: z.ZodBoolean;
|
|
2414
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
2415
|
+
description: z.ZodString;
|
|
2416
|
+
enable_order_book: z.ZodOptional<z.ZodBoolean>;
|
|
2417
|
+
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>>]>>>;
|
|
2418
|
+
eventSlug: z.ZodOptional<z.ZodString>;
|
|
2419
|
+
fpmm: z.ZodString;
|
|
2420
|
+
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>>]>>>;
|
|
2421
|
+
icon: z.ZodString;
|
|
2422
|
+
image: z.ZodString;
|
|
2423
|
+
is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
|
|
2424
|
+
maker_base_fee: z.ZodNullable<z.ZodNumber>;
|
|
2425
|
+
market_slug: z.ZodString;
|
|
2426
|
+
minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2427
|
+
minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2428
|
+
neg_risk: z.ZodOptional<z.ZodBoolean>;
|
|
2429
|
+
neg_risk_market_id: z.ZodOptional<z.ZodString>;
|
|
2430
|
+
neg_risk_request_id: z.ZodOptional<z.ZodString>;
|
|
2431
|
+
notifications_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2432
|
+
question: z.ZodString;
|
|
2433
|
+
question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
|
|
2434
|
+
rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
2435
|
+
max_spread: z.ZodNumber;
|
|
2436
|
+
min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2437
|
+
rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2438
|
+
asset_address: z.ZodString;
|
|
2439
|
+
rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2440
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2441
|
+
assetAddress: string;
|
|
2442
|
+
dailyRate: DecimalString;
|
|
2443
|
+
}, {
|
|
2444
|
+
asset_address: string;
|
|
2445
|
+
rewards_daily_rate: DecimalString;
|
|
2446
|
+
}>>>>>;
|
|
2447
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2448
|
+
maxSpread: number;
|
|
2449
|
+
minSize: DecimalString;
|
|
2450
|
+
rates?: {
|
|
2451
|
+
assetAddress: string;
|
|
2452
|
+
dailyRate: DecimalString;
|
|
2453
|
+
}[] | null | undefined;
|
|
2454
|
+
}, {
|
|
2455
|
+
max_spread: number;
|
|
2456
|
+
min_size: DecimalString;
|
|
2457
|
+
rates?: {
|
|
2458
|
+
assetAddress: string;
|
|
2459
|
+
dailyRate: DecimalString;
|
|
2460
|
+
}[] | null | undefined;
|
|
2461
|
+
}>>>;
|
|
2462
|
+
seconds_delay: z.ZodNumber;
|
|
2463
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
2464
|
+
taker_base_fee: z.ZodNullable<z.ZodNumber>;
|
|
2465
|
+
tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2466
|
+
outcome: z.ZodString;
|
|
2467
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
2468
|
+
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
2469
|
+
winner: z.ZodBoolean;
|
|
2470
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2471
|
+
assetId: PositionId | TokenId;
|
|
2472
|
+
tokenId: PositionId | TokenId;
|
|
2473
|
+
outcome: string;
|
|
2474
|
+
winner: boolean;
|
|
2475
|
+
price?: DecimalString | undefined;
|
|
2476
|
+
}, {
|
|
2477
|
+
outcome: string;
|
|
2478
|
+
token_id: PositionId | TokenId;
|
|
2479
|
+
winner: boolean;
|
|
2480
|
+
price?: DecimalString | undefined;
|
|
2481
|
+
}>>>;
|
|
2482
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2483
|
+
acceptingOrders: boolean;
|
|
2484
|
+
acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
|
|
2485
|
+
conditionId: ConditionId;
|
|
2486
|
+
enableOrderBook: boolean | undefined;
|
|
2487
|
+
endDate: IsoDateTimeString | null | undefined;
|
|
2488
|
+
gameStartTime: IsoDateTimeString | null | undefined;
|
|
2489
|
+
is5050Outcome: boolean | undefined;
|
|
2490
|
+
makerBaseFee: number | null;
|
|
2491
|
+
marketSlug: string;
|
|
2492
|
+
minimumOrderSize: DecimalString;
|
|
2493
|
+
minimumTickSize: DecimalString;
|
|
2494
|
+
negRisk: boolean | undefined;
|
|
2495
|
+
negRiskMarketId: string | undefined;
|
|
2496
|
+
negRiskRequestId: string | undefined;
|
|
2497
|
+
notificationsEnabled: boolean | undefined;
|
|
2498
|
+
questionId: QuestionId;
|
|
2499
|
+
secondsDelay: number;
|
|
2500
|
+
takerBaseFee: number | null;
|
|
2501
|
+
active: boolean;
|
|
2502
|
+
closed: boolean;
|
|
2503
|
+
description: string;
|
|
2504
|
+
fpmm: string;
|
|
2505
|
+
icon: string;
|
|
2506
|
+
image: string;
|
|
2507
|
+
question: string;
|
|
2508
|
+
tokens: {
|
|
2509
|
+
assetId: PositionId | TokenId;
|
|
2510
|
+
tokenId: PositionId | TokenId;
|
|
2511
|
+
outcome: string;
|
|
2512
|
+
winner: boolean;
|
|
2513
|
+
price?: DecimalString | undefined;
|
|
2514
|
+
}[];
|
|
2515
|
+
archived?: boolean | undefined;
|
|
2516
|
+
eventSlug?: string | undefined;
|
|
2517
|
+
rewards?: {
|
|
2518
|
+
maxSpread: number;
|
|
2519
|
+
minSize: DecimalString;
|
|
2520
|
+
rates?: {
|
|
2521
|
+
assetAddress: string;
|
|
2522
|
+
dailyRate: DecimalString;
|
|
2523
|
+
}[] | null | undefined;
|
|
2524
|
+
} | undefined;
|
|
2525
|
+
tags?: string[] | null | undefined;
|
|
2526
|
+
}, {
|
|
2527
|
+
accepting_orders: boolean;
|
|
2528
|
+
active: boolean;
|
|
2529
|
+
closed: boolean;
|
|
2530
|
+
condition_id: ConditionId;
|
|
2531
|
+
description: string;
|
|
2532
|
+
fpmm: string;
|
|
2533
|
+
icon: string;
|
|
2534
|
+
image: string;
|
|
2535
|
+
maker_base_fee: number | null;
|
|
2536
|
+
market_slug: string;
|
|
2537
|
+
minimum_order_size: DecimalString;
|
|
2538
|
+
minimum_tick_size: DecimalString;
|
|
2539
|
+
question: string;
|
|
2540
|
+
question_id: QuestionId;
|
|
2541
|
+
seconds_delay: number;
|
|
2542
|
+
taker_base_fee: number | null;
|
|
2543
|
+
tokens: {
|
|
2544
|
+
assetId: PositionId | TokenId;
|
|
2545
|
+
tokenId: PositionId | TokenId;
|
|
2546
|
+
outcome: string;
|
|
2547
|
+
winner: boolean;
|
|
2548
|
+
price?: DecimalString | undefined;
|
|
2549
|
+
}[];
|
|
2550
|
+
accepting_order_timestamp?: IsoDateTimeString | null | undefined;
|
|
2551
|
+
archived?: boolean | undefined;
|
|
2552
|
+
enable_order_book?: boolean | undefined;
|
|
2553
|
+
end_date_iso?: IsoDateTimeString | null | undefined;
|
|
2554
|
+
eventSlug?: string | undefined;
|
|
2555
|
+
game_start_time?: IsoDateTimeString | null | undefined;
|
|
2556
|
+
is_50_50_outcome?: boolean | undefined;
|
|
2557
|
+
neg_risk?: boolean | undefined;
|
|
2558
|
+
neg_risk_market_id?: string | undefined;
|
|
2559
|
+
neg_risk_request_id?: string | undefined;
|
|
2560
|
+
notifications_enabled?: boolean | undefined;
|
|
2561
|
+
rewards?: {
|
|
2562
|
+
maxSpread: number;
|
|
2563
|
+
minSize: DecimalString;
|
|
2564
|
+
rates?: {
|
|
2565
|
+
assetAddress: string;
|
|
2566
|
+
dailyRate: DecimalString;
|
|
2567
|
+
}[] | null | undefined;
|
|
2568
|
+
} | undefined;
|
|
2569
|
+
tags?: string[] | null | undefined;
|
|
2570
|
+
}>>;
|
|
2571
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
2572
|
+
type: z.ZodLiteral<NotificationType.MARKET_REGISTERED>;
|
|
2573
|
+
}, z.core.$strip>;
|
|
2574
|
+
type MarketRegisteredNotification = z.infer<typeof MarketRegisteredNotificationSchema>;
|
|
2575
|
+
declare const MarketResolvedNotificationSchema: z.ZodObject<{
|
|
2576
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
2577
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
2578
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
2579
|
+
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>>]>>>;
|
|
2580
|
+
accepting_orders: z.ZodBoolean;
|
|
2581
|
+
active: z.ZodBoolean;
|
|
2582
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
2583
|
+
closed: z.ZodBoolean;
|
|
2584
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
2585
|
+
description: z.ZodString;
|
|
2586
|
+
enable_order_book: z.ZodOptional<z.ZodBoolean>;
|
|
2587
|
+
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>>]>>>;
|
|
2588
|
+
eventSlug: z.ZodOptional<z.ZodString>;
|
|
2589
|
+
fpmm: z.ZodString;
|
|
2590
|
+
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>>]>>>;
|
|
2591
|
+
icon: z.ZodString;
|
|
2592
|
+
image: z.ZodString;
|
|
2593
|
+
is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
|
|
2594
|
+
maker_base_fee: z.ZodNullable<z.ZodNumber>;
|
|
2595
|
+
market_slug: z.ZodString;
|
|
2596
|
+
minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2597
|
+
minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2598
|
+
neg_risk: z.ZodOptional<z.ZodBoolean>;
|
|
2599
|
+
neg_risk_market_id: z.ZodOptional<z.ZodString>;
|
|
2600
|
+
neg_risk_request_id: z.ZodOptional<z.ZodString>;
|
|
2601
|
+
notifications_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2602
|
+
question: z.ZodString;
|
|
2603
|
+
question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
|
|
2604
|
+
rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
2605
|
+
max_spread: z.ZodNumber;
|
|
2606
|
+
min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2607
|
+
rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2608
|
+
asset_address: z.ZodString;
|
|
2609
|
+
rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2610
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2611
|
+
assetAddress: string;
|
|
2612
|
+
dailyRate: DecimalString;
|
|
2613
|
+
}, {
|
|
2614
|
+
asset_address: string;
|
|
2615
|
+
rewards_daily_rate: DecimalString;
|
|
2616
|
+
}>>>>>;
|
|
2617
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2618
|
+
maxSpread: number;
|
|
2619
|
+
minSize: DecimalString;
|
|
2620
|
+
rates?: {
|
|
2621
|
+
assetAddress: string;
|
|
2622
|
+
dailyRate: DecimalString;
|
|
2623
|
+
}[] | null | undefined;
|
|
2624
|
+
}, {
|
|
2625
|
+
max_spread: number;
|
|
2626
|
+
min_size: DecimalString;
|
|
2627
|
+
rates?: {
|
|
2628
|
+
assetAddress: string;
|
|
2629
|
+
dailyRate: DecimalString;
|
|
2630
|
+
}[] | null | undefined;
|
|
2631
|
+
}>>>;
|
|
2632
|
+
seconds_delay: z.ZodNumber;
|
|
2633
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
2634
|
+
taker_base_fee: z.ZodNullable<z.ZodNumber>;
|
|
2635
|
+
tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2636
|
+
outcome: z.ZodString;
|
|
2637
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
2638
|
+
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
2639
|
+
winner: z.ZodBoolean;
|
|
2640
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2641
|
+
assetId: PositionId | TokenId;
|
|
2642
|
+
tokenId: PositionId | TokenId;
|
|
2643
|
+
outcome: string;
|
|
2644
|
+
winner: boolean;
|
|
2645
|
+
price?: DecimalString | undefined;
|
|
2646
|
+
}, {
|
|
2647
|
+
outcome: string;
|
|
2648
|
+
token_id: PositionId | TokenId;
|
|
2649
|
+
winner: boolean;
|
|
2650
|
+
price?: DecimalString | undefined;
|
|
2651
|
+
}>>>;
|
|
2652
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2653
|
+
acceptingOrders: boolean;
|
|
2654
|
+
acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
|
|
2655
|
+
conditionId: ConditionId;
|
|
2656
|
+
enableOrderBook: boolean | undefined;
|
|
2657
|
+
endDate: IsoDateTimeString | null | undefined;
|
|
2658
|
+
gameStartTime: IsoDateTimeString | null | undefined;
|
|
2659
|
+
is5050Outcome: boolean | undefined;
|
|
2660
|
+
makerBaseFee: number | null;
|
|
2661
|
+
marketSlug: string;
|
|
2662
|
+
minimumOrderSize: DecimalString;
|
|
2663
|
+
minimumTickSize: DecimalString;
|
|
2664
|
+
negRisk: boolean | undefined;
|
|
2665
|
+
negRiskMarketId: string | undefined;
|
|
2666
|
+
negRiskRequestId: string | undefined;
|
|
2667
|
+
notificationsEnabled: boolean | undefined;
|
|
2668
|
+
questionId: QuestionId;
|
|
2669
|
+
secondsDelay: number;
|
|
2670
|
+
takerBaseFee: number | null;
|
|
2671
|
+
active: boolean;
|
|
2672
|
+
closed: boolean;
|
|
2673
|
+
description: string;
|
|
2674
|
+
fpmm: string;
|
|
2675
|
+
icon: string;
|
|
2676
|
+
image: string;
|
|
2677
|
+
question: string;
|
|
2678
|
+
tokens: {
|
|
2679
|
+
assetId: PositionId | TokenId;
|
|
2680
|
+
tokenId: PositionId | TokenId;
|
|
2681
|
+
outcome: string;
|
|
2682
|
+
winner: boolean;
|
|
2683
|
+
price?: DecimalString | undefined;
|
|
2684
|
+
}[];
|
|
2685
|
+
archived?: boolean | undefined;
|
|
2686
|
+
eventSlug?: string | undefined;
|
|
2687
|
+
rewards?: {
|
|
2688
|
+
maxSpread: number;
|
|
2689
|
+
minSize: DecimalString;
|
|
2690
|
+
rates?: {
|
|
2691
|
+
assetAddress: string;
|
|
2692
|
+
dailyRate: DecimalString;
|
|
2693
|
+
}[] | null | undefined;
|
|
2694
|
+
} | undefined;
|
|
2695
|
+
tags?: string[] | null | undefined;
|
|
2696
|
+
}, {
|
|
2697
|
+
accepting_orders: boolean;
|
|
2698
|
+
active: boolean;
|
|
2699
|
+
closed: boolean;
|
|
2700
|
+
condition_id: ConditionId;
|
|
2701
|
+
description: string;
|
|
2702
|
+
fpmm: string;
|
|
2703
|
+
icon: string;
|
|
2704
|
+
image: string;
|
|
2705
|
+
maker_base_fee: number | null;
|
|
2706
|
+
market_slug: string;
|
|
2707
|
+
minimum_order_size: DecimalString;
|
|
2708
|
+
minimum_tick_size: DecimalString;
|
|
2709
|
+
question: string;
|
|
2710
|
+
question_id: QuestionId;
|
|
2711
|
+
seconds_delay: number;
|
|
2712
|
+
taker_base_fee: number | null;
|
|
2713
|
+
tokens: {
|
|
2714
|
+
assetId: PositionId | TokenId;
|
|
2715
|
+
tokenId: PositionId | TokenId;
|
|
2716
|
+
outcome: string;
|
|
2717
|
+
winner: boolean;
|
|
2718
|
+
price?: DecimalString | undefined;
|
|
2719
|
+
}[];
|
|
2720
|
+
accepting_order_timestamp?: IsoDateTimeString | null | undefined;
|
|
2721
|
+
archived?: boolean | undefined;
|
|
2722
|
+
enable_order_book?: boolean | undefined;
|
|
2723
|
+
end_date_iso?: IsoDateTimeString | null | undefined;
|
|
2724
|
+
eventSlug?: string | undefined;
|
|
2725
|
+
game_start_time?: IsoDateTimeString | null | undefined;
|
|
2726
|
+
is_50_50_outcome?: boolean | undefined;
|
|
2727
|
+
neg_risk?: boolean | undefined;
|
|
2728
|
+
neg_risk_market_id?: string | undefined;
|
|
2729
|
+
neg_risk_request_id?: string | undefined;
|
|
2730
|
+
notifications_enabled?: boolean | undefined;
|
|
2731
|
+
rewards?: {
|
|
2732
|
+
maxSpread: number;
|
|
2733
|
+
minSize: DecimalString;
|
|
2734
|
+
rates?: {
|
|
2735
|
+
assetAddress: string;
|
|
2736
|
+
dailyRate: DecimalString;
|
|
2737
|
+
}[] | null | undefined;
|
|
2738
|
+
} | undefined;
|
|
2739
|
+
tags?: string[] | null | undefined;
|
|
2740
|
+
}>>;
|
|
2741
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
2742
|
+
type: z.ZodLiteral<NotificationType.MARKET_RESOLVED>;
|
|
2743
|
+
}, z.core.$strip>;
|
|
2744
|
+
type MarketResolvedNotification = z.infer<typeof MarketResolvedNotificationSchema>;
|
|
2745
|
+
declare const RewardPayoutNotificationSchema: z.ZodObject<{
|
|
2746
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
2747
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
2748
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
2749
|
+
proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
2750
|
+
reward: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2751
|
+
txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
|
|
2752
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2753
|
+
transactionHash: TxHash;
|
|
2754
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2755
|
+
reward: DecimalString;
|
|
2756
|
+
}, {
|
|
2757
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2758
|
+
reward: DecimalString;
|
|
2759
|
+
txnHash: TxHash;
|
|
2760
|
+
}>>;
|
|
2761
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
2762
|
+
type: z.ZodLiteral<NotificationType.REWARD_PAYOUT>;
|
|
2763
|
+
}, z.core.$strip>;
|
|
2764
|
+
type RewardPayoutNotification = z.infer<typeof RewardPayoutNotificationSchema>;
|
|
2765
|
+
declare const ChildCommentCreatedNotificationSchema: z.ZodObject<{
|
|
2766
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
2767
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
2768
|
+
payload: z.ZodObject<{
|
|
2769
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2770
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
2771
|
+
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2772
|
+
eventTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2773
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
|
|
2774
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2775
|
+
parentCommentID: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>>>;
|
|
2776
|
+
parentEntityID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2777
|
+
parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof CommentParentEntityType>>>;
|
|
2778
|
+
profile: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
2779
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2780
|
+
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2781
|
+
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2782
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2783
|
+
isMod: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2784
|
+
isCreator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2785
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2786
|
+
baseAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2787
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2788
|
+
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2789
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<ImageOptimizationId, string>>;
|
|
2790
|
+
imageUrlSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2791
|
+
imageUrlOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2792
|
+
imageSizeKbSource: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2793
|
+
imageSizeKbOptimized: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2794
|
+
imageOptimizedComplete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2795
|
+
imageOptimizedLastUpdated: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
2796
|
+
relID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2797
|
+
field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2798
|
+
relname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2799
|
+
}, z.core.$strip>>>;
|
|
2800
|
+
positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2801
|
+
tokenId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
2802
|
+
positionSize: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>>>;
|
|
2803
|
+
}, z.core.$strip>>>>;
|
|
2804
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2805
|
+
wallet: string | null | undefined;
|
|
2806
|
+
name?: string | null | undefined;
|
|
2807
|
+
pseudonym?: string | null | undefined;
|
|
2808
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
2809
|
+
bio?: string | null | undefined;
|
|
2810
|
+
isMod?: boolean | null | undefined;
|
|
2811
|
+
isCreator?: boolean | null | undefined;
|
|
2812
|
+
baseAddress?: string | null | undefined;
|
|
2813
|
+
profileImage?: string | null | undefined;
|
|
2814
|
+
profileImageOptimized?: {
|
|
2815
|
+
id: ImageOptimizationId;
|
|
2816
|
+
imageUrlSource?: string | null | undefined;
|
|
2817
|
+
imageUrlOptimized?: string | null | undefined;
|
|
2818
|
+
imageSizeKbSource?: number | null | undefined;
|
|
2819
|
+
imageSizeKbOptimized?: number | null | undefined;
|
|
2820
|
+
imageOptimizedComplete?: boolean | null | undefined;
|
|
2821
|
+
imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
|
|
2822
|
+
relID?: number | null | undefined;
|
|
2823
|
+
field?: string | null | undefined;
|
|
2824
|
+
relname?: string | null | undefined;
|
|
2825
|
+
} | null | undefined;
|
|
2826
|
+
positions?: {
|
|
2827
|
+
tokenId?: TokenId | null | undefined;
|
|
2828
|
+
positionSize?: BaseUnits | null | undefined;
|
|
2829
|
+
}[] | null | undefined;
|
|
2830
|
+
}, {
|
|
2831
|
+
name?: string | null | undefined;
|
|
2832
|
+
pseudonym?: string | null | undefined;
|
|
2833
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
2834
|
+
bio?: string | null | undefined;
|
|
2835
|
+
isMod?: boolean | null | undefined;
|
|
2836
|
+
isCreator?: boolean | null | undefined;
|
|
2837
|
+
proxyWallet?: string | null | undefined;
|
|
2838
|
+
baseAddress?: string | null | undefined;
|
|
2839
|
+
profileImage?: string | null | undefined;
|
|
2840
|
+
profileImageOptimized?: {
|
|
2841
|
+
id: ImageOptimizationId;
|
|
2842
|
+
imageUrlSource?: string | null | undefined;
|
|
2843
|
+
imageUrlOptimized?: string | null | undefined;
|
|
2844
|
+
imageSizeKbSource?: number | null | undefined;
|
|
2845
|
+
imageSizeKbOptimized?: number | null | undefined;
|
|
2846
|
+
imageOptimizedComplete?: boolean | null | undefined;
|
|
2847
|
+
imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
|
|
2848
|
+
relID?: number | null | undefined;
|
|
2849
|
+
field?: string | null | undefined;
|
|
2850
|
+
relname?: string | null | undefined;
|
|
2851
|
+
} | null | undefined;
|
|
2852
|
+
positions?: {
|
|
2853
|
+
tokenId?: TokenId | null | undefined;
|
|
2854
|
+
positionSize?: BaseUnits | null | undefined;
|
|
2855
|
+
}[] | null | undefined;
|
|
2856
|
+
}>>>>;
|
|
2857
|
+
seriesSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2858
|
+
seriesTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2859
|
+
userAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2860
|
+
}, z.core.$strip>;
|
|
2861
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
2862
|
+
type: z.ZodLiteral<NotificationType.CHILD_COMMENT_CREATED>;
|
|
2863
|
+
}, z.core.$strip>;
|
|
2864
|
+
type ChildCommentCreatedNotification = z.infer<typeof ChildCommentCreatedNotificationSchema>;
|
|
2865
|
+
declare const YieldPayoutNotificationSchema: z.ZodObject<{
|
|
2866
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
2867
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
2868
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
2869
|
+
amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2870
|
+
proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
2871
|
+
txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
|
|
2872
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2873
|
+
transactionHash: TxHash;
|
|
2874
|
+
amount: DecimalString;
|
|
2875
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2876
|
+
}, {
|
|
2877
|
+
amount: DecimalString;
|
|
2878
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2879
|
+
txnHash: TxHash;
|
|
2880
|
+
}>>;
|
|
2881
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
2882
|
+
type: z.ZodLiteral<NotificationType.YIELD_PAYOUT>;
|
|
2883
|
+
}, z.core.$strip>;
|
|
2884
|
+
type YieldPayoutNotification = z.infer<typeof YieldPayoutNotificationSchema>;
|
|
2885
|
+
declare const OrderFillFailedNotificationSchema: z.ZodObject<{
|
|
2886
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
2887
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
2888
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
2889
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
2890
|
+
eventSlug: z.ZodOptional<z.ZodString>;
|
|
2891
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2892
|
+
image: z.ZodOptional<z.ZodString>;
|
|
2893
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
2894
|
+
market_slug: z.ZodOptional<z.ZodString>;
|
|
2895
|
+
matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2896
|
+
order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
|
|
2897
|
+
original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2898
|
+
outcome: z.ZodString;
|
|
2899
|
+
outcome_index: z.ZodNumber;
|
|
2900
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2901
|
+
question: z.ZodOptional<z.ZodString>;
|
|
2902
|
+
remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2903
|
+
seriesSlug: z.ZodOptional<z.ZodString>;
|
|
2904
|
+
side: z.ZodEnum<typeof OrderSide>;
|
|
2905
|
+
trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
2906
|
+
transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
|
|
2907
|
+
type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
|
|
2908
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2909
|
+
conditionId: ConditionId;
|
|
2910
|
+
assetId: PositionId | TokenId;
|
|
2911
|
+
tokenId: PositionId | TokenId;
|
|
2912
|
+
marketSlug: string | undefined;
|
|
2913
|
+
matchedSize: DecimalString;
|
|
2914
|
+
orderId: OrderId;
|
|
2915
|
+
orderType: OrderType | undefined;
|
|
2916
|
+
originalSize: DecimalString;
|
|
2917
|
+
outcomeIndex: number;
|
|
2918
|
+
remainingSize: DecimalString;
|
|
2919
|
+
tradeId: string | undefined;
|
|
2920
|
+
transactionHash: TxHash | undefined;
|
|
2921
|
+
outcome: string;
|
|
2922
|
+
price: DecimalString;
|
|
2923
|
+
side: OrderSide;
|
|
2924
|
+
eventSlug?: string | undefined;
|
|
2925
|
+
icon?: string | undefined;
|
|
2926
|
+
image?: string | undefined;
|
|
2927
|
+
question?: string | undefined;
|
|
2928
|
+
seriesSlug?: string | undefined;
|
|
2929
|
+
}, {
|
|
2930
|
+
asset_id: PositionId | TokenId;
|
|
2931
|
+
market: ConditionId;
|
|
2932
|
+
matched_size: DecimalString;
|
|
2933
|
+
order_id: OrderId;
|
|
2934
|
+
original_size: DecimalString;
|
|
2935
|
+
outcome: string;
|
|
2936
|
+
outcome_index: number;
|
|
2937
|
+
price: DecimalString;
|
|
2938
|
+
remaining_size: DecimalString;
|
|
2939
|
+
side: OrderSide;
|
|
2940
|
+
eventSlug?: string | undefined;
|
|
2941
|
+
icon?: string | undefined;
|
|
2942
|
+
image?: string | undefined;
|
|
2943
|
+
market_slug?: string | undefined;
|
|
2944
|
+
question?: string | undefined;
|
|
2945
|
+
seriesSlug?: string | undefined;
|
|
2946
|
+
trade_id?: string | undefined;
|
|
2947
|
+
transaction_hash?: TxHash | undefined;
|
|
2948
|
+
type?: OrderType | undefined;
|
|
2949
|
+
}>>;
|
|
2950
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
2951
|
+
type: z.ZodLiteral<NotificationType.ORDER_FILL_FAILED>;
|
|
2952
|
+
}, z.core.$strip>;
|
|
2953
|
+
type OrderFillFailedNotification = z.infer<typeof OrderFillFailedNotificationSchema>;
|
|
2954
|
+
declare const AutoRedeemedNotificationSchema: z.ZodObject<{
|
|
2955
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
2956
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
2957
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
2958
|
+
amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2959
|
+
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
2960
|
+
image: z.ZodString;
|
|
2961
|
+
marketUrl: z.ZodOptional<z.ZodString>;
|
|
2962
|
+
negRisk: z.ZodBoolean;
|
|
2963
|
+
portfolioUrl: z.ZodOptional<z.ZodString>;
|
|
2964
|
+
position: z.ZodOptional<z.ZodString>;
|
|
2965
|
+
proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
2966
|
+
question: z.ZodString;
|
|
2967
|
+
slug: z.ZodString;
|
|
2968
|
+
txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
|
|
2969
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2970
|
+
marketSlug: string;
|
|
2971
|
+
transactionHash: TxHash;
|
|
2972
|
+
amount: DecimalString;
|
|
2973
|
+
conditionId: ConditionId;
|
|
2974
|
+
image: string;
|
|
2975
|
+
negRisk: boolean;
|
|
2976
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2977
|
+
question: string;
|
|
2978
|
+
marketUrl?: string | undefined;
|
|
2979
|
+
portfolioUrl?: string | undefined;
|
|
2980
|
+
position?: string | undefined;
|
|
2981
|
+
}, {
|
|
2982
|
+
amount: DecimalString;
|
|
2983
|
+
conditionId: ConditionId;
|
|
2984
|
+
image: string;
|
|
2985
|
+
negRisk: boolean;
|
|
2986
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
2987
|
+
question: string;
|
|
2988
|
+
slug: string;
|
|
2989
|
+
txnHash: TxHash;
|
|
2990
|
+
marketUrl?: string | undefined;
|
|
2991
|
+
portfolioUrl?: string | undefined;
|
|
2992
|
+
position?: string | undefined;
|
|
2993
|
+
}>>;
|
|
2994
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
2995
|
+
type: z.ZodLiteral<NotificationType.AUTO_REDEEMED>;
|
|
2996
|
+
}, z.core.$strip>;
|
|
2997
|
+
type AutoRedeemedNotification = z.infer<typeof AutoRedeemedNotificationSchema>;
|
|
2998
|
+
declare const ComboAutoRedeemedNotificationSchema: z.ZodObject<{
|
|
2999
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
3000
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
3001
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
3002
|
+
amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
3003
|
+
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
|
|
3004
|
+
legs: z.ZodNumber;
|
|
3005
|
+
outcomeIndex: z.ZodNumber;
|
|
3006
|
+
portfolioUrl: z.ZodOptional<z.ZodString>;
|
|
3007
|
+
positionId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
|
|
3008
|
+
proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
3009
|
+
txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
|
|
3010
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3011
|
+
transactionHash: TxHash;
|
|
3012
|
+
amount: DecimalString;
|
|
3013
|
+
conditionId: ComboConditionId;
|
|
3014
|
+
legs: number;
|
|
3015
|
+
outcomeIndex: number;
|
|
3016
|
+
positionId: PositionId;
|
|
3017
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
3018
|
+
portfolioUrl?: string | undefined;
|
|
3019
|
+
}, {
|
|
3020
|
+
amount: DecimalString;
|
|
3021
|
+
conditionId: ComboConditionId;
|
|
3022
|
+
legs: number;
|
|
3023
|
+
outcomeIndex: number;
|
|
3024
|
+
positionId: PositionId;
|
|
3025
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
3026
|
+
txnHash: TxHash;
|
|
3027
|
+
portfolioUrl?: string | undefined;
|
|
3028
|
+
}>>;
|
|
3029
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
3030
|
+
type: z.ZodLiteral<NotificationType.COMBO_AUTO_REDEEMED>;
|
|
3031
|
+
}, z.core.$strip>;
|
|
3032
|
+
type ComboAutoRedeemedNotification = z.infer<typeof ComboAutoRedeemedNotificationSchema>;
|
|
3033
|
+
/**
|
|
3034
|
+
* Account notification. Discriminated on `type`: narrowing on it also
|
|
3035
|
+
* narrows `payload` to the shape carried by that notification kind.
|
|
3036
|
+
*/
|
|
3037
|
+
declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3038
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
3039
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
3040
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
3041
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
3042
|
+
eventSlug: z.ZodOptional<z.ZodString>;
|
|
3043
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
3044
|
+
image: z.ZodOptional<z.ZodString>;
|
|
3045
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
3046
|
+
market_slug: z.ZodOptional<z.ZodString>;
|
|
3047
|
+
matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3048
|
+
order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
|
|
3049
|
+
original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3050
|
+
outcome: z.ZodString;
|
|
3051
|
+
outcome_index: z.ZodNumber;
|
|
3052
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3053
|
+
question: z.ZodOptional<z.ZodString>;
|
|
3054
|
+
remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3055
|
+
seriesSlug: z.ZodOptional<z.ZodString>;
|
|
3056
|
+
side: z.ZodEnum<typeof OrderSide>;
|
|
3057
|
+
trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
3058
|
+
transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
|
|
3059
|
+
type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
|
|
3060
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3061
|
+
conditionId: ConditionId;
|
|
3062
|
+
assetId: PositionId | TokenId;
|
|
3063
|
+
tokenId: PositionId | TokenId;
|
|
3064
|
+
marketSlug: string | undefined;
|
|
3065
|
+
matchedSize: DecimalString;
|
|
3066
|
+
orderId: OrderId;
|
|
3067
|
+
orderType: OrderType | undefined;
|
|
3068
|
+
originalSize: DecimalString;
|
|
3069
|
+
outcomeIndex: number;
|
|
3070
|
+
remainingSize: DecimalString;
|
|
3071
|
+
tradeId: string | undefined;
|
|
3072
|
+
transactionHash: TxHash | undefined;
|
|
3073
|
+
outcome: string;
|
|
3074
|
+
price: DecimalString;
|
|
3075
|
+
side: OrderSide;
|
|
3076
|
+
eventSlug?: string | undefined;
|
|
3077
|
+
icon?: string | undefined;
|
|
3078
|
+
image?: string | undefined;
|
|
3079
|
+
question?: string | undefined;
|
|
3080
|
+
seriesSlug?: string | undefined;
|
|
3081
|
+
}, {
|
|
3082
|
+
asset_id: PositionId | TokenId;
|
|
3083
|
+
market: ConditionId;
|
|
3084
|
+
matched_size: DecimalString;
|
|
3085
|
+
order_id: OrderId;
|
|
3086
|
+
original_size: DecimalString;
|
|
3087
|
+
outcome: string;
|
|
3088
|
+
outcome_index: number;
|
|
3089
|
+
price: DecimalString;
|
|
3090
|
+
remaining_size: DecimalString;
|
|
3091
|
+
side: OrderSide;
|
|
3092
|
+
eventSlug?: string | undefined;
|
|
3093
|
+
icon?: string | undefined;
|
|
3094
|
+
image?: string | undefined;
|
|
3095
|
+
market_slug?: string | undefined;
|
|
3096
|
+
question?: string | undefined;
|
|
3097
|
+
seriesSlug?: string | undefined;
|
|
3098
|
+
trade_id?: string | undefined;
|
|
3099
|
+
transaction_hash?: TxHash | undefined;
|
|
3100
|
+
type?: OrderType | undefined;
|
|
3101
|
+
}>>;
|
|
3102
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
3103
|
+
type: z.ZodLiteral<NotificationType.ORDER_CANCELLATION>;
|
|
3104
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3105
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
3106
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
3107
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
3108
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
3109
|
+
eventSlug: z.ZodOptional<z.ZodString>;
|
|
3110
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
3111
|
+
image: z.ZodOptional<z.ZodString>;
|
|
3112
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
3113
|
+
market_slug: z.ZodOptional<z.ZodString>;
|
|
3114
|
+
matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3115
|
+
order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
|
|
3116
|
+
original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3117
|
+
outcome: z.ZodString;
|
|
3118
|
+
outcome_index: z.ZodNumber;
|
|
3119
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3120
|
+
question: z.ZodOptional<z.ZodString>;
|
|
3121
|
+
remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3122
|
+
seriesSlug: z.ZodOptional<z.ZodString>;
|
|
3123
|
+
side: z.ZodEnum<typeof OrderSide>;
|
|
3124
|
+
trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
3125
|
+
transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
|
|
3126
|
+
type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
|
|
3127
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3128
|
+
conditionId: ConditionId;
|
|
3129
|
+
assetId: PositionId | TokenId;
|
|
3130
|
+
tokenId: PositionId | TokenId;
|
|
3131
|
+
marketSlug: string | undefined;
|
|
3132
|
+
matchedSize: DecimalString;
|
|
3133
|
+
orderId: OrderId;
|
|
3134
|
+
orderType: OrderType | undefined;
|
|
3135
|
+
originalSize: DecimalString;
|
|
3136
|
+
outcomeIndex: number;
|
|
3137
|
+
remainingSize: DecimalString;
|
|
3138
|
+
tradeId: string | undefined;
|
|
3139
|
+
transactionHash: TxHash | undefined;
|
|
3140
|
+
outcome: string;
|
|
3141
|
+
price: DecimalString;
|
|
3142
|
+
side: OrderSide;
|
|
3143
|
+
eventSlug?: string | undefined;
|
|
3144
|
+
icon?: string | undefined;
|
|
3145
|
+
image?: string | undefined;
|
|
3146
|
+
question?: string | undefined;
|
|
3147
|
+
seriesSlug?: string | undefined;
|
|
3148
|
+
}, {
|
|
3149
|
+
asset_id: PositionId | TokenId;
|
|
3150
|
+
market: ConditionId;
|
|
3151
|
+
matched_size: DecimalString;
|
|
3152
|
+
order_id: OrderId;
|
|
3153
|
+
original_size: DecimalString;
|
|
3154
|
+
outcome: string;
|
|
3155
|
+
outcome_index: number;
|
|
3156
|
+
price: DecimalString;
|
|
3157
|
+
remaining_size: DecimalString;
|
|
3158
|
+
side: OrderSide;
|
|
3159
|
+
eventSlug?: string | undefined;
|
|
3160
|
+
icon?: string | undefined;
|
|
3161
|
+
image?: string | undefined;
|
|
3162
|
+
market_slug?: string | undefined;
|
|
3163
|
+
question?: string | undefined;
|
|
3164
|
+
seriesSlug?: string | undefined;
|
|
3165
|
+
trade_id?: string | undefined;
|
|
3166
|
+
transaction_hash?: TxHash | undefined;
|
|
3167
|
+
type?: OrderType | undefined;
|
|
3168
|
+
}>>;
|
|
3169
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
3170
|
+
type: z.ZodLiteral<NotificationType.ORDER_FILL>;
|
|
3171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3172
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
3173
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
3174
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
3175
|
+
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>>]>>>;
|
|
3176
|
+
accepting_orders: z.ZodBoolean;
|
|
3177
|
+
active: z.ZodBoolean;
|
|
3178
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
3179
|
+
closed: z.ZodBoolean;
|
|
3180
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
3181
|
+
description: z.ZodString;
|
|
3182
|
+
enable_order_book: z.ZodOptional<z.ZodBoolean>;
|
|
3183
|
+
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>>]>>>;
|
|
3184
|
+
eventSlug: z.ZodOptional<z.ZodString>;
|
|
3185
|
+
fpmm: z.ZodString;
|
|
3186
|
+
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>>]>>>;
|
|
3187
|
+
icon: z.ZodString;
|
|
3188
|
+
image: z.ZodString;
|
|
3189
|
+
is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
|
|
3190
|
+
maker_base_fee: z.ZodNullable<z.ZodNumber>;
|
|
3191
|
+
market_slug: z.ZodString;
|
|
3192
|
+
minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
3193
|
+
minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
3194
|
+
neg_risk: z.ZodOptional<z.ZodBoolean>;
|
|
3195
|
+
neg_risk_market_id: z.ZodOptional<z.ZodString>;
|
|
3196
|
+
neg_risk_request_id: z.ZodOptional<z.ZodString>;
|
|
3197
|
+
notifications_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3198
|
+
question: z.ZodString;
|
|
3199
|
+
question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
|
|
3200
|
+
rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
3201
|
+
max_spread: z.ZodNumber;
|
|
3202
|
+
min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
3203
|
+
rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
3204
|
+
asset_address: z.ZodString;
|
|
3205
|
+
rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
3206
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3207
|
+
assetAddress: string;
|
|
3208
|
+
dailyRate: DecimalString;
|
|
3209
|
+
}, {
|
|
3210
|
+
asset_address: string;
|
|
3211
|
+
rewards_daily_rate: DecimalString;
|
|
3212
|
+
}>>>>>;
|
|
3213
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3214
|
+
maxSpread: number;
|
|
3215
|
+
minSize: DecimalString;
|
|
3216
|
+
rates?: {
|
|
3217
|
+
assetAddress: string;
|
|
3218
|
+
dailyRate: DecimalString;
|
|
3219
|
+
}[] | null | undefined;
|
|
3220
|
+
}, {
|
|
3221
|
+
max_spread: number;
|
|
3222
|
+
min_size: DecimalString;
|
|
3223
|
+
rates?: {
|
|
3224
|
+
assetAddress: string;
|
|
3225
|
+
dailyRate: DecimalString;
|
|
3226
|
+
}[] | null | undefined;
|
|
3227
|
+
}>>>;
|
|
3228
|
+
seconds_delay: z.ZodNumber;
|
|
3229
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
3230
|
+
taker_base_fee: z.ZodNullable<z.ZodNumber>;
|
|
3231
|
+
tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
3232
|
+
outcome: z.ZodString;
|
|
3233
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
3234
|
+
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
3235
|
+
winner: z.ZodBoolean;
|
|
3236
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3237
|
+
assetId: PositionId | TokenId;
|
|
3238
|
+
tokenId: PositionId | TokenId;
|
|
3239
|
+
outcome: string;
|
|
3240
|
+
winner: boolean;
|
|
3241
|
+
price?: DecimalString | undefined;
|
|
3242
|
+
}, {
|
|
3243
|
+
outcome: string;
|
|
3244
|
+
token_id: PositionId | TokenId;
|
|
3245
|
+
winner: boolean;
|
|
3246
|
+
price?: DecimalString | undefined;
|
|
3247
|
+
}>>>;
|
|
3248
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3249
|
+
acceptingOrders: boolean;
|
|
3250
|
+
acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
|
|
3251
|
+
conditionId: ConditionId;
|
|
3252
|
+
enableOrderBook: boolean | undefined;
|
|
3253
|
+
endDate: IsoDateTimeString | null | undefined;
|
|
3254
|
+
gameStartTime: IsoDateTimeString | null | undefined;
|
|
3255
|
+
is5050Outcome: boolean | undefined;
|
|
3256
|
+
makerBaseFee: number | null;
|
|
3257
|
+
marketSlug: string;
|
|
3258
|
+
minimumOrderSize: DecimalString;
|
|
3259
|
+
minimumTickSize: DecimalString;
|
|
3260
|
+
negRisk: boolean | undefined;
|
|
3261
|
+
negRiskMarketId: string | undefined;
|
|
3262
|
+
negRiskRequestId: string | undefined;
|
|
3263
|
+
notificationsEnabled: boolean | undefined;
|
|
3264
|
+
questionId: QuestionId;
|
|
3265
|
+
secondsDelay: number;
|
|
3266
|
+
takerBaseFee: number | null;
|
|
3267
|
+
active: boolean;
|
|
3268
|
+
closed: boolean;
|
|
3269
|
+
description: string;
|
|
3270
|
+
fpmm: string;
|
|
3271
|
+
icon: string;
|
|
3272
|
+
image: string;
|
|
3273
|
+
question: string;
|
|
3274
|
+
tokens: {
|
|
3275
|
+
assetId: PositionId | TokenId;
|
|
3276
|
+
tokenId: PositionId | TokenId;
|
|
3277
|
+
outcome: string;
|
|
3278
|
+
winner: boolean;
|
|
3279
|
+
price?: DecimalString | undefined;
|
|
3280
|
+
}[];
|
|
3281
|
+
archived?: boolean | undefined;
|
|
3282
|
+
eventSlug?: string | undefined;
|
|
3283
|
+
rewards?: {
|
|
3284
|
+
maxSpread: number;
|
|
3285
|
+
minSize: DecimalString;
|
|
3286
|
+
rates?: {
|
|
3287
|
+
assetAddress: string;
|
|
3288
|
+
dailyRate: DecimalString;
|
|
3289
|
+
}[] | null | undefined;
|
|
3290
|
+
} | undefined;
|
|
3291
|
+
tags?: string[] | null | undefined;
|
|
3292
|
+
}, {
|
|
3293
|
+
accepting_orders: boolean;
|
|
3294
|
+
active: boolean;
|
|
3295
|
+
closed: boolean;
|
|
3296
|
+
condition_id: ConditionId;
|
|
3297
|
+
description: string;
|
|
3298
|
+
fpmm: string;
|
|
3299
|
+
icon: string;
|
|
3300
|
+
image: string;
|
|
3301
|
+
maker_base_fee: number | null;
|
|
3302
|
+
market_slug: string;
|
|
3303
|
+
minimum_order_size: DecimalString;
|
|
3304
|
+
minimum_tick_size: DecimalString;
|
|
3305
|
+
question: string;
|
|
3306
|
+
question_id: QuestionId;
|
|
3307
|
+
seconds_delay: number;
|
|
3308
|
+
taker_base_fee: number | null;
|
|
3309
|
+
tokens: {
|
|
3310
|
+
assetId: PositionId | TokenId;
|
|
3311
|
+
tokenId: PositionId | TokenId;
|
|
3312
|
+
outcome: string;
|
|
3313
|
+
winner: boolean;
|
|
3314
|
+
price?: DecimalString | undefined;
|
|
3315
|
+
}[];
|
|
3316
|
+
accepting_order_timestamp?: IsoDateTimeString | null | undefined;
|
|
3317
|
+
archived?: boolean | undefined;
|
|
3318
|
+
enable_order_book?: boolean | undefined;
|
|
3319
|
+
end_date_iso?: IsoDateTimeString | null | undefined;
|
|
3320
|
+
eventSlug?: string | undefined;
|
|
3321
|
+
game_start_time?: IsoDateTimeString | null | undefined;
|
|
3322
|
+
is_50_50_outcome?: boolean | undefined;
|
|
3323
|
+
neg_risk?: boolean | undefined;
|
|
3324
|
+
neg_risk_market_id?: string | undefined;
|
|
3325
|
+
neg_risk_request_id?: string | undefined;
|
|
3326
|
+
notifications_enabled?: boolean | undefined;
|
|
3327
|
+
rewards?: {
|
|
3328
|
+
maxSpread: number;
|
|
3329
|
+
minSize: DecimalString;
|
|
3330
|
+
rates?: {
|
|
3331
|
+
assetAddress: string;
|
|
3332
|
+
dailyRate: DecimalString;
|
|
3333
|
+
}[] | null | undefined;
|
|
3334
|
+
} | undefined;
|
|
3335
|
+
tags?: string[] | null | undefined;
|
|
3336
|
+
}>>;
|
|
3337
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
3338
|
+
type: z.ZodLiteral<NotificationType.MARKET_REGISTERED>;
|
|
3339
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3340
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
3341
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
3342
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
3343
|
+
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>>]>>>;
|
|
3344
|
+
accepting_orders: z.ZodBoolean;
|
|
3345
|
+
active: z.ZodBoolean;
|
|
3346
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
3347
|
+
closed: z.ZodBoolean;
|
|
3348
|
+
condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
3349
|
+
description: z.ZodString;
|
|
3350
|
+
enable_order_book: z.ZodOptional<z.ZodBoolean>;
|
|
3351
|
+
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>>]>>>;
|
|
3352
|
+
eventSlug: z.ZodOptional<z.ZodString>;
|
|
3353
|
+
fpmm: z.ZodString;
|
|
3354
|
+
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>>]>>>;
|
|
3355
|
+
icon: z.ZodString;
|
|
3356
|
+
image: z.ZodString;
|
|
3357
|
+
is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
|
|
3358
|
+
maker_base_fee: z.ZodNullable<z.ZodNumber>;
|
|
3359
|
+
market_slug: z.ZodString;
|
|
3360
|
+
minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
3361
|
+
minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
3362
|
+
neg_risk: z.ZodOptional<z.ZodBoolean>;
|
|
3363
|
+
neg_risk_market_id: z.ZodOptional<z.ZodString>;
|
|
3364
|
+
neg_risk_request_id: z.ZodOptional<z.ZodString>;
|
|
3365
|
+
notifications_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3366
|
+
question: z.ZodString;
|
|
3367
|
+
question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
|
|
3368
|
+
rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
3369
|
+
max_spread: z.ZodNumber;
|
|
3370
|
+
min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
3371
|
+
rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
3372
|
+
asset_address: z.ZodString;
|
|
3373
|
+
rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
3374
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3375
|
+
assetAddress: string;
|
|
3376
|
+
dailyRate: DecimalString;
|
|
3377
|
+
}, {
|
|
3378
|
+
asset_address: string;
|
|
3379
|
+
rewards_daily_rate: DecimalString;
|
|
3380
|
+
}>>>>>;
|
|
3381
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3382
|
+
maxSpread: number;
|
|
3383
|
+
minSize: DecimalString;
|
|
3384
|
+
rates?: {
|
|
3385
|
+
assetAddress: string;
|
|
3386
|
+
dailyRate: DecimalString;
|
|
3387
|
+
}[] | null | undefined;
|
|
3388
|
+
}, {
|
|
3389
|
+
max_spread: number;
|
|
3390
|
+
min_size: DecimalString;
|
|
3391
|
+
rates?: {
|
|
3392
|
+
assetAddress: string;
|
|
3393
|
+
dailyRate: DecimalString;
|
|
3394
|
+
}[] | null | undefined;
|
|
3395
|
+
}>>>;
|
|
3396
|
+
seconds_delay: z.ZodNumber;
|
|
3397
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
3398
|
+
taker_base_fee: z.ZodNullable<z.ZodNumber>;
|
|
3399
|
+
tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
3400
|
+
outcome: z.ZodString;
|
|
3401
|
+
price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
3402
|
+
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
3403
|
+
winner: z.ZodBoolean;
|
|
3404
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3405
|
+
assetId: PositionId | TokenId;
|
|
3406
|
+
tokenId: PositionId | TokenId;
|
|
3407
|
+
outcome: string;
|
|
3408
|
+
winner: boolean;
|
|
3409
|
+
price?: DecimalString | undefined;
|
|
3410
|
+
}, {
|
|
3411
|
+
outcome: string;
|
|
3412
|
+
token_id: PositionId | TokenId;
|
|
3413
|
+
winner: boolean;
|
|
3414
|
+
price?: DecimalString | undefined;
|
|
3415
|
+
}>>>;
|
|
3416
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3417
|
+
acceptingOrders: boolean;
|
|
3418
|
+
acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
|
|
3419
|
+
conditionId: ConditionId;
|
|
3420
|
+
enableOrderBook: boolean | undefined;
|
|
3421
|
+
endDate: IsoDateTimeString | null | undefined;
|
|
3422
|
+
gameStartTime: IsoDateTimeString | null | undefined;
|
|
3423
|
+
is5050Outcome: boolean | undefined;
|
|
3424
|
+
makerBaseFee: number | null;
|
|
3425
|
+
marketSlug: string;
|
|
3426
|
+
minimumOrderSize: DecimalString;
|
|
3427
|
+
minimumTickSize: DecimalString;
|
|
3428
|
+
negRisk: boolean | undefined;
|
|
3429
|
+
negRiskMarketId: string | undefined;
|
|
3430
|
+
negRiskRequestId: string | undefined;
|
|
3431
|
+
notificationsEnabled: boolean | undefined;
|
|
3432
|
+
questionId: QuestionId;
|
|
3433
|
+
secondsDelay: number;
|
|
3434
|
+
takerBaseFee: number | null;
|
|
3435
|
+
active: boolean;
|
|
3436
|
+
closed: boolean;
|
|
3437
|
+
description: string;
|
|
3438
|
+
fpmm: string;
|
|
3439
|
+
icon: string;
|
|
3440
|
+
image: string;
|
|
3441
|
+
question: string;
|
|
3442
|
+
tokens: {
|
|
3443
|
+
assetId: PositionId | TokenId;
|
|
3444
|
+
tokenId: PositionId | TokenId;
|
|
3445
|
+
outcome: string;
|
|
3446
|
+
winner: boolean;
|
|
3447
|
+
price?: DecimalString | undefined;
|
|
3448
|
+
}[];
|
|
3449
|
+
archived?: boolean | undefined;
|
|
3450
|
+
eventSlug?: string | undefined;
|
|
3451
|
+
rewards?: {
|
|
3452
|
+
maxSpread: number;
|
|
3453
|
+
minSize: DecimalString;
|
|
3454
|
+
rates?: {
|
|
3455
|
+
assetAddress: string;
|
|
3456
|
+
dailyRate: DecimalString;
|
|
3457
|
+
}[] | null | undefined;
|
|
3458
|
+
} | undefined;
|
|
3459
|
+
tags?: string[] | null | undefined;
|
|
3460
|
+
}, {
|
|
3461
|
+
accepting_orders: boolean;
|
|
3462
|
+
active: boolean;
|
|
3463
|
+
closed: boolean;
|
|
3464
|
+
condition_id: ConditionId;
|
|
3465
|
+
description: string;
|
|
3466
|
+
fpmm: string;
|
|
3467
|
+
icon: string;
|
|
3468
|
+
image: string;
|
|
3469
|
+
maker_base_fee: number | null;
|
|
3470
|
+
market_slug: string;
|
|
3471
|
+
minimum_order_size: DecimalString;
|
|
3472
|
+
minimum_tick_size: DecimalString;
|
|
3473
|
+
question: string;
|
|
3474
|
+
question_id: QuestionId;
|
|
3475
|
+
seconds_delay: number;
|
|
3476
|
+
taker_base_fee: number | null;
|
|
3477
|
+
tokens: {
|
|
3478
|
+
assetId: PositionId | TokenId;
|
|
3479
|
+
tokenId: PositionId | TokenId;
|
|
3480
|
+
outcome: string;
|
|
3481
|
+
winner: boolean;
|
|
3482
|
+
price?: DecimalString | undefined;
|
|
3483
|
+
}[];
|
|
3484
|
+
accepting_order_timestamp?: IsoDateTimeString | null | undefined;
|
|
3485
|
+
archived?: boolean | undefined;
|
|
3486
|
+
enable_order_book?: boolean | undefined;
|
|
3487
|
+
end_date_iso?: IsoDateTimeString | null | undefined;
|
|
3488
|
+
eventSlug?: string | undefined;
|
|
3489
|
+
game_start_time?: IsoDateTimeString | null | undefined;
|
|
3490
|
+
is_50_50_outcome?: boolean | undefined;
|
|
3491
|
+
neg_risk?: boolean | undefined;
|
|
3492
|
+
neg_risk_market_id?: string | undefined;
|
|
3493
|
+
neg_risk_request_id?: string | undefined;
|
|
3494
|
+
notifications_enabled?: boolean | undefined;
|
|
3495
|
+
rewards?: {
|
|
3496
|
+
maxSpread: number;
|
|
3497
|
+
minSize: DecimalString;
|
|
3498
|
+
rates?: {
|
|
3499
|
+
assetAddress: string;
|
|
3500
|
+
dailyRate: DecimalString;
|
|
3501
|
+
}[] | null | undefined;
|
|
3502
|
+
} | undefined;
|
|
3503
|
+
tags?: string[] | null | undefined;
|
|
3504
|
+
}>>;
|
|
3505
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
3506
|
+
type: z.ZodLiteral<NotificationType.MARKET_RESOLVED>;
|
|
3507
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3508
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
3509
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
3510
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
3511
|
+
proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
3512
|
+
reward: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
3513
|
+
txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
|
|
3514
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3515
|
+
transactionHash: TxHash;
|
|
3516
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
3517
|
+
reward: DecimalString;
|
|
3518
|
+
}, {
|
|
3519
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
3520
|
+
reward: DecimalString;
|
|
3521
|
+
txnHash: TxHash;
|
|
3522
|
+
}>>;
|
|
3523
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
3524
|
+
type: z.ZodLiteral<NotificationType.REWARD_PAYOUT>;
|
|
3525
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3526
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
3527
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
3528
|
+
payload: z.ZodObject<{
|
|
3529
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3530
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
3531
|
+
eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3532
|
+
eventTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3533
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
|
|
3534
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3535
|
+
parentCommentID: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>>>;
|
|
3536
|
+
parentEntityID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3537
|
+
parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof CommentParentEntityType>>>;
|
|
3538
|
+
profile: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
3539
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3540
|
+
pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3541
|
+
displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3542
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3543
|
+
isMod: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3544
|
+
isCreator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3545
|
+
proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3546
|
+
baseAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3547
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3548
|
+
profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3549
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<ImageOptimizationId, string>>;
|
|
3550
|
+
imageUrlSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3551
|
+
imageUrlOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3552
|
+
imageSizeKbSource: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3553
|
+
imageSizeKbOptimized: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3554
|
+
imageOptimizedComplete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3555
|
+
imageOptimizedLastUpdated: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
|
|
3556
|
+
relID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3557
|
+
field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3558
|
+
relname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3559
|
+
}, z.core.$strip>>>;
|
|
3560
|
+
positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3561
|
+
tokenId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
|
|
3562
|
+
positionSize: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>>>;
|
|
3563
|
+
}, z.core.$strip>>>>;
|
|
3564
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3565
|
+
wallet: string | null | undefined;
|
|
3566
|
+
name?: string | null | undefined;
|
|
3567
|
+
pseudonym?: string | null | undefined;
|
|
3568
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
3569
|
+
bio?: string | null | undefined;
|
|
3570
|
+
isMod?: boolean | null | undefined;
|
|
3571
|
+
isCreator?: boolean | null | undefined;
|
|
3572
|
+
baseAddress?: string | null | undefined;
|
|
3573
|
+
profileImage?: string | null | undefined;
|
|
3574
|
+
profileImageOptimized?: {
|
|
3575
|
+
id: ImageOptimizationId;
|
|
3576
|
+
imageUrlSource?: string | null | undefined;
|
|
3577
|
+
imageUrlOptimized?: string | null | undefined;
|
|
3578
|
+
imageSizeKbSource?: number | null | undefined;
|
|
3579
|
+
imageSizeKbOptimized?: number | null | undefined;
|
|
3580
|
+
imageOptimizedComplete?: boolean | null | undefined;
|
|
3581
|
+
imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
|
|
3582
|
+
relID?: number | null | undefined;
|
|
3583
|
+
field?: string | null | undefined;
|
|
3584
|
+
relname?: string | null | undefined;
|
|
3585
|
+
} | null | undefined;
|
|
3586
|
+
positions?: {
|
|
3587
|
+
tokenId?: TokenId | null | undefined;
|
|
3588
|
+
positionSize?: BaseUnits | null | undefined;
|
|
3589
|
+
}[] | null | undefined;
|
|
3590
|
+
}, {
|
|
3591
|
+
name?: string | null | undefined;
|
|
3592
|
+
pseudonym?: string | null | undefined;
|
|
3593
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
3594
|
+
bio?: string | null | undefined;
|
|
3595
|
+
isMod?: boolean | null | undefined;
|
|
3596
|
+
isCreator?: boolean | null | undefined;
|
|
3597
|
+
proxyWallet?: string | null | undefined;
|
|
3598
|
+
baseAddress?: string | null | undefined;
|
|
3599
|
+
profileImage?: string | null | undefined;
|
|
3600
|
+
profileImageOptimized?: {
|
|
3601
|
+
id: ImageOptimizationId;
|
|
3602
|
+
imageUrlSource?: string | null | undefined;
|
|
3603
|
+
imageUrlOptimized?: string | null | undefined;
|
|
3604
|
+
imageSizeKbSource?: number | null | undefined;
|
|
3605
|
+
imageSizeKbOptimized?: number | null | undefined;
|
|
3606
|
+
imageOptimizedComplete?: boolean | null | undefined;
|
|
3607
|
+
imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
|
|
3608
|
+
relID?: number | null | undefined;
|
|
3609
|
+
field?: string | null | undefined;
|
|
3610
|
+
relname?: string | null | undefined;
|
|
3611
|
+
} | null | undefined;
|
|
3612
|
+
positions?: {
|
|
3613
|
+
tokenId?: TokenId | null | undefined;
|
|
3614
|
+
positionSize?: BaseUnits | null | undefined;
|
|
3615
|
+
}[] | null | undefined;
|
|
3616
|
+
}>>>>;
|
|
3617
|
+
seriesSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3618
|
+
seriesTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3619
|
+
userAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3620
|
+
}, z.core.$strip>;
|
|
3621
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
3622
|
+
type: z.ZodLiteral<NotificationType.CHILD_COMMENT_CREATED>;
|
|
3623
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3624
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
3625
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
3626
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
3627
|
+
amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
3628
|
+
proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
3629
|
+
txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
|
|
3630
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3631
|
+
transactionHash: TxHash;
|
|
3632
|
+
amount: DecimalString;
|
|
3633
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
3634
|
+
}, {
|
|
3635
|
+
amount: DecimalString;
|
|
3636
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
3637
|
+
txnHash: TxHash;
|
|
3638
|
+
}>>;
|
|
3639
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
3640
|
+
type: z.ZodLiteral<NotificationType.YIELD_PAYOUT>;
|
|
3641
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3642
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
3643
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
3644
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
3645
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
3646
|
+
eventSlug: z.ZodOptional<z.ZodString>;
|
|
3647
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
3648
|
+
image: z.ZodOptional<z.ZodString>;
|
|
3649
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
3650
|
+
market_slug: z.ZodOptional<z.ZodString>;
|
|
3651
|
+
matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3652
|
+
order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
|
|
3653
|
+
original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3654
|
+
outcome: z.ZodString;
|
|
3655
|
+
outcome_index: z.ZodNumber;
|
|
3656
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3657
|
+
question: z.ZodOptional<z.ZodString>;
|
|
3658
|
+
remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3659
|
+
seriesSlug: z.ZodOptional<z.ZodString>;
|
|
3660
|
+
side: z.ZodEnum<typeof OrderSide>;
|
|
3661
|
+
trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
3662
|
+
transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
|
|
3663
|
+
type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
|
|
3664
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3665
|
+
conditionId: ConditionId;
|
|
3666
|
+
assetId: PositionId | TokenId;
|
|
3667
|
+
tokenId: PositionId | 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: 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
|
+
asset_id: PositionId | TokenId;
|
|
3687
|
+
market: ConditionId;
|
|
3688
|
+
matched_size: DecimalString;
|
|
3689
|
+
order_id: OrderId;
|
|
3690
|
+
original_size: DecimalString;
|
|
3691
|
+
outcome: string;
|
|
3692
|
+
outcome_index: number;
|
|
3693
|
+
price: DecimalString;
|
|
3694
|
+
remaining_size: DecimalString;
|
|
3695
|
+
side: OrderSide;
|
|
3696
|
+
eventSlug?: string | undefined;
|
|
3697
|
+
icon?: string | undefined;
|
|
3698
|
+
image?: string | undefined;
|
|
3699
|
+
market_slug?: string | undefined;
|
|
3700
|
+
question?: string | undefined;
|
|
3701
|
+
seriesSlug?: string | undefined;
|
|
3702
|
+
trade_id?: string | undefined;
|
|
3703
|
+
transaction_hash?: TxHash | undefined;
|
|
3704
|
+
type?: OrderType | undefined;
|
|
3705
|
+
}>>;
|
|
3706
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
3707
|
+
type: z.ZodLiteral<NotificationType.ORDER_FILL_FAILED>;
|
|
3708
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3709
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
3710
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
3711
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
3712
|
+
amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
3713
|
+
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
3714
|
+
image: z.ZodString;
|
|
3715
|
+
marketUrl: z.ZodOptional<z.ZodString>;
|
|
3716
|
+
negRisk: z.ZodBoolean;
|
|
3717
|
+
portfolioUrl: z.ZodOptional<z.ZodString>;
|
|
3718
|
+
position: z.ZodOptional<z.ZodString>;
|
|
3719
|
+
proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
3720
|
+
question: z.ZodString;
|
|
3721
|
+
slug: z.ZodString;
|
|
3722
|
+
txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
|
|
3723
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3724
|
+
marketSlug: string;
|
|
3725
|
+
transactionHash: TxHash;
|
|
3726
|
+
amount: DecimalString;
|
|
3727
|
+
conditionId: ConditionId;
|
|
3728
|
+
image: string;
|
|
3729
|
+
negRisk: boolean;
|
|
3730
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
3731
|
+
question: string;
|
|
3732
|
+
marketUrl?: string | undefined;
|
|
3733
|
+
portfolioUrl?: string | undefined;
|
|
3734
|
+
position?: string | undefined;
|
|
3735
|
+
}, {
|
|
3736
|
+
amount: DecimalString;
|
|
3737
|
+
conditionId: ConditionId;
|
|
3738
|
+
image: string;
|
|
3739
|
+
negRisk: boolean;
|
|
3740
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
3741
|
+
question: string;
|
|
3742
|
+
slug: string;
|
|
3743
|
+
txnHash: TxHash;
|
|
3744
|
+
marketUrl?: string | undefined;
|
|
3745
|
+
portfolioUrl?: string | undefined;
|
|
3746
|
+
position?: string | undefined;
|
|
3747
|
+
}>>;
|
|
3748
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
3749
|
+
type: z.ZodLiteral<NotificationType.AUTO_REDEEMED>;
|
|
3750
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3751
|
+
id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
|
|
3752
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
|
|
3753
|
+
payload: z.ZodPipe<z.ZodObject<{
|
|
3754
|
+
amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
3755
|
+
conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
|
|
3756
|
+
legs: z.ZodNumber;
|
|
3757
|
+
outcomeIndex: z.ZodNumber;
|
|
3758
|
+
portfolioUrl: z.ZodOptional<z.ZodString>;
|
|
3759
|
+
positionId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
|
|
3760
|
+
proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
3761
|
+
txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
|
|
3762
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3763
|
+
transactionHash: TxHash;
|
|
3764
|
+
amount: DecimalString;
|
|
3765
|
+
conditionId: ComboConditionId;
|
|
3766
|
+
legs: number;
|
|
3767
|
+
outcomeIndex: number;
|
|
3768
|
+
positionId: PositionId;
|
|
3769
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
3770
|
+
portfolioUrl?: string | undefined;
|
|
3771
|
+
}, {
|
|
3772
|
+
amount: DecimalString;
|
|
3773
|
+
conditionId: ComboConditionId;
|
|
3774
|
+
legs: number;
|
|
3775
|
+
outcomeIndex: number;
|
|
3776
|
+
positionId: PositionId;
|
|
3777
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
3778
|
+
txnHash: TxHash;
|
|
3779
|
+
portfolioUrl?: string | undefined;
|
|
3780
|
+
}>>;
|
|
3781
|
+
timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
|
|
3782
|
+
type: z.ZodLiteral<NotificationType.COMBO_AUTO_REDEEMED>;
|
|
3783
|
+
}, z.core.$strip>], "type">;
|
|
3784
|
+
type Notification = z.infer<typeof NotificationSchema>;
|
|
3785
|
+
/**
|
|
3786
|
+
* Notifications with types unknown to this SDK version are omitted so newly
|
|
3787
|
+
* introduced kinds cannot fail the feed; recognized types validate strictly.
|
|
3788
|
+
*/
|
|
3789
|
+
declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<({
|
|
3790
|
+
id: NotificationId;
|
|
3791
|
+
owner: ApiKey;
|
|
3792
|
+
payload: {
|
|
3793
|
+
conditionId: ConditionId;
|
|
3794
|
+
assetId: PositionId | TokenId;
|
|
3795
|
+
tokenId: PositionId | TokenId;
|
|
3796
|
+
marketSlug: string | undefined;
|
|
3797
|
+
matchedSize: DecimalString;
|
|
3798
|
+
orderId: OrderId;
|
|
3799
|
+
orderType: OrderType | undefined;
|
|
3800
|
+
originalSize: DecimalString;
|
|
3801
|
+
outcomeIndex: number;
|
|
3802
|
+
remainingSize: DecimalString;
|
|
3803
|
+
tradeId: string | undefined;
|
|
3804
|
+
transactionHash: TxHash | undefined;
|
|
3805
|
+
outcome: string;
|
|
3806
|
+
price: DecimalString;
|
|
3807
|
+
side: OrderSide;
|
|
3808
|
+
eventSlug?: string | undefined;
|
|
3809
|
+
icon?: string | undefined;
|
|
3810
|
+
image?: string | undefined;
|
|
3811
|
+
question?: string | undefined;
|
|
3812
|
+
seriesSlug?: string | undefined;
|
|
3813
|
+
};
|
|
3814
|
+
timestamp: EpochMilliseconds;
|
|
3815
|
+
type: NotificationType.ORDER_CANCELLATION;
|
|
3816
|
+
} | {
|
|
3817
|
+
id: NotificationId;
|
|
3818
|
+
owner: ApiKey;
|
|
3819
|
+
payload: {
|
|
3820
|
+
conditionId: ConditionId;
|
|
3821
|
+
assetId: PositionId | TokenId;
|
|
3822
|
+
tokenId: PositionId | TokenId;
|
|
3823
|
+
marketSlug: string | undefined;
|
|
3824
|
+
matchedSize: DecimalString;
|
|
3825
|
+
orderId: OrderId;
|
|
3826
|
+
orderType: OrderType | undefined;
|
|
3827
|
+
originalSize: DecimalString;
|
|
3828
|
+
outcomeIndex: number;
|
|
3829
|
+
remainingSize: DecimalString;
|
|
3830
|
+
tradeId: string | undefined;
|
|
3831
|
+
transactionHash: TxHash | undefined;
|
|
3832
|
+
outcome: string;
|
|
3833
|
+
price: DecimalString;
|
|
3834
|
+
side: OrderSide;
|
|
3835
|
+
eventSlug?: string | undefined;
|
|
3836
|
+
icon?: string | undefined;
|
|
3837
|
+
image?: string | undefined;
|
|
3838
|
+
question?: string | undefined;
|
|
3839
|
+
seriesSlug?: string | undefined;
|
|
3840
|
+
};
|
|
3841
|
+
timestamp: EpochMilliseconds;
|
|
3842
|
+
type: NotificationType.ORDER_FILL;
|
|
3843
|
+
} | {
|
|
3844
|
+
id: NotificationId;
|
|
3845
|
+
owner: ApiKey;
|
|
3846
|
+
payload: {
|
|
3847
|
+
acceptingOrders: boolean;
|
|
3848
|
+
acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
|
|
3849
|
+
conditionId: ConditionId;
|
|
3850
|
+
enableOrderBook: boolean | undefined;
|
|
3851
|
+
endDate: IsoDateTimeString | null | undefined;
|
|
3852
|
+
gameStartTime: IsoDateTimeString | null | undefined;
|
|
3853
|
+
is5050Outcome: boolean | undefined;
|
|
3854
|
+
makerBaseFee: number | null;
|
|
3855
|
+
marketSlug: string;
|
|
3856
|
+
minimumOrderSize: DecimalString;
|
|
3857
|
+
minimumTickSize: DecimalString;
|
|
3858
|
+
negRisk: boolean | undefined;
|
|
3859
|
+
negRiskMarketId: string | undefined;
|
|
3860
|
+
negRiskRequestId: string | undefined;
|
|
3861
|
+
notificationsEnabled: boolean | undefined;
|
|
3862
|
+
questionId: QuestionId;
|
|
3863
|
+
secondsDelay: number;
|
|
3864
|
+
takerBaseFee: number | null;
|
|
3865
|
+
active: boolean;
|
|
3866
|
+
closed: boolean;
|
|
3867
|
+
description: string;
|
|
3868
|
+
fpmm: string;
|
|
3869
|
+
icon: string;
|
|
3870
|
+
image: string;
|
|
3871
|
+
question: string;
|
|
3872
|
+
tokens: {
|
|
3873
|
+
assetId: PositionId | TokenId;
|
|
3874
|
+
tokenId: PositionId | TokenId;
|
|
3875
|
+
outcome: string;
|
|
3876
|
+
winner: boolean;
|
|
3877
|
+
price?: DecimalString | undefined;
|
|
3878
|
+
}[];
|
|
3879
|
+
archived?: boolean | undefined;
|
|
3880
|
+
eventSlug?: string | undefined;
|
|
3881
|
+
rewards?: {
|
|
3882
|
+
maxSpread: number;
|
|
3883
|
+
minSize: DecimalString;
|
|
3884
|
+
rates?: {
|
|
3885
|
+
assetAddress: string;
|
|
3886
|
+
dailyRate: DecimalString;
|
|
3887
|
+
}[] | null | undefined;
|
|
3888
|
+
} | undefined;
|
|
3889
|
+
tags?: string[] | null | undefined;
|
|
3890
|
+
};
|
|
3891
|
+
timestamp: EpochMilliseconds;
|
|
3892
|
+
type: NotificationType.MARKET_REGISTERED;
|
|
3893
|
+
} | {
|
|
3894
|
+
id: NotificationId;
|
|
3895
|
+
owner: ApiKey;
|
|
3896
|
+
payload: {
|
|
3897
|
+
acceptingOrders: boolean;
|
|
3898
|
+
acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
|
|
3899
|
+
conditionId: ConditionId;
|
|
3900
|
+
enableOrderBook: boolean | undefined;
|
|
3901
|
+
endDate: IsoDateTimeString | null | undefined;
|
|
3902
|
+
gameStartTime: IsoDateTimeString | null | undefined;
|
|
3903
|
+
is5050Outcome: boolean | undefined;
|
|
3904
|
+
makerBaseFee: number | null;
|
|
3905
|
+
marketSlug: string;
|
|
3906
|
+
minimumOrderSize: DecimalString;
|
|
3907
|
+
minimumTickSize: DecimalString;
|
|
3908
|
+
negRisk: boolean | undefined;
|
|
3909
|
+
negRiskMarketId: string | undefined;
|
|
3910
|
+
negRiskRequestId: string | undefined;
|
|
3911
|
+
notificationsEnabled: boolean | undefined;
|
|
3912
|
+
questionId: QuestionId;
|
|
3913
|
+
secondsDelay: number;
|
|
3914
|
+
takerBaseFee: number | null;
|
|
3915
|
+
active: boolean;
|
|
3916
|
+
closed: boolean;
|
|
3917
|
+
description: string;
|
|
3918
|
+
fpmm: string;
|
|
3919
|
+
icon: string;
|
|
3920
|
+
image: string;
|
|
3921
|
+
question: string;
|
|
3922
|
+
tokens: {
|
|
3923
|
+
assetId: PositionId | TokenId;
|
|
3924
|
+
tokenId: PositionId | TokenId;
|
|
3925
|
+
outcome: string;
|
|
3926
|
+
winner: boolean;
|
|
3927
|
+
price?: DecimalString | undefined;
|
|
3928
|
+
}[];
|
|
3929
|
+
archived?: boolean | undefined;
|
|
3930
|
+
eventSlug?: string | undefined;
|
|
3931
|
+
rewards?: {
|
|
3932
|
+
maxSpread: number;
|
|
3933
|
+
minSize: DecimalString;
|
|
3934
|
+
rates?: {
|
|
3935
|
+
assetAddress: string;
|
|
3936
|
+
dailyRate: DecimalString;
|
|
3937
|
+
}[] | null | undefined;
|
|
3938
|
+
} | undefined;
|
|
3939
|
+
tags?: string[] | null | undefined;
|
|
3940
|
+
};
|
|
3941
|
+
timestamp: EpochMilliseconds;
|
|
3942
|
+
type: NotificationType.MARKET_RESOLVED;
|
|
3943
|
+
} | {
|
|
3944
|
+
id: NotificationId;
|
|
3945
|
+
owner: ApiKey;
|
|
3946
|
+
payload: {
|
|
3947
|
+
transactionHash: TxHash;
|
|
3948
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
3949
|
+
reward: DecimalString;
|
|
3950
|
+
};
|
|
3951
|
+
timestamp: EpochMilliseconds;
|
|
3952
|
+
type: NotificationType.REWARD_PAYOUT;
|
|
3953
|
+
} | {
|
|
3954
|
+
id: NotificationId;
|
|
3955
|
+
owner: ApiKey;
|
|
3956
|
+
payload: {
|
|
3957
|
+
id: CommentId;
|
|
3958
|
+
body?: string | null | undefined;
|
|
3959
|
+
createdAt?: IsoDateTimeString | null | undefined;
|
|
3960
|
+
eventSlug?: string | null | undefined;
|
|
3961
|
+
eventTitle?: string | null | undefined;
|
|
3962
|
+
image?: string | null | undefined;
|
|
3963
|
+
parentCommentID?: CommentId | null | undefined;
|
|
3964
|
+
parentEntityID?: number | null | undefined;
|
|
3965
|
+
parentEntityType?: CommentParentEntityType | null | undefined;
|
|
3966
|
+
profile?: {
|
|
3967
|
+
wallet: string | null | undefined;
|
|
3968
|
+
name?: string | null | undefined;
|
|
3969
|
+
pseudonym?: string | null | undefined;
|
|
3970
|
+
displayUsernamePublic?: boolean | null | undefined;
|
|
3971
|
+
bio?: string | null | undefined;
|
|
3972
|
+
isMod?: boolean | null | undefined;
|
|
3973
|
+
isCreator?: boolean | null | undefined;
|
|
3974
|
+
baseAddress?: string | null | undefined;
|
|
3975
|
+
profileImage?: string | null | undefined;
|
|
3976
|
+
profileImageOptimized?: {
|
|
3977
|
+
id: ImageOptimizationId;
|
|
3978
|
+
imageUrlSource?: string | null | undefined;
|
|
3979
|
+
imageUrlOptimized?: string | null | undefined;
|
|
3980
|
+
imageSizeKbSource?: number | null | undefined;
|
|
3981
|
+
imageSizeKbOptimized?: number | null | undefined;
|
|
3982
|
+
imageOptimizedComplete?: boolean | null | undefined;
|
|
3983
|
+
imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
|
|
3984
|
+
relID?: number | null | undefined;
|
|
3985
|
+
field?: string | null | undefined;
|
|
3986
|
+
relname?: string | null | undefined;
|
|
3987
|
+
} | null | undefined;
|
|
3988
|
+
positions?: {
|
|
3989
|
+
tokenId?: TokenId | null | undefined;
|
|
3990
|
+
positionSize?: BaseUnits | null | undefined;
|
|
3991
|
+
}[] | null | undefined;
|
|
3992
|
+
} | null | undefined;
|
|
3993
|
+
seriesSlug?: string | null | undefined;
|
|
3994
|
+
seriesTitle?: string | null | undefined;
|
|
3995
|
+
userAddress?: string | null | undefined;
|
|
3996
|
+
};
|
|
3997
|
+
timestamp: EpochMilliseconds;
|
|
3998
|
+
type: NotificationType.CHILD_COMMENT_CREATED;
|
|
3999
|
+
} | {
|
|
4000
|
+
id: NotificationId;
|
|
4001
|
+
owner: ApiKey;
|
|
4002
|
+
payload: {
|
|
4003
|
+
transactionHash: TxHash;
|
|
4004
|
+
amount: DecimalString;
|
|
4005
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
4006
|
+
};
|
|
4007
|
+
timestamp: EpochMilliseconds;
|
|
4008
|
+
type: NotificationType.YIELD_PAYOUT;
|
|
4009
|
+
} | {
|
|
4010
|
+
id: NotificationId;
|
|
4011
|
+
owner: ApiKey;
|
|
4012
|
+
payload: {
|
|
4013
|
+
conditionId: ConditionId;
|
|
4014
|
+
assetId: PositionId | TokenId;
|
|
4015
|
+
tokenId: PositionId | TokenId;
|
|
4016
|
+
marketSlug: string | undefined;
|
|
4017
|
+
matchedSize: DecimalString;
|
|
4018
|
+
orderId: OrderId;
|
|
4019
|
+
orderType: OrderType | undefined;
|
|
4020
|
+
originalSize: DecimalString;
|
|
4021
|
+
outcomeIndex: number;
|
|
4022
|
+
remainingSize: DecimalString;
|
|
4023
|
+
tradeId: string | undefined;
|
|
4024
|
+
transactionHash: TxHash | undefined;
|
|
4025
|
+
outcome: string;
|
|
4026
|
+
price: DecimalString;
|
|
4027
|
+
side: OrderSide;
|
|
4028
|
+
eventSlug?: string | undefined;
|
|
4029
|
+
icon?: string | undefined;
|
|
4030
|
+
image?: string | undefined;
|
|
4031
|
+
question?: string | undefined;
|
|
4032
|
+
seriesSlug?: string | undefined;
|
|
4033
|
+
};
|
|
4034
|
+
timestamp: EpochMilliseconds;
|
|
4035
|
+
type: NotificationType.ORDER_FILL_FAILED;
|
|
4036
|
+
} | {
|
|
4037
|
+
id: NotificationId;
|
|
4038
|
+
owner: ApiKey;
|
|
4039
|
+
payload: {
|
|
4040
|
+
marketSlug: string;
|
|
4041
|
+
transactionHash: TxHash;
|
|
4042
|
+
amount: DecimalString;
|
|
4043
|
+
conditionId: ConditionId;
|
|
4044
|
+
image: string;
|
|
4045
|
+
negRisk: boolean;
|
|
4046
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
4047
|
+
question: string;
|
|
4048
|
+
marketUrl?: string | undefined;
|
|
4049
|
+
portfolioUrl?: string | undefined;
|
|
4050
|
+
position?: string | undefined;
|
|
4051
|
+
};
|
|
4052
|
+
timestamp: EpochMilliseconds;
|
|
4053
|
+
type: NotificationType.AUTO_REDEEMED;
|
|
4054
|
+
} | {
|
|
4055
|
+
id: NotificationId;
|
|
4056
|
+
owner: ApiKey;
|
|
4057
|
+
payload: {
|
|
4058
|
+
transactionHash: TxHash;
|
|
4059
|
+
amount: DecimalString;
|
|
4060
|
+
conditionId: ComboConditionId;
|
|
4061
|
+
legs: number;
|
|
4062
|
+
outcomeIndex: number;
|
|
4063
|
+
positionId: PositionId;
|
|
4064
|
+
proxyWallet: _polymarket_types.EvmAddress;
|
|
4065
|
+
portfolioUrl?: string | undefined;
|
|
4066
|
+
};
|
|
4067
|
+
timestamp: EpochMilliseconds;
|
|
4068
|
+
type: NotificationType.COMBO_AUTO_REDEEMED;
|
|
4069
|
+
})[], unknown[]>>;
|
|
4070
|
+
type NotificationsResponse = z.infer<typeof NotificationsResponseSchema>;
|
|
4071
|
+
|
|
4072
|
+
type OrderBookLevel = {
|
|
4073
|
+
price: DecimalString;
|
|
4074
|
+
size: DecimalString;
|
|
4075
|
+
};
|
|
4076
|
+
/** SHA-1 hash of the serialized order book summary, encoded as bare lowercase hex. */
|
|
4077
|
+
type OrderBookHash = string & {
|
|
4078
|
+
readonly __tag: 'OrderBookHash';
|
|
4079
|
+
};
|
|
4080
|
+
type OrderBook = {
|
|
4081
|
+
/** Exchange asset identifier for a CTF token or Polymarket V2 position. */
|
|
4082
|
+
assetId: TokenId | PositionId;
|
|
4083
|
+
/** @deprecated Use `assetId`. */
|
|
4084
|
+
tokenId: TokenId | PositionId;
|
|
4085
|
+
/** Condition ID for the market this book belongs to. */
|
|
4086
|
+
conditionId: ConditionId;
|
|
4087
|
+
timestamp?: EpochMilliseconds | null;
|
|
4088
|
+
/** Bid levels in ascending price order, lowest bid first. */
|
|
4089
|
+
bids: OrderBookLevel[];
|
|
4090
|
+
/** Ask levels in descending price order, highest ask first. */
|
|
4091
|
+
asks: OrderBookLevel[];
|
|
4092
|
+
minOrderSize: DecimalString;
|
|
4093
|
+
tickSize: TickSizeValue;
|
|
4094
|
+
negRisk: boolean;
|
|
4095
|
+
lastTradePrice?: DecimalString | null;
|
|
4096
|
+
hash: OrderBookHash;
|
|
4097
|
+
};
|
|
4098
|
+
declare const OrderBookLevelSchema: z.ZodObject<{
|
|
4099
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4100
|
+
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4101
|
+
}, z.core.$strip>;
|
|
4102
|
+
declare const OrderBookHashSchema: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
4103
|
+
declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
|
|
4104
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
4105
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
4106
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
4107
|
+
bids: z.ZodArray<z.ZodObject<{
|
|
4108
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4109
|
+
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4110
|
+
}, z.core.$strip>>;
|
|
4111
|
+
asks: z.ZodArray<z.ZodObject<{
|
|
4112
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4113
|
+
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4114
|
+
}, z.core.$strip>>;
|
|
4115
|
+
min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4116
|
+
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>]>>;
|
|
4117
|
+
neg_risk: z.ZodBoolean;
|
|
4118
|
+
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
4119
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
4120
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
4121
|
+
conditionId: ConditionId;
|
|
4122
|
+
assetId: PositionId | TokenId;
|
|
4123
|
+
tokenId: PositionId | TokenId;
|
|
4124
|
+
minOrderSize: DecimalString;
|
|
4125
|
+
tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
4126
|
+
negRisk: boolean;
|
|
4127
|
+
lastTradePrice: DecimalString | null | undefined;
|
|
4128
|
+
bids: {
|
|
4129
|
+
price: DecimalString;
|
|
4130
|
+
size: DecimalString;
|
|
4131
|
+
}[];
|
|
4132
|
+
asks: {
|
|
4133
|
+
price: DecimalString;
|
|
4134
|
+
size: DecimalString;
|
|
4135
|
+
}[];
|
|
4136
|
+
hash: OrderBookHash;
|
|
4137
|
+
timestamp?: EpochMilliseconds | null | undefined;
|
|
4138
|
+
}, {
|
|
4139
|
+
market: ConditionId;
|
|
4140
|
+
asset_id: PositionId | TokenId;
|
|
4141
|
+
bids: {
|
|
4142
|
+
price: DecimalString;
|
|
4143
|
+
size: DecimalString;
|
|
4144
|
+
}[];
|
|
4145
|
+
asks: {
|
|
4146
|
+
price: DecimalString;
|
|
4147
|
+
size: DecimalString;
|
|
4148
|
+
}[];
|
|
4149
|
+
min_order_size: DecimalString;
|
|
4150
|
+
tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
4151
|
+
neg_risk: boolean;
|
|
4152
|
+
hash: OrderBookHash;
|
|
4153
|
+
timestamp?: EpochMilliseconds | null | undefined;
|
|
4154
|
+
last_trade_price?: DecimalString | null | undefined;
|
|
4155
|
+
}>>;
|
|
4156
|
+
declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
4157
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
4158
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
4159
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
4160
|
+
bids: z.ZodArray<z.ZodObject<{
|
|
4161
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4162
|
+
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4163
|
+
}, z.core.$strip>>;
|
|
4164
|
+
asks: z.ZodArray<z.ZodObject<{
|
|
4165
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4166
|
+
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4167
|
+
}, z.core.$strip>>;
|
|
4168
|
+
min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4169
|
+
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>]>>;
|
|
4170
|
+
neg_risk: z.ZodBoolean;
|
|
4171
|
+
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
4172
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
4173
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
4174
|
+
conditionId: ConditionId;
|
|
4175
|
+
assetId: PositionId | TokenId;
|
|
4176
|
+
tokenId: PositionId | TokenId;
|
|
4177
|
+
minOrderSize: DecimalString;
|
|
4178
|
+
tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
4179
|
+
negRisk: boolean;
|
|
4180
|
+
lastTradePrice: DecimalString | null | undefined;
|
|
4181
|
+
bids: {
|
|
4182
|
+
price: DecimalString;
|
|
4183
|
+
size: DecimalString;
|
|
4184
|
+
}[];
|
|
4185
|
+
asks: {
|
|
4186
|
+
price: DecimalString;
|
|
4187
|
+
size: DecimalString;
|
|
4188
|
+
}[];
|
|
4189
|
+
hash: OrderBookHash;
|
|
4190
|
+
timestamp?: EpochMilliseconds | null | undefined;
|
|
4191
|
+
}, {
|
|
4192
|
+
market: ConditionId;
|
|
4193
|
+
asset_id: PositionId | TokenId;
|
|
4194
|
+
bids: {
|
|
4195
|
+
price: DecimalString;
|
|
4196
|
+
size: DecimalString;
|
|
4197
|
+
}[];
|
|
4198
|
+
asks: {
|
|
4199
|
+
price: DecimalString;
|
|
4200
|
+
size: DecimalString;
|
|
4201
|
+
}[];
|
|
4202
|
+
min_order_size: DecimalString;
|
|
4203
|
+
tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
4204
|
+
neg_risk: boolean;
|
|
4205
|
+
hash: OrderBookHash;
|
|
4206
|
+
timestamp?: EpochMilliseconds | null | undefined;
|
|
4207
|
+
last_trade_price?: DecimalString | null | undefined;
|
|
4208
|
+
}>>;
|
|
4209
|
+
declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
4210
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
|
|
4211
|
+
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
4212
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
4213
|
+
bids: z.ZodArray<z.ZodObject<{
|
|
4214
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4215
|
+
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4216
|
+
}, z.core.$strip>>;
|
|
4217
|
+
asks: z.ZodArray<z.ZodObject<{
|
|
4218
|
+
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4219
|
+
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4220
|
+
}, z.core.$strip>>;
|
|
4221
|
+
min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
4222
|
+
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>]>>;
|
|
4223
|
+
neg_risk: z.ZodBoolean;
|
|
4224
|
+
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
4225
|
+
hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
4226
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
4227
|
+
conditionId: ConditionId;
|
|
4228
|
+
assetId: PositionId | TokenId;
|
|
4229
|
+
tokenId: PositionId | TokenId;
|
|
4230
|
+
minOrderSize: DecimalString;
|
|
4231
|
+
tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
|
|
4232
|
+
negRisk: boolean;
|
|
4233
|
+
lastTradePrice: DecimalString | null | undefined;
|
|
4234
|
+
bids: {
|
|
4235
|
+
price: DecimalString;
|
|
4236
|
+
size: DecimalString;
|
|
4237
|
+
}[];
|
|
4238
|
+
asks: {
|
|
4239
|
+
price: DecimalString;
|
|
4240
|
+
size: DecimalString;
|
|
4241
|
+
}[];
|
|
4242
|
+
hash: OrderBookHash;
|
|
4243
|
+
timestamp?: EpochMilliseconds | null | undefined;
|
|
1803
4244
|
}, {
|
|
1804
4245
|
market: ConditionId;
|
|
1805
|
-
asset_id: TokenId;
|
|
4246
|
+
asset_id: PositionId | TokenId;
|
|
1806
4247
|
bids: {
|
|
1807
4248
|
price: DecimalString;
|
|
1808
4249
|
size: DecimalString;
|
|
@@ -1840,6 +4281,7 @@ declare enum OrderResponseErrorCode {
|
|
|
1840
4281
|
INVALID_NONCE = "invalid_nonce",
|
|
1841
4282
|
INVALID_EXPIRATION = "invalid_expiration",
|
|
1842
4283
|
POST_ONLY_WOULD_CROSS = "post_only_would_cross",
|
|
4284
|
+
POST_ONLY_MODE = "post_only_mode",
|
|
1843
4285
|
FOK_NOT_FILLED = "fok_not_filled",
|
|
1844
4286
|
FAK_NOT_FILLED = "fak_not_filled",
|
|
1845
4287
|
UNKNOWN = "unknown"
|
|
@@ -2143,20 +4585,13 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2143
4585
|
}[];
|
|
2144
4586
|
}>>;
|
|
2145
4587
|
type PaginatedCurrentRewards = z.infer<typeof PaginatedCurrentRewardsSchema>;
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
2151
|
-
tokenId: TokenId;
|
|
2152
|
-
outcome: string;
|
|
2153
|
-
price: DecimalString;
|
|
2154
|
-
}, {
|
|
2155
|
-
token_id: TokenId;
|
|
4588
|
+
type RewardToken = {
|
|
4589
|
+
assetId: TokenId | PositionId;
|
|
4590
|
+
/** @deprecated Use `assetId`. */
|
|
4591
|
+
tokenId: TokenId | PositionId;
|
|
2156
4592
|
outcome: string;
|
|
2157
4593
|
price: DecimalString;
|
|
2158
|
-
}
|
|
2159
|
-
type RewardToken = z.infer<typeof RewardTokenSchema>;
|
|
4594
|
+
};
|
|
2160
4595
|
declare const RewardConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
2161
4596
|
asset_address: z.ZodString;
|
|
2162
4597
|
start_date: 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>>]>;
|
|
@@ -2187,15 +4622,16 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2187
4622
|
rewards_min_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
2188
4623
|
market_competitiveness: z.ZodOptional<z.ZodNumber>;
|
|
2189
4624
|
tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2190
|
-
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
4625
|
+
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
2191
4626
|
outcome: z.ZodString;
|
|
2192
4627
|
price: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2193
4628
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2194
|
-
|
|
4629
|
+
assetId: PositionId | TokenId;
|
|
4630
|
+
tokenId: PositionId | TokenId;
|
|
2195
4631
|
outcome: string;
|
|
2196
4632
|
price: DecimalString;
|
|
2197
4633
|
}, {
|
|
2198
|
-
token_id: TokenId;
|
|
4634
|
+
token_id: PositionId | TokenId;
|
|
2199
4635
|
outcome: string;
|
|
2200
4636
|
price: DecimalString;
|
|
2201
4637
|
}>>>;
|
|
@@ -2234,7 +4670,8 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2234
4670
|
}[] | undefined;
|
|
2235
4671
|
question: string;
|
|
2236
4672
|
tokens: {
|
|
2237
|
-
|
|
4673
|
+
assetId: PositionId | TokenId;
|
|
4674
|
+
tokenId: PositionId | TokenId;
|
|
2238
4675
|
outcome: string;
|
|
2239
4676
|
price: DecimalString;
|
|
2240
4677
|
}[];
|
|
@@ -2243,7 +4680,8 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2243
4680
|
condition_id: ConditionId;
|
|
2244
4681
|
question: string;
|
|
2245
4682
|
tokens: {
|
|
2246
|
-
|
|
4683
|
+
assetId: PositionId | TokenId;
|
|
4684
|
+
tokenId: PositionId | TokenId;
|
|
2247
4685
|
outcome: string;
|
|
2248
4686
|
price: DecimalString;
|
|
2249
4687
|
}[];
|
|
@@ -2261,7 +4699,18 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2261
4699
|
totalRewards: DecimalString | undefined;
|
|
2262
4700
|
}[] | undefined;
|
|
2263
4701
|
}>>;
|
|
2264
|
-
type MarketReward =
|
|
4702
|
+
type MarketReward = {
|
|
4703
|
+
conditionId: ConditionId;
|
|
4704
|
+
question: string;
|
|
4705
|
+
marketSlug: string | undefined;
|
|
4706
|
+
eventSlug: string | undefined;
|
|
4707
|
+
image?: string;
|
|
4708
|
+
rewardsMaxSpread: number | undefined;
|
|
4709
|
+
rewardsMinSize: DecimalString | undefined;
|
|
4710
|
+
marketCompetitiveness: number | undefined;
|
|
4711
|
+
tokens: RewardToken[];
|
|
4712
|
+
rewardsConfig: RewardConfig[] | undefined;
|
|
4713
|
+
};
|
|
2265
4714
|
declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
2266
4715
|
limit: z.ZodNumber;
|
|
2267
4716
|
count: z.ZodNumber;
|
|
@@ -2276,15 +4725,16 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2276
4725
|
rewards_min_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
|
|
2277
4726
|
market_competitiveness: z.ZodOptional<z.ZodNumber>;
|
|
2278
4727
|
tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2279
|
-
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
4728
|
+
token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
|
|
2280
4729
|
outcome: z.ZodString;
|
|
2281
4730
|
price: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
2282
4731
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2283
|
-
|
|
4732
|
+
assetId: PositionId | TokenId;
|
|
4733
|
+
tokenId: PositionId | TokenId;
|
|
2284
4734
|
outcome: string;
|
|
2285
4735
|
price: DecimalString;
|
|
2286
4736
|
}, {
|
|
2287
|
-
token_id: TokenId;
|
|
4737
|
+
token_id: PositionId | TokenId;
|
|
2288
4738
|
outcome: string;
|
|
2289
4739
|
price: DecimalString;
|
|
2290
4740
|
}>>>;
|
|
@@ -2323,7 +4773,8 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2323
4773
|
}[] | undefined;
|
|
2324
4774
|
question: string;
|
|
2325
4775
|
tokens: {
|
|
2326
|
-
|
|
4776
|
+
assetId: PositionId | TokenId;
|
|
4777
|
+
tokenId: PositionId | TokenId;
|
|
2327
4778
|
outcome: string;
|
|
2328
4779
|
price: DecimalString;
|
|
2329
4780
|
}[];
|
|
@@ -2332,7 +4783,8 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2332
4783
|
condition_id: ConditionId;
|
|
2333
4784
|
question: string;
|
|
2334
4785
|
tokens: {
|
|
2335
|
-
|
|
4786
|
+
assetId: PositionId | TokenId;
|
|
4787
|
+
tokenId: PositionId | TokenId;
|
|
2336
4788
|
outcome: string;
|
|
2337
4789
|
price: DecimalString;
|
|
2338
4790
|
}[];
|
|
@@ -2370,7 +4822,8 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2370
4822
|
}[] | undefined;
|
|
2371
4823
|
question: string;
|
|
2372
4824
|
tokens: {
|
|
2373
|
-
|
|
4825
|
+
assetId: PositionId | TokenId;
|
|
4826
|
+
tokenId: PositionId | TokenId;
|
|
2374
4827
|
outcome: string;
|
|
2375
4828
|
price: DecimalString;
|
|
2376
4829
|
}[];
|
|
@@ -2396,7 +4849,8 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2396
4849
|
}[] | undefined;
|
|
2397
4850
|
question: string;
|
|
2398
4851
|
tokens: {
|
|
2399
|
-
|
|
4852
|
+
assetId: PositionId | TokenId;
|
|
4853
|
+
tokenId: PositionId | TokenId;
|
|
2400
4854
|
outcome: string;
|
|
2401
4855
|
price: DecimalString;
|
|
2402
4856
|
}[];
|
|
@@ -2405,6 +4859,45 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2405
4859
|
}>>;
|
|
2406
4860
|
type PaginatedMarketRewards = z.infer<typeof PaginatedMarketRewardsSchema>;
|
|
2407
4861
|
|
|
4862
|
+
type ActiveSessionSigner = {
|
|
4863
|
+
address: EvmAddress;
|
|
4864
|
+
scopes: SessionSignerScope[];
|
|
4865
|
+
validUntil: number;
|
|
4866
|
+
};
|
|
4867
|
+
declare const ActiveSessionSignerSchema: z.ZodPipe<z.ZodObject<{
|
|
4868
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
|
|
4869
|
+
scopes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<SessionSignerKnownScope | (string & {}), string>>>;
|
|
4870
|
+
valid_until: z.ZodNumber;
|
|
4871
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
4872
|
+
validUntil: number;
|
|
4873
|
+
address: EvmAddress;
|
|
4874
|
+
scopes: (SessionSignerKnownScope | (string & {}))[];
|
|
4875
|
+
}, {
|
|
4876
|
+
address: EvmAddress;
|
|
4877
|
+
scopes: (SessionSignerKnownScope | (string & {}))[];
|
|
4878
|
+
valid_until: number;
|
|
4879
|
+
}>>;
|
|
4880
|
+
type ActiveSessionSignersResponse = {
|
|
4881
|
+
signers: ActiveSessionSigner[];
|
|
4882
|
+
wallet: EvmAddress;
|
|
4883
|
+
};
|
|
4884
|
+
declare const ActiveSessionSignersResponseSchema: z.ZodObject<{
|
|
4885
|
+
signers: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
4886
|
+
address: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
|
|
4887
|
+
scopes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<SessionSignerKnownScope | (string & {}), string>>>;
|
|
4888
|
+
valid_until: z.ZodNumber;
|
|
4889
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
4890
|
+
validUntil: number;
|
|
4891
|
+
address: EvmAddress;
|
|
4892
|
+
scopes: (SessionSignerKnownScope | (string & {}))[];
|
|
4893
|
+
}, {
|
|
4894
|
+
address: EvmAddress;
|
|
4895
|
+
scopes: (SessionSignerKnownScope | (string & {}))[];
|
|
4896
|
+
valid_until: number;
|
|
4897
|
+
}>>>;
|
|
4898
|
+
wallet: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
|
|
4899
|
+
}, z.core.$strip>;
|
|
4900
|
+
|
|
2408
4901
|
declare const TickSizeSchema: z.ZodPipe<z.ZodObject<{
|
|
2409
4902
|
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
4903
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -2422,4 +4915,4 @@ declare const FetchTickSizeResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2422
4915
|
type TickSize = z.infer<typeof TickSizeSchema>;
|
|
2423
4916
|
type FetchTickSizeResponse = z.infer<typeof FetchTickSizeResponseSchema>;
|
|
2424
4917
|
|
|
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,
|
|
4918
|
+
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 LastTradePriceForAsset, type LastTradePriceForAssetResponse, type LastTradePriceForToken, type LastTradePriceForTokenResponse, LastTradePriceSchema, type LastTradePrices, LastTradePricesSchema, type MakerOrder, 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 };
|