@lichess-org/types 2.0.157 → 2.0.159
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 +119 -7
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -2416,6 +2416,46 @@ export interface paths {
|
|
|
2416
2416
|
patch?: never;
|
|
2417
2417
|
trace?: never;
|
|
2418
2418
|
};
|
|
2419
|
+
"/team/updates": {
|
|
2420
|
+
parameters: {
|
|
2421
|
+
query?: never;
|
|
2422
|
+
header?: never;
|
|
2423
|
+
path?: never;
|
|
2424
|
+
cookie?: never;
|
|
2425
|
+
};
|
|
2426
|
+
/**
|
|
2427
|
+
* Get updates from your teams
|
|
2428
|
+
* @description Paginator of the most recent updates posted by team leaders of teams you have joined.
|
|
2429
|
+
*/
|
|
2430
|
+
get: operations["teamUpdates"];
|
|
2431
|
+
put?: never;
|
|
2432
|
+
post?: never;
|
|
2433
|
+
delete?: never;
|
|
2434
|
+
options?: never;
|
|
2435
|
+
head?: never;
|
|
2436
|
+
patch?: never;
|
|
2437
|
+
trace?: never;
|
|
2438
|
+
};
|
|
2439
|
+
"/team/updates/{teamId}": {
|
|
2440
|
+
parameters: {
|
|
2441
|
+
query?: never;
|
|
2442
|
+
header?: never;
|
|
2443
|
+
path?: never;
|
|
2444
|
+
cookie?: never;
|
|
2445
|
+
};
|
|
2446
|
+
/**
|
|
2447
|
+
* Get updates from one of your teams
|
|
2448
|
+
* @description Paginator of the most recent updates posted by team leaders of a team you have joined.
|
|
2449
|
+
*/
|
|
2450
|
+
get: operations["teamUpdatesByTeamId"];
|
|
2451
|
+
put?: never;
|
|
2452
|
+
post?: never;
|
|
2453
|
+
delete?: never;
|
|
2454
|
+
options?: never;
|
|
2455
|
+
head?: never;
|
|
2456
|
+
patch?: never;
|
|
2457
|
+
trace?: never;
|
|
2458
|
+
};
|
|
2419
2459
|
"/team/{teamId}/pm-all": {
|
|
2420
2460
|
parameters: {
|
|
2421
2461
|
query?: never;
|
|
@@ -2426,9 +2466,9 @@ export interface paths {
|
|
|
2426
2466
|
get?: never;
|
|
2427
2467
|
put?: never;
|
|
2428
2468
|
/**
|
|
2429
|
-
*
|
|
2430
|
-
* @description Send a
|
|
2431
|
-
* You must be a team leader with the "
|
|
2469
|
+
* Send a team update
|
|
2470
|
+
* @description Send a team update to all members of a team.
|
|
2471
|
+
* You must be a team leader with the "Updates" permission.
|
|
2432
2472
|
*/
|
|
2433
2473
|
post: operations["teamIdPmAll"];
|
|
2434
2474
|
delete?: never;
|
|
@@ -6732,7 +6772,7 @@ export interface components {
|
|
|
6732
6772
|
photo?: components["schemas"]["FIDEPlayerPhoto"];
|
|
6733
6773
|
};
|
|
6734
6774
|
/**
|
|
6735
|
-
* @description Data points are encoded. Each number contains a year, a month, and an
|
|
6775
|
+
* @description Data points are encoded. Each number contains a year, a month, and an elo rating.
|
|
6736
6776
|
*
|
|
6737
6777
|
* `2015081568` -> `August 2015: 1568`
|
|
6738
6778
|
*
|
|
@@ -6748,7 +6788,7 @@ export interface components {
|
|
|
6748
6788
|
* };
|
|
6749
6789
|
* ```
|
|
6750
6790
|
*
|
|
6751
|
-
* Consecutive months with same
|
|
6791
|
+
* Consecutive months with same elo are omitted. For a given elo, only the first and last month are provided.
|
|
6752
6792
|
*/
|
|
6753
6793
|
FIDEPlayerRatings: {
|
|
6754
6794
|
standard: number[];
|
|
@@ -6824,6 +6864,30 @@ export interface components {
|
|
|
6824
6864
|
request: components["schemas"]["TeamRequest"];
|
|
6825
6865
|
user: components["schemas"]["User"];
|
|
6826
6866
|
};
|
|
6867
|
+
TeamUpdatesPager: {
|
|
6868
|
+
updates: components["schemas"]["TeamUpdatesPager"];
|
|
6869
|
+
byTeam: components["schemas"]["TeamUpdatesByTeam"];
|
|
6870
|
+
};
|
|
6871
|
+
LightTeam: {
|
|
6872
|
+
id: string;
|
|
6873
|
+
name: string;
|
|
6874
|
+
flair?: components["schemas"]["Flair"];
|
|
6875
|
+
};
|
|
6876
|
+
TeamUpdatesByTeam: {
|
|
6877
|
+
team: components["schemas"]["LightTeam"];
|
|
6878
|
+
last: number;
|
|
6879
|
+
unread: number;
|
|
6880
|
+
}[];
|
|
6881
|
+
TeamUpdates: {
|
|
6882
|
+
updates: components["schemas"]["TeamUpdatesPager"];
|
|
6883
|
+
byTeam: components["schemas"]["TeamUpdatesByTeam"];
|
|
6884
|
+
};
|
|
6885
|
+
TeamUpdatesOfTeam: {
|
|
6886
|
+
team: components["schemas"]["LightTeam"];
|
|
6887
|
+
subscribed: boolean;
|
|
6888
|
+
updates: components["schemas"]["TeamUpdatesPager"];
|
|
6889
|
+
byTeam: components["schemas"]["TeamUpdatesByTeam"];
|
|
6890
|
+
};
|
|
6827
6891
|
/**
|
|
6828
6892
|
* @example {
|
|
6829
6893
|
* "users": {
|
|
@@ -12587,6 +12651,54 @@ export interface operations {
|
|
|
12587
12651
|
};
|
|
12588
12652
|
};
|
|
12589
12653
|
};
|
|
12654
|
+
teamUpdates: {
|
|
12655
|
+
parameters: {
|
|
12656
|
+
query?: {
|
|
12657
|
+
page?: number;
|
|
12658
|
+
};
|
|
12659
|
+
header?: never;
|
|
12660
|
+
path?: never;
|
|
12661
|
+
cookie?: never;
|
|
12662
|
+
};
|
|
12663
|
+
requestBody?: never;
|
|
12664
|
+
responses: {
|
|
12665
|
+
/** @description A paginated list of team updates */
|
|
12666
|
+
200: {
|
|
12667
|
+
headers: {
|
|
12668
|
+
"Access-Control-Allow-Origin"?: string;
|
|
12669
|
+
[name: string]: unknown;
|
|
12670
|
+
};
|
|
12671
|
+
content: {
|
|
12672
|
+
"application/json": components["schemas"]["TeamUpdates"];
|
|
12673
|
+
};
|
|
12674
|
+
};
|
|
12675
|
+
};
|
|
12676
|
+
};
|
|
12677
|
+
teamUpdatesByTeamId: {
|
|
12678
|
+
parameters: {
|
|
12679
|
+
query?: {
|
|
12680
|
+
page?: number;
|
|
12681
|
+
};
|
|
12682
|
+
header?: never;
|
|
12683
|
+
path: {
|
|
12684
|
+
teamId: string;
|
|
12685
|
+
};
|
|
12686
|
+
cookie?: never;
|
|
12687
|
+
};
|
|
12688
|
+
requestBody?: never;
|
|
12689
|
+
responses: {
|
|
12690
|
+
/** @description A paginated list of team updates */
|
|
12691
|
+
200: {
|
|
12692
|
+
headers: {
|
|
12693
|
+
"Access-Control-Allow-Origin"?: string;
|
|
12694
|
+
[name: string]: unknown;
|
|
12695
|
+
};
|
|
12696
|
+
content: {
|
|
12697
|
+
"application/json": components["schemas"]["TeamUpdatesOfTeam"];
|
|
12698
|
+
};
|
|
12699
|
+
};
|
|
12700
|
+
};
|
|
12701
|
+
};
|
|
12590
12702
|
teamIdPmAll: {
|
|
12591
12703
|
parameters: {
|
|
12592
12704
|
query?: never;
|
|
@@ -12605,7 +12717,7 @@ export interface operations {
|
|
|
12605
12717
|
};
|
|
12606
12718
|
};
|
|
12607
12719
|
responses: {
|
|
12608
|
-
/** @description The
|
|
12720
|
+
/** @description The update has been posted successfully. */
|
|
12609
12721
|
200: {
|
|
12610
12722
|
headers: {
|
|
12611
12723
|
"Access-Control-Allow-Origin"?: string;
|
|
@@ -12615,7 +12727,7 @@ export interface operations {
|
|
|
12615
12727
|
"application/json": components["schemas"]["Ok"];
|
|
12616
12728
|
};
|
|
12617
12729
|
};
|
|
12618
|
-
/** @description The
|
|
12730
|
+
/** @description The update could not be posted. */
|
|
12619
12731
|
400: {
|
|
12620
12732
|
headers: {
|
|
12621
12733
|
[name: string]: unknown;
|