-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #309 from tors42/split-openapi-yaml
Split lichess-api.yaml
- Loading branch information
Showing
245 changed files
with
11,218 additions
and
11,190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
challenge: | ||
$ref: './challenge.yaml' | ||
|
||
challengeCanceled: | ||
$ref: './challengeCanceled.yaml' | ||
|
||
challengeDeclined: | ||
$ref: './challengeDeclined.yaml' | ||
|
||
gameStart: | ||
$ref: './gameStart.yaml' | ||
|
||
gameFinish: | ||
$ref: './gameFinish.yaml' | ||
|
||
gameFull: | ||
$ref: './gameFull.yaml' | ||
|
||
gameState: | ||
$ref: './gameState.yaml' | ||
|
||
chatLine: | ||
$ref: './chatLine.yaml' | ||
|
||
chatLineSpectator: | ||
$ref: './chatLineSpectator.yaml' | ||
|
||
opponentGoneTrue: | ||
$ref: './opponentGoneTrue.yaml' | ||
|
||
opponentGoneFalse: | ||
$ref: './opponentGoneFalse.yaml' | ||
|
||
gameStateResign: | ||
$ref: './gameStateResign.yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
value: { | ||
"type":"challenge", | ||
"challenge": { | ||
"id":"7pGLxJ4F", | ||
"url": "https://lichess.org/VU0nyvsW", | ||
"status":"created", | ||
"compat": { | ||
"bot": false, | ||
"board": true | ||
}, | ||
"challenger": { | ||
"id":"lovlas", | ||
"name":"Lovlas", | ||
"title":"IM", | ||
"rating": 2506, | ||
"patron": true, | ||
"online": true, | ||
"lag": 24 | ||
}, | ||
"destUser": { | ||
"id":"thibot", | ||
"name":"thibot", | ||
"rating": 1500, | ||
"provisional": true, | ||
"online": true, | ||
"lag": 45 | ||
}, | ||
"variant": { | ||
"key":"standard", | ||
"name":"Standard", | ||
"short":"Std" | ||
}, | ||
"rated": true, | ||
"timeControl": { | ||
"type":"clock", | ||
"limit": 300, | ||
"increment": 25, | ||
"show":"5+25" | ||
}, | ||
"color":"random", | ||
"finalColor": "white", | ||
"speed":"rapid", | ||
"perf": { | ||
"icon":"#", | ||
"name":"Rapid" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
value: { | ||
"type":"challengeCanceled", | ||
"challenge": { | ||
"id":"7pGLxJ4F", | ||
"url": "https://lichess.org/VU0nyvsW", | ||
"status": "canceled", | ||
"compat": { | ||
"bot": false, | ||
"board": true | ||
}, | ||
"challenger": { | ||
"id":"lovlas", | ||
"name":"Lovlas", | ||
"title":"IM", | ||
"rating": 2506, | ||
"patron": true, | ||
"online": true, | ||
"lag": 24 | ||
}, | ||
"destUser": { | ||
"id":"thibot", | ||
"name":"thibot", | ||
"rating": 1500, | ||
"provisional": true, | ||
"online": true, | ||
"lag": 45 | ||
}, | ||
"variant": { | ||
"key":"standard", | ||
"name":"Standard", | ||
"short":"Std" | ||
}, | ||
"rated": true, | ||
"timeControl": { | ||
"type":"clock", | ||
"limit": 300, | ||
"increment": 25, | ||
"show":"5+25" | ||
}, | ||
"color":"random", | ||
"finalColor": "black", | ||
"speed":"rapid", | ||
"perf": { | ||
"icon":"#", | ||
"name":"Rapid" | ||
} | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
value: { | ||
"type": "challengeDeclined", | ||
"challenge": { | ||
"id":"7pGLxJ4F", | ||
"url": "https://lichess.org/VU0nyvsW", | ||
"status": "declined", | ||
"compat": { | ||
"bot": false, | ||
"board": true | ||
}, | ||
"challenger": { | ||
"id":"lovlas", | ||
"name":"Lovlas", | ||
"title":"IM", | ||
"rating": 2506, | ||
"patron": true, | ||
"online": true, | ||
"lag": 24 | ||
}, | ||
"destUser": { | ||
"id":"thibot", | ||
"name":"thibot", | ||
"title":null, | ||
"rating": 1500, | ||
"provisional": true, | ||
"online": true, | ||
"lag": 45 | ||
}, | ||
"variant": { | ||
"key":"standard", | ||
"name":"Standard", | ||
"short":"Std" | ||
}, | ||
"rated": true, | ||
"timeControl": { | ||
"type":"clock", | ||
"limit": 300, | ||
"increment": 25, | ||
"show":"5+25" | ||
}, | ||
"color":"random", | ||
"finalColor": "white", | ||
"speed":"rapid", | ||
"perf": { | ||
"icon":"#", | ||
"name":"Rapid" | ||
}, | ||
"declineReason": "I'm not accepting challenges at the moment.", | ||
"declineReasonKey": "generic" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
value: { | ||
"type": "chatLine", | ||
"username": "thibault", | ||
"text": "Good luck, have fun", | ||
"room": "player" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
value: { | ||
"type": "chatLine", | ||
"username": "lovlas", | ||
"text": "!eval", | ||
"room": "spectator" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
value: { | ||
"type":"gameFinish", | ||
"game": { | ||
"gameId": "rCRw1AuO", | ||
"fullId": "rCRw1AuOvonq", | ||
"color": "black", | ||
"fen": "r1bqkbnr/pppp2pp/2n1pp2/8/8/3PP3/PPPB1PPP/RN1QKBNR w KQkq - 2 4", | ||
"hasMoved": true, | ||
"isMyTurn": false, | ||
"lastMove": "b8c6", | ||
"opponent": { "id": "philippe", "username": "Philippe", "rating": 1790, "ratingDiff": -12 }, | ||
"perf": "correspondence", | ||
"rated": true, | ||
"secondsLeft": 1209600, | ||
"source": "friend", | ||
"status": { "id": 31, "name": "resign" }, | ||
"speed": "correspondence", | ||
"variant": { "key": "standard", "name": "Standard" }, | ||
"compat": { | ||
"bot": false, | ||
"board": true | ||
}, | ||
"winner": "black", | ||
"ratingDiff": 8, | ||
"id": "rCRw1AuO" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
value: { | ||
"type": "gameFull", | ||
"id": "5IrD6Gzz", | ||
"rated": true, | ||
"variant": { | ||
"key": "standard", | ||
"name": "Standard", | ||
"short": "Std" | ||
}, | ||
"clock": { | ||
"initial": 1200000, | ||
"increment": 10000 | ||
}, | ||
"speed": "classical", | ||
"perf": { | ||
"name": "Classical" | ||
}, | ||
"createdAt": 1523825103562, | ||
"white": { | ||
"id": "lovlas", | ||
"name": "lovlas", | ||
"provisional": false, | ||
"rating": 2500, | ||
"title": "IM" | ||
}, | ||
"black": { | ||
"id": "leela", | ||
"name": "leela", | ||
"rating": 2390, | ||
}, | ||
"initialFen": "startpos", | ||
"state": { | ||
"type": "gameState", | ||
"moves": "e2e4 c7c5 f2f4 d7d6 g1f3 b8c6 f1c4 g8f6 d2d3 g7g6 e1g1 f8g7", | ||
"wtime": 7598040, | ||
"btime": 8395220, | ||
"winc": 10000, | ||
"binc": 10000, | ||
"status": "started" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
value: { | ||
"type":"gameStart", | ||
"game": { | ||
"gameId": "rCRw1AuO", | ||
"fullId": "rCRw1AuOvonq", | ||
"color": "black", | ||
"fen": "r1bqkbnr/pppp2pp/2n1pp2/8/8/3PP3/PPPB1PPP/RN1QKBNR w KQkq - 2 4", | ||
"hasMoved": true, | ||
"isMyTurn": false, | ||
"lastMove": "b8c6", | ||
"opponent": { "id": "philippe", "rating": 1790, "username": "Philippe" }, | ||
"perf": "correspondence", | ||
"rated": true, | ||
"secondsLeft": 1209600, | ||
"source": "friend", | ||
"status": { "id": 20, "name": "started" }, | ||
"speed": "correspondence", | ||
"variant": { "key": "standard", "name": "Standard" }, | ||
"compat": { | ||
"bot": false, | ||
"board": true | ||
}, | ||
"id": "rCRw1AuO" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
value: { | ||
"type": "gameState", | ||
"moves": "e2e4 c7c5 f2f4 d7d6 g1f3 b8c6 f1c4 g8f6 d2d3 g7g6 e1g1 f8g7 b1c3", | ||
"wtime": 7598040, | ||
"btime": 8395220, | ||
"winc": 10000, | ||
"binc": 10000, | ||
"status": "started" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
value: { | ||
"type": "gameState", | ||
"moves": "e2e4 c7c5 f2f4 d7d6 g1f3 b8c6 f1c4 g8f6 d2d3 g7g6 e1g1 f8g7 b1c3", | ||
"wtime": 7598040, | ||
"btime": 8395220, | ||
"winc": 10000, | ||
"binc": 10000, | ||
"status": "resign", | ||
"winner": "black" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
value: { | ||
"type": "opponentGone", | ||
"gone": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
value: { | ||
"type": "opponentGone", | ||
"gone": true, | ||
"claimWinInSeconds": 8 | ||
} |
Oops, something went wrong.