2022-07-12 12:54:16 +00:00
|
|
|
type Alert {
|
2022-08-24 05:35:49 +00:00
|
|
|
severity: Severity!
|
|
|
|
title: String!
|
2023-06-16 01:30:46 +00:00
|
|
|
message: String!
|
|
|
|
timestamp: DateTime
|
2022-07-31 23:10:37 +00:00
|
|
|
}
|
|
|
|
|
2022-07-12 12:54:16 +00:00
|
|
|
type Api {
|
2022-08-24 05:35:49 +00:00
|
|
|
version: String!
|
2023-06-16 01:30:46 +00:00
|
|
|
recoveryKey: ApiRecoveryKeyStatus!
|
|
|
|
devices: [ApiDevice!]!
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ApiDevice {
|
2023-06-16 01:30:46 +00:00
|
|
|
name: String!
|
2022-07-12 12:54:16 +00:00
|
|
|
creationDate: DateTime!
|
|
|
|
isCaller: Boolean!
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ApiJob {
|
2023-06-16 01:30:46 +00:00
|
|
|
uid: String!
|
2023-06-29 09:52:09 +00:00
|
|
|
typeId: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
name: String!
|
2023-06-16 01:30:46 +00:00
|
|
|
description: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
status: String!
|
|
|
|
statusText: String
|
2023-06-16 01:30:46 +00:00
|
|
|
progress: Int
|
|
|
|
createdAt: DateTime!
|
2022-08-24 05:35:49 +00:00
|
|
|
updatedAt: DateTime!
|
2023-06-16 01:30:46 +00:00
|
|
|
finishedAt: DateTime
|
|
|
|
error: String
|
|
|
|
result: String
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ApiKeyMutationReturn implements MutationReturnInterface {
|
2023-06-16 01:30:46 +00:00
|
|
|
success: Boolean!
|
|
|
|
message: String!
|
2022-07-12 12:54:16 +00:00
|
|
|
code: Int!
|
|
|
|
key: String
|
|
|
|
}
|
|
|
|
|
2023-06-23 02:22:48 +00:00
|
|
|
type ApiMutations {
|
|
|
|
getNewRecoveryApiKey(limits: RecoveryKeyLimitsInput = null): ApiKeyMutationReturn!
|
|
|
|
useRecoveryApiKey(input: UseRecoveryKeyInput!): DeviceApiTokenMutationReturn!
|
|
|
|
refreshDeviceApiToken: DeviceApiTokenMutationReturn!
|
|
|
|
deleteDeviceApiToken(device: String!): GenericMutationReturn!
|
|
|
|
getNewDeviceApiKey: ApiKeyMutationReturn!
|
|
|
|
invalidateNewDeviceApiKey: GenericMutationReturn!
|
|
|
|
authorizeWithNewDeviceApiKey(input: UseNewDeviceKeyInput!): DeviceApiTokenMutationReturn!
|
|
|
|
}
|
|
|
|
|
2022-07-12 12:54:16 +00:00
|
|
|
type ApiRecoveryKeyStatus {
|
2022-08-24 05:35:49 +00:00
|
|
|
exists: Boolean!
|
2023-06-16 01:30:46 +00:00
|
|
|
valid: Boolean!
|
|
|
|
creationDate: DateTime
|
2022-07-12 12:54:16 +00:00
|
|
|
expirationDate: DateTime
|
|
|
|
usesLeft: Int
|
|
|
|
}
|
|
|
|
|
|
|
|
type AutoUpgradeOptions {
|
|
|
|
enable: Boolean!
|
2023-06-16 01:30:46 +00:00
|
|
|
allowReboot: Boolean!
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input AutoUpgradeSettingsInput {
|
|
|
|
enableAutoUpgrade: Boolean = null
|
|
|
|
allowReboot: Boolean = null
|
|
|
|
}
|
|
|
|
|
|
|
|
type AutoUpgradeSettingsMutationReturn implements MutationReturnInterface {
|
2023-06-16 01:30:46 +00:00
|
|
|
success: Boolean!
|
|
|
|
message: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
code: Int!
|
|
|
|
enableAutoUpgrade: Boolean!
|
2023-06-16 01:30:46 +00:00
|
|
|
allowReboot: Boolean!
|
|
|
|
}
|
|
|
|
|
2023-09-09 07:22:43 +00:00
|
|
|
type AutobackupQuotas {
|
|
|
|
last: Int!
|
|
|
|
daily: Int!
|
|
|
|
weekly: Int!
|
|
|
|
monthly: Int!
|
|
|
|
yearly: Int!
|
|
|
|
}
|
|
|
|
|
|
|
|
input AutobackupQuotasInput {
|
|
|
|
last: Int!
|
|
|
|
daily: Int!
|
|
|
|
weekly: Int!
|
|
|
|
monthly: Int!
|
|
|
|
yearly: Int!
|
|
|
|
}
|
|
|
|
|
2023-06-16 01:30:46 +00:00
|
|
|
type Backup {
|
|
|
|
configuration: BackupConfiguration!
|
|
|
|
allSnapshots: [SnapshotInfo!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
type BackupConfiguration {
|
|
|
|
provider: BackupProvider!
|
|
|
|
encryptionKey: String!
|
|
|
|
isInitialized: Boolean!
|
|
|
|
autobackupPeriod: Int
|
2023-09-09 07:22:43 +00:00
|
|
|
autobackupQuotas: AutobackupQuotas!
|
2023-06-16 01:30:46 +00:00
|
|
|
locationName: String
|
|
|
|
locationId: String
|
|
|
|
}
|
|
|
|
|
2023-06-23 02:22:48 +00:00
|
|
|
type BackupMutations {
|
|
|
|
initializeRepository(repository: InitializeRepositoryInput!): GenericBackupConfigReturn!
|
|
|
|
removeRepository: GenericBackupConfigReturn!
|
|
|
|
setAutobackupPeriod(period: Int = null): GenericBackupConfigReturn!
|
2023-09-09 07:22:43 +00:00
|
|
|
setAutobackupQuotas(quotas: AutobackupQuotasInput!): GenericBackupConfigReturn!
|
2023-06-23 02:22:48 +00:00
|
|
|
startBackup(serviceId: String!): GenericJobMutationReturn!
|
2023-08-07 12:23:48 +00:00
|
|
|
restoreBackup(snapshotId: String!, strategy: RestoreStrategy! = DOWNLOAD_VERIFY_OVERWRITE): GenericJobMutationReturn!
|
|
|
|
forgetSnapshot(snapshotId: String!): GenericMutationReturn!
|
2023-06-23 02:22:48 +00:00
|
|
|
forceSnapshotsReload: GenericMutationReturn!
|
|
|
|
}
|
|
|
|
|
2023-06-16 01:30:46 +00:00
|
|
|
enum BackupProvider {
|
|
|
|
BACKBLAZE
|
|
|
|
NONE
|
|
|
|
MEMORY
|
|
|
|
FILE
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
2023-09-09 07:22:43 +00:00
|
|
|
enum BackupReason {
|
|
|
|
EXPLICIT
|
|
|
|
AUTO
|
|
|
|
PRE_RESTORE
|
|
|
|
}
|
|
|
|
|
2022-08-24 05:35:49 +00:00
|
|
|
"""Date with time (isoformat)"""
|
|
|
|
scalar DateTime
|
|
|
|
|
2022-07-12 12:54:16 +00:00
|
|
|
type DeviceApiTokenMutationReturn implements MutationReturnInterface {
|
2022-08-24 05:35:49 +00:00
|
|
|
success: Boolean!
|
2023-06-16 01:30:46 +00:00
|
|
|
message: String!
|
|
|
|
code: Int!
|
2022-07-12 12:54:16 +00:00
|
|
|
token: String
|
|
|
|
}
|
|
|
|
|
|
|
|
enum DnsProvider {
|
2023-06-23 02:22:48 +00:00
|
|
|
CLOUDFLARE
|
2023-06-16 01:30:46 +00:00
|
|
|
DIGITALOCEAN
|
2023-06-23 02:22:48 +00:00
|
|
|
DESEC
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type DnsRecord {
|
2022-08-24 05:35:49 +00:00
|
|
|
recordType: String!
|
2023-06-16 01:30:46 +00:00
|
|
|
name: String!
|
|
|
|
content: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
ttl: Int!
|
2023-06-16 01:30:46 +00:00
|
|
|
priority: Int
|
2024-02-12 17:20:30 +00:00
|
|
|
displayName: String!
|
2023-06-16 01:30:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type GenericBackupConfigReturn implements MutationReturnInterface {
|
|
|
|
success: Boolean!
|
|
|
|
message: String!
|
|
|
|
code: Int!
|
|
|
|
configuration: BackupConfiguration
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
2023-06-19 21:05:57 +00:00
|
|
|
type GenericJobMutationReturn implements MutationReturnInterface {
|
2023-06-16 01:30:46 +00:00
|
|
|
success: Boolean!
|
|
|
|
message: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
code: Int!
|
|
|
|
job: ApiJob
|
|
|
|
}
|
|
|
|
|
|
|
|
type GenericMutationReturn implements MutationReturnInterface {
|
|
|
|
success: Boolean!
|
2023-06-16 01:30:46 +00:00
|
|
|
message: String!
|
|
|
|
code: Int!
|
|
|
|
}
|
|
|
|
|
|
|
|
input InitializeRepositoryInput {
|
|
|
|
provider: BackupProvider!
|
|
|
|
locationId: String!
|
|
|
|
locationName: String!
|
|
|
|
login: String!
|
|
|
|
password: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Job {
|
|
|
|
getJobs: [ApiJob!]!
|
2023-06-16 01:30:46 +00:00
|
|
|
getJob(jobId: String!): ApiJob
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
2023-06-23 02:22:48 +00:00
|
|
|
type JobMutations {
|
|
|
|
removeJob(jobId: String!): GenericMutationReturn!
|
|
|
|
}
|
|
|
|
|
2022-08-24 05:35:49 +00:00
|
|
|
input MigrateToBindsInput {
|
|
|
|
emailBlockDevice: String!
|
|
|
|
bitwardenBlockDevice: String!
|
|
|
|
giteaBlockDevice: String!
|
|
|
|
nextcloudBlockDevice: String!
|
|
|
|
pleromaBlockDevice: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
input MoveServiceInput {
|
|
|
|
serviceId: String!
|
|
|
|
location: String!
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Mutation {
|
2023-06-23 02:22:48 +00:00
|
|
|
getNewRecoveryApiKey(limits: RecoveryKeyLimitsInput = null): ApiKeyMutationReturn! @deprecated(reason: "Use `api.get_new_recovery_api_key` instead")
|
|
|
|
useRecoveryApiKey(input: UseRecoveryKeyInput!): DeviceApiTokenMutationReturn! @deprecated(reason: "Use `api.use_recovery_api_key` instead")
|
|
|
|
refreshDeviceApiToken: DeviceApiTokenMutationReturn! @deprecated(reason: "Use `api.refresh_device_api_token` instead")
|
|
|
|
deleteDeviceApiToken(device: String!): GenericMutationReturn! @deprecated(reason: "Use `api.delete_device_api_token` instead")
|
|
|
|
getNewDeviceApiKey: ApiKeyMutationReturn! @deprecated(reason: "Use `api.get_new_device_api_key` instead")
|
|
|
|
invalidateNewDeviceApiKey: GenericMutationReturn! @deprecated(reason: "Use `api.invalidate_new_device_api_key` instead")
|
|
|
|
authorizeWithNewDeviceApiKey(input: UseNewDeviceKeyInput!): DeviceApiTokenMutationReturn! @deprecated(reason: "Use `api.authorize_with_new_device_api_key` instead")
|
|
|
|
changeTimezone(timezone: String!): TimezoneMutationReturn! @deprecated(reason: "Use `system.change_timezone` instead")
|
|
|
|
changeAutoUpgradeSettings(settings: AutoUpgradeSettingsInput!): AutoUpgradeSettingsMutationReturn! @deprecated(reason: "Use `system.change_auto_upgrade_settings` instead")
|
|
|
|
runSystemRebuild: GenericMutationReturn! @deprecated(reason: "Use `system.run_system_rebuild` instead")
|
|
|
|
runSystemRollback: GenericMutationReturn! @deprecated(reason: "Use `system.run_system_rollback` instead")
|
|
|
|
runSystemUpgrade: GenericMutationReturn! @deprecated(reason: "Use `system.run_system_upgrade` instead")
|
|
|
|
rebootSystem: GenericMutationReturn! @deprecated(reason: "Use `system.reboot_system` instead")
|
|
|
|
pullRepositoryChanges: GenericMutationReturn! @deprecated(reason: "Use `system.pull_repository_changes` instead")
|
|
|
|
createUser(user: UserMutationInput!): UserMutationReturn! @deprecated(reason: "Use `users.create_user` instead")
|
|
|
|
deleteUser(username: String!): GenericMutationReturn! @deprecated(reason: "Use `users.delete_user` instead")
|
|
|
|
updateUser(user: UserMutationInput!): UserMutationReturn! @deprecated(reason: "Use `users.update_user` instead")
|
|
|
|
addSshKey(sshInput: SshMutationInput!): UserMutationReturn! @deprecated(reason: "Use `users.add_ssh_key` instead")
|
|
|
|
removeSshKey(sshInput: SshMutationInput!): UserMutationReturn! @deprecated(reason: "Use `users.remove_ssh_key` instead")
|
|
|
|
resizeVolume(name: String!): GenericMutationReturn! @deprecated(reason: "Use `storage.resize_volume` instead")
|
|
|
|
mountVolume(name: String!): GenericMutationReturn! @deprecated(reason: "Use `storage.mount_volume` instead")
|
|
|
|
unmountVolume(name: String!): GenericMutationReturn! @deprecated(reason: "Use `storage.unmount_volume` instead")
|
|
|
|
migrateToBinds(input: MigrateToBindsInput!): GenericJobMutationReturn! @deprecated(reason: "Use `storage.migrate_to_binds` instead")
|
|
|
|
enableService(serviceId: String!): ServiceMutationReturn! @deprecated(reason: "Use `services.enable_service` instead")
|
|
|
|
disableService(serviceId: String!): ServiceMutationReturn! @deprecated(reason: "Use `services.disable_service` instead")
|
|
|
|
stopService(serviceId: String!): ServiceMutationReturn! @deprecated(reason: "Use `services.stop_service` instead")
|
|
|
|
startService(serviceId: String!): ServiceMutationReturn! @deprecated(reason: "Use `services.start_service` instead")
|
|
|
|
restartService(serviceId: String!): ServiceMutationReturn! @deprecated(reason: "Use `services.restart_service` instead")
|
|
|
|
moveService(input: MoveServiceInput!): ServiceJobMutationReturn! @deprecated(reason: "Use `services.move_service` instead")
|
|
|
|
removeJob(jobId: String!): GenericMutationReturn! @deprecated(reason: "Use `jobs.remove_job` instead")
|
|
|
|
api: ApiMutations!
|
|
|
|
system: SystemMutations!
|
|
|
|
users: UsersMutations!
|
|
|
|
storage: StorageMutations!
|
|
|
|
services: ServicesMutations!
|
|
|
|
jobs: JobMutations!
|
|
|
|
backup: BackupMutations!
|
2022-08-24 05:35:49 +00:00
|
|
|
testMutation: GenericMutationReturn!
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
interface MutationReturnInterface {
|
2022-08-24 05:35:49 +00:00
|
|
|
success: Boolean!
|
2023-06-16 01:30:46 +00:00
|
|
|
message: String!
|
|
|
|
code: Int!
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Query {
|
|
|
|
api: Api!
|
2023-06-23 02:22:48 +00:00
|
|
|
system: System!
|
2023-06-16 01:30:46 +00:00
|
|
|
users: Users!
|
|
|
|
storage: Storage!
|
2022-08-24 05:35:49 +00:00
|
|
|
jobs: Job!
|
|
|
|
services: Services!
|
2023-06-16 01:30:46 +00:00
|
|
|
backup: Backup!
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input RecoveryKeyLimitsInput {
|
2022-08-24 05:35:49 +00:00
|
|
|
expirationDate: DateTime = null
|
|
|
|
uses: Int = null
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
2023-08-07 12:23:48 +00:00
|
|
|
enum RestoreStrategy {
|
|
|
|
INPLACE
|
|
|
|
DOWNLOAD_VERIFY_OVERWRITE
|
|
|
|
}
|
|
|
|
|
2024-02-12 17:20:30 +00:00
|
|
|
input SSHSettingsInput {
|
|
|
|
enable: Boolean!
|
|
|
|
passwordAuthentication: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
type SSHSettingsMutationReturn implements MutationReturnInterface {
|
|
|
|
success: Boolean!
|
|
|
|
message: String!
|
|
|
|
code: Int!
|
|
|
|
enable: Boolean!
|
|
|
|
passwordAuthentication: Boolean!
|
|
|
|
}
|
|
|
|
|
2022-07-12 12:54:16 +00:00
|
|
|
enum ServerProvider {
|
|
|
|
HETZNER
|
2022-11-17 07:14:34 +00:00
|
|
|
DIGITALOCEAN
|
2024-07-04 17:11:35 +00:00
|
|
|
OTHER
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
2022-08-24 05:35:49 +00:00
|
|
|
type Service {
|
|
|
|
id: String!
|
2023-06-16 01:30:46 +00:00
|
|
|
displayName: String!
|
|
|
|
description: String!
|
|
|
|
svgIcon: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
isMovable: Boolean!
|
|
|
|
isRequired: Boolean!
|
2023-06-16 01:30:46 +00:00
|
|
|
isEnabled: Boolean!
|
2023-06-29 10:51:38 +00:00
|
|
|
canBeBackedUp: Boolean!
|
2023-07-02 11:41:31 +00:00
|
|
|
backupDescription: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
status: ServiceStatusEnum!
|
|
|
|
url: String
|
2023-06-16 01:30:46 +00:00
|
|
|
dnsRecords: [DnsRecord!]
|
|
|
|
storageUsage: ServiceStorageUsage!
|
|
|
|
backupSnapshots: [SnapshotInfo!]
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ServiceJobMutationReturn implements MutationReturnInterface {
|
2023-06-16 01:30:46 +00:00
|
|
|
success: Boolean!
|
|
|
|
message: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
code: Int!
|
|
|
|
job: ApiJob
|
|
|
|
service: Service
|
|
|
|
}
|
|
|
|
|
|
|
|
type ServiceMutationReturn implements MutationReturnInterface {
|
2023-06-16 01:30:46 +00:00
|
|
|
success: Boolean!
|
2022-08-24 05:35:49 +00:00
|
|
|
message: String!
|
2023-06-16 01:30:46 +00:00
|
|
|
code: Int!
|
2022-08-24 05:35:49 +00:00
|
|
|
service: Service
|
|
|
|
}
|
|
|
|
|
|
|
|
enum ServiceStatusEnum {
|
|
|
|
ACTIVE
|
2023-06-16 01:30:46 +00:00
|
|
|
RELOADING
|
2022-08-24 05:35:49 +00:00
|
|
|
INACTIVE
|
2023-06-16 01:30:46 +00:00
|
|
|
FAILED
|
|
|
|
ACTIVATING
|
|
|
|
DEACTIVATING
|
2022-08-24 05:35:49 +00:00
|
|
|
OFF
|
|
|
|
}
|
|
|
|
|
|
|
|
type ServiceStorageUsage implements StorageUsageInterface {
|
|
|
|
usedSpace: String!
|
|
|
|
volume: StorageVolume
|
2023-06-16 01:30:46 +00:00
|
|
|
title: String!
|
|
|
|
service: Service
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Services {
|
|
|
|
allServices: [Service!]!
|
|
|
|
}
|
|
|
|
|
2023-06-23 02:22:48 +00:00
|
|
|
type ServicesMutations {
|
|
|
|
enableService(serviceId: String!): ServiceMutationReturn!
|
|
|
|
disableService(serviceId: String!): ServiceMutationReturn!
|
|
|
|
stopService(serviceId: String!): ServiceMutationReturn!
|
|
|
|
startService(serviceId: String!): ServiceMutationReturn!
|
|
|
|
restartService(serviceId: String!): ServiceMutationReturn!
|
|
|
|
moveService(input: MoveServiceInput!): ServiceJobMutationReturn!
|
|
|
|
}
|
|
|
|
|
2022-07-12 12:54:16 +00:00
|
|
|
enum Severity {
|
2022-08-24 05:35:49 +00:00
|
|
|
INFO
|
|
|
|
WARNING
|
2023-06-16 01:30:46 +00:00
|
|
|
ERROR
|
|
|
|
CRITICAL
|
|
|
|
SUCCESS
|
|
|
|
}
|
|
|
|
|
|
|
|
type SnapshotInfo {
|
|
|
|
id: String!
|
|
|
|
service: Service!
|
|
|
|
createdAt: DateTime!
|
2023-09-09 07:22:43 +00:00
|
|
|
reason: BackupReason!
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input SshMutationInput {
|
|
|
|
username: String!
|
|
|
|
sshKey: String!
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SshSettings {
|
|
|
|
enable: Boolean!
|
|
|
|
passwordAuthentication: Boolean!
|
|
|
|
rootSshKeys: [String!]!
|
|
|
|
}
|
|
|
|
|
2022-08-24 05:35:49 +00:00
|
|
|
type Storage {
|
|
|
|
volumes: [StorageVolume!]!
|
|
|
|
}
|
|
|
|
|
2023-06-23 02:22:48 +00:00
|
|
|
type StorageMutations {
|
|
|
|
resizeVolume(name: String!): GenericMutationReturn!
|
|
|
|
mountVolume(name: String!): GenericMutationReturn!
|
|
|
|
unmountVolume(name: String!): GenericMutationReturn!
|
|
|
|
migrateToBinds(input: MigrateToBindsInput!): GenericJobMutationReturn!
|
|
|
|
}
|
|
|
|
|
2022-08-24 05:35:49 +00:00
|
|
|
interface StorageUsageInterface {
|
|
|
|
usedSpace: String!
|
|
|
|
volume: StorageVolume
|
2023-06-16 01:30:46 +00:00
|
|
|
title: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type StorageVolume {
|
2023-06-16 01:30:46 +00:00
|
|
|
totalSpace: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
freeSpace: String!
|
2023-06-16 01:30:46 +00:00
|
|
|
usedSpace: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
root: Boolean!
|
2023-06-16 01:30:46 +00:00
|
|
|
name: String!
|
|
|
|
model: String
|
2022-08-24 05:35:49 +00:00
|
|
|
serial: String
|
|
|
|
type: String!
|
|
|
|
usages: [StorageUsageInterface!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Subscription {
|
2024-07-04 17:11:35 +00:00
|
|
|
jobUpdates: [ApiJob!]!
|
|
|
|
count: Int!
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
2022-07-12 12:54:16 +00:00
|
|
|
type System {
|
2023-06-16 01:30:46 +00:00
|
|
|
status: Alert!
|
2022-08-24 05:35:49 +00:00
|
|
|
domainInfo: SystemDomainInfo!
|
2023-06-16 01:30:46 +00:00
|
|
|
settings: SystemSettings!
|
2022-07-12 12:54:16 +00:00
|
|
|
info: SystemInfo!
|
|
|
|
provider: SystemProviderInfo!
|
2023-06-16 01:30:46 +00:00
|
|
|
busy: Boolean!
|
2022-08-24 05:35:49 +00:00
|
|
|
workingDirectory: String!
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SystemDomainInfo {
|
|
|
|
domain: String!
|
|
|
|
hostname: String!
|
|
|
|
provider: DnsProvider!
|
|
|
|
requiredDnsRecords: [DnsRecord!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
type SystemInfo {
|
2022-08-24 05:35:49 +00:00
|
|
|
systemVersion: String!
|
2023-06-16 01:30:46 +00:00
|
|
|
pythonVersion: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
usingBinds: Boolean!
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
2023-06-23 02:22:48 +00:00
|
|
|
type SystemMutations {
|
|
|
|
changeTimezone(timezone: String!): TimezoneMutationReturn!
|
|
|
|
changeAutoUpgradeSettings(settings: AutoUpgradeSettingsInput!): AutoUpgradeSettingsMutationReturn!
|
2024-02-12 17:20:30 +00:00
|
|
|
changeSshSettings(settings: SSHSettingsInput!): SSHSettingsMutationReturn!
|
|
|
|
runSystemRebuild: GenericJobMutationReturn!
|
2023-06-23 02:22:48 +00:00
|
|
|
runSystemRollback: GenericMutationReturn!
|
2024-02-12 17:20:30 +00:00
|
|
|
runSystemUpgrade: GenericJobMutationReturn!
|
2023-06-23 02:22:48 +00:00
|
|
|
rebootSystem: GenericMutationReturn!
|
|
|
|
pullRepositoryChanges: GenericMutationReturn!
|
2024-05-25 09:32:21 +00:00
|
|
|
nixCollectGarbage: GenericJobMutationReturn!
|
2023-06-23 02:22:48 +00:00
|
|
|
}
|
|
|
|
|
2022-07-12 12:54:16 +00:00
|
|
|
type SystemProviderInfo {
|
2022-08-24 05:35:49 +00:00
|
|
|
provider: ServerProvider!
|
2023-06-16 01:30:46 +00:00
|
|
|
id: String!
|
2022-07-12 12:54:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SystemSettings {
|
|
|
|
autoUpgrade: AutoUpgradeOptions!
|
|
|
|
ssh: SshSettings!
|
|
|
|
timezone: String!
|
|
|
|
}
|
|
|
|
|
2022-08-24 05:35:49 +00:00
|
|
|
type TimezoneMutationReturn implements MutationReturnInterface {
|
|
|
|
success: Boolean!
|
2023-06-16 01:30:46 +00:00
|
|
|
message: String!
|
|
|
|
code: Int!
|
2022-08-24 05:35:49 +00:00
|
|
|
timezone: String
|
|
|
|
}
|
|
|
|
|
2022-07-12 12:54:16 +00:00
|
|
|
input UseNewDeviceKeyInput {
|
|
|
|
key: String!
|
|
|
|
deviceName: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
input UseRecoveryKeyInput {
|
|
|
|
key: String!
|
|
|
|
deviceName: String!
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type User {
|
|
|
|
userType: UserType!
|
|
|
|
username: String!
|
2023-06-16 01:30:46 +00:00
|
|
|
sshKeys: [String!]!
|
2022-08-24 05:35:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input UserMutationInput {
|
|
|
|
username: String!
|
|
|
|
password: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type UserMutationReturn implements MutationReturnInterface {
|
|
|
|
success: Boolean!
|
2023-06-16 01:30:46 +00:00
|
|
|
message: String!
|
|
|
|
code: Int!
|
2022-08-24 05:35:49 +00:00
|
|
|
user: User
|
|
|
|
}
|
|
|
|
|
|
|
|
enum UserType {
|
|
|
|
NORMAL
|
|
|
|
PRIMARY
|
|
|
|
ROOT
|
|
|
|
}
|
|
|
|
|
|
|
|
type Users {
|
|
|
|
allUsers: [User!]!
|
|
|
|
getUser(username: String!): User
|
2022-10-30 14:21:38 +00:00
|
|
|
}
|
|
|
|
|
2023-06-23 02:22:48 +00:00
|
|
|
type UsersMutations {
|
|
|
|
createUser(user: UserMutationInput!): UserMutationReturn!
|
|
|
|
deleteUser(username: String!): GenericMutationReturn!
|
|
|
|
updateUser(user: UserMutationInput!): UserMutationReturn!
|
|
|
|
addSshKey(sshInput: SshMutationInput!): UserMutationReturn!
|
|
|
|
removeSshKey(sshInput: SshMutationInput!): UserMutationReturn!
|
2023-06-16 01:30:46 +00:00
|
|
|
}
|