@lichess-org/types 2.0.38 → 2.0.40
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 +55 -2
- package/package.json +1 -1
package/lichess-api.d.ts
CHANGED
|
@@ -1604,6 +1604,27 @@ export interface paths {
|
|
|
1604
1604
|
patch?: never;
|
|
1605
1605
|
trace?: never;
|
|
1606
1606
|
};
|
|
1607
|
+
"/api/broadcast/search": {
|
|
1608
|
+
parameters: {
|
|
1609
|
+
query?: never;
|
|
1610
|
+
header?: never;
|
|
1611
|
+
path?: never;
|
|
1612
|
+
cookie?: never;
|
|
1613
|
+
};
|
|
1614
|
+
/**
|
|
1615
|
+
* Search broadcasts
|
|
1616
|
+
* @description Search across recent official broadcasts.
|
|
1617
|
+
*
|
|
1618
|
+
*/
|
|
1619
|
+
get: operations["broadcastsSearch"];
|
|
1620
|
+
put?: never;
|
|
1621
|
+
post?: never;
|
|
1622
|
+
delete?: never;
|
|
1623
|
+
options?: never;
|
|
1624
|
+
head?: never;
|
|
1625
|
+
patch?: never;
|
|
1626
|
+
trace?: never;
|
|
1627
|
+
};
|
|
1607
1628
|
"/broadcast/new": {
|
|
1608
1629
|
parameters: {
|
|
1609
1630
|
query?: never;
|
|
@@ -10650,6 +10671,38 @@ export interface operations {
|
|
|
10650
10671
|
};
|
|
10651
10672
|
};
|
|
10652
10673
|
};
|
|
10674
|
+
broadcastsSearch: {
|
|
10675
|
+
parameters: {
|
|
10676
|
+
query?: {
|
|
10677
|
+
/** @description Which page to fetch. Only page 1 has "active" broadcasts. */
|
|
10678
|
+
page?: number;
|
|
10679
|
+
/** @description Search term */
|
|
10680
|
+
q?: string;
|
|
10681
|
+
};
|
|
10682
|
+
header?: never;
|
|
10683
|
+
path?: never;
|
|
10684
|
+
cookie?: never;
|
|
10685
|
+
};
|
|
10686
|
+
requestBody?: never;
|
|
10687
|
+
responses: {
|
|
10688
|
+
/** @description Paginated top broadcast previews. */
|
|
10689
|
+
200: {
|
|
10690
|
+
headers: {
|
|
10691
|
+
"Access-Control-Allow-Origin"?: string;
|
|
10692
|
+
[name: string]: unknown;
|
|
10693
|
+
};
|
|
10694
|
+
content: {
|
|
10695
|
+
"application/json": {
|
|
10696
|
+
currentPage: number;
|
|
10697
|
+
maxPerPage: number;
|
|
10698
|
+
currentPageResults: components["schemas"]["BroadcastWithLastRound"][];
|
|
10699
|
+
previousPage: number | null;
|
|
10700
|
+
nextPage: number | null;
|
|
10701
|
+
};
|
|
10702
|
+
};
|
|
10703
|
+
};
|
|
10704
|
+
};
|
|
10705
|
+
};
|
|
10653
10706
|
broadcastTourCreate: {
|
|
10654
10707
|
parameters: {
|
|
10655
10708
|
query?: never;
|
|
@@ -13707,10 +13760,10 @@ export interface operations {
|
|
|
13707
13760
|
content: {
|
|
13708
13761
|
"application/x-www-form-urlencoded": {
|
|
13709
13762
|
/**
|
|
13710
|
-
* @description Must be `authorization_code`.
|
|
13711
13763
|
* @example authorization_code
|
|
13764
|
+
* @constant
|
|
13712
13765
|
*/
|
|
13713
|
-
grant_type?:
|
|
13766
|
+
grant_type?: "authorization_code";
|
|
13714
13767
|
/**
|
|
13715
13768
|
* @description The authorization code that was sent in the `code` parameter to your `redirect_uri`.
|
|
13716
13769
|
* @example liu_iS1uOZg99Htmo58ex2jKgYziUfzsnAl0
|