aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/.server/api/schema.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/.server/api/schema.d.ts')
-rw-r--r--frontend/app/.server/api/schema.d.ts30
1 files changed, 24 insertions, 6 deletions
diff --git a/frontend/app/.server/api/schema.d.ts b/frontend/app/.server/api/schema.d.ts
index 2d116b9..7fd612e 100644
--- a/frontend/app/.server/api/schema.d.ts
+++ b/frontend/app/.server/api/schema.d.ts
@@ -113,9 +113,9 @@ export interface components {
started_at?: number;
problem: components["schemas"]["Problem"];
players: components["schemas"]["User"][];
- verification_steps: components["schemas"]["VerificationStep"][];
+ exec_steps: components["schemas"]["ExecStep"][];
};
- VerificationStep: {
+ ExecStep: {
/** @example 1 */
testcase_id: number | null;
/** @example Test case 1 */
@@ -130,7 +130,7 @@ export interface components {
description: string;
};
GamePlayerMessage: components["schemas"]["GamePlayerMessageS2C"] | components["schemas"]["GamePlayerMessageC2S"];
- GamePlayerMessageS2C: components["schemas"]["GamePlayerMessageS2CStart"] | components["schemas"]["GamePlayerMessageS2CExecResult"];
+ GamePlayerMessageS2C: components["schemas"]["GamePlayerMessageS2CStart"] | components["schemas"]["GamePlayerMessageS2CExecResult"] | components["schemas"]["GamePlayerMessageS2CSubmitResult"];
GamePlayerMessageS2CStart: {
/** @constant */
type: "player:s2c:start";
@@ -146,11 +146,29 @@ export interface components {
data: components["schemas"]["GamePlayerMessageS2CExecResultPayload"];
};
GamePlayerMessageS2CExecResultPayload: {
+ /** @example 1 */
+ testcase_id: number | null;
+ /**
+ * @example success
+ * @enum {string}
+ */
+ status: "success" | "wrong_answer" | "timeout" | "runtime_error" | "internal_error" | "compile_error";
+ /** @example Hello, world! */
+ stdout: string;
+ /** @example */
+ stderr: string;
+ };
+ GamePlayerMessageS2CSubmitResult: {
+ /** @constant */
+ type: "player:s2c:submitresult";
+ data: components["schemas"]["GamePlayerMessageS2CSubmitResultPayload"];
+ };
+ GamePlayerMessageS2CSubmitResultPayload: {
/**
* @example success
* @enum {string}
*/
- status: "success" | "failure" | "timeout" | "internal_error" | "compile_error" | "wrong_answer";
+ status: "success" | "wrong_answer" | "timeout" | "runtime_error" | "internal_error" | "compile_error";
/** @example 100 */
score: number | null;
};
@@ -203,8 +221,6 @@ export interface components {
GameWatcherMessageS2CSubmitPayload: {
/** @example 1 */
player_id: number;
- /** @example 100 */
- preliminary_score: number;
};
GameWatcherMessageS2CExecResult: {
/** @constant */
@@ -239,6 +255,8 @@ export interface components {
* @enum {string}
*/
status: "success" | "wrong_answer" | "timeout" | "runtime_error" | "internal_error" | "compile_error";
+ /** @example 100 */
+ score: number | null;
};
};
responses: {