Add admin chat endpoint and request schemas for private messages, party messages, and punishments

This commit is contained in:
2026-08-09 14:53:25 +02:00
parent 1a0bc902ac
commit 7f94569575
@@ -19,6 +19,27 @@ sendServerMessage:
description: Server not found or not connected
'400':
description: Invalid request
sendAdminChat:
post:
tags:
- admin-chat
summary: Send an admin chat to a specific server
operationId: sendAdminChat
parameters:
- $ref: '#/components/parameters/Server'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ServerMessageRequest'
responses:
'202':
description: Message accepted and sent
'404':
description: Server not found or not connected
'400':
description: Invalid request
components:
parameters:
Server:
@@ -43,3 +64,74 @@ components:
type: string
description: The message to send
maxLength: 256
PrivateMessageRequest:
type: object
required:
- from
- message
- to
properties:
from:
type: string
format: uuid
description: The sender UUID
message:
type: string
description: The message to send
maxLength: 256
to:
type: string
format: uuid
description: The recipient UUID
PartyMessageRequest:
type: object
required:
- from
- message
- partyId
properties:
from:
type: string
format: uuid
description: The sender UUID
message:
type: string
description: The message to send
maxLength: 256
partyId:
type: string
format: int32
description: The party id
PunishRequest:
type: object
required:
- executor
- target
- type
- reason
properties:
executor:
type: string
format: uuid
description: The executor UUID
target:
type: string
format: uuid
description: The target UUID
type:
type: string
description: The type of punishment
enum:
- BAN
- MUTE
- WARN
- FLAG
reason:
type: string
description: The reason for the punishment
time:
type: string
format: duration
example: PT30S