20 files changed
+1065
-8
No files matched your search
@@ -0,0 +1,43 @@
|
||||
package com.m57.hermescontrol.data.model
|
||||
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class GatewayMigrationPlan(
|
||||
@SerialName("default_home") val defaultHome: String? = null,
|
||||
val profiles: List<GatewayMigrationProfile> = emptyList(),
|
||||
@SerialName("multiplex_flag_on") val multiplexFlagOn: Boolean = false,
|
||||
@SerialName("live_served") val liveServed: List<String>? = null,
|
||||
@SerialName("already_multiplexed") val alreadyMultiplexed: Boolean = false,
|
||||
val interrupted: Boolean = false,
|
||||
val blockers: List<String> = emptyList(),
|
||||
val notices: List<String> = emptyList(),
|
||||
val eligible: Boolean = false,
|
||||
val command: String? = null,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class GatewayMigrationProfile(
|
||||
val profile: String? = null,
|
||||
val home: String? = null,
|
||||
val pid: Int? = null,
|
||||
val service: GatewayMigrationService? = null,
|
||||
val services: List<GatewayMigrationService> = emptyList(),
|
||||
@SerialName("run_as_user") val runAsUser: String? = null,
|
||||
val uid: Int? = null,
|
||||
@SerialName("runtime_home") val runtimeHome: String? = null,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class GatewayMigrationService(
|
||||
val kind: String? = null,
|
||||
val system: Boolean? = null,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class GatewayMigrationStartResponse(
|
||||
val ok: Boolean = false,
|
||||
val pid: Int? = null,
|
||||
val name: String? = null,
|
||||
)
|
||||
@@ -17,6 +17,7 @@ data class MessagingPlatform(
|
||||
@SerialName("env_vars") val envVars: List<EnvVarField>? = null,
|
||||
@SerialName("updated_at") val updatedAt: String? = null,
|
||||
@SerialName("home_channel") val homeChannel: HomeChannelInfo? = null,
|
||||
@SerialName("ingress_url") val ingressUrl: String? = null,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
@@ -64,6 +65,13 @@ data class MessagingPlatformTestResult(
|
||||
val message: String,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class MessagingPlatformUpdateResponse(
|
||||
val ok: Boolean = false,
|
||||
val platform: String? = null,
|
||||
@SerialName("hot_served") val hotServed: Boolean = false,
|
||||
)
|
||||
|
||||
// ── Telegram onboarding ─────────────────────────────────────────────────
|
||||
|
||||
@Serializable
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
package com.m57.hermescontrol.data.model
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
@@ -8,6 +9,8 @@ data class StatusResponse(
|
||||
val active_sessions: Int? = null,
|
||||
val auth_required: Boolean? = null,
|
||||
val gateway_platforms: Map<String, PlatformStatus?>? = null,
|
||||
@SerialName("gateway_shared_with")
|
||||
val gatewaySharedWith: List<String>? = null,
|
||||
val memory: MemoryPressureStatus? = null,
|
||||
val disk: DiskPressureStatus? = null,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user