import { operation, buildingBase, buildingCommonMethods, buildingView, requestBodySchema, response200, response500, security, statusSchema, tags, } from '../../chunks.ts'; const base = buildingBase('Capitol'); export const capitol = { ...buildingCommonMethods(base), ...buildingView(base, { rename_empire_cost: { type: 'integer', description: 'The essentia cost to rename the empire via rename_empire.', }, }), [`${base}/rename_empire`]: { post: { ...tags(base), ...security(), ...operation('Rename the empire.', 'Spends essentia to rename your empire.'), ...requestBodySchema({ type: 'object', required: ['building_id', 'name'], properties: { building_id: { type: 'integer', description: 'The unique id of the building.' }, name: { type: 'string', description: 'The new name of your empire.' }, }, }), responses: { ...response200( "Spends essentia to change the empire's name (cost given by view's rename_empire_cost).", { type: 'object', required: ['status'], properties: { status: statusSchema() } } ), ...response500(), }, }, }, };