import define from "../../define.js";
import { surrender } from "../../../../services/shogi/index.js";
export const meta = {
    tags: [
        "shogi"
    ],
    requireCredential: true,
    kind: "write:account"
};
export const paramDef = {
    type: "object",
    properties: {
        gameId: {
            type: "string",
            format: "misskey:id"
        }
    },
    required: [
        "gameId"
    ]
};
export default define(meta, paramDef, async (ps, user)=>{
    await surrender(ps.gameId, user);
});
