{"openapi":"3.1.0","info":{"title":"Calagopus Wings API","version":"1.0.0"},"paths":{"/api/backups/{backup}":{"delete":{"operationId":"delete_api_backups_backup","parameters":[{"name":"backup","in":"path","description":"The backup uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["adapter"],"properties":{"adapter":{"$ref":"#/components/schemas/BackupAdapter"},"foreground":{"type":"boolean"},"server":{"type":["string","null"],"format":"uuid"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/backups/{backup}/export":{"post":{"operationId":"post_api_backups_backup_export","parameters":[{"name":"backup","in":"path","description":"The backup uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["adapter","server","path"],"properties":{"adapter":{"$ref":"#/components/schemas/BackupAdapter"},"server":{"type":"string","format":"uuid"},"path":{"type":"string"},"archive_format":{"$ref":"#/components/schemas/StreamableArchiveFormat"},"foreground":{"type":"boolean"},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryEntry"}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string","format":"uuid"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/backups/{backup}/query":{"get":{"operationId":"get_api_backups_backup_query","parameters":[{"name":"backup","in":"path","description":"The backup uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"adapter","in":"query","description":"The backup adapter to use","required":true,"schema":{"$ref":"#/components/schemas/BackupAdapter"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"archive_format":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ArchiveFormat"}]},"size":{"type":["integer","null"],"format":"int64","minimum":0}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/deauthorize-user":{"post":{"operationId":"post_api_deauthorize-user","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["servers","user"],"properties":{"servers":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"user":{"type":"string","format":"uuid"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}}},"/api/permissions/invalidate":{"post":{"operationId":"post_api_permissions_invalidate","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["as_of"],"properties":{"as_of":{"type":"integer","format":"int64"},"users":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"servers":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ServerSelector"}]},"revoke_users":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"revoke_credentials":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/ports/used":{"get":{"operationId":"get_api_ports_used","parameters":[{"name":"ip","in":"query","description":"The allocation ips to check, repeated once per ip","required":true,"schema":{"type":"array","items":{"type":"string"}},"example":"127.0.0.1"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["used"],"properties":{"used":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/UsedPort"}},"propertyNames":{"type":"string"}}}}}}},"400":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}}},"/api/servers":{"get":{"operationId":"get_api_servers","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Server"}}}}}}},"post":{"operationId":"post_api_servers","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["uuid"],"properties":{"uuid":{"type":"string","format":"uuid"},"start_on_completion":{"type":"boolean"},"skip_scripts":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/power":{"post":{"operationId":"post_api_servers_power","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["servers","action"],"properties":{"servers":{"$ref":"#/components/schemas/ServerSelector"},"action":{"$ref":"#/components/schemas/ServerPowerAction"},"wait_seconds":{"type":["integer","null"],"format":"int64","minimum":0}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["affected"],"properties":{"affected":{"type":"integer","minimum":0}}}}}}}}},"/api/servers/utilization":{"get":{"operationId":"get_api_servers_utilization","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ResourceUsage"},"propertyNames":{"type":"string","format":"uuid"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}":{"get":{"operationId":"get_api_servers_server","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Server"}}}}}},"delete":{"operationId":"delete_api_servers_server","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/servers/{server}/backup":{"post":{"operationId":"post_api_servers_server_backup","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["adapter","uuid","ignore"],"properties":{"adapter":{"$ref":"#/components/schemas/BackupAdapter"},"uuid":{"type":"string","format":"uuid"},"ignore":{"$ref":"#/components/schemas/CompactString"}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/backup/{backup}":{"delete":{"operationId":"delete_api_servers_server_backup_backup","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"backup","in":"path","description":"The backup uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/backup/{backup}/restore":{"post":{"operationId":"post_api_servers_server_backup_backup_restore","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"backup","in":"path","description":"The backup uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["adapter","truncate_directory"],"properties":{"adapter":{"$ref":"#/components/schemas/BackupAdapter"},"truncate_directory":{"type":"boolean"},"download_url":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/commands":{"post":{"operationId":"post_api_servers_server_commands","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["commands"],"properties":{"commands":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/database-backup":{"post":{"operationId":"post_api_servers_server_database-backup","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["adapter","uuid","database_instance","extension"],"properties":{"adapter":{"$ref":"#/components/schemas/BackupAdapter"},"uuid":{"type":"string","format":"uuid"},"database_instance":{"type":"string","format":"uuid"},"extension":{"$ref":"#/components/schemas/CompactString"}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/database-backup/{backup}/restore":{"post":{"operationId":"post_api_servers_server_database-backup_backup_restore","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"backup","in":"path","description":"The backup uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["adapter","database_instance"],"properties":{"adapter":{"$ref":"#/components/schemas/BackupAdapter"},"database_instance":{"type":"string","format":"uuid"},"download_url":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"request_uuid":{"type":["string","null"],"format":"uuid"}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/chmod":{"post":{"operationId":"post_api_servers_server_files_chmod","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"type":"object","required":["file","mode"],"properties":{"file":{"$ref":"#/components/schemas/CompactString"},"mode":{"$ref":"#/components/schemas/CompactString"},"recursive":{"type":"boolean"}}}},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["updated"],"properties":{"updated":{"type":"integer","minimum":0}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/compress":{"post":{"operationId":"post_api_servers_server_files_compress","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"format":{"$ref":"#/components/schemas/ArchiveFormat"},"name":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"foreground":{"type":"boolean"},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryEntry"}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string","format":"uuid"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/contents":{"get":{"operationId":"get_api_servers_server_files_contents","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"file","in":"query","description":"The file to view contents of","required":true,"schema":{"type":"string"}},{"name":"download","in":"query","description":"Whether to add 'download headers' to the file","required":true,"schema":{"type":"boolean"}},{"name":"max_size","in":"query","description":"The maximum size of the file to return. If the file is larger than this, an error will be returned.","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"ignored","in":"query","description":"Additional ignored files","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/copy":{"post":{"operationId":"post_api_servers_server_files_copy","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["path"],"properties":{"path":{"$ref":"#/components/schemas/CompactString"},"name":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"overwrite":{"type":"boolean"},"foreground":{"type":"boolean"},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryEntry"}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string","format":"uuid"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/copy-many":{"post":{"operationId":"post_api_servers_server_files_copy-many","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"type":"object","required":["from","to"],"properties":{"from":{"$ref":"#/components/schemas/CompactString"},"to":{"$ref":"#/components/schemas/CompactString"}}}},"overwrite":{"type":"boolean"},"foreground":{"type":"boolean"},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["copied","skipped"],"properties":{"copied":{"type":"integer","minimum":0},"skipped":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}}}}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier","skipped"],"properties":{"identifier":{"type":"string","format":"uuid"},"skipped":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/copy-remote":{"post":{"operationId":"post_api_servers_server_files_copy-remote","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["url","token","files","destination_server","destination_path"],"properties":{"url":{"type":"string"},"token":{"type":"string"},"archive_format":{"$ref":"#/components/schemas/TransferArchiveFormat"},"compression_level":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompressionLevel"}]},"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"$ref":"#/components/schemas/CopyFile"}},"destination_server":{"type":"string","format":"uuid"},"destination_path":{"$ref":"#/components/schemas/CompactString"},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"destination_ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"overwrite":{"type":"boolean"},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["skipped"],"properties":{"skipped":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}}}}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier","skipped"],"properties":{"identifier":{"type":"string","format":"uuid"},"skipped":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/create-directory":{"post":{"operationId":"post_api_servers_server_files_create-directory","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["root","name"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"name":{"$ref":"#/components/schemas/CompactString"},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/create-symlink":{"post":{"operationId":"post_api_servers_server_files_create-symlink","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["root","link","target"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"link":{"$ref":"#/components/schemas/CompactString"},"target":{"$ref":"#/components/schemas/CompactString"},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/decompress":{"post":{"operationId":"post_api_servers_server_files_decompress","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["file"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"file":{"$ref":"#/components/schemas/CompactString"},"foreground":{"type":"boolean"},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string","format":"uuid"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/delete":{"post":{"operationId":"post_api_servers_server_files_delete","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["deleted"],"properties":{"deleted":{"type":"integer","minimum":0}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/directory-sizes":{"get":{"operationId":"get_api_servers_server_files_directory-sizes","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"directory","in":"query","description":"The directory to break down","required":true,"schema":{"type":"string"}},{"name":"depth","in":"query","description":"How many levels of subdirectories to include, 1 to 4","required":false,"schema":{"type":"integer","minimum":0},"example":2},{"name":"ignored","in":"query","description":"Additional ignored files","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectorySizes"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/fingerprints":{"get":{"operationId":"get_api_servers_server_files_fingerprints","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"algorithm","in":"query","description":"The algorithm to use for the fingerprint","required":true,"schema":{"$ref":"#/components/schemas/Algorithm"}},{"name":"files","in":"query","description":"The list of files to fingerprint","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"ignored","in":"query","description":"Additional ignored files","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["fingerprints"],"properties":{"fingerprints":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CompactString"},"propertyNames":{"type":"string"}}}}}}}}}},"/api/servers/{server}/files/ignore-matches":{"post":{"operationId":"post_api_servers_server_files_ignore-matches","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["patterns","limit"],"properties":{"patterns":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"},"maxItems":32},"limit":{"type":"integer","minimum":1},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["counts"],"properties":{"counts":{"type":"array","items":{"type":["integer","null"],"minimum":0}}}}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/largest-directories":{"get":{"operationId":"get_api_servers_server_files_largest-directories","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"directory","in":"query","description":"The directory to analyze","required":true,"schema":{"type":"string"}},{"name":"ignored","in":"query","description":"Additional ignored files","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/lines":{"get":{"operationId":"get_api_servers_server_files_lines","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"file","in":"query","description":"The file to read lines from","required":true,"schema":{"type":"string"}},{"name":"start_line","in":"query","description":"First line, one-based and inclusive","required":true,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"end_line","in":"query","description":"Last line, inclusive. At most 10000 lines, 1 MiB returned and 64 MiB scanned after decompression","required":true,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"max_size","in":"query","description":"Maximum bytes of selected line content after decompression, capped at 1 MiB; excludes skipped lines","required":false,"schema":{"type":"integer","format":"int64","minimum":0}},{"name":"ignored","in":"query","description":"Additional ignored files","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["content","eof"],"properties":{"start_line":{"type":["integer","null"],"format":"int64","minimum":0},"end_line":{"type":["integer","null"],"format":"int64","minimum":0},"content":{"type":"string"},"eof":{"type":"boolean"}}}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/list":{"get":{"operationId":"get_api_servers_server_files_list","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"directory","in":"query","description":"The directory to list files from","required":true,"schema":{"type":"string"}},{"name":"ignored","in":"query","description":"Additional ignored files","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"per_page","in":"query","description":"The number of entries to return per page","required":true,"schema":{"type":"integer","minimum":0}},{"name":"page","in":"query","description":"The page number to return","required":true,"schema":{"type":"integer","minimum":0}},{"name":"sort","in":"query","description":"The sorting mode to use","required":true,"schema":{"$ref":"#/components/schemas/DirectorySortingMode"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["total","filesystem_primary","filesystem_writable","filesystem_fast","entries","uploads"],"properties":{"total":{"type":"integer","minimum":0},"filesystem_primary":{"type":"boolean"},"filesystem_writable":{"type":"boolean"},"filesystem_fast":{"type":"boolean"},"entries":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}},"uploads":{"type":"array","items":{"$ref":"#/components/schemas/UploadEntry"}}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/list-directory":{"get":{"operationId":"get_api_servers_server_files_list-directory","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"directory","in":"query","description":"The directory to list files from","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"deprecated":true}},"/api/servers/{server}/files/operations":{"get":{"operationId":"get_api_servers_server_files_operations","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["operations"],"properties":{"operations":{"type":"array","items":{"$ref":"#/components/schemas/FilesystemOperation"}}}}}}}}}},"/api/servers/{server}/files/operations/{operation}":{"delete":{"operationId":"delete_api_servers_server_files_operations_operation","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"operation","in":"path","description":"The operation uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/pull":{"get":{"operationId":"get_api_servers_server_files_pull","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["downloads"],"properties":{"downloads":{"type":"array","items":{"$ref":"#/components/schemas/Download"}}}}}}}},"deprecated":true},"post":{"operationId":"post_api_servers_server_files_pull","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"url":{"$ref":"#/components/schemas/CompactString"},"file_name":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"use_header":{"type":"boolean"},"foreground":{"type":"boolean"},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string","format":"uuid"}}}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/pull/query":{"post":{"operationId":"post_api_servers_server_files_pull_query","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"$ref":"#/components/schemas/CompactString"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["final_url","headers"],"properties":{"file_name":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"file_size":{"type":["integer","null"],"format":"int64","minimum":0},"final_url":{"$ref":"#/components/schemas/CompactString"},"headers":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CompactString"},"propertyNames":{"type":"string"}}}}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/pull/{pull}":{"delete":{"operationId":"delete_api_servers_server_files_pull_pull","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"pull","in":"path","description":"The pull uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"deprecated":true}},"/api/servers/{server}/files/rename":{"put":{"operationId":"put_api_servers_server_files_rename","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"type":"object","required":["from","to"],"properties":{"from":{"$ref":"#/components/schemas/CompactString"},"to":{"$ref":"#/components/schemas/CompactString"}}}},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"create_directories":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["renamed"],"properties":{"renamed":{"type":"integer","minimum":0}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/revisions":{"get":{"operationId":"get_api_servers_server_files_revisions","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"file","in":"query","description":"The file path to list revisions for","required":true,"schema":{"type":"string"},"example":"/path/to/file.txt"},{"name":"ignored","in":"query","description":"Additional ignored files","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["revisions"],"properties":{"revisions":{"type":"array","items":{"$ref":"#/components/schemas/RevisionInfo"}}}}}}}}}},"/api/servers/{server}/files/revisions/{revision}":{"get":{"operationId":"get_api_servers_server_files_revisions_revision","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"revision","in":"path","description":"The revision id","required":true,"schema":{"type":"integer","format":"int64"},"example":"1"},{"name":"file","in":"query","description":"The file path the revision must belong to, rejected if it does not match","required":false,"schema":{"type":"string"},"example":"/path/to/file.txt"},{"name":"ignored","in":"query","description":"Additional ignored files","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/search":{"post":{"operationId":"post_api_servers_server_files_search","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["per_page"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"path_filter":{"oneOf":[{"type":"null"},{"type":"object","required":["include"],"properties":{"include":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"exclude":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"case_insensitive":{"type":"boolean"}}}]},"size_filter":{"oneOf":[{"type":"null"},{"type":"object","required":["max"],"properties":{"min":{"type":"integer","format":"int64","minimum":0},"max":{"type":"integer","format":"int64","minimum":0}}}]},"content_filter":{"oneOf":[{"type":"null"},{"type":"object","required":["query","max_search_size"],"properties":{"query":{"$ref":"#/components/schemas/CompactString"},"max_search_size":{"type":"integer","format":"int64","minimum":0},"include_unmatched":{"type":"boolean"},"case_insensitive":{"type":"boolean"}}}]},"match_context":{"oneOf":[{"type":"null"},{"type":"object","required":["before","after","max_matches"],"properties":{"before":{"type":"integer","minimum":0},"after":{"type":"integer","minimum":0},"max_matches":{"type":"integer","minimum":1}}}]},"per_page":{"type":"integer","minimum":0}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}},"content_matches":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ContentMatches"}}}}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/sqlite-query":{"post":{"operationId":"post_api_servers_server_files_sqlite-query","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["file","query"],"properties":{"file":{"$ref":"#/components/schemas/CompactString"},"query":{"type":"string","maxLength":65535,"minLength":1},"read_only":{"type":"boolean","default":"true"},"rows":{"type":"integer","format":"int32","maximum":1000,"minimum":1},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/QueryResultSet"}}}}}}},"400":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"408":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/stat":{"post":{"operationId":"post_api_servers_server_files_stat","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["entries"],"properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/trash":{"get":{"operationId":"get_api_servers_server_files_trash","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"ignored","in":"query","description":"Additional ignored files","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"per_page","in":"query","description":"The number of entries to return per page","required":true,"schema":{"type":"integer","minimum":0}},{"name":"page","in":"query","description":"The page number to return","required":true,"schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["total","entries"],"properties":{"total":{"type":"integer","minimum":0},"entries":{"type":"array","items":{"$ref":"#/components/schemas/TrashEntry"}}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"post_api_servers_server_files_trash","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"root":{"$ref":"#/components/schemas/CompactString"},"files":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["entries","skipped"],"properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/TrashEntry"}},"skipped":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"delete_api_servers_server_files_trash","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"ignored","in":"query","description":"Additional ignored files","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["deleted"],"properties":{"deleted":{"type":"integer","minimum":0}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/trash/purge":{"post":{"operationId":"post_api_servers_server_files_trash_purge","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["entries"],"properties":{"entries":{"type":"array","items":{"type":"string","format":"uuid"}},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["deleted"],"properties":{"deleted":{"type":"integer","minimum":0}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/trash/restore":{"post":{"operationId":"post_api_servers_server_files_trash_restore","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["entries"],"properties":{"entries":{"type":"array","items":{"type":"object","required":["uuid"],"properties":{"uuid":{"type":"string","format":"uuid"},"path":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]}}}},"overwrite":{"type":"boolean"},"ignored":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["restored","conflicts"],"properties":{"restored":{"type":"array","items":{"$ref":"#/components/schemas/TrashEntry"}},"conflicts":{"type":"array","items":{"type":"object","required":["uuid","destination"],"properties":{"uuid":{"type":"string","format":"uuid"},"destination":{"$ref":"#/components/schemas/DirectoryEntry"}}}}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/files/write":{"post":{"operationId":"post_api_servers_server_files_write","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"file","in":"query","description":"The file to view contents of","required":true,"schema":{"type":"string"}},{"name":"user","in":"query","description":"The user uuid of the editor. This is used for diff tracking.","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"ignored","in":"query","description":"Additional ignored files","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"revision_id":{"type":["integer","null"],"format":"int64"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/install/abort":{"post":{"operationId":"post_api_servers_server_install_abort","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/logs":{"get":{"operationId":"get_api_servers_server_logs","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lines","in":"query","description":"The number of lines to tail from the log","required":false,"schema":{"type":"integer","minimum":0},"example":"100"}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/servers/{server}/logs/install":{"get":{"operationId":"get_api_servers_server_logs_install","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lines","in":"query","description":"The number of lines to tail from the log","required":false,"schema":{"type":"integer","minimum":0},"example":"100"}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/power":{"post":{"operationId":"post_api_servers_server_power","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"$ref":"#/components/schemas/ServerPowerAction"},"wait_seconds":{"type":["integer","null"],"format":"int64","minimum":0}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/servers/{server}/reinstall":{"post":{"operationId":"post_api_servers_server_reinstall","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"truncate_directory":{"type":"boolean"},"installation_script":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/InstallationScript"}]},"start_on_completion":{"type":"boolean"}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/schedules/{schedule}":{"get":{"operationId":"get_api_servers_server_schedules_schedule","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"schedule","in":"path","description":"The schedule uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"$ref":"#/components/schemas/ScheduleStatus"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/schedules/{schedule}/abort":{"post":{"operationId":"post_api_servers_server_schedules_schedule_abort","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"schedule","in":"path","description":"The schedule uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/schedules/{schedule}/trigger":{"post":{"operationId":"post_api_servers_server_schedules_schedule_trigger","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"schedule","in":"path","description":"The schedule uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"skip_condition":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/script":{"post":{"operationId":"post_api_servers_server_script","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationScript"}}},"required":true},"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/servers/{server}/sync":{"post":{"operationId":"post_api_servers_server_sync","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["server"],"properties":{"server":{}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/servers/{server}/transfer":{"post":{"operationId":"post_api_servers_server_transfer","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["url","token"],"properties":{"url":{"type":"string"},"token":{"type":"string"},"archive_format":{"$ref":"#/components/schemas/TransferArchiveFormat"},"compression_level":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompressionLevel"}]},"backups":{"type":"array","items":{"type":"string","format":"uuid"}},"delete_backups":{"type":"boolean"},"multiplex_streams":{"type":"integer","minimum":0}}}}},"required":true},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"delete_api_servers_server_transfer","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/utilization":{"get":{"operationId":"get_api_servers_server_utilization","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["utilization"],"properties":{"utilization":{"$ref":"#/components/schemas/ResourceUsage"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/version":{"get":{"operationId":"get_api_servers_server_version","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"game","in":"query","description":"The game logic to use for the sha256 hash","required":true,"schema":{"$ref":"#/components/schemas/Game"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["hash"],"properties":{"hash":{"$ref":"#/components/schemas/CompactString"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/servers/{server}/ws/broadcast":{"post":{"operationId":"post_api_servers_server_ws_broadcast","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["users","permissions","message"],"properties":{"users":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"permissions":{"type":"array","items":{"type":"string"}},"message":{"$ref":"#/components/schemas/WebsocketMessage"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/servers/{server}/ws/deny":{"post":{"operationId":"post_api_servers_server_ws_deny","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["jtis"],"properties":{"jtis":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/servers/{server}/ws/permissions":{"post":{"operationId":"post_api_servers_server_ws_permissions","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["user_permissions"],"properties":{"user_permissions":{"type":"array","items":{"type":"object","required":["user","permissions"],"properties":{"user":{"type":"string","format":"uuid"},"permissions":{"type":"array","items":{"type":"string"}},"ignored_files":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/system":{"get":{"operationId":"get_api_system","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["architecture","cpu_count","kernel_version","os","version","bandwidth"],"properties":{"architecture":{"type":"string"},"cpu_count":{"type":"integer","minimum":0},"kernel_version":{"type":"string"},"os":{"type":"string"},"version":{"type":"string"},"bandwidth":{"$ref":"#/components/schemas/BandwidthStatus"}}}}}}}}},"/api/system/backups/test":{"post":{"operationId":"post_api_system_backups_test","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupTestTarget"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["successful","duration_ms"],"properties":{"successful":{"type":"boolean"},"duration_ms":{"type":"integer","format":"int64","minimum":0},"error":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]}}}}}}}}},"/api/system/config":{"get":{"operationId":"get_api_system_config","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"debug":{"type":"boolean"},"app_name":{"type":"string"},"uuid":{"type":"string","format":"uuid"},"token_id":{"type":"string"},"token":{"type":"string"},"api":{"type":"object","properties":{"host":{"type":"string","default":"0.0.0.0"},"port":{"type":"integer","format":"int32","default":8080,"minimum":0},"ssl":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":false},"ktls_enabled":{"type":"boolean","default":false},"cert":{"type":"string","default":""},"key":{"type":"string","default":""}}}],"default":{"enabled":false,"ktls_enabled":false,"cert":"","key":""}},"redirects":{"type":"object","default":{},"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"disable_openapi_docs":{"type":"boolean","default":false},"disable_remote_download":{"type":"boolean","default":false},"remote_download_blocked_cidrs":{"type":"array","items":{"type":"string"},"default":["0.0.0.0/8","127.0.0.0/8","10.0.0.0/8","100.64.0.0/10","172.16.0.0/12","192.168.0.0/16","169.254.0.0/16","192.0.0.0/24","198.18.0.0/15","224.0.0.0/4","240.0.0.0/4","::","::1","fe80::/10","fc00::/7","2002::/16","ff00::/8"]},"disable_directory_size":{"type":"boolean","default":false},"directory_entry_limit":{"type":"integer","default":10000,"minimum":0},"send_offline_server_logs":{"type":"boolean","default":false},"file_search_threads":{"type":"integer","default":4,"minimum":0},"file_search_context":{"oneOf":[{"type":"object","properties":{"max_matches":{"type":"integer","default":100,"minimum":0},"max_response_size":{"type":"integer","format":"int64","default":8388608,"minimum":0}}}],"default":{"max_matches":100,"max_response_size":8388608}},"file_copy_threads":{"type":"integer","default":4,"minimum":0},"file_delete_threads":{"type":"integer","default":2,"minimum":0},"file_decompression_threads":{"type":"integer","default":4,"minimum":0},"file_compression_threads":{"type":"integer","default":2,"minimum":0},"file_fingerprint_threads":{"type":"integer","default":4,"minimum":0},"upload_limit":{"oneOf":[{"$ref":"#/components/schemas/MiB"}],"default":0},"max_jwt_uses":{"type":"integer","default":5,"minimum":0},"request_log_limit":{"type":"integer","default":250,"minimum":0},"trusted_proxies":{"type":"array","items":{"type":"string"},"default":[]},"schedule":{"oneOf":[{"type":"object","properties":{"steps":{"oneOf":[{"type":"object","properties":{"http_request":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"requests":{"type":"integer","format":"int32","default":5,"minimum":0},"window_seconds":{"type":"integer","format":"int64","default":60,"minimum":0},"max_response_size":{"type":"integer","default":16384,"minimum":0},"blocked_cidrs":{"type":"array","items":{"type":"string"},"default":["0.0.0.0/8","127.0.0.0/8","10.0.0.0/8","100.64.0.0/10","172.16.0.0/12","192.168.0.0/16","169.254.0.0/16","192.0.0.0/24","198.18.0.0/15","224.0.0.0/4","240.0.0.0/4","::","::1","fe80::/10","fc00::/7","2002::/16","ff00::/8"]}}}],"default":{"enabled":true,"requests":5,"window_seconds":60,"max_response_size":16384,"blocked_cidrs":["0.0.0.0/8","127.0.0.0/8","10.0.0.0/8","100.64.0.0/10","172.16.0.0/12","192.168.0.0/16","169.254.0.0/16","192.0.0.0/24","198.18.0.0/15","224.0.0.0/4","240.0.0.0/4","::","::1","fe80::/10","fc00::/7","2002::/16","ff00::/8"]}}}}],"default":{"http_request":{"enabled":true,"requests":5,"window_seconds":60,"max_response_size":16384,"blocked_cidrs":["0.0.0.0/8","127.0.0.0/8","10.0.0.0/8","100.64.0.0/10","172.16.0.0/12","192.168.0.0/16","169.254.0.0/16","192.0.0.0/24","198.18.0.0/15","224.0.0.0/4","240.0.0.0/4","::","::1","fe80::/10","fc00::/7","2002::/16","ff00::/8"]}}}}}],"default":{"steps":{"http_request":{"enabled":true,"requests":5,"window_seconds":60,"max_response_size":16384,"blocked_cidrs":["0.0.0.0/8","127.0.0.0/8","10.0.0.0/8","100.64.0.0/10","172.16.0.0/12","192.168.0.0/16","169.254.0.0/16","192.0.0.0/24","198.18.0.0/15","224.0.0.0/4","240.0.0.0/4","::","::1","fe80::/10","fc00::/7","2002::/16","ff00::/8"]}}}}}},"system":{"type":"object","properties":{"root_directory":{"oneOf":[{"$ref":"#/components/schemas/SystemPath"}],"default":"/var/lib/calagopus-wings"},"log_directory":{"oneOf":[{"$ref":"#/components/schemas/SystemPath"}],"default":"/var/log/calagopus-wings"},"data":{"oneOf":[{"$ref":"#/components/schemas/SystemPath"}],"default":"{root_directory}/volumes"},"diffs_directory":{"oneOf":[{"$ref":"#/components/schemas/SystemPath"}],"default":"{root_directory}/diffs"},"vmount_directory":{"oneOf":[{"$ref":"#/components/schemas/SystemPath"}],"default":"{root_directory}/vmounts"},"archive_directory":{"oneOf":[{"$ref":"#/components/schemas/SystemPath"}],"default":"{root_directory}/archives"},"backup_directory":{"oneOf":[{"$ref":"#/components/schemas/SystemPath"}],"default":"{root_directory}/backups"},"tmp_directory":{"oneOf":[{"$ref":"#/components/schemas/SystemPath"}],"default":"{root_directory}/tmp"},"username":{"oneOf":[{"$ref":"#/components/schemas/CompactString"}],"default":"calagopus"},"timezone":{"oneOf":[{"$ref":"#/components/schemas/CompactString"}],"default":"Europe/Berlin"},"user":{"oneOf":[{"type":"object","properties":{"rootless":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":false},"container_uid":{"type":"integer","format":"int32","default":0,"minimum":0},"container_gid":{"type":"integer","format":"int32","default":0,"minimum":0}}}],"default":{"enabled":false,"container_uid":0,"container_gid":0}},"uid":{"type":"integer","format":"int32","default":0,"minimum":0},"gid":{"type":"integer","format":"int32","default":0,"minimum":0}}}],"default":{"rootless":{"enabled":false,"container_uid":0,"container_gid":0},"uid":0,"gid":0}},"passwd":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":false},"directory":{"oneOf":[{"$ref":"#/components/schemas/SystemPath"}],"default":"/run/calagopus-wings/etc"}}}],"default":{"enabled":false,"directory":"/run/calagopus-wings/etc"}},"machine_id":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true}}}],"default":{"enabled":true}},"disk_check_concurrency":{"type":"integer","default":2,"minimum":0},"disk_check_interval":{"type":"integer","format":"int64","default":150,"minimum":0},"full_disk_check_every":{"type":"integer","format":"int64","default":4,"minimum":0},"disk_check_use_inotify":{"type":"boolean","default":true},"disk_limiter_mode":{"oneOf":[{"$ref":"#/components/schemas/DiskLimiterMode"}],"default":"none"},"activity_send_interval":{"type":"integer","format":"int64","default":60,"minimum":0},"activity_send_count":{"type":"integer","default":100,"minimum":0},"check_permissions_on_boot":{"type":"boolean","default":true},"check_permissions_on_boot_threads":{"type":"integer","default":4,"minimum":0},"websocket_log_count":{"type":"integer","default":150,"minimum":0},"tcp_congestion_control":{"type":"string","default":"bbr"},"sftp":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"bind_address":{"type":"string","default":"0.0.0.0"},"bind_port":{"type":"integer","format":"int32","default":2022,"minimum":0},"read_only":{"type":"boolean","default":false},"key_algorithm":{"type":"string","default":"ssh-ed25519"},"disable_password_auth":{"type":"boolean","default":false},"directory_entry_limit":{"type":"integer","format":"int64","default":20000,"minimum":0},"directory_entry_send_amount":{"type":"integer","default":500,"minimum":0},"limits":{"oneOf":[{"type":"object","properties":{"authentication_password_attempts":{"type":"integer","default":3,"minimum":0},"authentication_pubkey_attempts":{"type":"integer","default":20,"minimum":0},"authentication_cooldown":{"type":"integer","format":"int64","default":60,"minimum":0},"max_connections_per_user":{"type":"integer","default":10,"minimum":0},"max_channels_per_connection":{"type":"integer","default":10,"minimum":0},"max_handles_per_channel":{"type":"integer","default":32,"minimum":0},"max_handles_total":{"type":"integer","default":1024,"minimum":0}}}],"default":{"authentication_password_attempts":3,"authentication_pubkey_attempts":20,"authentication_cooldown":60,"max_connections_per_user":10,"max_channels_per_connection":10,"max_handles_per_channel":32,"max_handles_total":1024}},"shell":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"cli":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","default":".wings"}}}],"default":{"name":".wings"}}}}],"default":{"enabled":true,"cli":{"name":".wings"}}},"activity":{"oneOf":[{"type":"object","properties":{"log_logins":{"type":"boolean","default":false},"log_file_reads":{"type":"boolean","default":false}}}],"default":{"log_logins":false,"log_file_reads":false}}}}],"default":{"enabled":true,"bind_address":"0.0.0.0","bind_port":2022,"read_only":false,"key_algorithm":"ssh-ed25519","disable_password_auth":false,"directory_entry_limit":20000,"directory_entry_send_amount":500,"limits":{"authentication_password_attempts":3,"authentication_pubkey_attempts":20,"authentication_cooldown":60,"max_connections_per_user":10,"max_channels_per_connection":10,"max_handles_per_channel":32,"max_handles_total":1024},"shell":{"enabled":true,"cli":{"name":".wings"}},"activity":{"log_logins":false,"log_file_reads":false}}},"crash_detection":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"detect_clean_exit_as_crash":{"type":"boolean","default":true},"timeout":{"type":"integer","format":"int64","default":60,"minimum":0}}}],"default":{"enabled":true,"detect_clean_exit_as_crash":true,"timeout":60}},"file_history":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"zstd_level":{"type":"integer","format":"int32","default":19},"anchor_interval":{"type":"integer","format":"int64","default":4,"minimum":0},"keep_chains":{"type":"integer","format":"int64","default":5,"minimum":0},"file_size_cap":{"type":"integer","format":"int64","default":1048576,"minimum":0},"per_file_disk_budget":{"type":"integer","format":"int64","default":5242880,"minimum":0},"per_server_disk_budget":{"type":"integer","format":"int64","default":209715200,"minimum":0},"maintenance_interval":{"type":"integer","format":"int64","default":3600,"minimum":0}}}],"default":{"enabled":true,"zstd_level":19,"anchor_interval":4,"keep_chains":5,"file_size_cap":1048576,"per_file_disk_budget":5242880,"per_server_disk_budget":209715200,"maintenance_interval":3600}},"file_collaboration":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"file_size_cap":{"type":"integer","format":"int64","default":1048576,"minimum":0},"max_sessions_per_server":{"type":"integer","format":"int64","default":16,"minimum":0},"max_sessions_per_connection":{"type":"integer","format":"int64","default":8,"minimum":0},"max_editors_per_session":{"type":"integer","format":"int64","default":32,"minimum":0},"max_cursors_per_connection":{"type":"integer","format":"int64","default":64,"minimum":0},"session_grace_period":{"type":"integer","format":"int64","default":30,"minimum":0}}}],"default":{"enabled":true,"file_size_cap":1048576,"max_sessions_per_server":16,"max_sessions_per_connection":8,"max_editors_per_session":32,"max_cursors_per_connection":64,"session_grace_period":30}},"websocket":{"oneOf":[{"type":"object","properties":{"max_message_size":{"type":"integer","format":"int64","default":1048576,"minimum":0},"max_frame_size":{"type":"integer","format":"int64","default":1048576,"minimum":0},"read_buffer_size":{"type":"integer","format":"int64","default":8192,"minimum":0},"authentication_timeout":{"type":"integer","format":"int64","default":60,"minimum":0},"unauthenticated_connections_per_ip":{"type":"integer","default":32,"minimum":0},"max_connections_total":{"type":"integer","default":0,"minimum":0}}}],"default":{"max_message_size":1048576,"max_frame_size":1048576,"read_buffer_size":8192,"authentication_timeout":60,"unauthenticated_connections_per_ip":32,"max_connections_total":0}},"backups":{"oneOf":[{"type":"object","properties":{"write_limit":{"oneOf":[{"$ref":"#/components/schemas/MiB"}],"default":0},"read_limit":{"oneOf":[{"$ref":"#/components/schemas/MiB"}],"default":0},"compression_level":{"oneOf":[{"$ref":"#/components/schemas/CompressionLevel"}],"default":"best_speed"},"mounting":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"path":{"type":"string","default":".backups"}}}],"default":{"enabled":true,"path":".backups"}},"wings":{"oneOf":[{"type":"object","properties":{"create_threads":{"type":"integer","default":4,"minimum":0},"restore_threads":{"type":"integer","default":4,"minimum":0},"archive_format":{"oneOf":[{"$ref":"#/components/schemas/ArchiveFormat"}],"default":"tar_gz"}}}],"default":{"create_threads":4,"restore_threads":4,"archive_format":"tar_gz"}},"s3":{"oneOf":[{"type":"object","properties":{"create_threads":{"type":"integer","default":4,"minimum":0},"streaming":{"type":"boolean","default":true},"part_upload_timeout":{"type":"integer","format":"int64","default":7200,"minimum":0},"retry_limit":{"type":"integer","format":"int64","default":10,"minimum":0}}}],"default":{"create_threads":4,"streaming":true,"part_upload_timeout":7200,"retry_limit":10}},"ddup_bak":{"oneOf":[{"type":"object","properties":{"create_threads":{"type":"integer","default":4,"minimum":0},"restore_threads":{"type":"integer","default":4,"minimum":0},"compression_format":{"oneOf":[{"$ref":"#/components/schemas/SystemBackupsDdupBakCompressionFormat"}],"default":"zstd"}}}],"default":{"create_threads":4,"restore_threads":4,"compression_format":"zstd"}},"restic":{"oneOf":[{"type":"object","properties":{"repository":{"oneOf":[{"$ref":"#/components/schemas/SystemPath"}],"default":"{root_directory}/backups/restic"},"password_file":{"oneOf":[{"$ref":"#/components/schemas/SystemPath"}],"default":"{root_directory}/backups/restic_password"},"retry_lock_seconds":{"type":"integer","format":"int64","default":60,"minimum":0},"environment":{"type":"object","default":{},"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}}}}],"default":{"repository":"{root_directory}/backups/restic","password_file":"{root_directory}/backups/restic_password","retry_lock_seconds":60,"environment":{}}},"btrfs":{"oneOf":[{"type":"object","properties":{"restore_threads":{"type":"integer","default":4,"minimum":0},"create_read_only":{"type":"boolean","default":true}}}],"default":{"restore_threads":4,"create_read_only":true}},"zfs":{"oneOf":[{"type":"object","properties":{"restore_threads":{"type":"integer","default":4,"minimum":0}}}],"default":{"restore_threads":4}},"pbs":{"oneOf":[{"type":"object","properties":{"create_threads":{"type":"integer","default":4,"minimum":0},"download_concurrency":{"type":"integer","default":4,"minimum":0}}}],"default":{"create_threads":4,"download_concurrency":4}}}}],"default":{"write_limit":0,"read_limit":0,"compression_level":"best_speed","mounting":{"enabled":true,"path":".backups"},"wings":{"create_threads":4,"restore_threads":4,"archive_format":"tar_gz"},"s3":{"create_threads":4,"streaming":true,"part_upload_timeout":7200,"retry_limit":10},"ddup_bak":{"create_threads":4,"restore_threads":4,"compression_format":"zstd"},"restic":{"repository":"{root_directory}/backups/restic","password_file":"{root_directory}/backups/restic_password","retry_lock_seconds":60,"environment":{}},"btrfs":{"restore_threads":4,"create_read_only":true},"zfs":{"restore_threads":4},"pbs":{"create_threads":4,"download_concurrency":4}}},"transfers":{"oneOf":[{"type":"object","properties":{"download_limit":{"oneOf":[{"$ref":"#/components/schemas/MiB"}],"default":0}}}],"default":{"download_limit":0}}}},"docker":{"type":"object","properties":{"socket":{"type":"string","default":"/var/run/docker.sock"},"server_name_in_container_name":{"type":"boolean","default":false},"delete_container_on_stop":{"type":"boolean","default":true},"network":{"oneOf":[{"type":"object","properties":{"interface":{"type":"string","default":"172.18.0.1"},"disable_interface_binding":{"type":"boolean","default":false},"dns":{"type":"array","items":{"type":"string"},"default":["1.1.1.1","1.0.0.1"]},"dns_options":{"type":"array","items":{"type":"string"},"default":["ndots:0","timeout:2","attempts:3","single-request-reopen"]},"name":{"type":"string","default":"calagopus_nw"},"ispn":{"type":"boolean","default":false},"driver":{"type":"string","default":"bridge"},"mode":{"type":"string","default":"calagopus_nw"},"is_internal":{"type":"boolean","default":false},"enable_icc":{"type":"boolean","default":true},"network_mtu":{"type":"integer","format":"int64","default":1500,"minimum":0},"interfaces":{"oneOf":[{"type":"object","properties":{"v4":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"subnet":{"type":"string","default":"172.18.0.0/16"},"gateway":{"type":"string","default":"172.18.0.1"}}}],"default":{"enabled":true,"subnet":"172.18.0.0/16","gateway":"172.18.0.1"}},"v6":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"subnet":{"type":"string","default":"fdba:17c8:6c94::/64"},"gateway":{"type":"string","default":"fdba:17c8:6c94::1011"}}}],"default":{"enabled":true,"subnet":"fdba:17c8:6c94::/64","gateway":"fdba:17c8:6c94::1011"}}}}],"default":{"v4":{"enabled":true,"subnet":"172.18.0.0/16","gateway":"172.18.0.1"},"v6":{"enabled":true,"subnet":"fdba:17c8:6c94::/64","gateway":"fdba:17c8:6c94::1011"}}}}}],"default":{"interface":"172.18.0.1","disable_interface_binding":false,"dns":["1.1.1.1","1.0.0.1"],"dns_options":["ndots:0","timeout:2","attempts:3","single-request-reopen"],"name":"calagopus_nw","ispn":false,"driver":"bridge","mode":"calagopus_nw","is_internal":false,"enable_icc":true,"network_mtu":1500,"interfaces":{"v4":{"enabled":true,"subnet":"172.18.0.0/16","gateway":"172.18.0.1"},"v6":{"enabled":true,"subnet":"fdba:17c8:6c94::/64","gateway":"fdba:17c8:6c94::1011"}}}},"firewall":{"oneOf":[{"type":"object","properties":{"backend":{"oneOf":[{"$ref":"#/components/schemas/FirewallBackendKind"}],"default":"auto"},"source_file_max_entries":{"type":"integer","format":"int64","default":10000,"minimum":0},"source_file_max_bytes":{"type":"integer","format":"int64","default":1048576,"minimum":0}}}],"default":{"backend":"auto","source_file_max_entries":10000,"source_file_max_bytes":1048576}},"bandwidth":{"oneOf":[{"type":"object","properties":{"backend":{"oneOf":[{"$ref":"#/components/schemas/BandwidthBackendKind"}],"default":"auto"}}}],"default":{"backend":"auto"}},"domainname":{"type":"string","default":""},"registries":{"type":"object","default":{},"additionalProperties":{"type":"object","required":["username","password"],"properties":{"username":{"type":"string"},"password":{"type":"string"}}},"propertyNames":{"type":"string"}},"registry_image_fetch_cache":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"duration":{"type":"integer","format":"int64","default":300,"minimum":0},"background_refresh":{"type":"boolean","default":false}}}],"default":{"enabled":true,"duration":300,"background_refresh":false}},"tmpfs_size":{"oneOf":[{"$ref":"#/components/schemas/MiB"}],"default":100},"shm_size":{"oneOf":[{"$ref":"#/components/schemas/MiB"}],"default":0},"container_pid_limit":{"type":"integer","format":"int64","default":5120,"minimum":0},"container_apply_seccomp":{"type":"boolean","default":true},"container_apparmor_profile":{"type":"string","default":""},"container_ulimits":{"type":"array","items":{"type":"object","required":["name","soft","hard"],"properties":{"name":{"type":"string"},"soft":{"type":"integer","format":"int64"},"hard":{"type":"integer","format":"int64"}}},"default":[]},"container_sysctls":{"type":"object","default":{},"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"numa_memory_binding":{"type":"boolean","default":true},"cpu_period":{"type":"integer","format":"int64","default":100000,"minimum":0},"cfs_burst":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"multiple":{"type":"number","format":"double","default":1.0}}}],"default":{"enabled":true,"multiple":1.0}},"startup_boost":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":false},"timeout":{"type":"integer","format":"int64","default":120,"minimum":0},"max_concurrent":{"type":"integer","format":"int64","default":3,"minimum":0}}}],"default":{"enabled":false,"timeout":120,"max_concurrent":3}},"runtime_boost":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":false},"threshold":{"type":"integer","format":"int64","description":"% of the configured cpu limit","default":90,"minimum":0},"sustained":{"type":"integer","format":"int64","default":10,"minimum":0},"multiple":{"type":"number","format":"double","default":2.0},"duration":{"type":"integer","format":"int64","default":60,"minimum":0},"cooldown":{"type":"integer","format":"int64","default":300,"minimum":0},"max_concurrent":{"type":"integer","format":"int64","default":3,"minimum":0}}}],"default":{"enabled":false,"threshold":90,"sustained":10,"multiple":2.0,"duration":60,"cooldown":300,"max_concurrent":3}},"lxcfs":{"oneOf":[{"type":"object","properties":{"enabled":{"type":"boolean","default":false},"directory":{"oneOf":[{"$ref":"#/components/schemas/SystemPath"}],"default":"/var/lib/lxcfs"}}}],"default":{"enabled":false,"directory":"/var/lib/lxcfs"}},"installer_limits":{"oneOf":[{"type":"object","properties":{"timeout":{"type":"integer","format":"int64","default":1800,"minimum":0},"memory":{"oneOf":[{"$ref":"#/components/schemas/MiB"}],"default":1024},"cpu":{"type":"integer","format":"int64","description":"%","default":100,"minimum":0}}}],"default":{"timeout":1800,"memory":1024,"cpu":100}},"overhead":{"oneOf":[{"type":"object","properties":{"override":{"type":"boolean","default":false},"default_multiplier":{"type":"number","format":"double","default":1.05},"multipliers":{"type":"object","description":"Memory Limit MiB -> Multiplier","default":{},"additionalProperties":{"type":"number","format":"double"},"propertyNames":{"type":"integer","format":"int64","description":"Represents a size in Mebibytes (MiB). The inner value is the number of MiB (not bytes!!).","minimum":0}}}}],"default":{"override":false,"default_multiplier":1.05,"multipliers":{}}},"userns_mode":{"type":"string","default":""},"log_config":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","default":"local"},"config":{"type":"object","default":{"compress":"false","max-file":"1","max-size":"5m","mode":"non-blocking"},"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}}}}],"default":{"type":"local","config":{"compress":"false","max-file":"1","max-size":"5m","mode":"non-blocking"}}}}},"limits":{"type":"object","properties":{"server_concurrent_pulls":{"type":"integer","description":"0 = unlimited","default":3,"minimum":0},"server_concurrent_operations":{"type":"integer","description":"0 = unlimited, pulls count towards this too","default":0,"minimum":0}}},"throttles":{"type":"object","properties":{"enabled":{"type":"boolean","default":true},"lines":{"type":"integer","format":"int64","default":2000,"minimum":0},"line_reset_interval":{"type":"integer","format":"int64","description":"ms","default":100,"minimum":0}}},"tundra":{"type":"object","properties":{"enabled":{"type":"boolean","default":false},"data_directory":{"oneOf":[{"$ref":"#/components/schemas/SystemPath"}],"default":"{root_directory}/tundra"},"binary":{"oneOf":[{"$ref":"#/components/schemas/SystemPath","description":"when empty, the binary is extracted from source_image"}],"default":""},"image":{"type":"string","default":"debian:trixie-slim"},"source_image":{"type":"string","default":"ghcr.io/calagopus/tundra:latest"},"metrics_port":{"type":"integer","format":"int32","default":7101,"minimum":0}}},"remote":{"type":"string"},"remote_headers":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"remote_query":{"type":"object","properties":{"timeout":{"type":"integer","format":"int64","default":30,"minimum":0},"boot_servers_per_page":{"type":"integer","format":"int64","default":50,"minimum":0},"retry_limit":{"type":"integer","format":"int64","default":10,"minimum":0}}},"allowed_mounts":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"allowed_devices":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}},"allowed_origins":{"type":"array","items":{"type":"string"}},"allow_cors_private_network":{"type":"boolean"},"ignore_panel_config_updates":{"type":"boolean"},"ignore_panel_wings_upgrades":{"type":"boolean"}}}}}}}}},"/api/system/ips":{"get":{"operationId":"get_api_system_ips","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["ips"],"properties":{"ips":{"type":"array","items":{"type":"string"}}}}}}}}}},"/api/system/logs":{"get":{"operationId":"get_api_system_logs","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["log_files"],"properties":{"log_files":{"type":"array","items":{"type":"object","required":["name","compression_type","size","last_modified"],"properties":{"name":{"$ref":"#/components/schemas/CompactString"},"compression_type":{"$ref":"#/components/schemas/CompressionType"},"size":{"type":"integer","format":"int64","minimum":0},"last_modified":{"type":"string","format":"date-time"}}}}}}}}}}}},"/api/system/logs/{file}":{"get":{"operationId":"get_api_system_logs_file","parameters":[{"name":"file","in":"path","description":"The log file name","required":true,"schema":{"type":"string"},"example":"wings.log"},{"name":"lines","in":"query","description":"The number of lines to tail from the log file","required":false,"schema":{"type":"integer","minimum":0},"example":"100"}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/system/overview":{"get":{"operationId":"get_api_system_overview","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["version","local_time","container_type","cpu","memory","servers","architecture","kernel_version"],"properties":{"version":{"type":"string"},"local_time":{"type":"string","format":"date-time"},"container_type":{"$ref":"#/components/schemas/AppContainerType"},"cpu":{"type":"object","required":["name","brand","vendor_id","frequency_mhz","cpu_count"],"properties":{"name":{"type":"string"},"brand":{"type":"string"},"vendor_id":{"type":"string"},"frequency_mhz":{"type":"integer","format":"int64","minimum":0},"cpu_count":{"type":"integer","minimum":0}}},"memory":{"type":"object","required":["total_bytes","free_bytes","used_bytes","used_bytes_process"],"properties":{"total_bytes":{"type":"integer","format":"int64","minimum":0},"free_bytes":{"type":"integer","format":"int64","minimum":0},"used_bytes":{"type":"integer","format":"int64","minimum":0},"used_bytes_process":{"type":"integer","format":"int64","minimum":0}}},"servers":{"type":"object","required":["total","online","offline"],"properties":{"total":{"type":"integer","minimum":0},"online":{"type":"integer","minimum":0},"offline":{"type":"integer","minimum":0}}},"architecture":{"type":"string"},"kernel_version":{"type":"string"},"upgrade":{"oneOf":[{"type":"null"},{"type":"object","required":["provider","repository","api_url"],"properties":{"provider":{"type":"string"},"repository":{"type":"string"},"api_url":{"type":"string"}}}]}}}}}}}}},"/api/system/restic/prune":{"get":{"operationId":"get_api_system_restic_prune","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/ResticTaskResult"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"post_api_system_restic_prune","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ResticBackupConfiguration"}]},"dry_run":{"type":"boolean"},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/ResticTaskResult"}}}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/system/restic/stats":{"get":{"operationId":"get_api_system_restic_stats","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/ResticTaskResult"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"post_api_system_restic_stats","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ResticBackupConfiguration"}]},"mode":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/ResticTaskResult"}}}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/system/restic/unlock":{"get":{"operationId":"get_api_system_restic_unlock","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/ResticTaskResult"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"post_api_system_restic_unlock","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ResticBackupConfiguration"}]},"remove_all":{"type":"boolean"},"foreground":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/ResticTaskResult"}}}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/system/stats":{"get":{"operationId":"get_api_system_stats","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["stats"],"properties":{"stats":{"$ref":"#/components/schemas/SystemStats"}}}}}}}}},"/api/system/upgrade":{"post":{"operationId":"post_api_system_upgrade","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["version"],"properties":{"version":{"$ref":"#/components/schemas/CompactString"},"token":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["applied"],"properties":{"applied":{"type":"boolean"},"version":{"type":["string","null"]}}}}}},"202":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["applied"],"properties":{"applied":{"type":"boolean"},"version":{"type":["string","null"]}}}}}},"400":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"404":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"409":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"501":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}}},"/api/system/upgrade/check":{"post":{"operationId":"post_api_system_upgrade_check","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"force":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["current_version","update_available","checked_at"],"properties":{"current_version":{"type":"string"},"latest_version":{"type":["string","null"]},"update_available":{"type":"boolean"},"checked_at":{"type":"string","format":"date-time"}}}}}},"501":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"502":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}}}}},"/api/transfers":{"get":{"operationId":"get_api_transfers","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/TransferProgress"},"propertyNames":{"type":"string","format":"uuid"}}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"operationId":"post_api_transfers","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/transfers/capabilities":{"get":{"operationId":"get_api_transfers_capabilities","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferCapabilities"}}}}}}},"/api/transfers/files":{"post":{"operationId":"post_api_transfers_files","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/transfers/files/stat":{"post":{"operationId":"post_api_transfers_files_stat","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["files"],"properties":{"files":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["entries"],"properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryEntry"}}}}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/transfers/query":{"get":{"operationId":"get_api_transfers_query","responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferCapabilities"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/transfers/{server}":{"delete":{"operationId":"delete_api_transfers_server","parameters":[{"name":"server","in":"path","description":"The server uuid","required":true,"schema":{"type":"string","format":"uuid"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/tundra":{"get":{"operationId":"get_api_tundra","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["supported","connected"],"properties":{"supported":{"type":"boolean"},"connected":{"type":"boolean"},"epoch":{"type":["integer","null"],"format":"int64","minimum":0}}}}}}}}},"/api/tundra/metrics":{"get":{"operationId":"get_api_tundra_metrics","responses":{"200":{"description":"","content":{"application/json":{"schema":{}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/tundra/rotate":{"post":{"operationId":"post_api_tundra_rotate","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/tundra/sync":{"post":{"operationId":"post_api_tundra_sync","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"501":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/update":{"post":{"operationId":"post_api_update","requestBody":{"content":{"application/json":{"schema":{}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["applied"],"properties":{"applied":{"type":"boolean"}}}}}}}}},"/download/backup":{"get":{"operationId":"get_download_backup","parameters":[{"name":"token","in":"query","description":"The JWT token to use for authentication","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"401":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"417":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/download/directory":{"get":{"operationId":"get_download_directory","parameters":[{"name":"token","in":"query","description":"The JWT token to use for authentication","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"401":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"417":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/download/file":{"get":{"operationId":"get_download_file","parameters":[{"name":"token","in":"query","description":"The JWT token to use for authentication","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"401":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"417":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/download/files":{"get":{"operationId":"get_download_files","parameters":[{"name":"token","in":"query","description":"The JWT token to use for authentication","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"401":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}},"417":{"description":"","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/upload/file":{"post":{"operationId":"post_upload_file","parameters":[{"name":"token","in":"query","description":"The JWT token to use for authentication","required":true,"schema":{"type":"string"}},{"name":"directory","in":"query","description":"The directory to upload the file to","required":true,"schema":{"type":"string"}},{"name":"total_size","in":"query","description":"total size in bytes the uploaded file will have; lets the server deny an oversized upload before the body is transferred","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"operationId":"delete_upload_file","parameters":[{"name":"token","in":"query","description":"The JWT token to use for authentication","required":true,"schema":{"type":"string"}},{"name":"directory","in":"query","description":"The directory the file lives in","required":true,"schema":{"type":"string"}},{"name":"file","in":"query","description":"The file name (may include a sub-path) within the directory","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"head":{"operationId":"route","parameters":[{"name":"token","in":"query","description":"The JWT token to use for authentication","required":true,"schema":{"type":"string"}},{"name":"directory","in":"query","description":"The directory the file lives in","required":true,"schema":{"type":"string"}},{"name":"file","in":"query","description":"The file name (may include a sub-path) within the directory","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":""},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"patch":{"operationId":"patch_upload_file","parameters":[{"name":"token","in":"query","description":"The JWT token to use for authentication","required":true,"schema":{"type":"string"}},{"name":"directory","in":"query","description":"The directory to upload the file to","required":true,"schema":{"type":"string"}},{"name":"file","in":"query","description":"The file name (may include a sub-path) within the directory","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":""},"401":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"417":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}},"components":{"schemas":{"ApiError":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}},"AppContainerType":{"type":"string","enum":["official","official_aio","official_heavy","official_heavy_aio","unknown","none"]},"ArchiveFormat":{"type":"string","enum":["tar","tar_gz","tar_xz","tar_lzip","tar_bz2","tar_lz4","tar_zstd","zip","seven_zip"]},"BackupAdapter":{"type":"string","enum":["wings","s3","ddup-bak","btrfs","zfs","restic","proxmox-backup-server","kopia"]},"BackupTestTarget":{"oneOf":[{"type":"object","required":["adapter"],"properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TupleUnit"}]},"adapter":{"type":"string","enum":["wings"]}}},{"type":"object","required":["adapter"],"properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/S3TestConfiguration"}]},"adapter":{"type":"string","enum":["s3"]}}},{"type":"object","required":["adapter"],"properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TupleUnit"}]},"adapter":{"type":"string","enum":["ddup-bak"]}}},{"type":"object","required":["adapter"],"properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TupleUnit"}]},"adapter":{"type":"string","enum":["btrfs"]}}},{"type":"object","required":["adapter"],"properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TupleUnit"}]},"adapter":{"type":"string","enum":["zfs"]}}},{"type":"object","required":["adapter"],"properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ResticBackupConfiguration"}]},"adapter":{"type":"string","enum":["restic"]}}},{"type":"object","required":["adapter"],"properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PbsRepositoryConfiguration"}]},"adapter":{"type":"string","enum":["proxmox-backup-server"]}}},{"type":"object","required":["adapter"],"properties":{"configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/KopiaBackupConfiguration"}]},"adapter":{"type":"string","enum":["kopia"]}}}]},"BandwidthBackendKind":{"type":"string","enum":["auto","local","container","disabled"]},"BandwidthLimits":{"type":"object","properties":{"upload":{"type":"integer","format":"int64","minimum":0},"download":{"type":"integer","format":"int64","minimum":0}}},"BandwidthStatus":{"type":"object","required":["enabled","ready"],"properties":{"enabled":{"type":"boolean"},"ready":{"type":"boolean"},"reason":{"type":["string","null"]}}},"CompactString":{"type":"string"},"CompressionLevel":{"type":"string","enum":["best_speed","good_speed","good_compression","best_compression"]},"CompressionType":{"type":"string","enum":["none","gz","xz","lzip","bz2","lz4","zstd"]},"ContentMatches":{"type":"object","required":["file","truncated","blocks"],"properties":{"file":{"$ref":"#/components/schemas/CompactString"},"truncated":{"type":"boolean"},"blocks":{"type":"array","items":{"$ref":"#/components/schemas/MatchBlock"}}}},"CopyFile":{"type":"object","required":["from","to"],"properties":{"from":{"$ref":"#/components/schemas/CompactString"},"to":{"$ref":"#/components/schemas/CompactString"}}},"Device":{"type":"object","required":["target","source"],"properties":{"target":{"$ref":"#/components/schemas/CompactString"},"source":{"$ref":"#/components/schemas/CompactString"},"permissions":{"$ref":"#/components/schemas/CompactString"}}},"DirectoryEntry":{"type":"object","required":["name","mode","mode_bits","size","size_physical","editable","inner_editable","directory","file","symlink","virtual","mime","created","modified"],"properties":{"name":{"$ref":"#/components/schemas/CompactString"},"mode":{"$ref":"#/components/schemas/CompactString"},"mode_bits":{"$ref":"#/components/schemas/CompactString"},"size":{"type":"integer","format":"int64","minimum":0},"size_physical":{"type":"integer","format":"int64","minimum":0},"editable":{"type":"boolean"},"inner_editable":{"type":"boolean"},"directory":{"type":"boolean"},"file":{"type":"boolean"},"symlink":{"type":"boolean"},"virtual":{"type":"boolean"},"mime":{"type":"string"},"created":{"type":"string","format":"date-time"},"modified":{"type":"string","format":"date-time"}}},"DirectorySizes":{"type":"object","required":["name","size","size_physical","files_size","inaccessible_size","other_size","other_count","truncated","children"],"properties":{"name":{"$ref":"#/components/schemas/CompactString"},"size":{"type":"integer","format":"int64","minimum":0},"size_physical":{"type":"integer","format":"int64","minimum":0},"files_size":{"type":"integer","format":"int64","minimum":0},"inaccessible_size":{"type":"integer","format":"int64","minimum":0},"other_size":{"type":"integer","format":"int64","minimum":0},"other_count":{"type":"integer","format":"int64","minimum":0},"truncated":{"type":"boolean"},"children":{"type":"array","items":{"$ref":"#/components/schemas/DirectorySizes"}}}},"DiskLimiterMode":{"type":"string","enum":["none","btrfs_subvolume","zfs_dataset","xfs_quota","fuse_quota"]},"Download":{"type":"object","required":["identifier","destination","progress","total"],"properties":{"identifier":{"type":"string","format":"uuid"},"destination":{"type":"string"},"progress":{"type":"integer","format":"int64","minimum":0},"total":{"type":"integer","format":"int64","minimum":0}}},"FilesystemOperation":{"oneOf":[{"type":"object","required":["path","files","destination_path","start_time","bytes_processed","bytes_total","files_processed","type"],"properties":{"path":{"type":"string"},"files":{"type":"array","items":{"type":"string"}},"destination_path":{"type":"string"},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"files_processed":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["compress"]}}},{"type":"object","required":["path","destination_path","start_time","bytes_processed","bytes_total","files_processed","type"],"properties":{"path":{"type":"string"},"destination_path":{"type":"string"},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"files_processed":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["decompress"]}}},{"type":"object","required":["destination_path","start_time","bytes_processed","bytes_total","type"],"properties":{"destination_path":{"type":"string"},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["pull"]}}},{"type":"object","required":["path","destination_path","start_time","bytes_processed","bytes_total","files_processed","type"],"properties":{"path":{"type":"string"},"destination_path":{"type":"string"},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"files_processed":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["copy"]}}},{"type":"object","required":["path","files","start_time","bytes_processed","bytes_total","files_processed","type"],"properties":{"path":{"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/CopyFile"}},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"files_processed":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["copy_many"]}}},{"type":"object","required":["server","path","files","destination_server","destination_path","start_time","bytes_processed","bytes_total","files_processed","type"],"properties":{"server":{"type":"string","format":"uuid"},"path":{"type":"string"},"files":{"type":"array","items":{"type":"string"}},"destination_server":{"type":"string","format":"uuid"},"destination_path":{"type":"string"},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"files_processed":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["copy_remote"]}}},{"type":"object","required":["backup","destination_path","start_time","bytes_processed","bytes_total","type"],"properties":{"backup":{"type":"string","format":"uuid"},"destination_path":{"type":"string"},"start_time":{"type":"string","format":"date-time"},"bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"type":{"type":"string","enum":["export_backup"]}}}]},"FirewallBackendKind":{"type":"string","enum":["auto","nftables","iptables","container","disabled"]},"FirewallRule":{"type":"object","required":["action"],"properties":{"action":{"$ref":"#/components/schemas/FirewallRuleAction"},"protocols":{"type":"array","items":{"$ref":"#/components/schemas/FirewallRuleProtocol"},"uniqueItems":true},"sources":{"type":"array","items":{"type":"string"}},"ports":{"type":["array","null"],"items":{"type":"integer","format":"int32","minimum":0}},"source_file":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]}}},"FirewallRuleAction":{"type":"string","enum":["allow","deny"]},"FirewallRuleProtocol":{"type":"string","enum":["tcp","udp"]},"InstallationScript":{"type":"object","required":["container_image","entrypoint","script"],"properties":{"container_image":{"$ref":"#/components/schemas/CompactString"},"entrypoint":{"$ref":"#/components/schemas/CompactString"},"script":{"type":"string"},"environment":{"type":"object","additionalProperties":{},"propertyNames":{"type":"string"}}}},"KopiaBackupConfiguration":{"type":"object","required":["url","username","password","tags"],"properties":{"url":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"fingerprint":{"type":["string","null"]},"tags":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}}}},"MatchBlock":{"type":"object","required":["start_line","end_line","content","matches"],"properties":{"start_line":{"type":"integer","format":"int64","minimum":0},"end_line":{"type":"integer","format":"int64","minimum":0},"content":{"type":"string"},"matches":{"type":"array","items":{"$ref":"#/components/schemas/MatchSpan"}}}},"MatchSpan":{"type":"object","required":["start_byte","end_byte"],"properties":{"start_byte":{"type":"integer","minimum":0},"end_byte":{"type":"integer","minimum":0}}},"MiB":{"type":"integer","format":"int64","description":"Represents a size in Mebibytes (MiB). The inner value is the number of MiB (not bytes!!).","minimum":0},"Mount":{"type":"object","required":["target","source","read_only"],"properties":{"target":{"$ref":"#/components/schemas/CompactString"},"source":{"$ref":"#/components/schemas/CompactString"},"read_only":{"type":"boolean"}}},"PbsRepositoryConfiguration":{"type":"object","required":["url","datastore","token_id","token_secret"],"properties":{"url":{"type":"string"},"datastore":{"type":"string"},"namespace":{"type":["string","null"]},"token_id":{"type":"string"},"token_secret":{"type":"string"},"fingerprint":{"type":["string","null"]}}},"QueryColumn":{"type":"object","required":["name","type_name","binary"],"properties":{"name":{"type":"string"},"type_name":{"type":"string"},"binary":{"type":"boolean"}}},"QueryResultSet":{"type":"object","required":["columns","rows","rows_affected","truncated"],"properties":{"columns":{"type":"array","items":{"$ref":"#/components/schemas/QueryColumn"}},"rows":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/QueryValue"}}},"rows_affected":{"type":"integer","format":"int64","minimum":0},"truncated":{"type":"boolean"}}},"QueryValue":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["null"]}}},{"type":"object","required":["value","truncated","type"],"properties":{"value":{"type":"string"},"truncated":{"type":"boolean"},"type":{"type":"string","enum":["text"]}}},{"type":"object","required":["value","truncated","type"],"properties":{"value":{"type":"string"},"truncated":{"type":"boolean"},"type":{"type":"string","enum":["binary"]}}}]},"ResourceUsage":{"type":"object","required":["memory_bytes","memory_limit_bytes","disk_bytes","state","network","cpu_absolute","cpu_limit_absolute","uptime"],"properties":{"memory_bytes":{"type":"integer","format":"int64","minimum":0},"memory_limit_bytes":{"type":"integer","format":"int64","minimum":0},"disk_bytes":{"type":"integer","format":"int64","minimum":0},"state":{"$ref":"#/components/schemas/ServerState"},"network":{"type":"object","required":["rx_bytes","rx_packets","tx_bytes","tx_packets"],"properties":{"rx_bytes":{"type":"integer","format":"int64","minimum":0},"rx_packets":{"type":"integer","format":"int64","minimum":0},"tx_bytes":{"type":"integer","format":"int64","minimum":0},"tx_packets":{"type":"integer","format":"int64","minimum":0}}},"cpu_absolute":{"type":"number","format":"double"},"cpu_limit_absolute":{"type":"integer","format":"int32","minimum":0},"uptime":{"type":"integer","format":"int64","minimum":0}}},"ResticBackupConfiguration":{"type":"object","required":["repository","retry_lock_seconds","environment"],"properties":{"repository":{"type":"string"},"password_file":{"type":["string","null"]},"retry_lock_seconds":{"type":"integer","format":"int64","minimum":0},"environment":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}}}},"ResticTaskResult":{"type":"object","required":["started","finished","duration_ms","successful","data","stderr"],"properties":{"started":{"type":"string","format":"date-time"},"finished":{"type":"string","format":"date-time"},"duration_ms":{"type":"integer","minimum":0},"successful":{"type":"boolean"},"data":{},"stderr":{"$ref":"#/components/schemas/CompactString"}}},"RevisionInfo":{"type":"object","required":["id","size","stored_size","is_snapshot","created"],"properties":{"id":{"type":"integer","format":"int64"},"size":{"type":"integer","format":"int64","minimum":0},"stored_size":{"type":"integer","format":"int64","minimum":0},"user":{"type":["string","null"],"format":"uuid"},"is_snapshot":{"type":"boolean"},"created":{"type":"string","format":"date-time"}}},"S3TestConfiguration":{"type":"object","required":["upload_url"],"properties":{"upload_url":{"type":"string"}}},"Schedule":{"type":"object","required":["uuid","triggers","condition","actions"],"properties":{"uuid":{"type":"string","format":"uuid"},"triggers":{},"condition":{},"actions":{"type":"array","items":{}}}},"ScheduleStatus":{"type":"object","required":["running","errors"],"properties":{"running":{"type":"boolean"},"errors":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string","format":"uuid"}},"step":{"type":["string","null"],"format":"uuid"}}},"Server":{"type":"object","required":["state","is_suspended","utilization","configuration"],"properties":{"state":{"$ref":"#/components/schemas/ServerState"},"is_suspended":{"type":"boolean"},"utilization":{"$ref":"#/components/schemas/ResourceUsage"},"configuration":{"$ref":"#/components/schemas/ServerConfiguration"}}},"ServerAutoStartBehavior":{"type":"string","enum":["always","unless_stopped","never"]},"ServerConfiguration":{"type":"object","required":["uuid","meta","suspended","invocation","skip_egg_scripts","environment","allocations","build","mounts","egg","container"],"properties":{"uuid":{"type":"string","format":"uuid"},"start_on_completion":{"type":["boolean","null"]},"meta":{"type":"object","required":["name","description"],"properties":{"name":{"$ref":"#/components/schemas/CompactString"},"description":{"$ref":"#/components/schemas/CompactString"}}},"suspended":{"type":"boolean"},"invocation":{"$ref":"#/components/schemas/CompactString"},"skip_egg_scripts":{"type":"boolean"},"entrypoint":{"type":["array","null"],"items":{"type":"string"}},"environment":{"type":"object","additionalProperties":{},"propertyNames":{"type":"string"}},"labels":{"type":"object","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},"backups":{"type":"array","items":{"type":"string","format":"uuid"}},"schedules":{"type":"array","items":{"$ref":"#/components/schemas/Schedule"}},"allocations":{"type":"object","required":["force_outgoing_ip"],"properties":{"force_outgoing_ip":{"type":"boolean"},"default":{"oneOf":[{"type":"null"},{"type":"object","required":["ip","port"],"properties":{"ip":{"$ref":"#/components/schemas/CompactString"},"port":{"type":"integer","format":"int32","minimum":0}}}]},"mappings":{"type":"object","additionalProperties":{"type":"array","items":{"type":"integer","format":"int32","minimum":0}},"propertyNames":{"type":"string"}}}},"build":{"type":"object","required":["memory_limit","swap","cpu_limit","disk_space","oom_disabled"],"properties":{"memory_limit":{"type":"integer","format":"int64"},"overhead_memory":{"type":"integer","format":"int64"},"swap":{"type":"integer","format":"int64"},"io_weight":{"type":["integer","null"],"format":"int32","minimum":0},"cpu_limit":{"type":"integer","format":"int64"},"disk_space":{"type":"integer","format":"int64","minimum":0},"threads":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"oom_disabled":{"type":"boolean"},"bandwidth":{"$ref":"#/components/schemas/BandwidthLimits"}}},"mounts":{"type":"array","items":{"$ref":"#/components/schemas/Mount"}},"devices":{"type":"array","items":{"$ref":"#/components/schemas/Device"}},"firewall":{"type":"array","items":{"$ref":"#/components/schemas/FirewallRule"}},"egg":{"type":"object","required":["id"],"properties":{"id":{"type":"string","format":"uuid"},"file_denylist":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}},"container":{"type":"object","required":["image"],"properties":{"image":{"$ref":"#/components/schemas/CompactString"},"timezone":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"hugepages_passthrough_enabled":{"type":"boolean"},"kvm_passthrough_enabled":{"type":"boolean"},"seccomp":{"type":"object","properties":{"remove_allowed":{"type":"array","items":{"$ref":"#/components/schemas/CompactString"}}}}}},"auto_kill":{"type":"object","properties":{"enabled":{"type":"boolean"},"seconds":{"type":"integer","format":"int64","minimum":0}}},"auto_start_behavior":{"$ref":"#/components/schemas/ServerAutoStartBehavior"},"features":{"type":"object","properties":{"startup_cpu_boost":{"oneOf":[{"type":"null"},{"type":"object","properties":{"enabled":{"type":"boolean","default":false},"timeout":{"type":"integer","format":"int64","default":120,"minimum":0}}}]},"runtime_cpu_boost":{"oneOf":[{"type":"null"},{"type":"object","properties":{"enabled":{"type":"boolean","default":false},"threshold":{"type":"integer","format":"int64","default":90,"minimum":0},"sustained":{"type":"integer","format":"int64","default":10,"minimum":0},"multiple":{"type":"number","format":"double","default":2.0},"duration":{"type":"integer","format":"int64","default":60,"minimum":0},"cooldown":{"type":"integer","format":"int64","default":300,"minimum":0}}}]}}},"trash":{"oneOf":[{"type":"null"},{"type":"object","required":["retention"],"properties":{"retention":{"type":"integer","format":"int64","minimum":0},"usage_threshold":{"type":["integer","null"],"format":"int64","minimum":0}}}]}}},"ServerPowerAction":{"type":"string","enum":["start","stop","restart","kill"]},"ServerSelector":{"oneOf":[{"type":"object","required":["uuids","type"],"properties":{"uuids":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"type":{"type":"string","enum":["uuids"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["all"]}}}]},"ServerState":{"type":"string","enum":["offline","starting","stopping","running"]},"StreamableArchiveFormat":{"type":"string","enum":["tar","tar_gz","tar_xz","tar_lzip","tar_bz2","tar_lz4","tar_zstd","itaf","itaf_gz","itaf_xz","itaf_lzip","itaf_bz2","itaf_lz4","itaf_zstd","zip"]},"SystemBackupsDdupBakCompressionFormat":{"type":"string","enum":["none","deflate","gzip","brotli","zstd"]},"SystemPath":{"type":"string"},"SystemStats":{"type":"object","required":["cpu","network","memory","disk"],"properties":{"cpu":{"type":"object","required":["used","threads","model"],"properties":{"used":{"type":"number","format":"float"},"threads":{"type":"integer","minimum":0},"model":{"type":"string"}}},"network":{"type":"object","required":["received","received_packets","receiving_rate","received_packets_rate","sent","sent_packets","sending_rate","sending_packets_rate"],"properties":{"received":{"type":"integer","format":"int64","minimum":0},"received_packets":{"type":"integer","format":"int64","minimum":0},"receiving_rate":{"type":"number","format":"double"},"received_packets_rate":{"type":"number","format":"double"},"sent":{"type":"integer","format":"int64","minimum":0},"sent_packets":{"type":"integer","format":"int64","minimum":0},"sending_rate":{"type":"number","format":"double"},"sending_packets_rate":{"type":"number","format":"double"}}},"memory":{"type":"object","required":["used","used_process","total"],"properties":{"used":{"type":"integer","format":"int64","minimum":0},"used_process":{"type":"integer","format":"int64","minimum":0},"total":{"type":"integer","format":"int64","minimum":0}}},"disk":{"type":"object","required":["used","total","read","reading_rate","written","writing_rate"],"properties":{"used":{"type":"integer","format":"int64","minimum":0},"total":{"type":"integer","format":"int64","minimum":0},"read":{"type":"integer","format":"int64","minimum":0},"reading_rate":{"type":"number","format":"double"},"written":{"type":"integer","format":"int64","minimum":0},"writing_rate":{"type":"number","format":"double"}}}}},"TransferArchiveFormat":{"type":"string","enum":["tar","tar_gz","tar_xz","tar_lzip","tar_bz2","tar_lz4","tar_zstd","itaf","itaf_gz","itaf_xz","itaf_lzip","itaf_bz2","itaf_lz4","itaf_zstd"]},"TransferCapabilities":{"type":"object","required":["wings_archive_format","wings_archive_compression_level","disk_limiter_mode"],"properties":{"wings_archive_format":{"$ref":"#/components/schemas/ArchiveFormat"},"wings_archive_compression_level":{"$ref":"#/components/schemas/CompressionLevel"},"disk_limiter_mode":{"$ref":"#/components/schemas/DiskLimiterMode"}}},"TransferProgress":{"type":"object","required":["archive_bytes_processed","network_bytes_processed","bytes_total","files_processed"],"properties":{"archive_bytes_processed":{"type":"integer","format":"int64","minimum":0},"network_bytes_processed":{"type":"integer","format":"int64","minimum":0},"bytes_total":{"type":"integer","format":"int64","minimum":0},"files_processed":{"type":"integer","format":"int64","minimum":0}}},"TrashEntry":{"type":"object","required":["uuid","name","path","directory","size","deleted_at"],"properties":{"uuid":{"type":"string","format":"uuid"},"name":{"$ref":"#/components/schemas/CompactString"},"path":{"$ref":"#/components/schemas/CompactString"},"directory":{"type":"boolean"},"size":{"type":"integer","format":"int64","minimum":0},"deleted_at":{"type":"string","format":"date-time"}}},"TupleUnit":{"default":null},"UploadEntry":{"type":"object","required":["name","target_name","directory","uploaded","resumable","active"],"properties":{"name":{"$ref":"#/components/schemas/CompactString"},"target_name":{"$ref":"#/components/schemas/CompactString"},"directory":{"$ref":"#/components/schemas/CompactString"},"user":{"type":["string","null"],"format":"uuid"},"user_name":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CompactString"}]},"uploaded":{"type":"integer","format":"int64","minimum":0},"total":{"type":["integer","null"],"format":"int64","minimum":0},"resumable":{"type":"boolean"},"active":{"type":"boolean"},"started":{"type":["string","null"],"format":"date-time"},"updated":{"type":["string","null"],"format":"date-time"}}},"UsedPort":{"type":"object","required":["port"],"properties":{"port":{"type":"integer","format":"int32","minimum":0},"server":{"type":["string","null"],"format":"uuid"}}},"WebsocketEvent":{"type":"string","enum":["auth success","token expiring","token expired","auth","configure socket","set state","send logs","send command","send stats","send status","daemon error","jwt error","ping","pong","stats","status","pending restart","custom event","console output","install output","image pull progress","image pull completed","install started","install progress","install completed","daemon message","backup started","backup progress","backup completed","backup deleted","backup restore started","backup restore progress","backup restore completed","database backup restore started","database backup restore progress","database backup restore completed","transfer logs","transfer status","transfer progress","schedule started","schedule step status","schedule step error","schedule completed","operation progress","operation error","operation completed","operation aborted","file uploads","file collab subscribe","file collab unsubscribe","file collab update","file collab awareness","file collab save","file collab sync","file collab participants","file collab saved","file collab reload","file collab conflict","file collab error"]},"WebsocketMessage":{"type":"object","required":["event","args"],"properties":{"event":{"$ref":"#/components/schemas/WebsocketEvent"},"args":{"type":"array","items":{"type":"string"}}}}},"securitySchemes":{"api_key":{"type":"apiKey","in":"header","name":"Authorization"}}}}