This commit is contained in:
2026-10-11 02:23:38 +07:00
parent 535d2c3649
commit 6de5c336a2
2 changed files with 46 additions and 5 deletions
+21 -5
View File
@@ -626,6 +626,14 @@ service EveningDetectiveServer {
};
}
// HTTP uploads are streamed by a dedicated handler, bypassing gRPC message limits.
rpc ImportGame(google.api.HttpBody) returns (GameImportRsp) {
option (google.api.http) = {
post: "/api/games/import"
body: "*"
};
}
rpc StartGameExport(StartGameExportReq) returns (GameExportRsp) {
option (google.api.http) = {
post: "/api/games/{ID}/export"
@@ -1645,16 +1653,24 @@ message Game {
// Download ready ZIP through the authenticated streaming HTTP route:
// GET /api/games/{ID}/export/download (not an HttpBody RPC).
message GameExport {
string ID = 1;
string state = 2; // preparing, ready or failed; preparing/ready lock game writes.
string ID = 1;
string state = 2; // preparing, ready or failed; preparing/ready lock game writes.
string packageID = 3;
int64 size = 4;
string sha256 = 5;
string failure = 6;
int64 size = 4;
string sha256 = 5;
string failure = 6;
}
message GameImportRsp {
int32 gameID = 1;
string packageID = 2;
bool repeated = 3;
}
message StartGameExportReq { int32 ID = 1; }
message GetGameExportReq { int32 ID = 1; }
message GameExportRsp { GameExport export = 1; }
enum ScreenMode {