@numen-crypto/contract 0.20.0 → 0.21.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/index.d.ts CHANGED
@@ -1157,18 +1157,18 @@ declare const DailyBonusClaimResultSchema: z.ZodObject<{
1157
1157
  }>;
1158
1158
  type DailyBonusClaimResult = z.infer<typeof DailyBonusClaimResultSchema>;
1159
1159
 
1160
- declare const NotificationTypeSchema: z.ZodEnum<["TRADE_EXECUTED", "DEPOSIT_CREDITED", "COMMISSION_ACCRUED", "WITHDRAWAL_SENT", "BONUS_CLAIMED", "SYSTEM"]>;
1160
+ declare const NotificationTypeSchema: z.ZodEnum<["TRADE_EXECUTED", "DEPOSIT_CREDITED", "COMMISSION_ACCRUED", "WITHDRAWAL_SENT", "BONUS_CLAIMED", "PREDICTION_SETTLED", "SYSTEM"]>;
1161
1161
  type NotificationType = z.infer<typeof NotificationTypeSchema>;
1162
1162
  declare const NotificationSchema: z.ZodObject<{
1163
1163
  id: z.ZodString;
1164
- type: z.ZodEnum<["TRADE_EXECUTED", "DEPOSIT_CREDITED", "COMMISSION_ACCRUED", "WITHDRAWAL_SENT", "BONUS_CLAIMED", "SYSTEM"]>;
1164
+ type: z.ZodEnum<["TRADE_EXECUTED", "DEPOSIT_CREDITED", "COMMISSION_ACCRUED", "WITHDRAWAL_SENT", "BONUS_CLAIMED", "PREDICTION_SETTLED", "SYSTEM"]>;
1165
1165
  title: z.ZodString;
1166
1166
  body: z.ZodString;
1167
1167
  read: z.ZodBoolean;
1168
1168
  meta: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1169
1169
  createdAt: z.ZodString;
1170
1170
  }, "strip", z.ZodTypeAny, {
1171
- type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "SYSTEM";
1171
+ type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "PREDICTION_SETTLED" | "SYSTEM";
1172
1172
  id: string;
1173
1173
  createdAt: string;
1174
1174
  title: string;
@@ -1176,7 +1176,7 @@ declare const NotificationSchema: z.ZodObject<{
1176
1176
  read: boolean;
1177
1177
  meta: Record<string, unknown> | null;
1178
1178
  }, {
1179
- type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "SYSTEM";
1179
+ type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "PREDICTION_SETTLED" | "SYSTEM";
1180
1180
  id: string;
1181
1181
  createdAt: string;
1182
1182
  title: string;
@@ -4429,14 +4429,14 @@ declare namespace ListNotificationsCommand {
4429
4429
  const ResponseSchema: z.ZodObject<{
4430
4430
  items: z.ZodArray<z.ZodObject<{
4431
4431
  id: z.ZodString;
4432
- type: z.ZodEnum<["TRADE_EXECUTED", "DEPOSIT_CREDITED", "COMMISSION_ACCRUED", "WITHDRAWAL_SENT", "BONUS_CLAIMED", "SYSTEM"]>;
4432
+ type: z.ZodEnum<["TRADE_EXECUTED", "DEPOSIT_CREDITED", "COMMISSION_ACCRUED", "WITHDRAWAL_SENT", "BONUS_CLAIMED", "PREDICTION_SETTLED", "SYSTEM"]>;
4433
4433
  title: z.ZodString;
4434
4434
  body: z.ZodString;
4435
4435
  read: z.ZodBoolean;
4436
4436
  meta: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4437
4437
  createdAt: z.ZodString;
4438
4438
  }, "strip", z.ZodTypeAny, {
4439
- type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "SYSTEM";
4439
+ type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "PREDICTION_SETTLED" | "SYSTEM";
4440
4440
  id: string;
4441
4441
  createdAt: string;
4442
4442
  title: string;
@@ -4444,7 +4444,7 @@ declare namespace ListNotificationsCommand {
4444
4444
  read: boolean;
4445
4445
  meta: Record<string, unknown> | null;
4446
4446
  }, {
4447
- type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "SYSTEM";
4447
+ type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "PREDICTION_SETTLED" | "SYSTEM";
4448
4448
  id: string;
4449
4449
  createdAt: string;
4450
4450
  title: string;
@@ -4461,7 +4461,7 @@ declare namespace ListNotificationsCommand {
4461
4461
  page: number;
4462
4462
  pageSize: number;
4463
4463
  items: {
4464
- type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "SYSTEM";
4464
+ type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "PREDICTION_SETTLED" | "SYSTEM";
4465
4465
  id: string;
4466
4466
  createdAt: string;
4467
4467
  title: string;
@@ -4475,7 +4475,7 @@ declare namespace ListNotificationsCommand {
4475
4475
  page: number;
4476
4476
  pageSize: number;
4477
4477
  items: {
4478
- type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "SYSTEM";
4478
+ type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "PREDICTION_SETTLED" | "SYSTEM";
4479
4479
  id: string;
4480
4480
  createdAt: string;
4481
4481
  title: string;
@@ -6286,7 +6286,7 @@ declare namespace TicketAttachmentUploadCommand {
6286
6286
 
6287
6287
  declare const PredictionSideSchema: z.ZodEnum<["YES", "NO"]>;
6288
6288
  type PredictionSide = z.infer<typeof PredictionSideSchema>;
6289
- declare const PredictionStatusSchema: z.ZodEnum<["OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6289
+ declare const PredictionStatusSchema: z.ZodEnum<["QUEUED", "OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6290
6290
  type PredictionStatus = z.infer<typeof PredictionStatusSchema>;
6291
6291
  declare const PredictionSchema: z.ZodObject<{
6292
6292
  id: z.ZodString;
@@ -6295,11 +6295,13 @@ declare const PredictionSchema: z.ZodObject<{
6295
6295
  description: z.ZodNullable<z.ZodString>;
6296
6296
  category: z.ZodString;
6297
6297
  imageUrl: z.ZodNullable<z.ZodString>;
6298
- status: z.ZodEnum<["OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6298
+ status: z.ZodEnum<["QUEUED", "OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6299
6299
  outcome: z.ZodNullable<z.ZodEnum<["YES", "NO"]>>;
6300
6300
  asset: z.ZodEnum<["NMN", "bNMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
6301
- betsCloseAt: z.ZodString;
6302
- resolvesAt: z.ZodString;
6301
+ /** Null while the prediction still waits in the queue — dates are stamped on air. */
6302
+ betsCloseAt: z.ZodNullable<z.ZodString>;
6303
+ resolvesAt: z.ZodNullable<z.ZodString>;
6304
+ openedAt: z.ZodNullable<z.ZodString>;
6303
6305
  poolYes: z.ZodString;
6304
6306
  poolNo: z.ZodString;
6305
6307
  poolTotal: z.ZodString;
@@ -6313,7 +6315,7 @@ declare const PredictionSchema: z.ZodObject<{
6313
6315
  maxStake: z.ZodNullable<z.ZodString>;
6314
6316
  feeBp: z.ZodNumber;
6315
6317
  }, "strip", z.ZodTypeAny, {
6316
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6318
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6317
6319
  id: string;
6318
6320
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6319
6321
  imageUrl: string | null;
@@ -6322,8 +6324,9 @@ declare const PredictionSchema: z.ZodObject<{
6322
6324
  slug: string;
6323
6325
  description: string | null;
6324
6326
  outcome: "YES" | "NO" | null;
6325
- betsCloseAt: string;
6326
- resolvesAt: string;
6327
+ betsCloseAt: string | null;
6328
+ resolvesAt: string | null;
6329
+ openedAt: string | null;
6327
6330
  poolYes: string;
6328
6331
  poolNo: string;
6329
6332
  poolTotal: string;
@@ -6335,7 +6338,7 @@ declare const PredictionSchema: z.ZodObject<{
6335
6338
  maxStake: string | null;
6336
6339
  feeBp: number;
6337
6340
  }, {
6338
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6341
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6339
6342
  id: string;
6340
6343
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6341
6344
  imageUrl: string | null;
@@ -6344,8 +6347,9 @@ declare const PredictionSchema: z.ZodObject<{
6344
6347
  slug: string;
6345
6348
  description: string | null;
6346
6349
  outcome: "YES" | "NO" | null;
6347
- betsCloseAt: string;
6348
- resolvesAt: string;
6350
+ betsCloseAt: string | null;
6351
+ resolvesAt: string | null;
6352
+ openedAt: string | null;
6349
6353
  poolYes: string;
6350
6354
  poolNo: string;
6351
6355
  poolTotal: string;
@@ -6386,11 +6390,13 @@ declare const PredictionDetailSchema: z.ZodObject<{
6386
6390
  description: z.ZodNullable<z.ZodString>;
6387
6391
  category: z.ZodString;
6388
6392
  imageUrl: z.ZodNullable<z.ZodString>;
6389
- status: z.ZodEnum<["OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6393
+ status: z.ZodEnum<["QUEUED", "OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6390
6394
  outcome: z.ZodNullable<z.ZodEnum<["YES", "NO"]>>;
6391
6395
  asset: z.ZodEnum<["NMN", "bNMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
6392
- betsCloseAt: z.ZodString;
6393
- resolvesAt: z.ZodString;
6396
+ /** Null while the prediction still waits in the queue — dates are stamped on air. */
6397
+ betsCloseAt: z.ZodNullable<z.ZodString>;
6398
+ resolvesAt: z.ZodNullable<z.ZodString>;
6399
+ openedAt: z.ZodNullable<z.ZodString>;
6394
6400
  poolYes: z.ZodString;
6395
6401
  poolNo: z.ZodString;
6396
6402
  poolTotal: z.ZodString;
@@ -6425,7 +6431,7 @@ declare const PredictionDetailSchema: z.ZodObject<{
6425
6431
  payout: string | null;
6426
6432
  }>>;
6427
6433
  }, "strip", z.ZodTypeAny, {
6428
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6434
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6429
6435
  id: string;
6430
6436
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6431
6437
  imageUrl: string | null;
@@ -6434,8 +6440,9 @@ declare const PredictionDetailSchema: z.ZodObject<{
6434
6440
  slug: string;
6435
6441
  description: string | null;
6436
6442
  outcome: "YES" | "NO" | null;
6437
- betsCloseAt: string;
6438
- resolvesAt: string;
6443
+ betsCloseAt: string | null;
6444
+ resolvesAt: string | null;
6445
+ openedAt: string | null;
6439
6446
  poolYes: string;
6440
6447
  poolNo: string;
6441
6448
  poolTotal: string;
@@ -6454,7 +6461,7 @@ declare const PredictionDetailSchema: z.ZodObject<{
6454
6461
  payout: string | null;
6455
6462
  } | null;
6456
6463
  }, {
6457
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6464
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6458
6465
  id: string;
6459
6466
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6460
6467
  imageUrl: string | null;
@@ -6463,8 +6470,9 @@ declare const PredictionDetailSchema: z.ZodObject<{
6463
6470
  slug: string;
6464
6471
  description: string | null;
6465
6472
  outcome: "YES" | "NO" | null;
6466
- betsCloseAt: string;
6467
- resolvesAt: string;
6473
+ betsCloseAt: string | null;
6474
+ resolvesAt: string | null;
6475
+ openedAt: string | null;
6468
6476
  poolYes: string;
6469
6477
  poolNo: string;
6470
6478
  poolTotal: string;
@@ -6503,11 +6511,12 @@ declare namespace ListPredictionsCommand {
6503
6511
  description: z.ZodNullable<z.ZodString>;
6504
6512
  category: z.ZodString;
6505
6513
  imageUrl: z.ZodNullable<z.ZodString>;
6506
- status: z.ZodEnum<["OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6514
+ status: z.ZodEnum<["QUEUED", "OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6507
6515
  outcome: z.ZodNullable<z.ZodEnum<["YES", "NO"]>>;
6508
6516
  asset: z.ZodEnum<["NMN", "bNMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
6509
- betsCloseAt: z.ZodString;
6510
- resolvesAt: z.ZodString;
6517
+ betsCloseAt: z.ZodNullable<z.ZodString>;
6518
+ resolvesAt: z.ZodNullable<z.ZodString>;
6519
+ openedAt: z.ZodNullable<z.ZodString>;
6511
6520
  poolYes: z.ZodString;
6512
6521
  poolNo: z.ZodString;
6513
6522
  poolTotal: z.ZodString;
@@ -6539,7 +6548,7 @@ declare namespace ListPredictionsCommand {
6539
6548
  payout: string | null;
6540
6549
  }>>;
6541
6550
  }, "strip", z.ZodTypeAny, {
6542
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6551
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6543
6552
  id: string;
6544
6553
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6545
6554
  imageUrl: string | null;
@@ -6548,8 +6557,9 @@ declare namespace ListPredictionsCommand {
6548
6557
  slug: string;
6549
6558
  description: string | null;
6550
6559
  outcome: "YES" | "NO" | null;
6551
- betsCloseAt: string;
6552
- resolvesAt: string;
6560
+ betsCloseAt: string | null;
6561
+ resolvesAt: string | null;
6562
+ openedAt: string | null;
6553
6563
  poolYes: string;
6554
6564
  poolNo: string;
6555
6565
  poolTotal: string;
@@ -6568,7 +6578,7 @@ declare namespace ListPredictionsCommand {
6568
6578
  payout: string | null;
6569
6579
  } | null;
6570
6580
  }, {
6571
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6581
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6572
6582
  id: string;
6573
6583
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6574
6584
  imageUrl: string | null;
@@ -6577,8 +6587,9 @@ declare namespace ListPredictionsCommand {
6577
6587
  slug: string;
6578
6588
  description: string | null;
6579
6589
  outcome: "YES" | "NO" | null;
6580
- betsCloseAt: string;
6581
- resolvesAt: string;
6590
+ betsCloseAt: string | null;
6591
+ resolvesAt: string | null;
6592
+ openedAt: string | null;
6582
6593
  poolYes: string;
6583
6594
  poolNo: string;
6584
6595
  poolTotal: string;
@@ -6599,7 +6610,7 @@ declare namespace ListPredictionsCommand {
6599
6610
  }>, "many">;
6600
6611
  }, "strip", z.ZodTypeAny, {
6601
6612
  items: {
6602
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6613
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6603
6614
  id: string;
6604
6615
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6605
6616
  imageUrl: string | null;
@@ -6608,8 +6619,9 @@ declare namespace ListPredictionsCommand {
6608
6619
  slug: string;
6609
6620
  description: string | null;
6610
6621
  outcome: "YES" | "NO" | null;
6611
- betsCloseAt: string;
6612
- resolvesAt: string;
6622
+ betsCloseAt: string | null;
6623
+ resolvesAt: string | null;
6624
+ openedAt: string | null;
6613
6625
  poolYes: string;
6614
6626
  poolNo: string;
6615
6627
  poolTotal: string;
@@ -6630,7 +6642,7 @@ declare namespace ListPredictionsCommand {
6630
6642
  }[];
6631
6643
  }, {
6632
6644
  items: {
6633
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6645
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6634
6646
  id: string;
6635
6647
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6636
6648
  imageUrl: string | null;
@@ -6639,8 +6651,9 @@ declare namespace ListPredictionsCommand {
6639
6651
  slug: string;
6640
6652
  description: string | null;
6641
6653
  outcome: "YES" | "NO" | null;
6642
- betsCloseAt: string;
6643
- resolvesAt: string;
6654
+ betsCloseAt: string | null;
6655
+ resolvesAt: string | null;
6656
+ openedAt: string | null;
6644
6657
  poolYes: string;
6645
6658
  poolNo: string;
6646
6659
  poolTotal: string;
@@ -6671,11 +6684,12 @@ declare namespace GetPredictionCommand {
6671
6684
  description: z.ZodNullable<z.ZodString>;
6672
6685
  category: z.ZodString;
6673
6686
  imageUrl: z.ZodNullable<z.ZodString>;
6674
- status: z.ZodEnum<["OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6687
+ status: z.ZodEnum<["QUEUED", "OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6675
6688
  outcome: z.ZodNullable<z.ZodEnum<["YES", "NO"]>>;
6676
6689
  asset: z.ZodEnum<["NMN", "bNMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
6677
- betsCloseAt: z.ZodString;
6678
- resolvesAt: z.ZodString;
6690
+ betsCloseAt: z.ZodNullable<z.ZodString>;
6691
+ resolvesAt: z.ZodNullable<z.ZodString>;
6692
+ openedAt: z.ZodNullable<z.ZodString>;
6679
6693
  poolYes: z.ZodString;
6680
6694
  poolNo: z.ZodString;
6681
6695
  poolTotal: z.ZodString;
@@ -6707,7 +6721,7 @@ declare namespace GetPredictionCommand {
6707
6721
  payout: string | null;
6708
6722
  }>>;
6709
6723
  }, "strip", z.ZodTypeAny, {
6710
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6724
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6711
6725
  id: string;
6712
6726
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6713
6727
  imageUrl: string | null;
@@ -6716,8 +6730,9 @@ declare namespace GetPredictionCommand {
6716
6730
  slug: string;
6717
6731
  description: string | null;
6718
6732
  outcome: "YES" | "NO" | null;
6719
- betsCloseAt: string;
6720
- resolvesAt: string;
6733
+ betsCloseAt: string | null;
6734
+ resolvesAt: string | null;
6735
+ openedAt: string | null;
6721
6736
  poolYes: string;
6722
6737
  poolNo: string;
6723
6738
  poolTotal: string;
@@ -6736,7 +6751,7 @@ declare namespace GetPredictionCommand {
6736
6751
  payout: string | null;
6737
6752
  } | null;
6738
6753
  }, {
6739
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6754
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6740
6755
  id: string;
6741
6756
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6742
6757
  imageUrl: string | null;
@@ -6745,8 +6760,9 @@ declare namespace GetPredictionCommand {
6745
6760
  slug: string;
6746
6761
  description: string | null;
6747
6762
  outcome: "YES" | "NO" | null;
6748
- betsCloseAt: string;
6749
- resolvesAt: string;
6763
+ betsCloseAt: string | null;
6764
+ resolvesAt: string | null;
6765
+ openedAt: string | null;
6750
6766
  poolYes: string;
6751
6767
  poolNo: string;
6752
6768
  poolTotal: string;
@@ -6790,11 +6806,12 @@ declare namespace PlacePredictionBetCommand {
6790
6806
  description: z.ZodNullable<z.ZodString>;
6791
6807
  category: z.ZodString;
6792
6808
  imageUrl: z.ZodNullable<z.ZodString>;
6793
- status: z.ZodEnum<["OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6809
+ status: z.ZodEnum<["QUEUED", "OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6794
6810
  outcome: z.ZodNullable<z.ZodEnum<["YES", "NO"]>>;
6795
6811
  asset: z.ZodEnum<["NMN", "bNMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
6796
- betsCloseAt: z.ZodString;
6797
- resolvesAt: z.ZodString;
6812
+ betsCloseAt: z.ZodNullable<z.ZodString>;
6813
+ resolvesAt: z.ZodNullable<z.ZodString>;
6814
+ openedAt: z.ZodNullable<z.ZodString>;
6798
6815
  poolYes: z.ZodString;
6799
6816
  poolNo: z.ZodString;
6800
6817
  poolTotal: z.ZodString;
@@ -6826,7 +6843,7 @@ declare namespace PlacePredictionBetCommand {
6826
6843
  payout: string | null;
6827
6844
  }>>;
6828
6845
  }, "strip", z.ZodTypeAny, {
6829
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6846
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6830
6847
  id: string;
6831
6848
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6832
6849
  imageUrl: string | null;
@@ -6835,8 +6852,9 @@ declare namespace PlacePredictionBetCommand {
6835
6852
  slug: string;
6836
6853
  description: string | null;
6837
6854
  outcome: "YES" | "NO" | null;
6838
- betsCloseAt: string;
6839
- resolvesAt: string;
6855
+ betsCloseAt: string | null;
6856
+ resolvesAt: string | null;
6857
+ openedAt: string | null;
6840
6858
  poolYes: string;
6841
6859
  poolNo: string;
6842
6860
  poolTotal: string;
@@ -6855,7 +6873,7 @@ declare namespace PlacePredictionBetCommand {
6855
6873
  payout: string | null;
6856
6874
  } | null;
6857
6875
  }, {
6858
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6876
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6859
6877
  id: string;
6860
6878
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6861
6879
  imageUrl: string | null;
@@ -6864,8 +6882,9 @@ declare namespace PlacePredictionBetCommand {
6864
6882
  slug: string;
6865
6883
  description: string | null;
6866
6884
  outcome: "YES" | "NO" | null;
6867
- betsCloseAt: string;
6868
- resolvesAt: string;
6885
+ betsCloseAt: string | null;
6886
+ resolvesAt: string | null;
6887
+ openedAt: string | null;
6869
6888
  poolYes: string;
6870
6889
  poolNo: string;
6871
6890
  poolTotal: string;
@@ -6989,6 +7008,7 @@ declare const REST_API: {
6989
7008
  };
6990
7009
  readonly PREDICTIONS: {
6991
7010
  readonly LIST: "/predictions";
7011
+ readonly SLOT: "/predictions/slot";
6992
7012
  readonly GET: "/predictions/:slug";
6993
7013
  readonly BET: "/predictions/:slug/bet";
6994
7014
  };
package/dist/index.js CHANGED
@@ -365,6 +365,7 @@ var NotificationTypeSchema = z.enum([
365
365
  "COMMISSION_ACCRUED",
366
366
  "WITHDRAWAL_SENT",
367
367
  "BONUS_CLAIMED",
368
+ "PREDICTION_SETTLED",
368
369
  "SYSTEM"
369
370
  ]);
370
371
  var NotificationSchema = z.object({
@@ -1271,7 +1272,7 @@ var TicketAttachmentUploadCommand;
1271
1272
  });
1272
1273
  })(TicketAttachmentUploadCommand || (TicketAttachmentUploadCommand = {}));
1273
1274
  var PredictionSideSchema = z.enum(["YES", "NO"]);
1274
- var PredictionStatusSchema = z.enum(["OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]);
1275
+ var PredictionStatusSchema = z.enum(["QUEUED", "OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]);
1275
1276
  var PredictionSchema = z.object({
1276
1277
  id: z.string().uuid(),
1277
1278
  slug: z.string(),
@@ -1282,8 +1283,10 @@ var PredictionSchema = z.object({
1282
1283
  status: PredictionStatusSchema,
1283
1284
  outcome: PredictionSideSchema.nullable(),
1284
1285
  asset: AssetSymbolSchema,
1285
- betsCloseAt: z.string(),
1286
- resolvesAt: z.string(),
1286
+ /** Null while the prediction still waits in the queue — dates are stamped on air. */
1287
+ betsCloseAt: z.string().nullable(),
1288
+ resolvesAt: z.string().nullable(),
1289
+ openedAt: z.string().nullable(),
1287
1290
  poolYes: MoneyStringSchema,
1288
1291
  poolNo: MoneyStringSchema,
1289
1292
  poolTotal: MoneyStringSchema,
@@ -1308,6 +1311,12 @@ var PredictionPositionSchema = z.object({
1308
1311
  var PredictionDetailSchema = PredictionSchema.extend({
1309
1312
  position: PredictionPositionSchema.nullable()
1310
1313
  });
1314
+ var PredictionSlotSchema = z.object({
1315
+ live: PredictionDetailSchema.nullable(),
1316
+ last: PredictionDetailSchema.nullable(),
1317
+ nextOpensAt: z.string().nullable(),
1318
+ queued: z.number().int().nonnegative()
1319
+ });
1311
1320
  var ListPredictionsCommand;
1312
1321
  ((ListPredictionsCommand2) => {
1313
1322
  ListPredictionsCommand2.endpointDetails = endpoint(
@@ -1320,6 +1329,15 @@ var ListPredictionsCommand;
1320
1329
  });
1321
1330
  ListPredictionsCommand2.ResponseSchema = z.object({ items: z.array(PredictionDetailSchema) });
1322
1331
  })(ListPredictionsCommand || (ListPredictionsCommand = {}));
1332
+ var GetPredictionSlotCommand;
1333
+ ((GetPredictionSlotCommand2) => {
1334
+ GetPredictionSlotCommand2.endpointDetails = endpoint(
1335
+ "GET",
1336
+ "/predictions/slot",
1337
+ "What the dashboard shows now: the live prediction, or the last result and the countdown"
1338
+ );
1339
+ GetPredictionSlotCommand2.ResponseSchema = PredictionSlotSchema;
1340
+ })(GetPredictionSlotCommand || (GetPredictionSlotCommand = {}));
1323
1341
  var GetPredictionCommand;
1324
1342
  ((GetPredictionCommand2) => {
1325
1343
  GetPredictionCommand2.endpointDetails = endpoint("GET", "/predictions/:slug", "One prediction with the caller position");
@@ -1439,6 +1457,7 @@ var REST_API = {
1439
1457
  },
1440
1458
  PREDICTIONS: {
1441
1459
  LIST: "/predictions",
1460
+ SLOT: "/predictions/slot",
1442
1461
  GET: "/predictions/:slug",
1443
1462
  BET: "/predictions/:slug/bet"
1444
1463
  },