Enhance API with OIDC support, including login and callback endpoints. Update environment variables for OIDC configuration in .env.example. Add new features to the catalog service for listing software families, Minecraft versions, and deployment regions. Implement server management actions such as kill, delete, and update in the servers module. Integrate feature flags for maintenance mode in server operations. Update pnpm-lock.yaml with new dependencies and versions.
This commit is contained in:
@@ -38,6 +38,9 @@ const (
|
||||
TypeServerFilesList MessageType = "server.files.list"
|
||||
TypeServerFilesRead MessageType = "server.files.read"
|
||||
TypeServerFilesWrite MessageType = "server.files.write"
|
||||
TypeServerFilesDelete MessageType = "server.files.delete"
|
||||
TypeServerFilesArchive MessageType = "server.files.archive"
|
||||
TypeServerFilesUnarchive MessageType = "server.files.unarchive"
|
||||
TypeServerFilesUploadDone MessageType = "server.files.upload.complete"
|
||||
TypeServerWorldValidate MessageType = "server.world.validate"
|
||||
TypeServerWorldArchive MessageType = "server.world.archive"
|
||||
@@ -76,6 +79,9 @@ var controlToAgentTypes = map[MessageType]struct{}{
|
||||
TypeServerFilesList: {},
|
||||
TypeServerFilesRead: {},
|
||||
TypeServerFilesWrite: {},
|
||||
TypeServerFilesDelete: {},
|
||||
TypeServerFilesArchive: {},
|
||||
TypeServerFilesUnarchive: {},
|
||||
TypeServerFilesUploadDone: {},
|
||||
TypeServerWorldValidate: {},
|
||||
TypeServerWorldArchive: {},
|
||||
@@ -185,9 +191,30 @@ type ServerFilesReadPayload struct {
|
||||
// ServerFilesWritePayload writes content to a file in the server data directory.
|
||||
type ServerFilesWritePayload struct {
|
||||
OperationMeta
|
||||
Path string `json:"path"`
|
||||
Content string `json:"content"`
|
||||
Create bool `json:"create"`
|
||||
Path string `json:"path"`
|
||||
Content string `json:"content"`
|
||||
Create bool `json:"create"`
|
||||
Encoding string `json:"encoding,omitempty"`
|
||||
}
|
||||
|
||||
// ServerFilesDeletePayload deletes a file or directory relative to data root.
|
||||
type ServerFilesDeletePayload struct {
|
||||
OperationMeta
|
||||
Path string `json:"path"`
|
||||
}
|
||||
|
||||
// ServerFilesArchivePayload creates a tar.gz archive from paths.
|
||||
type ServerFilesArchivePayload struct {
|
||||
OperationMeta
|
||||
Paths []string `json:"paths"`
|
||||
ArchiveName string `json:"archiveName,omitempty"`
|
||||
}
|
||||
|
||||
// ServerFilesUnarchivePayload extracts a tar.gz archive.
|
||||
type ServerFilesUnarchivePayload struct {
|
||||
OperationMeta
|
||||
ArchivePath string `json:"archivePath"`
|
||||
DestinationPath string `json:"destinationPath"`
|
||||
}
|
||||
|
||||
// ServerWorldValidatePayload validates a Minecraft world directory.
|
||||
|
||||
Reference in New Issue
Block a user