@numen-crypto/contract 0.19.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,14 +6295,19 @@ 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;
6308
+ /** Staked by real bettors, house seed excluded — this is what actually funds a payout. */
6309
+ stakedYes: z.ZodString;
6310
+ stakedNo: z.ZodString;
6306
6311
  /** Share of the total pool sitting on YES, in basis points. */
6307
6312
  yesShareBp: z.ZodNumber;
6308
6313
  participants: z.ZodNumber;
@@ -6310,7 +6315,7 @@ declare const PredictionSchema: z.ZodObject<{
6310
6315
  maxStake: z.ZodNullable<z.ZodString>;
6311
6316
  feeBp: z.ZodNumber;
6312
6317
  }, "strip", z.ZodTypeAny, {
6313
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6318
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6314
6319
  id: string;
6315
6320
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6316
6321
  imageUrl: string | null;
@@ -6319,18 +6324,21 @@ declare const PredictionSchema: z.ZodObject<{
6319
6324
  slug: string;
6320
6325
  description: string | null;
6321
6326
  outcome: "YES" | "NO" | null;
6322
- betsCloseAt: string;
6323
- resolvesAt: string;
6327
+ betsCloseAt: string | null;
6328
+ resolvesAt: string | null;
6329
+ openedAt: string | null;
6324
6330
  poolYes: string;
6325
6331
  poolNo: string;
6326
6332
  poolTotal: string;
6333
+ stakedYes: string;
6334
+ stakedNo: string;
6327
6335
  yesShareBp: number;
6328
6336
  participants: number;
6329
6337
  minStake: string | null;
6330
6338
  maxStake: string | null;
6331
6339
  feeBp: number;
6332
6340
  }, {
6333
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6341
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6334
6342
  id: string;
6335
6343
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6336
6344
  imageUrl: string | null;
@@ -6339,11 +6347,14 @@ declare const PredictionSchema: z.ZodObject<{
6339
6347
  slug: string;
6340
6348
  description: string | null;
6341
6349
  outcome: "YES" | "NO" | null;
6342
- betsCloseAt: string;
6343
- resolvesAt: string;
6350
+ betsCloseAt: string | null;
6351
+ resolvesAt: string | null;
6352
+ openedAt: string | null;
6344
6353
  poolYes: string;
6345
6354
  poolNo: string;
6346
6355
  poolTotal: string;
6356
+ stakedYes: string;
6357
+ stakedNo: string;
6347
6358
  yesShareBp: number;
6348
6359
  participants: number;
6349
6360
  minStake: string | null;
@@ -6379,14 +6390,19 @@ declare const PredictionDetailSchema: z.ZodObject<{
6379
6390
  description: z.ZodNullable<z.ZodString>;
6380
6391
  category: z.ZodString;
6381
6392
  imageUrl: z.ZodNullable<z.ZodString>;
6382
- status: z.ZodEnum<["OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6393
+ status: z.ZodEnum<["QUEUED", "OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6383
6394
  outcome: z.ZodNullable<z.ZodEnum<["YES", "NO"]>>;
6384
6395
  asset: z.ZodEnum<["NMN", "bNMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
6385
- betsCloseAt: z.ZodString;
6386
- 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>;
6387
6400
  poolYes: z.ZodString;
6388
6401
  poolNo: z.ZodString;
6389
6402
  poolTotal: z.ZodString;
6403
+ /** Staked by real bettors, house seed excluded — this is what actually funds a payout. */
6404
+ stakedYes: z.ZodString;
6405
+ stakedNo: z.ZodString;
6390
6406
  /** Share of the total pool sitting on YES, in basis points. */
6391
6407
  yesShareBp: z.ZodNumber;
6392
6408
  participants: z.ZodNumber;
@@ -6415,7 +6431,7 @@ declare const PredictionDetailSchema: z.ZodObject<{
6415
6431
  payout: string | null;
6416
6432
  }>>;
6417
6433
  }, "strip", z.ZodTypeAny, {
6418
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6434
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6419
6435
  id: string;
6420
6436
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6421
6437
  imageUrl: string | null;
@@ -6424,11 +6440,14 @@ declare const PredictionDetailSchema: z.ZodObject<{
6424
6440
  slug: string;
6425
6441
  description: string | null;
6426
6442
  outcome: "YES" | "NO" | null;
6427
- betsCloseAt: string;
6428
- resolvesAt: string;
6443
+ betsCloseAt: string | null;
6444
+ resolvesAt: string | null;
6445
+ openedAt: string | null;
6429
6446
  poolYes: string;
6430
6447
  poolNo: string;
6431
6448
  poolTotal: string;
6449
+ stakedYes: string;
6450
+ stakedNo: string;
6432
6451
  yesShareBp: number;
6433
6452
  participants: number;
6434
6453
  minStake: string | null;
@@ -6442,7 +6461,7 @@ declare const PredictionDetailSchema: z.ZodObject<{
6442
6461
  payout: string | null;
6443
6462
  } | null;
6444
6463
  }, {
6445
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6464
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6446
6465
  id: string;
6447
6466
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6448
6467
  imageUrl: string | null;
@@ -6451,11 +6470,14 @@ declare const PredictionDetailSchema: z.ZodObject<{
6451
6470
  slug: string;
6452
6471
  description: string | null;
6453
6472
  outcome: "YES" | "NO" | null;
6454
- betsCloseAt: string;
6455
- resolvesAt: string;
6473
+ betsCloseAt: string | null;
6474
+ resolvesAt: string | null;
6475
+ openedAt: string | null;
6456
6476
  poolYes: string;
6457
6477
  poolNo: string;
6458
6478
  poolTotal: string;
6479
+ stakedYes: string;
6480
+ stakedNo: string;
6459
6481
  yesShareBp: number;
6460
6482
  participants: number;
6461
6483
  minStake: string | null;
@@ -6489,14 +6511,17 @@ declare namespace ListPredictionsCommand {
6489
6511
  description: z.ZodNullable<z.ZodString>;
6490
6512
  category: z.ZodString;
6491
6513
  imageUrl: z.ZodNullable<z.ZodString>;
6492
- status: z.ZodEnum<["OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6514
+ status: z.ZodEnum<["QUEUED", "OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6493
6515
  outcome: z.ZodNullable<z.ZodEnum<["YES", "NO"]>>;
6494
6516
  asset: z.ZodEnum<["NMN", "bNMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
6495
- betsCloseAt: z.ZodString;
6496
- resolvesAt: z.ZodString;
6517
+ betsCloseAt: z.ZodNullable<z.ZodString>;
6518
+ resolvesAt: z.ZodNullable<z.ZodString>;
6519
+ openedAt: z.ZodNullable<z.ZodString>;
6497
6520
  poolYes: z.ZodString;
6498
6521
  poolNo: z.ZodString;
6499
6522
  poolTotal: z.ZodString;
6523
+ stakedYes: z.ZodString;
6524
+ stakedNo: z.ZodString;
6500
6525
  yesShareBp: z.ZodNumber;
6501
6526
  participants: z.ZodNumber;
6502
6527
  minStake: z.ZodNullable<z.ZodString>;
@@ -6523,7 +6548,7 @@ declare namespace ListPredictionsCommand {
6523
6548
  payout: string | null;
6524
6549
  }>>;
6525
6550
  }, "strip", z.ZodTypeAny, {
6526
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6551
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6527
6552
  id: string;
6528
6553
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6529
6554
  imageUrl: string | null;
@@ -6532,11 +6557,14 @@ declare namespace ListPredictionsCommand {
6532
6557
  slug: string;
6533
6558
  description: string | null;
6534
6559
  outcome: "YES" | "NO" | null;
6535
- betsCloseAt: string;
6536
- resolvesAt: string;
6560
+ betsCloseAt: string | null;
6561
+ resolvesAt: string | null;
6562
+ openedAt: string | null;
6537
6563
  poolYes: string;
6538
6564
  poolNo: string;
6539
6565
  poolTotal: string;
6566
+ stakedYes: string;
6567
+ stakedNo: string;
6540
6568
  yesShareBp: number;
6541
6569
  participants: number;
6542
6570
  minStake: string | null;
@@ -6550,7 +6578,7 @@ declare namespace ListPredictionsCommand {
6550
6578
  payout: string | null;
6551
6579
  } | null;
6552
6580
  }, {
6553
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6581
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6554
6582
  id: string;
6555
6583
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6556
6584
  imageUrl: string | null;
@@ -6559,11 +6587,14 @@ declare namespace ListPredictionsCommand {
6559
6587
  slug: string;
6560
6588
  description: string | null;
6561
6589
  outcome: "YES" | "NO" | null;
6562
- betsCloseAt: string;
6563
- resolvesAt: string;
6590
+ betsCloseAt: string | null;
6591
+ resolvesAt: string | null;
6592
+ openedAt: string | null;
6564
6593
  poolYes: string;
6565
6594
  poolNo: string;
6566
6595
  poolTotal: string;
6596
+ stakedYes: string;
6597
+ stakedNo: string;
6567
6598
  yesShareBp: number;
6568
6599
  participants: number;
6569
6600
  minStake: string | null;
@@ -6579,7 +6610,7 @@ declare namespace ListPredictionsCommand {
6579
6610
  }>, "many">;
6580
6611
  }, "strip", z.ZodTypeAny, {
6581
6612
  items: {
6582
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6613
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6583
6614
  id: string;
6584
6615
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6585
6616
  imageUrl: string | null;
@@ -6588,11 +6619,14 @@ declare namespace ListPredictionsCommand {
6588
6619
  slug: string;
6589
6620
  description: string | null;
6590
6621
  outcome: "YES" | "NO" | null;
6591
- betsCloseAt: string;
6592
- resolvesAt: string;
6622
+ betsCloseAt: string | null;
6623
+ resolvesAt: string | null;
6624
+ openedAt: string | null;
6593
6625
  poolYes: string;
6594
6626
  poolNo: string;
6595
6627
  poolTotal: string;
6628
+ stakedYes: string;
6629
+ stakedNo: string;
6596
6630
  yesShareBp: number;
6597
6631
  participants: number;
6598
6632
  minStake: string | null;
@@ -6608,7 +6642,7 @@ declare namespace ListPredictionsCommand {
6608
6642
  }[];
6609
6643
  }, {
6610
6644
  items: {
6611
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6645
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6612
6646
  id: string;
6613
6647
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6614
6648
  imageUrl: string | null;
@@ -6617,11 +6651,14 @@ declare namespace ListPredictionsCommand {
6617
6651
  slug: string;
6618
6652
  description: string | null;
6619
6653
  outcome: "YES" | "NO" | null;
6620
- betsCloseAt: string;
6621
- resolvesAt: string;
6654
+ betsCloseAt: string | null;
6655
+ resolvesAt: string | null;
6656
+ openedAt: string | null;
6622
6657
  poolYes: string;
6623
6658
  poolNo: string;
6624
6659
  poolTotal: string;
6660
+ stakedYes: string;
6661
+ stakedNo: string;
6625
6662
  yesShareBp: number;
6626
6663
  participants: number;
6627
6664
  minStake: string | null;
@@ -6647,14 +6684,17 @@ declare namespace GetPredictionCommand {
6647
6684
  description: z.ZodNullable<z.ZodString>;
6648
6685
  category: z.ZodString;
6649
6686
  imageUrl: z.ZodNullable<z.ZodString>;
6650
- status: z.ZodEnum<["OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6687
+ status: z.ZodEnum<["QUEUED", "OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6651
6688
  outcome: z.ZodNullable<z.ZodEnum<["YES", "NO"]>>;
6652
6689
  asset: z.ZodEnum<["NMN", "bNMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
6653
- betsCloseAt: z.ZodString;
6654
- resolvesAt: z.ZodString;
6690
+ betsCloseAt: z.ZodNullable<z.ZodString>;
6691
+ resolvesAt: z.ZodNullable<z.ZodString>;
6692
+ openedAt: z.ZodNullable<z.ZodString>;
6655
6693
  poolYes: z.ZodString;
6656
6694
  poolNo: z.ZodString;
6657
6695
  poolTotal: z.ZodString;
6696
+ stakedYes: z.ZodString;
6697
+ stakedNo: z.ZodString;
6658
6698
  yesShareBp: z.ZodNumber;
6659
6699
  participants: z.ZodNumber;
6660
6700
  minStake: z.ZodNullable<z.ZodString>;
@@ -6681,7 +6721,7 @@ declare namespace GetPredictionCommand {
6681
6721
  payout: string | null;
6682
6722
  }>>;
6683
6723
  }, "strip", z.ZodTypeAny, {
6684
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6724
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6685
6725
  id: string;
6686
6726
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6687
6727
  imageUrl: string | null;
@@ -6690,11 +6730,14 @@ declare namespace GetPredictionCommand {
6690
6730
  slug: string;
6691
6731
  description: string | null;
6692
6732
  outcome: "YES" | "NO" | null;
6693
- betsCloseAt: string;
6694
- resolvesAt: string;
6733
+ betsCloseAt: string | null;
6734
+ resolvesAt: string | null;
6735
+ openedAt: string | null;
6695
6736
  poolYes: string;
6696
6737
  poolNo: string;
6697
6738
  poolTotal: string;
6739
+ stakedYes: string;
6740
+ stakedNo: string;
6698
6741
  yesShareBp: number;
6699
6742
  participants: number;
6700
6743
  minStake: string | null;
@@ -6708,7 +6751,7 @@ declare namespace GetPredictionCommand {
6708
6751
  payout: string | null;
6709
6752
  } | null;
6710
6753
  }, {
6711
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6754
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6712
6755
  id: string;
6713
6756
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6714
6757
  imageUrl: string | null;
@@ -6717,11 +6760,14 @@ declare namespace GetPredictionCommand {
6717
6760
  slug: string;
6718
6761
  description: string | null;
6719
6762
  outcome: "YES" | "NO" | null;
6720
- betsCloseAt: string;
6721
- resolvesAt: string;
6763
+ betsCloseAt: string | null;
6764
+ resolvesAt: string | null;
6765
+ openedAt: string | null;
6722
6766
  poolYes: string;
6723
6767
  poolNo: string;
6724
6768
  poolTotal: string;
6769
+ stakedYes: string;
6770
+ stakedNo: string;
6725
6771
  yesShareBp: number;
6726
6772
  participants: number;
6727
6773
  minStake: string | null;
@@ -6760,14 +6806,17 @@ declare namespace PlacePredictionBetCommand {
6760
6806
  description: z.ZodNullable<z.ZodString>;
6761
6807
  category: z.ZodString;
6762
6808
  imageUrl: z.ZodNullable<z.ZodString>;
6763
- status: z.ZodEnum<["OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6809
+ status: z.ZodEnum<["QUEUED", "OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]>;
6764
6810
  outcome: z.ZodNullable<z.ZodEnum<["YES", "NO"]>>;
6765
6811
  asset: z.ZodEnum<["NMN", "bNMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
6766
- betsCloseAt: z.ZodString;
6767
- resolvesAt: z.ZodString;
6812
+ betsCloseAt: z.ZodNullable<z.ZodString>;
6813
+ resolvesAt: z.ZodNullable<z.ZodString>;
6814
+ openedAt: z.ZodNullable<z.ZodString>;
6768
6815
  poolYes: z.ZodString;
6769
6816
  poolNo: z.ZodString;
6770
6817
  poolTotal: z.ZodString;
6818
+ stakedYes: z.ZodString;
6819
+ stakedNo: z.ZodString;
6771
6820
  yesShareBp: z.ZodNumber;
6772
6821
  participants: z.ZodNumber;
6773
6822
  minStake: z.ZodNullable<z.ZodString>;
@@ -6794,7 +6843,7 @@ declare namespace PlacePredictionBetCommand {
6794
6843
  payout: string | null;
6795
6844
  }>>;
6796
6845
  }, "strip", z.ZodTypeAny, {
6797
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6846
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6798
6847
  id: string;
6799
6848
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6800
6849
  imageUrl: string | null;
@@ -6803,11 +6852,14 @@ declare namespace PlacePredictionBetCommand {
6803
6852
  slug: string;
6804
6853
  description: string | null;
6805
6854
  outcome: "YES" | "NO" | null;
6806
- betsCloseAt: string;
6807
- resolvesAt: string;
6855
+ betsCloseAt: string | null;
6856
+ resolvesAt: string | null;
6857
+ openedAt: string | null;
6808
6858
  poolYes: string;
6809
6859
  poolNo: string;
6810
6860
  poolTotal: string;
6861
+ stakedYes: string;
6862
+ stakedNo: string;
6811
6863
  yesShareBp: number;
6812
6864
  participants: number;
6813
6865
  minStake: string | null;
@@ -6821,7 +6873,7 @@ declare namespace PlacePredictionBetCommand {
6821
6873
  payout: string | null;
6822
6874
  } | null;
6823
6875
  }, {
6824
- status: "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6876
+ status: "QUEUED" | "OPEN" | "LOCKED" | "RESOLVING" | "RESOLVED" | "VOID";
6825
6877
  id: string;
6826
6878
  asset: "NMN" | "bNMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
6827
6879
  imageUrl: string | null;
@@ -6830,11 +6882,14 @@ declare namespace PlacePredictionBetCommand {
6830
6882
  slug: string;
6831
6883
  description: string | null;
6832
6884
  outcome: "YES" | "NO" | null;
6833
- betsCloseAt: string;
6834
- resolvesAt: string;
6885
+ betsCloseAt: string | null;
6886
+ resolvesAt: string | null;
6887
+ openedAt: string | null;
6835
6888
  poolYes: string;
6836
6889
  poolNo: string;
6837
6890
  poolTotal: string;
6891
+ stakedYes: string;
6892
+ stakedNo: string;
6838
6893
  yesShareBp: number;
6839
6894
  participants: number;
6840
6895
  minStake: string | null;
@@ -6953,6 +7008,7 @@ declare const REST_API: {
6953
7008
  };
6954
7009
  readonly PREDICTIONS: {
6955
7010
  readonly LIST: "/predictions";
7011
+ readonly SLOT: "/predictions/slot";
6956
7012
  readonly GET: "/predictions/:slug";
6957
7013
  readonly BET: "/predictions/:slug/bet";
6958
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,11 +1283,16 @@ 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,
1293
+ /** Staked by real bettors, house seed excluded — this is what actually funds a payout. */
1294
+ stakedYes: MoneyStringSchema,
1295
+ stakedNo: MoneyStringSchema,
1290
1296
  /** Share of the total pool sitting on YES, in basis points. */
1291
1297
  yesShareBp: z.number().int().min(0).max(1e4),
1292
1298
  participants: z.number().int().nonnegative(),
@@ -1305,6 +1311,12 @@ var PredictionPositionSchema = z.object({
1305
1311
  var PredictionDetailSchema = PredictionSchema.extend({
1306
1312
  position: PredictionPositionSchema.nullable()
1307
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
+ });
1308
1320
  var ListPredictionsCommand;
1309
1321
  ((ListPredictionsCommand2) => {
1310
1322
  ListPredictionsCommand2.endpointDetails = endpoint(
@@ -1317,6 +1329,15 @@ var ListPredictionsCommand;
1317
1329
  });
1318
1330
  ListPredictionsCommand2.ResponseSchema = z.object({ items: z.array(PredictionDetailSchema) });
1319
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 = {}));
1320
1341
  var GetPredictionCommand;
1321
1342
  ((GetPredictionCommand2) => {
1322
1343
  GetPredictionCommand2.endpointDetails = endpoint("GET", "/predictions/:slug", "One prediction with the caller position");
@@ -1436,6 +1457,7 @@ var REST_API = {
1436
1457
  },
1437
1458
  PREDICTIONS: {
1438
1459
  LIST: "/predictions",
1460
+ SLOT: "/predictions/slot",
1439
1461
  GET: "/predictions/:slug",
1440
1462
  BET: "/predictions/:slug/bet"
1441
1463
  },