@lichess-org/types 2.0.158 → 2.0.160
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 +136 -5
- 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;
|
|
@@ -6824,6 +6864,49 @@ export interface components {
|
|
|
6824
6864
|
request: components["schemas"]["TeamRequest"];
|
|
6825
6865
|
user: components["schemas"]["User"];
|
|
6826
6866
|
};
|
|
6867
|
+
LightTeam: {
|
|
6868
|
+
id: string;
|
|
6869
|
+
name: string;
|
|
6870
|
+
flair?: components["schemas"]["Flair"];
|
|
6871
|
+
};
|
|
6872
|
+
TeamUpdate: {
|
|
6873
|
+
msg: {
|
|
6874
|
+
id: string;
|
|
6875
|
+
date: number;
|
|
6876
|
+
sender: components["schemas"]["LightUser"];
|
|
6877
|
+
team?: components["schemas"]["LightTeam"];
|
|
6878
|
+
text: string;
|
|
6879
|
+
};
|
|
6880
|
+
seen: boolean;
|
|
6881
|
+
};
|
|
6882
|
+
TeamUpdatesPager: {
|
|
6883
|
+
/** @example 4 */
|
|
6884
|
+
currentPage: number;
|
|
6885
|
+
/** @example 15 */
|
|
6886
|
+
maxPerPage: number;
|
|
6887
|
+
currentPageResults: components["schemas"]["TeamUpdate"][];
|
|
6888
|
+
/** @example 3 */
|
|
6889
|
+
previousPage: number | null;
|
|
6890
|
+
/** @example 5 */
|
|
6891
|
+
nextPage: number | null;
|
|
6892
|
+
nbResults: number;
|
|
6893
|
+
nbPages: number;
|
|
6894
|
+
};
|
|
6895
|
+
TeamUpdatesByTeam: {
|
|
6896
|
+
team: components["schemas"]["LightTeam"];
|
|
6897
|
+
last: number;
|
|
6898
|
+
unread: number;
|
|
6899
|
+
}[];
|
|
6900
|
+
TeamUpdates: {
|
|
6901
|
+
updates: components["schemas"]["TeamUpdatesPager"];
|
|
6902
|
+
byTeam: components["schemas"]["TeamUpdatesByTeam"];
|
|
6903
|
+
};
|
|
6904
|
+
TeamUpdatesOfTeam: {
|
|
6905
|
+
team: components["schemas"]["LightTeam"];
|
|
6906
|
+
subscribed: boolean;
|
|
6907
|
+
updates: components["schemas"]["TeamUpdatesPager"];
|
|
6908
|
+
byTeam: components["schemas"]["TeamUpdatesByTeam"];
|
|
6909
|
+
};
|
|
6827
6910
|
/**
|
|
6828
6911
|
* @example {
|
|
6829
6912
|
* "users": {
|
|
@@ -12587,6 +12670,54 @@ export interface operations {
|
|
|
12587
12670
|
};
|
|
12588
12671
|
};
|
|
12589
12672
|
};
|
|
12673
|
+
teamUpdates: {
|
|
12674
|
+
parameters: {
|
|
12675
|
+
query?: {
|
|
12676
|
+
page?: number;
|
|
12677
|
+
};
|
|
12678
|
+
header?: never;
|
|
12679
|
+
path?: never;
|
|
12680
|
+
cookie?: never;
|
|
12681
|
+
};
|
|
12682
|
+
requestBody?: never;
|
|
12683
|
+
responses: {
|
|
12684
|
+
/** @description A paginated list of team updates */
|
|
12685
|
+
200: {
|
|
12686
|
+
headers: {
|
|
12687
|
+
"Access-Control-Allow-Origin"?: string;
|
|
12688
|
+
[name: string]: unknown;
|
|
12689
|
+
};
|
|
12690
|
+
content: {
|
|
12691
|
+
"application/json": components["schemas"]["TeamUpdates"];
|
|
12692
|
+
};
|
|
12693
|
+
};
|
|
12694
|
+
};
|
|
12695
|
+
};
|
|
12696
|
+
teamUpdatesByTeamId: {
|
|
12697
|
+
parameters: {
|
|
12698
|
+
query?: {
|
|
12699
|
+
page?: number;
|
|
12700
|
+
};
|
|
12701
|
+
header?: never;
|
|
12702
|
+
path: {
|
|
12703
|
+
teamId: string;
|
|
12704
|
+
};
|
|
12705
|
+
cookie?: never;
|
|
12706
|
+
};
|
|
12707
|
+
requestBody?: never;
|
|
12708
|
+
responses: {
|
|
12709
|
+
/** @description A paginated list of team updates */
|
|
12710
|
+
200: {
|
|
12711
|
+
headers: {
|
|
12712
|
+
"Access-Control-Allow-Origin"?: string;
|
|
12713
|
+
[name: string]: unknown;
|
|
12714
|
+
};
|
|
12715
|
+
content: {
|
|
12716
|
+
"application/json": components["schemas"]["TeamUpdatesOfTeam"];
|
|
12717
|
+
};
|
|
12718
|
+
};
|
|
12719
|
+
};
|
|
12720
|
+
};
|
|
12590
12721
|
teamIdPmAll: {
|
|
12591
12722
|
parameters: {
|
|
12592
12723
|
query?: never;
|
|
@@ -12605,7 +12736,7 @@ export interface operations {
|
|
|
12605
12736
|
};
|
|
12606
12737
|
};
|
|
12607
12738
|
responses: {
|
|
12608
|
-
/** @description The
|
|
12739
|
+
/** @description The update has been posted successfully. */
|
|
12609
12740
|
200: {
|
|
12610
12741
|
headers: {
|
|
12611
12742
|
"Access-Control-Allow-Origin"?: string;
|
|
@@ -12615,7 +12746,7 @@ export interface operations {
|
|
|
12615
12746
|
"application/json": components["schemas"]["Ok"];
|
|
12616
12747
|
};
|
|
12617
12748
|
};
|
|
12618
|
-
/** @description The
|
|
12749
|
+
/** @description The update could not be posted. */
|
|
12619
12750
|
400: {
|
|
12620
12751
|
headers: {
|
|
12621
12752
|
[name: string]: unknown;
|