@lichess-org/types 2.0.84 → 2.0.86

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.
Files changed (2) hide show
  1. package/lichess-api.d.ts +121 -118
  2. package/package.json +1 -1
package/lichess-api.d.ts CHANGED
@@ -6436,6 +6436,14 @@ export interface components {
6436
6436
  BroadcastRoundStudyInfo: {
6437
6437
  /** @description Whether the currently authenticated user has permission to update the study */
6438
6438
  writeable?: boolean;
6439
+ features?: {
6440
+ /** @description Whether chat is enabled for the currently authenticated user */
6441
+ chat?: boolean;
6442
+ /** @description Whether engine analysis is enabled for the currently authenticated user */
6443
+ computer?: boolean;
6444
+ /** @description Whether the opening explorer + tablebase is enabled for the currently authenticated user */
6445
+ explorer?: boolean;
6446
+ };
6439
6447
  };
6440
6448
  BroadcastRoundNew: {
6441
6449
  round: components["schemas"]["BroadcastRoundInfo"];
@@ -10267,7 +10275,7 @@ export interface operations {
10267
10275
  query?: {
10268
10276
  /** @description The theme or opening to filter puzzles with.
10269
10277
  *
10270
- * Available themes are listed in [the lichess source code](https://github.com/ornicar/lila/blob/master/translation/source/puzzleTheme.xml).
10278
+ * Available themes are listed in [the lichess source code](https://github.com/ornicar/lila/blob/master/translation/source/puzzleTheme.xml) and [the lichess training themes hyperlinks](https://lichess.org/training/themes).
10271
10279
  * */
10272
10280
  angle?: string;
10273
10281
  /** @description The desired puzzle difficulty, relative to the authenticated user puzzle rating, or 1500 if anonymous. */
@@ -10357,7 +10365,7 @@ export interface operations {
10357
10365
  path: {
10358
10366
  /** @description The theme or opening to filter puzzles with. Recommended: `mix`.
10359
10367
  *
10360
- * Available themes are listed in [the lichess source code](https://github.com/ornicar/lila/blob/master/translation/source/puzzleTheme.xml).
10368
+ * Available themes are listed in [the lichess source code](https://github.com/ornicar/lila/blob/master/translation/source/puzzleTheme.xml) and [the lichess training themes hyperlinks](https://lichess.org/training/themes).
10361
10369
  * */
10362
10370
  angle: string;
10363
10371
  };
@@ -10442,7 +10450,7 @@ export interface operations {
10442
10450
  path: {
10443
10451
  /** @description The theme or opening of the solved puzzles.
10444
10452
  *
10445
- * Available themes are listed in [the lichess source code](https://github.com/ornicar/lila/blob/master/translation/source/puzzleTheme.xml).
10453
+ * Available themes are listed in [the lichess source code](https://github.com/ornicar/lila/blob/master/translation/source/puzzleTheme.xml) and [the lichess training themes hyperlinks](https://lichess.org/training/themes).
10446
10454
  * */
10447
10455
  angle: string;
10448
10456
  };
@@ -31575,60 +31583,60 @@ export interface operations {
31575
31583
  content: {
31576
31584
  /** @example {
31577
31585
  * "tour": {
31578
- * "id": "i4qWomtq",
31586
+ * "id": "dkGBWEoa",
31579
31587
  * "name": "Knight Invitational",
31580
31588
  * "slug": "knight-invitational",
31581
31589
  * "info": {},
31582
- * "createdAt": 1758636956497,
31583
- * "url": "https://lichess.org/broadcast/knight-invitational/i4qWomtq",
31590
+ * "createdAt": 1760452031769,
31591
+ * "url": "https://lichess.org/broadcast/knight-invitational/dkGBWEoa",
31584
31592
  * "tier": 5,
31585
31593
  * "dates": [
31586
- * 1758636956587
31594
+ * 1760452032087
31587
31595
  * ]
31588
31596
  * },
31589
31597
  * "rounds": [
31590
31598
  * {
31591
- * "id": "WnhNmprO",
31599
+ * "id": "KpayT1YZ",
31592
31600
  * "name": "Round 1",
31593
31601
  * "slug": "round-1",
31594
- * "createdAt": 1758636956518,
31602
+ * "createdAt": 1760452031888,
31595
31603
  * "rated": false,
31596
31604
  * "ongoing": true,
31597
- * "startsAt": 1758640556508,
31598
- * "url": "https://lichess.org/broadcast/knight-invitational/round-1/WnhNmprO"
31605
+ * "startsAt": 1760455631824,
31606
+ * "url": "https://lichess.org/broadcast/knight-invitational/round-1/KpayT1YZ"
31599
31607
  * },
31600
31608
  * {
31601
- * "id": "SjPgcE1i",
31609
+ * "id": "JmMB52Fd",
31602
31610
  * "name": "Round 2",
31603
31611
  * "slug": "round-2",
31604
- * "createdAt": 1758636956544,
31612
+ * "createdAt": 1760452032027,
31605
31613
  * "rated": false,
31606
31614
  * "ongoing": true,
31607
- * "startsAt": 1758644156508,
31608
- * "url": "https://lichess.org/broadcast/knight-invitational/round-2/SjPgcE1i"
31615
+ * "startsAt": 1760459231824,
31616
+ * "url": "https://lichess.org/broadcast/knight-invitational/round-2/JmMB52Fd"
31609
31617
  * },
31610
31618
  * {
31611
- * "id": "xyShgpPn",
31619
+ * "id": "iMXP05Cu",
31612
31620
  * "name": "Round 3",
31613
31621
  * "slug": "round-3",
31614
- * "createdAt": 1758636956566,
31622
+ * "createdAt": 1760452032058,
31615
31623
  * "rated": false,
31616
31624
  * "ongoing": true,
31617
- * "startsAt": 1758647756508,
31618
- * "url": "https://lichess.org/broadcast/knight-invitational/round-3/xyShgpPn"
31625
+ * "startsAt": 1760462831824,
31626
+ * "url": "https://lichess.org/broadcast/knight-invitational/round-3/iMXP05Cu"
31619
31627
  * },
31620
31628
  * {
31621
- * "id": "9kbmXL5J",
31629
+ * "id": "UpDXGrhz",
31622
31630
  * "name": "Final Round",
31623
31631
  * "slug": "final-round",
31624
- * "createdAt": 1758636956587,
31632
+ * "createdAt": 1760452032086,
31625
31633
  * "rated": false,
31626
31634
  * "ongoing": true,
31627
- * "startsAt": 1758636956587,
31628
- * "url": "https://lichess.org/broadcast/knight-invitational/final-round/9kbmXL5J"
31635
+ * "startsAt": 1760452032087,
31636
+ * "url": "https://lichess.org/broadcast/knight-invitational/final-round/UpDXGrhz"
31629
31637
  * }
31630
31638
  * ],
31631
- * "defaultRoundId": "WnhNmprO"
31639
+ * "defaultRoundId": "KpayT1YZ"
31632
31640
  * } */
31633
31641
  "application/x-ndjson": components["schemas"]["BroadcastWithRounds"];
31634
31642
  };
@@ -31663,26 +31671,26 @@ export interface operations {
31663
31671
  * "active": [
31664
31672
  * {
31665
31673
  * "tour": {
31666
- * "id": "i4qWomtq",
31674
+ * "id": "dkGBWEoa",
31667
31675
  * "name": "Knight Invitational",
31668
31676
  * "slug": "knight-invitational",
31669
31677
  * "info": {},
31670
- * "createdAt": 1758636956497,
31671
- * "url": "https://lichess.org/broadcast/knight-invitational/i4qWomtq",
31678
+ * "createdAt": 1760452031769,
31679
+ * "url": "https://lichess.org/broadcast/knight-invitational/dkGBWEoa",
31672
31680
  * "tier": 5,
31673
31681
  * "dates": [
31674
- * 1758636956587
31682
+ * 1760452032087
31675
31683
  * ]
31676
31684
  * },
31677
31685
  * "round": {
31678
- * "id": "WnhNmprO",
31686
+ * "id": "KpayT1YZ",
31679
31687
  * "name": "Round 1",
31680
31688
  * "slug": "round-1",
31681
- * "createdAt": 1758636956518,
31689
+ * "createdAt": 1760452031888,
31682
31690
  * "rated": false,
31683
31691
  * "ongoing": true,
31684
- * "startsAt": 1758640556508,
31685
- * "url": "https://lichess.org/broadcast/knight-invitational/round-1/WnhNmprO"
31692
+ * "startsAt": 1760455631824,
31693
+ * "url": "https://lichess.org/broadcast/knight-invitational/round-1/KpayT1YZ"
31686
31694
  * }
31687
31695
  * }
31688
31696
  * ],
@@ -31731,38 +31739,18 @@ export interface operations {
31731
31739
  * "currentPageResults": [
31732
31740
  * {
31733
31741
  * "tour": {
31734
- * "id": "1mOPQROx",
31735
- * "name": "Bobby's Tournament",
31736
- * "slug": "bobbys-tournament",
31737
- * "info": {
31738
- * "format": "5-round Swiss",
31739
- * "location": "Chess Club"
31740
- * },
31741
- * "createdAt": 1758636956662,
31742
- * "url": "https://lichess.org/broadcast/bobbys-tournament/1mOPQROx",
31743
- * "communityOwner": {
31744
- * "name": "Bobby",
31745
- * "patron": true,
31746
- * "patronColor": 1,
31747
- * "id": "bobby"
31748
- * }
31749
- * }
31750
- * },
31751
- * {
31752
- * "tour": {
31753
- * "id": "6I07VJMl",
31742
+ * "id": "SSCQsHi5",
31754
31743
  * "name": "Bobby's Tournament",
31755
31744
  * "slug": "bobbys-tournament",
31756
31745
  * "info": {
31757
31746
  * "format": "5-round Swiss",
31758
31747
  * "location": "Chess Club"
31759
31748
  * },
31760
- * "createdAt": 1758636832010,
31761
- * "url": "https://lichess.org/broadcast/bobbys-tournament/6I07VJMl",
31749
+ * "createdAt": 1760452032543,
31750
+ * "url": "https://lichess.org/broadcast/bobbys-tournament/SSCQsHi5",
31762
31751
  * "communityOwner": {
31763
31752
  * "name": "Bobby",
31764
- * "patron": true,
31765
- * "patronColor": 1,
31753
+ * "flair": "food-drink.cooked-rice",
31766
31754
  * "id": "bobby"
31767
31755
  * }
31768
31756
  * }
@@ -31770,7 +31758,7 @@ export interface operations {
31770
31758
  * ],
31771
31759
  * "previousPage": null,
31772
31760
  * "nextPage": null,
31773
- * "nbResults": 2,
31761
+ * "nbResults": 1,
31774
31762
  * "nbPages": 1
31775
31763
  * } */
31776
31764
  "application/json": {
@@ -31819,26 +31807,26 @@ export interface operations {
31819
31807
  * "currentPageResults": [
31820
31808
  * {
31821
31809
  * "tour": {
31822
- * "id": "i4qWomtq",
31810
+ * "id": "dkGBWEoa",
31823
31811
  * "name": "Knight Invitational",
31824
31812
  * "slug": "knight-invitational",
31825
31813
  * "info": {},
31826
- * "createdAt": 1758636956497,
31827
- * "url": "https://lichess.org/broadcast/knight-invitational/i4qWomtq",
31814
+ * "createdAt": 1760452031769,
31815
+ * "url": "https://lichess.org/broadcast/knight-invitational/dkGBWEoa",
31828
31816
  * "tier": 5,
31829
31817
  * "dates": [
31830
- * 1758636956587
31818
+ * 1760452032087
31831
31819
  * ]
31832
31820
  * },
31833
31821
  * "round": {
31834
- * "id": "9kbmXL5J",
31822
+ * "id": "UpDXGrhz",
31835
31823
  * "name": "Final Round",
31836
31824
  * "slug": "final-round",
31837
- * "createdAt": 1758636956587,
31825
+ * "createdAt": 1760452032086,
31838
31826
  * "rated": false,
31839
31827
  * "ongoing": true,
31840
- * "startsAt": 1758636956587,
31841
- * "url": "https://lichess.org/broadcast/knight-invitational/final-round/9kbmXL5J"
31828
+ * "startsAt": 1760452032087,
31829
+ * "url": "https://lichess.org/broadcast/knight-invitational/final-round/UpDXGrhz"
31842
31830
  * }
31843
31831
  * }
31844
31832
  * ],
@@ -31878,12 +31866,12 @@ export interface operations {
31878
31866
  content: {
31879
31867
  /** @example {
31880
31868
  * "tour": {
31881
- * "id": "i4qWomtq",
31869
+ * "id": "dkGBWEoa",
31882
31870
  * "name": "Knight Invitational",
31883
31871
  * "slug": "knight-invitational",
31884
31872
  * "info": {},
31885
- * "createdAt": 1758636956497,
31886
- * "url": "https://lichess.org/broadcast/knight-invitational/i4qWomtq",
31873
+ * "createdAt": 1760452031769,
31874
+ * "url": "https://lichess.org/broadcast/knight-invitational/dkGBWEoa",
31887
31875
  * "tier": 5
31888
31876
  * },
31889
31877
  * "rounds": []
@@ -31922,60 +31910,60 @@ export interface operations {
31922
31910
  content: {
31923
31911
  /** @example {
31924
31912
  * "tour": {
31925
- * "id": "i4qWomtq",
31913
+ * "id": "dkGBWEoa",
31926
31914
  * "name": "Knight Invitational",
31927
31915
  * "slug": "knight-invitational",
31928
31916
  * "info": {},
31929
- * "createdAt": 1758636956497,
31930
- * "url": "https://lichess.org/broadcast/knight-invitational/i4qWomtq",
31917
+ * "createdAt": 1760452031769,
31918
+ * "url": "https://lichess.org/broadcast/knight-invitational/dkGBWEoa",
31931
31919
  * "tier": 5,
31932
31920
  * "dates": [
31933
- * 1758636956587
31921
+ * 1760452032087
31934
31922
  * ]
31935
31923
  * },
31936
31924
  * "rounds": [
31937
31925
  * {
31938
- * "id": "WnhNmprO",
31926
+ * "id": "KpayT1YZ",
31939
31927
  * "name": "Round 1",
31940
31928
  * "slug": "round-1",
31941
- * "createdAt": 1758636956518,
31929
+ * "createdAt": 1760452031888,
31942
31930
  * "rated": false,
31943
31931
  * "ongoing": true,
31944
- * "startsAt": 1758640556508,
31945
- * "url": "https://lichess.org/broadcast/knight-invitational/round-1/WnhNmprO"
31932
+ * "startsAt": 1760455631824,
31933
+ * "url": "https://lichess.org/broadcast/knight-invitational/round-1/KpayT1YZ"
31946
31934
  * },
31947
31935
  * {
31948
- * "id": "SjPgcE1i",
31936
+ * "id": "JmMB52Fd",
31949
31937
  * "name": "Round 2",
31950
31938
  * "slug": "round-2",
31951
- * "createdAt": 1758636956544,
31939
+ * "createdAt": 1760452032027,
31952
31940
  * "rated": false,
31953
31941
  * "ongoing": true,
31954
- * "startsAt": 1758644156508,
31955
- * "url": "https://lichess.org/broadcast/knight-invitational/round-2/SjPgcE1i"
31942
+ * "startsAt": 1760459231824,
31943
+ * "url": "https://lichess.org/broadcast/knight-invitational/round-2/JmMB52Fd"
31956
31944
  * },
31957
31945
  * {
31958
- * "id": "xyShgpPn",
31946
+ * "id": "iMXP05Cu",
31959
31947
  * "name": "Round 3",
31960
31948
  * "slug": "round-3",
31961
- * "createdAt": 1758636956566,
31949
+ * "createdAt": 1760452032058,
31962
31950
  * "rated": false,
31963
31951
  * "ongoing": true,
31964
- * "startsAt": 1758647756508,
31965
- * "url": "https://lichess.org/broadcast/knight-invitational/round-3/xyShgpPn"
31952
+ * "startsAt": 1760462831824,
31953
+ * "url": "https://lichess.org/broadcast/knight-invitational/round-3/iMXP05Cu"
31966
31954
  * },
31967
31955
  * {
31968
- * "id": "9kbmXL5J",
31956
+ * "id": "UpDXGrhz",
31969
31957
  * "name": "Final Round",
31970
31958
  * "slug": "final-round",
31971
- * "createdAt": 1758636956587,
31959
+ * "createdAt": 1760452032086,
31972
31960
  * "rated": false,
31973
31961
  * "ongoing": true,
31974
- * "startsAt": 1758636956587,
31975
- * "url": "https://lichess.org/broadcast/knight-invitational/final-round/9kbmXL5J"
31962
+ * "startsAt": 1760452032087,
31963
+ * "url": "https://lichess.org/broadcast/knight-invitational/final-round/UpDXGrhz"
31976
31964
  * }
31977
31965
  * ],
31978
- * "defaultRoundId": "WnhNmprO"
31966
+ * "defaultRoundId": "KpayT1YZ"
31979
31967
  * } */
31980
31968
  "application/json": components["schemas"]["BroadcastWithRounds"];
31981
31969
  };
@@ -32201,29 +32189,34 @@ export interface operations {
32201
32189
  content: {
32202
32190
  /** @example {
32203
32191
  * "round": {
32204
- * "id": "9kbmXL5J",
32192
+ * "id": "UpDXGrhz",
32205
32193
  * "name": "Final Round",
32206
32194
  * "slug": "final-round",
32207
- * "createdAt": 1758636956587,
32195
+ * "createdAt": 1760452032086,
32208
32196
  * "rated": false,
32209
32197
  * "ongoing": true,
32210
- * "startsAt": 1758636956587,
32211
- * "url": "https://lichess.org/broadcast/knight-invitational/final-round/9kbmXL5J"
32198
+ * "startsAt": 1760452032087,
32199
+ * "url": "https://lichess.org/broadcast/knight-invitational/final-round/UpDXGrhz"
32212
32200
  * },
32213
32201
  * "tour": {
32214
- * "id": "i4qWomtq",
32202
+ * "id": "dkGBWEoa",
32215
32203
  * "name": "Knight Invitational",
32216
32204
  * "slug": "knight-invitational",
32217
32205
  * "info": {},
32218
- * "createdAt": 1758636956497,
32219
- * "url": "https://lichess.org/broadcast/knight-invitational/i4qWomtq",
32206
+ * "createdAt": 1760452031769,
32207
+ * "url": "https://lichess.org/broadcast/knight-invitational/dkGBWEoa",
32220
32208
  * "tier": 5,
32221
32209
  * "dates": [
32222
- * 1758640556508
32210
+ * 1760455631824
32223
32211
  * ]
32224
32212
  * },
32225
32213
  * "study": {
32226
- * "writeable": true
32214
+ * "writeable": true,
32215
+ * "features": {
32216
+ * "chat": true,
32217
+ * "computer": true,
32218
+ * "explorer": true
32219
+ * }
32227
32220
  * }
32228
32221
  * } */
32229
32222
  "application/json": components["schemas"]["BroadcastRoundNew"];
@@ -32292,32 +32285,37 @@ export interface operations {
32292
32285
  content: {
32293
32286
  /** @example {
32294
32287
  * "round": {
32295
- * "id": "9kbmXL5J",
32288
+ * "id": "UpDXGrhz",
32296
32289
  * "name": "Final Round 2",
32297
32290
  * "slug": "final-round-2",
32298
- * "createdAt": 1758636956587,
32291
+ * "createdAt": 1760452032086,
32299
32292
  * "rated": false,
32300
32293
  * "ongoing": true,
32301
- * "startsAt": 1758636956587,
32302
- * "url": "https://lichess.org/broadcast/knight-invitational-2/final-round-2/9kbmXL5J"
32294
+ * "startsAt": 1760452032087,
32295
+ * "url": "https://lichess.org/broadcast/knight-invitational-2/final-round-2/UpDXGrhz"
32303
32296
  * },
32304
32297
  * "tour": {
32305
- * "id": "i4qWomtq",
32298
+ * "id": "dkGBWEoa",
32306
32299
  * "name": "Knight Invitational 2",
32307
32300
  * "slug": "knight-invitational-2",
32308
32301
  * "info": {},
32309
- * "createdAt": 1758636956497,
32310
- * "url": "https://lichess.org/broadcast/knight-invitational-2/i4qWomtq",
32302
+ * "createdAt": 1760452031769,
32303
+ * "url": "https://lichess.org/broadcast/knight-invitational-2/dkGBWEoa",
32311
32304
  * "dates": [
32312
- * 1758636956587
32305
+ * 1760452032087
32313
32306
  * ]
32314
32307
  * },
32315
32308
  * "study": {
32316
- * "writeable": true
32309
+ * "writeable": true,
32310
+ * "features": {
32311
+ * "chat": true,
32312
+ * "computer": true,
32313
+ * "explorer": true
32314
+ * }
32317
32315
  * },
32318
32316
  * "games": [
32319
32317
  * {
32320
- * "id": "iE2P7xmV",
32318
+ * "id": "n6z0jerF",
32321
32319
  * "name": "Player 1 - Player 2",
32322
32320
  * "fen": "rnbqkbnr/pppp1ppp/8/4p3/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 2",
32323
32321
  * "players": [
@@ -32333,7 +32331,7 @@ export interface operations {
32333
32331
  * "status": "*"
32334
32332
  * },
32335
32333
  * {
32336
- * "id": "EldTK572",
32334
+ * "id": "03cTYZaY",
32337
32335
  * "name": "Player 3 - Player 4",
32338
32336
  * "fen": "rnbqkbnr/ppp1pppp/8/3p4/3P4/8/PPP1PPPP/RNBQKBNR w KQkq - 0 2",
32339
32337
  * "players": [
@@ -32547,28 +32545,33 @@ export interface operations {
32547
32545
  content: {
32548
32546
  /** @example {
32549
32547
  * "round": {
32550
- * "id": "9kbmXL5J",
32548
+ * "id": "UpDXGrhz",
32551
32549
  * "name": "Final Round 2",
32552
32550
  * "slug": "final-round-2",
32553
- * "createdAt": 1758636956587,
32551
+ * "createdAt": 1760452032086,
32554
32552
  * "rated": false,
32555
32553
  * "ongoing": true,
32556
- * "startsAt": 1758636956587,
32557
- * "url": "https://lichess.org/broadcast/knight-invitational-2/final-round-2/9kbmXL5J"
32554
+ * "startsAt": 1760452032087,
32555
+ * "url": "https://lichess.org/broadcast/knight-invitational-2/final-round-2/UpDXGrhz"
32558
32556
  * },
32559
32557
  * "tour": {
32560
- * "id": "i4qWomtq",
32558
+ * "id": "dkGBWEoa",
32561
32559
  * "name": "Knight Invitational 2",
32562
32560
  * "slug": "knight-invitational-2",
32563
32561
  * "info": {},
32564
- * "createdAt": 1758636956497,
32565
- * "url": "https://lichess.org/broadcast/knight-invitational-2/i4qWomtq",
32562
+ * "createdAt": 1760452031769,
32563
+ * "url": "https://lichess.org/broadcast/knight-invitational-2/dkGBWEoa",
32566
32564
  * "dates": [
32567
- * 1758636956587
32565
+ * 1760452032087
32568
32566
  * ]
32569
32567
  * },
32570
32568
  * "study": {
32571
- * "writeable": true
32569
+ * "writeable": true,
32570
+ * "features": {
32571
+ * "chat": true,
32572
+ * "computer": true,
32573
+ * "explorer": true
32574
+ * }
32572
32575
  * }
32573
32576
  * } */
32574
32577
  "application/x-ndjson": components["schemas"]["BroadcastMyRound"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichess-org/types",
3
- "version": "2.0.84",
3
+ "version": "2.0.86",
4
4
  "description": "Lichess.org API types",
5
5
  "homepage": "https://github.com/lichess-org/api",
6
6
  "license": "AGPL-3.0-or-later",