@polymarket/bindings 0.3.0-beta.0 → 0.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import * as _polymarket_types from '@polymarket/types';
2
- import { EvmAddress, PrivateKey, TxHash } from '@polymarket/types';
3
1
  import { DecimalString, BaseUnits, EpochMilliseconds, OrderSide } from './index.js';
4
2
  import { z } from 'zod';
3
+ import * as _polymarket_types from '@polymarket/types';
4
+ import { EvmAddress, PrivateKey, TxHash } from '@polymarket/types';
5
5
 
6
6
  type Tagged<T, Tag extends string> = T & {
7
7
  readonly __tag: Tag;
@@ -18,6 +18,10 @@ type PerpsOrderId = Tagged<number, 'PerpsOrderId'>;
18
18
  * @experimental This API may change in a breaking way in any release, including patch releases.
19
19
  */
20
20
  type PerpsClientOrderId = Tagged<string, 'PerpsClientOrderId'>;
21
+ /**
22
+ * @experimental This API may change in a breaking way in any release, including patch releases.
23
+ */
24
+ type PerpsNotificationId = Tagged<string, 'PerpsNotificationId'>;
21
25
  /**
22
26
  * @experimental This API may change in a breaking way in any release, including patch releases.
23
27
  */
@@ -50,6 +54,10 @@ declare const PerpsOrderIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrd
50
54
  * @experimental This API may change in a breaking way in any release, including patch releases.
51
55
  */
52
56
  declare const PerpsClientOrderIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsClientOrderId, string>>;
57
+ /**
58
+ * @experimental This API may change in a breaking way in any release, including patch releases.
59
+ */
60
+ declare const PerpsNotificationIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
53
61
  /**
54
62
  * @experimental This API may change in a breaking way in any release, including patch releases.
55
63
  */
@@ -183,6 +191,13 @@ declare enum PerpsPnlInterval {
183
191
  OneDay = "1d",
184
192
  OneWeek = "1w"
185
193
  }
194
+ /**
195
+ * @experimental This API may change in a breaking way in any release, including patch releases.
196
+ */
197
+ declare enum PerpsSortDirection {
198
+ Descending = "desc",
199
+ Ascending = "asc"
200
+ }
186
201
  /**
187
202
  * @experimental This API may change in a breaking way in any release, including patch releases.
188
203
  */
@@ -227,6 +242,10 @@ declare const PerpsKlineIntervalSchema: z.ZodEnum<typeof PerpsKlineInterval>;
227
242
  * @experimental This API may change in a breaking way in any release, including patch releases.
228
243
  */
229
244
  declare const PerpsPnlIntervalSchema: z.ZodEnum<typeof PerpsPnlInterval>;
245
+ /**
246
+ * @experimental This API may change in a breaking way in any release, including patch releases.
247
+ */
248
+ declare const PerpsSortDirectionSchema: z.ZodEnum<typeof PerpsSortDirection>;
230
249
  /**
231
250
  * @experimental This API may change in a breaking way in any release, including patch releases.
232
251
  */
@@ -280,6 +299,741 @@ declare function perpsBaseUnits(value: string): BaseUnits;
280
299
  */
281
300
  declare function decimalString(value: string): DecimalString;
282
301
 
302
+ /**
303
+ * @experimental This API may change in a breaking way in any release, including patch releases.
304
+ */
305
+ declare enum PerpsNotificationType {
306
+ PositionOpened = "position_opened",
307
+ PositionIncreased = "position_increased",
308
+ PositionReduced = "position_reduced",
309
+ PositionClosed = "position_closed",
310
+ LimitOrderCanceled = "limit_order_canceled",
311
+ LiquidationWarning = "liquidation_warning",
312
+ PositionLiquidated = "position_liquidated"
313
+ }
314
+ /**
315
+ * @experimental This API may change in a breaking way in any release, including patch releases.
316
+ */
317
+ declare const PerpsNotificationTypeSchema: z.ZodEnum<typeof PerpsNotificationType>;
318
+ /**
319
+ * Kind of order whose execution produced a fill-driven position notification.
320
+ * A TP/SL-triggered order reports the trigger that fired it whether it
321
+ * aggressed or rested; otherwise an aggressor submitted without a limit price
322
+ * is `market` and everything else, including a maker's resting order, is
323
+ * `limit`.
324
+ *
325
+ * @experimental This API may change in a breaking way in any release, including patch releases.
326
+ */
327
+ declare enum PerpsNotificationOrderType {
328
+ Market = "market",
329
+ Limit = "limit",
330
+ TakeProfit = "take_profit",
331
+ StopLoss = "stop_loss"
332
+ }
333
+ /**
334
+ * @experimental This API may change in a breaking way in any release, including patch releases.
335
+ */
336
+ declare const PerpsNotificationOrderTypeSchema: z.ZodEnum<typeof PerpsNotificationOrderType>;
337
+ /**
338
+ * @experimental This API may change in a breaking way in any release, including patch releases.
339
+ */
340
+ declare enum PerpsMarginType {
341
+ Cross = "cross",
342
+ Isolated = "isolated"
343
+ }
344
+ /**
345
+ * @experimental This API may change in a breaking way in any release, including patch releases.
346
+ */
347
+ declare const PerpsMarginTypeSchema: z.ZodEnum<typeof PerpsMarginType>;
348
+ /**
349
+ * @experimental This API may change in a breaking way in any release, including patch releases.
350
+ */
351
+ declare const PerpsPositionChangeNotificationSchema: z.ZodPipe<z.ZodObject<{
352
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
353
+ type: z.ZodEnum<{
354
+ position_opened: PerpsNotificationType.PositionOpened;
355
+ position_increased: PerpsNotificationType.PositionIncreased;
356
+ position_reduced: PerpsNotificationType.PositionReduced;
357
+ }>;
358
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
359
+ side: z.ZodEnum<typeof PerpsSide>;
360
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
361
+ avg_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
362
+ leverage: z.ZodNumber;
363
+ order_type: z.ZodOptional<z.ZodEnum<typeof PerpsNotificationOrderType>>;
364
+ }, z.core.$strip>, z.ZodTransform<{
365
+ id: PerpsNotificationId;
366
+ type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
367
+ instrumentId: PerpsInstrumentId;
368
+ side: PerpsSide;
369
+ size: DecimalString;
370
+ avgPrice: DecimalString;
371
+ leverage: number;
372
+ orderType: PerpsNotificationOrderType | undefined;
373
+ }, {
374
+ id: PerpsNotificationId;
375
+ type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
376
+ instrument_id: PerpsInstrumentId;
377
+ side: PerpsSide;
378
+ size: DecimalString;
379
+ avg_price: DecimalString;
380
+ leverage: number;
381
+ order_type?: PerpsNotificationOrderType | undefined;
382
+ }>>;
383
+ /**
384
+ * @experimental This API may change in a breaking way in any release, including patch releases.
385
+ */
386
+ type PerpsPositionChangeNotification = z.infer<typeof PerpsPositionChangeNotificationSchema>;
387
+ /**
388
+ * @experimental This API may change in a breaking way in any release, including patch releases.
389
+ */
390
+ declare const PerpsPositionClosedNotificationSchema: z.ZodPipe<z.ZodObject<{
391
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
392
+ type: z.ZodLiteral<PerpsNotificationType.PositionClosed>;
393
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
394
+ side: z.ZodEnum<typeof PerpsSide>;
395
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
396
+ avg_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
397
+ pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
398
+ order_type: z.ZodOptional<z.ZodEnum<typeof PerpsNotificationOrderType>>;
399
+ }, z.core.$strip>, z.ZodTransform<{
400
+ id: PerpsNotificationId;
401
+ type: PerpsNotificationType.PositionClosed;
402
+ instrumentId: PerpsInstrumentId;
403
+ side: PerpsSide;
404
+ size: DecimalString;
405
+ avgPrice: DecimalString;
406
+ pnl: DecimalString;
407
+ orderType: PerpsNotificationOrderType | undefined;
408
+ }, {
409
+ id: PerpsNotificationId;
410
+ type: PerpsNotificationType.PositionClosed;
411
+ instrument_id: PerpsInstrumentId;
412
+ side: PerpsSide;
413
+ size: DecimalString;
414
+ avg_price: DecimalString;
415
+ pnl: DecimalString;
416
+ order_type?: PerpsNotificationOrderType | undefined;
417
+ }>>;
418
+ /**
419
+ * @experimental This API may change in a breaking way in any release, including patch releases.
420
+ */
421
+ type PerpsPositionClosedNotification = z.infer<typeof PerpsPositionClosedNotificationSchema>;
422
+ /**
423
+ * @experimental This API may change in a breaking way in any release, including patch releases.
424
+ */
425
+ declare const PerpsLimitOrderCanceledNotificationSchema: z.ZodPipe<z.ZodObject<{
426
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
427
+ type: z.ZodLiteral<PerpsNotificationType.LimitOrderCanceled>;
428
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
429
+ side: z.ZodEnum<typeof PerpsSide>;
430
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
431
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
432
+ }, z.core.$strip>, z.ZodTransform<{
433
+ id: PerpsNotificationId;
434
+ type: PerpsNotificationType.LimitOrderCanceled;
435
+ instrumentId: PerpsInstrumentId;
436
+ side: PerpsSide;
437
+ size: DecimalString;
438
+ price: DecimalString;
439
+ }, {
440
+ id: PerpsNotificationId;
441
+ type: PerpsNotificationType.LimitOrderCanceled;
442
+ instrument_id: PerpsInstrumentId;
443
+ side: PerpsSide;
444
+ size: DecimalString;
445
+ price: DecimalString;
446
+ }>>;
447
+ /**
448
+ * @experimental This API may change in a breaking way in any release, including patch releases.
449
+ */
450
+ type PerpsLimitOrderCanceledNotification = z.infer<typeof PerpsLimitOrderCanceledNotificationSchema>;
451
+ /**
452
+ * @experimental This API may change in a breaking way in any release, including patch releases.
453
+ */
454
+ declare const PerpsLiquidationWarningNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
455
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
456
+ type: z.ZodLiteral<PerpsNotificationType.LiquidationWarning>;
457
+ margin_type: z.ZodLiteral<PerpsMarginType.Isolated>;
458
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
459
+ mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
460
+ liq_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
461
+ }, z.core.$strip>, z.ZodTransform<{
462
+ id: PerpsNotificationId;
463
+ type: PerpsNotificationType.LiquidationWarning;
464
+ marginType: PerpsMarginType.Isolated;
465
+ instrumentId: PerpsInstrumentId;
466
+ markPrice: DecimalString;
467
+ liquidationPrice: DecimalString;
468
+ }, {
469
+ id: PerpsNotificationId;
470
+ type: PerpsNotificationType.LiquidationWarning;
471
+ margin_type: PerpsMarginType.Isolated;
472
+ instrument_id: PerpsInstrumentId;
473
+ mark_price: DecimalString;
474
+ liq_price: DecimalString;
475
+ }>>, z.ZodPipe<z.ZodObject<{
476
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
477
+ type: z.ZodLiteral<PerpsNotificationType.LiquidationWarning>;
478
+ margin_type: z.ZodLiteral<PerpsMarginType.Cross>;
479
+ instrument_id: z.ZodNull;
480
+ mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
481
+ affected_instruments: z.ZodArray<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
482
+ }, z.core.$strip>, z.ZodTransform<{
483
+ id: PerpsNotificationId;
484
+ type: PerpsNotificationType.LiquidationWarning;
485
+ marginType: PerpsMarginType.Cross;
486
+ markPrice: DecimalString;
487
+ affectedInstruments: PerpsInstrumentId[];
488
+ }, {
489
+ id: PerpsNotificationId;
490
+ type: PerpsNotificationType.LiquidationWarning;
491
+ margin_type: PerpsMarginType.Cross;
492
+ instrument_id: null;
493
+ mark_price: DecimalString;
494
+ affected_instruments: PerpsInstrumentId[];
495
+ }>>], "margin_type">;
496
+ /**
497
+ * @experimental This API may change in a breaking way in any release, including patch releases.
498
+ */
499
+ type PerpsLiquidationWarningNotification = z.infer<typeof PerpsLiquidationWarningNotificationSchema>;
500
+ /**
501
+ * @experimental This API may change in a breaking way in any release, including patch releases.
502
+ */
503
+ declare const PerpsPositionLiquidatedNotificationSchema: z.ZodPipe<z.ZodObject<{
504
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
505
+ type: z.ZodLiteral<PerpsNotificationType.PositionLiquidated>;
506
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
507
+ side: z.ZodEnum<typeof PerpsSide>;
508
+ size_closed: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
509
+ pnl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
510
+ margin_type: z.ZodEnum<typeof PerpsMarginType>;
511
+ via_backstop: z.ZodBoolean;
512
+ }, z.core.$strip>, z.ZodTransform<{
513
+ id: PerpsNotificationId;
514
+ type: PerpsNotificationType.PositionLiquidated;
515
+ instrumentId: PerpsInstrumentId;
516
+ side: PerpsSide;
517
+ sizeClosed: DecimalString;
518
+ pnl: DecimalString | null;
519
+ marginType: PerpsMarginType;
520
+ viaBackstop: boolean;
521
+ }, {
522
+ id: PerpsNotificationId;
523
+ type: PerpsNotificationType.PositionLiquidated;
524
+ instrument_id: PerpsInstrumentId;
525
+ side: PerpsSide;
526
+ size_closed: DecimalString;
527
+ pnl: DecimalString | null;
528
+ margin_type: PerpsMarginType;
529
+ via_backstop: boolean;
530
+ }>>;
531
+ /**
532
+ * @experimental This API may change in a breaking way in any release, including patch releases.
533
+ */
534
+ type PerpsPositionLiquidatedNotification = z.infer<typeof PerpsPositionLiquidatedNotificationSchema>;
535
+ /**
536
+ * @experimental This API may change in a breaking way in any release, including patch releases.
537
+ */
538
+ declare const PerpsNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
539
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
540
+ type: z.ZodEnum<{
541
+ position_opened: PerpsNotificationType.PositionOpened;
542
+ position_increased: PerpsNotificationType.PositionIncreased;
543
+ position_reduced: PerpsNotificationType.PositionReduced;
544
+ }>;
545
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
546
+ side: z.ZodEnum<typeof PerpsSide>;
547
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
548
+ avg_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
549
+ leverage: z.ZodNumber;
550
+ order_type: z.ZodOptional<z.ZodEnum<typeof PerpsNotificationOrderType>>;
551
+ }, z.core.$strip>, z.ZodTransform<{
552
+ id: PerpsNotificationId;
553
+ type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
554
+ instrumentId: PerpsInstrumentId;
555
+ side: PerpsSide;
556
+ size: DecimalString;
557
+ avgPrice: DecimalString;
558
+ leverage: number;
559
+ orderType: PerpsNotificationOrderType | undefined;
560
+ }, {
561
+ id: PerpsNotificationId;
562
+ type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
563
+ instrument_id: PerpsInstrumentId;
564
+ side: PerpsSide;
565
+ size: DecimalString;
566
+ avg_price: DecimalString;
567
+ leverage: number;
568
+ order_type?: PerpsNotificationOrderType | undefined;
569
+ }>>, z.ZodPipe<z.ZodObject<{
570
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
571
+ type: z.ZodLiteral<PerpsNotificationType.PositionClosed>;
572
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
573
+ side: z.ZodEnum<typeof PerpsSide>;
574
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
575
+ avg_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
576
+ pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
577
+ order_type: z.ZodOptional<z.ZodEnum<typeof PerpsNotificationOrderType>>;
578
+ }, z.core.$strip>, z.ZodTransform<{
579
+ id: PerpsNotificationId;
580
+ type: PerpsNotificationType.PositionClosed;
581
+ instrumentId: PerpsInstrumentId;
582
+ side: PerpsSide;
583
+ size: DecimalString;
584
+ avgPrice: DecimalString;
585
+ pnl: DecimalString;
586
+ orderType: PerpsNotificationOrderType | undefined;
587
+ }, {
588
+ id: PerpsNotificationId;
589
+ type: PerpsNotificationType.PositionClosed;
590
+ instrument_id: PerpsInstrumentId;
591
+ side: PerpsSide;
592
+ size: DecimalString;
593
+ avg_price: DecimalString;
594
+ pnl: DecimalString;
595
+ order_type?: PerpsNotificationOrderType | undefined;
596
+ }>>, z.ZodPipe<z.ZodObject<{
597
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
598
+ type: z.ZodLiteral<PerpsNotificationType.LimitOrderCanceled>;
599
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
600
+ side: z.ZodEnum<typeof PerpsSide>;
601
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
602
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
603
+ }, z.core.$strip>, z.ZodTransform<{
604
+ id: PerpsNotificationId;
605
+ type: PerpsNotificationType.LimitOrderCanceled;
606
+ instrumentId: PerpsInstrumentId;
607
+ side: PerpsSide;
608
+ size: DecimalString;
609
+ price: DecimalString;
610
+ }, {
611
+ id: PerpsNotificationId;
612
+ type: PerpsNotificationType.LimitOrderCanceled;
613
+ instrument_id: PerpsInstrumentId;
614
+ side: PerpsSide;
615
+ size: DecimalString;
616
+ price: DecimalString;
617
+ }>>, z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
618
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
619
+ type: z.ZodLiteral<PerpsNotificationType.LiquidationWarning>;
620
+ margin_type: z.ZodLiteral<PerpsMarginType.Isolated>;
621
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
622
+ mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
623
+ liq_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
624
+ }, z.core.$strip>, z.ZodTransform<{
625
+ id: PerpsNotificationId;
626
+ type: PerpsNotificationType.LiquidationWarning;
627
+ marginType: PerpsMarginType.Isolated;
628
+ instrumentId: PerpsInstrumentId;
629
+ markPrice: DecimalString;
630
+ liquidationPrice: DecimalString;
631
+ }, {
632
+ id: PerpsNotificationId;
633
+ type: PerpsNotificationType.LiquidationWarning;
634
+ margin_type: PerpsMarginType.Isolated;
635
+ instrument_id: PerpsInstrumentId;
636
+ mark_price: DecimalString;
637
+ liq_price: DecimalString;
638
+ }>>, z.ZodPipe<z.ZodObject<{
639
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
640
+ type: z.ZodLiteral<PerpsNotificationType.LiquidationWarning>;
641
+ margin_type: z.ZodLiteral<PerpsMarginType.Cross>;
642
+ instrument_id: z.ZodNull;
643
+ mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
644
+ affected_instruments: z.ZodArray<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
645
+ }, z.core.$strip>, z.ZodTransform<{
646
+ id: PerpsNotificationId;
647
+ type: PerpsNotificationType.LiquidationWarning;
648
+ marginType: PerpsMarginType.Cross;
649
+ markPrice: DecimalString;
650
+ affectedInstruments: PerpsInstrumentId[];
651
+ }, {
652
+ id: PerpsNotificationId;
653
+ type: PerpsNotificationType.LiquidationWarning;
654
+ margin_type: PerpsMarginType.Cross;
655
+ instrument_id: null;
656
+ mark_price: DecimalString;
657
+ affected_instruments: PerpsInstrumentId[];
658
+ }>>], "margin_type">, z.ZodPipe<z.ZodObject<{
659
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
660
+ type: z.ZodLiteral<PerpsNotificationType.PositionLiquidated>;
661
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
662
+ side: z.ZodEnum<typeof PerpsSide>;
663
+ size_closed: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
664
+ pnl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
665
+ margin_type: z.ZodEnum<typeof PerpsMarginType>;
666
+ via_backstop: z.ZodBoolean;
667
+ }, z.core.$strip>, z.ZodTransform<{
668
+ id: PerpsNotificationId;
669
+ type: PerpsNotificationType.PositionLiquidated;
670
+ instrumentId: PerpsInstrumentId;
671
+ side: PerpsSide;
672
+ sizeClosed: DecimalString;
673
+ pnl: DecimalString | null;
674
+ marginType: PerpsMarginType;
675
+ viaBackstop: boolean;
676
+ }, {
677
+ id: PerpsNotificationId;
678
+ type: PerpsNotificationType.PositionLiquidated;
679
+ instrument_id: PerpsInstrumentId;
680
+ side: PerpsSide;
681
+ size_closed: DecimalString;
682
+ pnl: DecimalString | null;
683
+ margin_type: PerpsMarginType;
684
+ via_backstop: boolean;
685
+ }>>], "type">;
686
+ /**
687
+ * @experimental This API may change in a breaking way in any release, including patch releases.
688
+ */
689
+ type PerpsNotification = z.infer<typeof PerpsNotificationSchema>;
690
+ /**
691
+ * @experimental This API may change in a breaking way in any release, including patch releases.
692
+ */
693
+ declare const PerpsNotificationEntrySchema: z.ZodPipe<z.ZodObject<{
694
+ notification: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
695
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
696
+ type: z.ZodEnum<{
697
+ position_opened: PerpsNotificationType.PositionOpened;
698
+ position_increased: PerpsNotificationType.PositionIncreased;
699
+ position_reduced: PerpsNotificationType.PositionReduced;
700
+ }>;
701
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
702
+ side: z.ZodEnum<typeof PerpsSide>;
703
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
704
+ avg_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
705
+ leverage: z.ZodNumber;
706
+ order_type: z.ZodOptional<z.ZodEnum<typeof PerpsNotificationOrderType>>;
707
+ }, z.core.$strip>, z.ZodTransform<{
708
+ id: PerpsNotificationId;
709
+ type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
710
+ instrumentId: PerpsInstrumentId;
711
+ side: PerpsSide;
712
+ size: DecimalString;
713
+ avgPrice: DecimalString;
714
+ leverage: number;
715
+ orderType: PerpsNotificationOrderType | undefined;
716
+ }, {
717
+ id: PerpsNotificationId;
718
+ type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
719
+ instrument_id: PerpsInstrumentId;
720
+ side: PerpsSide;
721
+ size: DecimalString;
722
+ avg_price: DecimalString;
723
+ leverage: number;
724
+ order_type?: PerpsNotificationOrderType | undefined;
725
+ }>>, z.ZodPipe<z.ZodObject<{
726
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
727
+ type: z.ZodLiteral<PerpsNotificationType.PositionClosed>;
728
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
729
+ side: z.ZodEnum<typeof PerpsSide>;
730
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
731
+ avg_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
732
+ pnl: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
733
+ order_type: z.ZodOptional<z.ZodEnum<typeof PerpsNotificationOrderType>>;
734
+ }, z.core.$strip>, z.ZodTransform<{
735
+ id: PerpsNotificationId;
736
+ type: PerpsNotificationType.PositionClosed;
737
+ instrumentId: PerpsInstrumentId;
738
+ side: PerpsSide;
739
+ size: DecimalString;
740
+ avgPrice: DecimalString;
741
+ pnl: DecimalString;
742
+ orderType: PerpsNotificationOrderType | undefined;
743
+ }, {
744
+ id: PerpsNotificationId;
745
+ type: PerpsNotificationType.PositionClosed;
746
+ instrument_id: PerpsInstrumentId;
747
+ side: PerpsSide;
748
+ size: DecimalString;
749
+ avg_price: DecimalString;
750
+ pnl: DecimalString;
751
+ order_type?: PerpsNotificationOrderType | undefined;
752
+ }>>, z.ZodPipe<z.ZodObject<{
753
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
754
+ type: z.ZodLiteral<PerpsNotificationType.LimitOrderCanceled>;
755
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
756
+ side: z.ZodEnum<typeof PerpsSide>;
757
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
758
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
759
+ }, z.core.$strip>, z.ZodTransform<{
760
+ id: PerpsNotificationId;
761
+ type: PerpsNotificationType.LimitOrderCanceled;
762
+ instrumentId: PerpsInstrumentId;
763
+ side: PerpsSide;
764
+ size: DecimalString;
765
+ price: DecimalString;
766
+ }, {
767
+ id: PerpsNotificationId;
768
+ type: PerpsNotificationType.LimitOrderCanceled;
769
+ instrument_id: PerpsInstrumentId;
770
+ side: PerpsSide;
771
+ size: DecimalString;
772
+ price: DecimalString;
773
+ }>>, z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
774
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
775
+ type: z.ZodLiteral<PerpsNotificationType.LiquidationWarning>;
776
+ margin_type: z.ZodLiteral<PerpsMarginType.Isolated>;
777
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
778
+ mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
779
+ liq_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
780
+ }, z.core.$strip>, z.ZodTransform<{
781
+ id: PerpsNotificationId;
782
+ type: PerpsNotificationType.LiquidationWarning;
783
+ marginType: PerpsMarginType.Isolated;
784
+ instrumentId: PerpsInstrumentId;
785
+ markPrice: DecimalString;
786
+ liquidationPrice: DecimalString;
787
+ }, {
788
+ id: PerpsNotificationId;
789
+ type: PerpsNotificationType.LiquidationWarning;
790
+ margin_type: PerpsMarginType.Isolated;
791
+ instrument_id: PerpsInstrumentId;
792
+ mark_price: DecimalString;
793
+ liq_price: DecimalString;
794
+ }>>, z.ZodPipe<z.ZodObject<{
795
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
796
+ type: z.ZodLiteral<PerpsNotificationType.LiquidationWarning>;
797
+ margin_type: z.ZodLiteral<PerpsMarginType.Cross>;
798
+ instrument_id: z.ZodNull;
799
+ mark_price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
800
+ affected_instruments: z.ZodArray<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>>;
801
+ }, z.core.$strip>, z.ZodTransform<{
802
+ id: PerpsNotificationId;
803
+ type: PerpsNotificationType.LiquidationWarning;
804
+ marginType: PerpsMarginType.Cross;
805
+ markPrice: DecimalString;
806
+ affectedInstruments: PerpsInstrumentId[];
807
+ }, {
808
+ id: PerpsNotificationId;
809
+ type: PerpsNotificationType.LiquidationWarning;
810
+ margin_type: PerpsMarginType.Cross;
811
+ instrument_id: null;
812
+ mark_price: DecimalString;
813
+ affected_instruments: PerpsInstrumentId[];
814
+ }>>], "margin_type">, z.ZodPipe<z.ZodObject<{
815
+ id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PerpsNotificationId, string>>;
816
+ type: z.ZodLiteral<PerpsNotificationType.PositionLiquidated>;
817
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
818
+ side: z.ZodEnum<typeof PerpsSide>;
819
+ size_closed: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
820
+ pnl: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
821
+ margin_type: z.ZodEnum<typeof PerpsMarginType>;
822
+ via_backstop: z.ZodBoolean;
823
+ }, z.core.$strip>, z.ZodTransform<{
824
+ id: PerpsNotificationId;
825
+ type: PerpsNotificationType.PositionLiquidated;
826
+ instrumentId: PerpsInstrumentId;
827
+ side: PerpsSide;
828
+ sizeClosed: DecimalString;
829
+ pnl: DecimalString | null;
830
+ marginType: PerpsMarginType;
831
+ viaBackstop: boolean;
832
+ }, {
833
+ id: PerpsNotificationId;
834
+ type: PerpsNotificationType.PositionLiquidated;
835
+ instrument_id: PerpsInstrumentId;
836
+ side: PerpsSide;
837
+ size_closed: DecimalString;
838
+ pnl: DecimalString | null;
839
+ margin_type: PerpsMarginType;
840
+ via_backstop: boolean;
841
+ }>>], "type">;
842
+ read_at: z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
843
+ ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
844
+ }, z.core.$strip>, z.ZodTransform<{
845
+ notification: {
846
+ id: PerpsNotificationId;
847
+ type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
848
+ instrumentId: PerpsInstrumentId;
849
+ side: PerpsSide;
850
+ size: DecimalString;
851
+ avgPrice: DecimalString;
852
+ leverage: number;
853
+ orderType: PerpsNotificationOrderType | undefined;
854
+ } | {
855
+ id: PerpsNotificationId;
856
+ type: PerpsNotificationType.PositionClosed;
857
+ instrumentId: PerpsInstrumentId;
858
+ side: PerpsSide;
859
+ size: DecimalString;
860
+ avgPrice: DecimalString;
861
+ pnl: DecimalString;
862
+ orderType: PerpsNotificationOrderType | undefined;
863
+ } | {
864
+ id: PerpsNotificationId;
865
+ type: PerpsNotificationType.LimitOrderCanceled;
866
+ instrumentId: PerpsInstrumentId;
867
+ side: PerpsSide;
868
+ size: DecimalString;
869
+ price: DecimalString;
870
+ } | {
871
+ id: PerpsNotificationId;
872
+ type: PerpsNotificationType.LiquidationWarning;
873
+ marginType: PerpsMarginType.Isolated;
874
+ instrumentId: PerpsInstrumentId;
875
+ markPrice: DecimalString;
876
+ liquidationPrice: DecimalString;
877
+ } | {
878
+ id: PerpsNotificationId;
879
+ type: PerpsNotificationType.LiquidationWarning;
880
+ marginType: PerpsMarginType.Cross;
881
+ markPrice: DecimalString;
882
+ affectedInstruments: PerpsInstrumentId[];
883
+ } | {
884
+ id: PerpsNotificationId;
885
+ type: PerpsNotificationType.PositionLiquidated;
886
+ instrumentId: PerpsInstrumentId;
887
+ side: PerpsSide;
888
+ sizeClosed: DecimalString;
889
+ pnl: DecimalString | null;
890
+ marginType: PerpsMarginType;
891
+ viaBackstop: boolean;
892
+ };
893
+ readAt: EpochMilliseconds | null;
894
+ timestamp: EpochMilliseconds;
895
+ }, {
896
+ notification: {
897
+ id: PerpsNotificationId;
898
+ type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
899
+ instrumentId: PerpsInstrumentId;
900
+ side: PerpsSide;
901
+ size: DecimalString;
902
+ avgPrice: DecimalString;
903
+ leverage: number;
904
+ orderType: PerpsNotificationOrderType | undefined;
905
+ } | {
906
+ id: PerpsNotificationId;
907
+ type: PerpsNotificationType.PositionClosed;
908
+ instrumentId: PerpsInstrumentId;
909
+ side: PerpsSide;
910
+ size: DecimalString;
911
+ avgPrice: DecimalString;
912
+ pnl: DecimalString;
913
+ orderType: PerpsNotificationOrderType | undefined;
914
+ } | {
915
+ id: PerpsNotificationId;
916
+ type: PerpsNotificationType.LimitOrderCanceled;
917
+ instrumentId: PerpsInstrumentId;
918
+ side: PerpsSide;
919
+ size: DecimalString;
920
+ price: DecimalString;
921
+ } | {
922
+ id: PerpsNotificationId;
923
+ type: PerpsNotificationType.LiquidationWarning;
924
+ marginType: PerpsMarginType.Isolated;
925
+ instrumentId: PerpsInstrumentId;
926
+ markPrice: DecimalString;
927
+ liquidationPrice: DecimalString;
928
+ } | {
929
+ id: PerpsNotificationId;
930
+ type: PerpsNotificationType.LiquidationWarning;
931
+ marginType: PerpsMarginType.Cross;
932
+ markPrice: DecimalString;
933
+ affectedInstruments: PerpsInstrumentId[];
934
+ } | {
935
+ id: PerpsNotificationId;
936
+ type: PerpsNotificationType.PositionLiquidated;
937
+ instrumentId: PerpsInstrumentId;
938
+ side: PerpsSide;
939
+ sizeClosed: DecimalString;
940
+ pnl: DecimalString | null;
941
+ marginType: PerpsMarginType;
942
+ viaBackstop: boolean;
943
+ };
944
+ read_at: EpochMilliseconds | null;
945
+ ts: EpochMilliseconds;
946
+ }>>;
947
+ /**
948
+ * @experimental This API may change in a breaking way in any release, including patch releases.
949
+ */
950
+ type PerpsNotificationEntry = z.infer<typeof PerpsNotificationEntrySchema>;
951
+ /**
952
+ * Entries with notification types unknown to this SDK version are omitted
953
+ * from `items` so newly introduced notification kinds cannot fail the read;
954
+ * recognized types still validate strictly.
955
+ *
956
+ * @experimental This API may change in a breaking way in any release, including patch releases.
957
+ */
958
+ declare const ListPerpsNotificationsResponseSchema: z.ZodObject<{
959
+ items: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<{
960
+ notification: {
961
+ id: PerpsNotificationId;
962
+ type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced;
963
+ instrumentId: PerpsInstrumentId;
964
+ side: PerpsSide;
965
+ size: DecimalString;
966
+ avgPrice: DecimalString;
967
+ leverage: number;
968
+ orderType: PerpsNotificationOrderType | undefined;
969
+ } | {
970
+ id: PerpsNotificationId;
971
+ type: PerpsNotificationType.PositionClosed;
972
+ instrumentId: PerpsInstrumentId;
973
+ side: PerpsSide;
974
+ size: DecimalString;
975
+ avgPrice: DecimalString;
976
+ pnl: DecimalString;
977
+ orderType: PerpsNotificationOrderType | undefined;
978
+ } | {
979
+ id: PerpsNotificationId;
980
+ type: PerpsNotificationType.LimitOrderCanceled;
981
+ instrumentId: PerpsInstrumentId;
982
+ side: PerpsSide;
983
+ size: DecimalString;
984
+ price: DecimalString;
985
+ } | {
986
+ id: PerpsNotificationId;
987
+ type: PerpsNotificationType.LiquidationWarning;
988
+ marginType: PerpsMarginType.Isolated;
989
+ instrumentId: PerpsInstrumentId;
990
+ markPrice: DecimalString;
991
+ liquidationPrice: DecimalString;
992
+ } | {
993
+ id: PerpsNotificationId;
994
+ type: PerpsNotificationType.LiquidationWarning;
995
+ marginType: PerpsMarginType.Cross;
996
+ markPrice: DecimalString;
997
+ affectedInstruments: PerpsInstrumentId[];
998
+ } | {
999
+ id: PerpsNotificationId;
1000
+ type: PerpsNotificationType.PositionLiquidated;
1001
+ instrumentId: PerpsInstrumentId;
1002
+ side: PerpsSide;
1003
+ sizeClosed: DecimalString;
1004
+ pnl: DecimalString | null;
1005
+ marginType: PerpsMarginType;
1006
+ viaBackstop: boolean;
1007
+ };
1008
+ readAt: EpochMilliseconds | null;
1009
+ timestamp: EpochMilliseconds;
1010
+ }[], unknown[]>>;
1011
+ unread: z.ZodNumber;
1012
+ durable_source_seq: z.ZodNumber;
1013
+ has_more: z.ZodBoolean;
1014
+ next_cursor: z.ZodNullable<z.ZodString>;
1015
+ }, z.core.$strip>;
1016
+ /**
1017
+ * Projection of the notifications list response for unread-count reads.
1018
+ * Deliberately leaves `items` unvalidated so notification shapes unknown to
1019
+ * this SDK version cannot fail a read that only needs the counter.
1020
+ *
1021
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1022
+ */
1023
+ declare const FetchPerpsUnreadNotificationsCountResponseSchema: z.ZodObject<{
1024
+ unread: z.ZodNumber;
1025
+ }, z.core.$strip>;
1026
+ /**
1027
+ * @experimental This API may change in a breaking way in any release, including patch releases.
1028
+ */
1029
+ declare const MarkPerpsNotificationsReadResponseSchema: z.ZodObject<{
1030
+ status: z.ZodEnum<{
1031
+ ok: "ok";
1032
+ err: "err";
1033
+ }>;
1034
+ error: z.ZodOptional<z.ZodString>;
1035
+ }, z.core.$strip>;
1036
+
283
1037
  /**
284
1038
  * @experimental This API may change in a breaking way in any release, including patch releases.
285
1039
  */
@@ -974,4 +1728,4 @@ declare const PerpsAccountFillUpdateSchema: z.ZodPipe<z.ZodObject<{
974
1728
  coid?: string | undefined;
975
1729
  }>>;
976
1730
 
977
- export { type PerpsPostOrderAck as $, type PerpsDecimal as A, type PerpsDecimalInput as B, PerpsDecimalInputSchema as C, type PerpsDepositAmount as D, PerpsDepositStatusSchema as E, FetchPerpsOpenOrdersResponseSchema as F, PerpsEntityIdSchema as G, type PerpsFundingInterval as H, PerpsFundingIntervalSchema as I, PerpsInstrumentCategorySchema as J, PerpsInstrumentIdSchema as K, ListPerpsFillsResponseSchema as L, PerpsInstrumentTypeSchema as M, PerpsInternalTransferDirectionSchema as N, PerpsInternalTransferIdSchema as O, type PerpsInstrumentId as P, PerpsKlineInterval as Q, PerpsKlineIntervalSchema as R, type PerpsOrder as S, type PerpsOrderId as T, PerpsOrderIdSchema as U, PerpsOrderSchema as V, PerpsOrderStatus as W, PerpsOrderStatusSchema as X, PerpsOrderUpdateSchema as Y, PerpsPnlInterval as Z, PerpsPnlIntervalSchema as _, type PerpsEntityId as a, PerpsPostOrderAckSchema as a0, PerpsSideSchema as a1, PerpsTimeInForce as a2, PerpsTimeInForceSchema as a3, PerpsTpSlKind as a4, PerpsTpSlKindSchema as a5, type PerpsTpSlOrderFields as a6, PerpsTpSlOrderFieldsSchema as a7, PerpsTpSlScope as a8, PerpsTpSlScopeSchema as a9, PerpsTradeIdSchema as aa, type PerpsTxHash as ab, PerpsTxHashSchema as ac, type PerpsUpdateLeverageResult as ad, PerpsUpdateLeverageResultSchema as ae, type PerpsWithdrawalAmount as af, PerpsWithdrawalIdSchema as ag, type PerpsWithdrawalStatus as ah, PerpsWithdrawalStatusSchema as ai, decimalString as aj, perpsBaseUnits as ak, perpsDecimal as al, PerpsDepositStatus as b, type PerpsWithdrawalId as c, PerpsKnownWithdrawalStatus as d, type PerpsInternalTransferId as e, PerpsInternalTransferDirection as f, PerpsInstrumentType as g, PerpsInstrumentCategory as h, type PerpsTradeId as i, PerpsSide as j, FetchPerpsOrdersResponseSchema as k, type PerpsAccountFill as l, PerpsAccountFillSchema as m, PerpsAccountFillUpdateSchema as n, PerpsAssetSchema as o, type PerpsCancelAllOrdersResponse as p, PerpsCancelAllOrdersResponseSchema as q, type PerpsCancelOrderResult as r, PerpsCancelOrderResultSchema as s, type PerpsClientOrderId as t, PerpsClientOrderIdSchema as u, type PerpsCommandAck as v, PerpsCommandAckSchema as w, PerpsCommandStatusSchema as x, type PerpsCredentials as y, PerpsDataResponseSchema as z };
1731
+ export { type PerpsNotification as $, type PerpsCredentials as A, PerpsDataResponseSchema as B, type PerpsDecimal as C, type PerpsDecimalInput as D, PerpsDecimalInputSchema as E, FetchPerpsOpenOrdersResponseSchema as F, type PerpsDepositAmount as G, PerpsDepositStatusSchema as H, PerpsEntityIdSchema as I, type PerpsFundingInterval as J, PerpsFundingIntervalSchema as K, ListPerpsFillsResponseSchema as L, MarkPerpsNotificationsReadResponseSchema as M, PerpsInstrumentCategorySchema as N, PerpsInstrumentIdSchema as O, type PerpsInstrumentId as P, PerpsInstrumentTypeSchema as Q, PerpsInternalTransferDirectionSchema as R, PerpsInternalTransferIdSchema as S, PerpsKlineInterval as T, PerpsKlineIntervalSchema as U, type PerpsLimitOrderCanceledNotification as V, PerpsLimitOrderCanceledNotificationSchema as W, type PerpsLiquidationWarningNotification as X, PerpsLiquidationWarningNotificationSchema as Y, PerpsMarginType as Z, PerpsMarginTypeSchema as _, type PerpsEntityId as a, type PerpsNotificationEntry as a0, PerpsNotificationEntrySchema as a1, type PerpsNotificationId as a2, PerpsNotificationIdSchema as a3, PerpsNotificationOrderType as a4, PerpsNotificationOrderTypeSchema as a5, PerpsNotificationSchema as a6, PerpsNotificationType as a7, PerpsNotificationTypeSchema as a8, type PerpsOrder as a9, PerpsTpSlScopeSchema as aA, PerpsTradeIdSchema as aB, type PerpsTxHash as aC, PerpsTxHashSchema as aD, type PerpsUpdateLeverageResult as aE, PerpsUpdateLeverageResultSchema as aF, type PerpsWithdrawalAmount as aG, PerpsWithdrawalIdSchema as aH, type PerpsWithdrawalStatus as aI, PerpsWithdrawalStatusSchema as aJ, decimalString as aK, perpsBaseUnits as aL, perpsDecimal as aM, type PerpsOrderId as aa, PerpsOrderIdSchema as ab, PerpsOrderSchema as ac, PerpsOrderStatus as ad, PerpsOrderStatusSchema as ae, PerpsOrderUpdateSchema as af, PerpsPnlInterval as ag, PerpsPnlIntervalSchema as ah, type PerpsPositionChangeNotification as ai, PerpsPositionChangeNotificationSchema as aj, type PerpsPositionClosedNotification as ak, PerpsPositionClosedNotificationSchema as al, type PerpsPositionLiquidatedNotification as am, PerpsPositionLiquidatedNotificationSchema as an, type PerpsPostOrderAck as ao, PerpsPostOrderAckSchema as ap, PerpsSideSchema as aq, PerpsSortDirection as ar, PerpsSortDirectionSchema as as, PerpsTimeInForce as at, PerpsTimeInForceSchema as au, PerpsTpSlKind as av, PerpsTpSlKindSchema as aw, type PerpsTpSlOrderFields as ax, PerpsTpSlOrderFieldsSchema as ay, PerpsTpSlScope as az, PerpsDepositStatus as b, type PerpsWithdrawalId as c, PerpsKnownWithdrawalStatus as d, type PerpsInternalTransferId as e, PerpsInternalTransferDirection as f, PerpsInstrumentType as g, PerpsInstrumentCategory as h, type PerpsTradeId as i, PerpsSide as j, FetchPerpsOrdersResponseSchema as k, FetchPerpsUnreadNotificationsCountResponseSchema as l, ListPerpsNotificationsResponseSchema as m, type PerpsAccountFill as n, PerpsAccountFillSchema as o, PerpsAccountFillUpdateSchema as p, PerpsAssetSchema as q, type PerpsCancelAllOrdersResponse as r, PerpsCancelAllOrdersResponseSchema as s, type PerpsCancelOrderResult as t, PerpsCancelOrderResultSchema as u, type PerpsClientOrderId as v, PerpsClientOrderIdSchema as w, type PerpsCommandAck as x, PerpsCommandAckSchema as y, PerpsCommandStatusSchema as z };