@lichess-org/types 2.0.24 → 2.0.26
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/lichess-api.d.ts +36 -31
- package/package.json +2 -2
package/lichess-api.d.ts
CHANGED
|
@@ -1685,6 +1685,8 @@ export interface paths {
|
|
|
1685
1685
|
* @description Create a new broadcast round to relay external games.
|
|
1686
1686
|
* This endpoint accepts the same form data as the web form.
|
|
1687
1687
|
*
|
|
1688
|
+
* Choose one between `syncUrl`, `syncUrls`, `syncIds` and `syncUsers`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
|
|
1689
|
+
*
|
|
1688
1690
|
*/
|
|
1689
1691
|
post: operations["broadcastRoundCreate"];
|
|
1690
1692
|
delete?: never;
|
|
@@ -6452,7 +6454,7 @@ export interface components {
|
|
|
6452
6454
|
/** @description Name of the broadcast round.
|
|
6453
6455
|
* Example: `Round 1`
|
|
6454
6456
|
* */
|
|
6455
|
-
name
|
|
6457
|
+
name: string;
|
|
6456
6458
|
} & (
|
|
6457
6459
|
| Record<string, never>
|
|
6458
6460
|
| {
|
|
@@ -6464,10 +6466,9 @@ export interface components {
|
|
|
6464
6466
|
* ```txt
|
|
6465
6467
|
* https://myserver.org/myevent/round-10/games.pgn
|
|
6466
6468
|
* ```
|
|
6467
|
-
* Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
|
|
6468
6469
|
*
|
|
6469
6470
|
*/
|
|
6470
|
-
syncUrl
|
|
6471
|
+
syncUrl: string;
|
|
6471
6472
|
/** @description Filter games by round number
|
|
6472
6473
|
*
|
|
6473
6474
|
* Optional, only keep games from the source that match a round number.
|
|
@@ -6505,9 +6506,8 @@ export interface components {
|
|
|
6505
6506
|
* https://myserver.org/myevent/round-10/game-1.pgn
|
|
6506
6507
|
* https://myserver.org/myevent/round-10/game-2.pgn
|
|
6507
6508
|
* ```
|
|
6508
|
-
* Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
|
|
6509
6509
|
* */
|
|
6510
|
-
syncUrls
|
|
6510
|
+
syncUrls: string;
|
|
6511
6511
|
/** @description Filter games by round number
|
|
6512
6512
|
*
|
|
6513
6513
|
* Optional, only keep games from the source that match a round number.
|
|
@@ -6539,9 +6539,13 @@ export interface components {
|
|
|
6539
6539
|
}
|
|
6540
6540
|
| {
|
|
6541
6541
|
/** @description Lichess game IDs - Up to 64 Lichess game IDs, separated by spaces.
|
|
6542
|
-
* Choose one between `syncUrl`, `syncUrls` and `syncIds`, if it is missing, the broadcast needs to be fed by [pushing PGN to it](#operation/broadcastPush)
|
|
6543
6542
|
* */
|
|
6544
|
-
syncIds
|
|
6543
|
+
syncIds: string;
|
|
6544
|
+
}
|
|
6545
|
+
| {
|
|
6546
|
+
/** @description Up to 100 Lichess usernames, separated by spaces
|
|
6547
|
+
* */
|
|
6548
|
+
syncUsers: string;
|
|
6545
6549
|
}
|
|
6546
6550
|
) & {
|
|
6547
6551
|
/** @description Timestamp in milliseconds of broadcast round start. Leave empty to manually start the broadcast round.
|
|
@@ -6559,11 +6563,12 @@ export interface components {
|
|
|
6559
6563
|
* */
|
|
6560
6564
|
delay?: number;
|
|
6561
6565
|
/**
|
|
6562
|
-
* @description
|
|
6566
|
+
* @description Lichess can usually detect the round status, but you can also set it manually if needed.
|
|
6563
6567
|
*
|
|
6564
|
-
* @default
|
|
6568
|
+
* @default new
|
|
6569
|
+
* @enum {string}
|
|
6565
6570
|
*/
|
|
6566
|
-
|
|
6571
|
+
status?: "new" | "started" | "finished";
|
|
6567
6572
|
/** @description (Only for Admins) Waiting time for each poll.
|
|
6568
6573
|
* */
|
|
6569
6574
|
period?: number;
|
|
@@ -8805,7 +8810,7 @@ export interface operations {
|
|
|
8805
8810
|
};
|
|
8806
8811
|
header?: never;
|
|
8807
8812
|
path: {
|
|
8808
|
-
/** @description The game ID
|
|
8813
|
+
/** @description The game ID */
|
|
8809
8814
|
gameId: string;
|
|
8810
8815
|
};
|
|
8811
8816
|
cookie?: never;
|
|
@@ -10090,7 +10095,7 @@ export interface operations {
|
|
|
10090
10095
|
query?: never;
|
|
10091
10096
|
header?: never;
|
|
10092
10097
|
path: {
|
|
10093
|
-
/** @description The tournament ID
|
|
10098
|
+
/** @description The tournament ID */
|
|
10094
10099
|
id: string;
|
|
10095
10100
|
};
|
|
10096
10101
|
cookie?: never;
|
|
@@ -11090,9 +11095,9 @@ export interface operations {
|
|
|
11090
11095
|
};
|
|
11091
11096
|
header?: never;
|
|
11092
11097
|
path: {
|
|
11093
|
-
/** @description The study ID
|
|
11098
|
+
/** @description The study ID */
|
|
11094
11099
|
studyId: string;
|
|
11095
|
-
/** @description The chapter ID
|
|
11100
|
+
/** @description The chapter ID */
|
|
11096
11101
|
chapterId: string;
|
|
11097
11102
|
};
|
|
11098
11103
|
cookie?: never;
|
|
@@ -11136,7 +11141,7 @@ export interface operations {
|
|
|
11136
11141
|
};
|
|
11137
11142
|
header?: never;
|
|
11138
11143
|
path: {
|
|
11139
|
-
/** @description The study ID
|
|
11144
|
+
/** @description The study ID */
|
|
11140
11145
|
studyId: string;
|
|
11141
11146
|
};
|
|
11142
11147
|
cookie?: never;
|
|
@@ -11161,7 +11166,7 @@ export interface operations {
|
|
|
11161
11166
|
query?: never;
|
|
11162
11167
|
header?: never;
|
|
11163
11168
|
path: {
|
|
11164
|
-
/** @description The study ID
|
|
11169
|
+
/** @description The study ID */
|
|
11165
11170
|
studyId: string;
|
|
11166
11171
|
};
|
|
11167
11172
|
cookie?: never;
|
|
@@ -11305,9 +11310,9 @@ export interface operations {
|
|
|
11305
11310
|
query?: never;
|
|
11306
11311
|
header?: never;
|
|
11307
11312
|
path: {
|
|
11308
|
-
/** @description The study ID
|
|
11313
|
+
/** @description The study ID */
|
|
11309
11314
|
studyId: string;
|
|
11310
|
-
/** @description The chapter ID
|
|
11315
|
+
/** @description The chapter ID */
|
|
11311
11316
|
chapterId: string;
|
|
11312
11317
|
};
|
|
11313
11318
|
cookie?: never;
|
|
@@ -11465,7 +11470,7 @@ export interface operations {
|
|
|
11465
11470
|
query?: never;
|
|
11466
11471
|
header?: never;
|
|
11467
11472
|
path: {
|
|
11468
|
-
/** @description The broadcast tournament ID
|
|
11473
|
+
/** @description The broadcast tournament ID */
|
|
11469
11474
|
broadcastTournamentId: string;
|
|
11470
11475
|
};
|
|
11471
11476
|
cookie?: never;
|
|
@@ -11488,7 +11493,7 @@ export interface operations {
|
|
|
11488
11493
|
query?: never;
|
|
11489
11494
|
header?: never;
|
|
11490
11495
|
path: {
|
|
11491
|
-
/** @description The broadcast tournament ID
|
|
11496
|
+
/** @description The broadcast tournament ID */
|
|
11492
11497
|
broadcastTournamentId: string;
|
|
11493
11498
|
};
|
|
11494
11499
|
cookie?: never;
|
|
@@ -11511,7 +11516,7 @@ export interface operations {
|
|
|
11511
11516
|
query?: never;
|
|
11512
11517
|
header?: never;
|
|
11513
11518
|
path: {
|
|
11514
|
-
/** @description The broadcast ID
|
|
11519
|
+
/** @description The broadcast ID */
|
|
11515
11520
|
broadcastTournamentId: string;
|
|
11516
11521
|
};
|
|
11517
11522
|
cookie?: never;
|
|
@@ -11532,7 +11537,7 @@ export interface operations {
|
|
|
11532
11537
|
"application/json": components["schemas"]["Ok"];
|
|
11533
11538
|
};
|
|
11534
11539
|
};
|
|
11535
|
-
/** @description The
|
|
11540
|
+
/** @description The broadcast tournament update failed. */
|
|
11536
11541
|
400: {
|
|
11537
11542
|
headers: {
|
|
11538
11543
|
[name: string]: unknown;
|
|
@@ -11548,7 +11553,7 @@ export interface operations {
|
|
|
11548
11553
|
query?: never;
|
|
11549
11554
|
header?: never;
|
|
11550
11555
|
path: {
|
|
11551
|
-
/** @description The broadcast tournament ID
|
|
11556
|
+
/** @description The broadcast tournament ID */
|
|
11552
11557
|
broadcastTournamentId: string;
|
|
11553
11558
|
};
|
|
11554
11559
|
cookie?: never;
|
|
@@ -11589,7 +11594,7 @@ export interface operations {
|
|
|
11589
11594
|
broadcastTournamentSlug: string;
|
|
11590
11595
|
/** @description The broadcast round slug. Only used for SEO, the slug can be safely replaced by `-`. Only the `broadcastRoundId` is actually used. */
|
|
11591
11596
|
broadcastRoundSlug: string;
|
|
11592
|
-
/** @description The broadcast Round ID
|
|
11597
|
+
/** @description The broadcast Round ID */
|
|
11593
11598
|
broadcastRoundId: string;
|
|
11594
11599
|
};
|
|
11595
11600
|
cookie?: never;
|
|
@@ -11612,7 +11617,7 @@ export interface operations {
|
|
|
11612
11617
|
query?: never;
|
|
11613
11618
|
header?: never;
|
|
11614
11619
|
path: {
|
|
11615
|
-
/** @description The broadcast round ID
|
|
11620
|
+
/** @description The broadcast round ID */
|
|
11616
11621
|
broadcastRoundId: string;
|
|
11617
11622
|
};
|
|
11618
11623
|
cookie?: never;
|
|
@@ -11633,7 +11638,7 @@ export interface operations {
|
|
|
11633
11638
|
"application/json": components["schemas"]["Ok"];
|
|
11634
11639
|
};
|
|
11635
11640
|
};
|
|
11636
|
-
/** @description The
|
|
11641
|
+
/** @description The broadcast round update failed. */
|
|
11637
11642
|
400: {
|
|
11638
11643
|
headers: {
|
|
11639
11644
|
[name: string]: unknown;
|
|
@@ -11649,7 +11654,7 @@ export interface operations {
|
|
|
11649
11654
|
query?: never;
|
|
11650
11655
|
header?: never;
|
|
11651
11656
|
path: {
|
|
11652
|
-
/** @description The broadcast round ID
|
|
11657
|
+
/** @description The broadcast round ID */
|
|
11653
11658
|
broadcastRoundId: string;
|
|
11654
11659
|
};
|
|
11655
11660
|
cookie?: never;
|
|
@@ -11673,7 +11678,7 @@ export interface operations {
|
|
|
11673
11678
|
query?: never;
|
|
11674
11679
|
header?: never;
|
|
11675
11680
|
path: {
|
|
11676
|
-
/** @description The broadcast round ID
|
|
11681
|
+
/** @description The broadcast round ID */
|
|
11677
11682
|
broadcastRoundId: string;
|
|
11678
11683
|
};
|
|
11679
11684
|
cookie?: never;
|
|
@@ -11714,7 +11719,7 @@ export interface operations {
|
|
|
11714
11719
|
query?: never;
|
|
11715
11720
|
header?: never;
|
|
11716
11721
|
path: {
|
|
11717
|
-
/** @description The broadcast round ID
|
|
11722
|
+
/** @description The broadcast round ID */
|
|
11718
11723
|
broadcastRoundId: string;
|
|
11719
11724
|
};
|
|
11720
11725
|
cookie?: never;
|
|
@@ -11738,7 +11743,7 @@ export interface operations {
|
|
|
11738
11743
|
query?: never;
|
|
11739
11744
|
header?: never;
|
|
11740
11745
|
path: {
|
|
11741
|
-
/** @description The round ID
|
|
11746
|
+
/** @description The round ID */
|
|
11742
11747
|
broadcastRoundId: string;
|
|
11743
11748
|
};
|
|
11744
11749
|
cookie?: never;
|
|
@@ -11762,7 +11767,7 @@ export interface operations {
|
|
|
11762
11767
|
query?: never;
|
|
11763
11768
|
header?: never;
|
|
11764
11769
|
path: {
|
|
11765
|
-
/** @description The broadcast tournament ID
|
|
11770
|
+
/** @description The broadcast tournament ID */
|
|
11766
11771
|
broadcastTournamentId: string;
|
|
11767
11772
|
};
|
|
11768
11773
|
cookie?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lichess-org/types",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.26",
|
|
4
4
|
"description": "Lichess.org API types",
|
|
5
5
|
"homepage": "https://github.com/lichess-org/api",
|
|
6
6
|
"license": "AGPL-3.0-or-later",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"openapi-typescript": "^7.6.1",
|
|
15
|
-
"prettier": "^3.
|
|
15
|
+
"prettier": "^3.5.1",
|
|
16
16
|
"typescript": "^5.7.3"
|
|
17
17
|
},
|
|
18
18
|
"packageManager": "pnpm@9.14.2+sha512.6e2baf77d06b9362294152c851c4f278ede37ab1eba3a55fda317a4a17b209f4dbb973fb250a77abc463a341fcb1f17f17cfa24091c4eb319cda0d9b84278387"
|