{
  "openapi": "3.0.4",
  "info": {
    "title": "TCAdmin v3 API",
    "description": "API documentation for TCAdmin v3 Game Server Management Panel",
    "version": "v1"
  },
  "paths": {
    "/api/System/ActivityLogs": {
      "get": {
        "tags": [
          "ActivityLog"
        ],
        "summary": "List activity logs",
        "description": "Returns a paginated, filtered, sorted page of activity log entries. Results respect the caller's\npermissions: admins see all entries, sub-admins see their managed users' entries, and ordinary\nusers see only their own. Full `Details` are only included for admins and sub-admins.",
        "parameters": [
          {
            "name": "UserId",
            "in": "query",
            "description": "Filter by user ID who performed the action.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Category",
            "in": "query",
            "description": "Filter by category (e.g., Auth, FileManager, Service).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Action",
            "in": "query",
            "description": "Filter by action (e.g., Login, Logout, Create, Update).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EntityType",
            "in": "query",
            "description": "Filter by entity type (e.g., GameService, User, Server).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EntityId",
            "in": "query",
            "description": "Filter by entity ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IpAddress",
            "in": "query",
            "description": "Filter by IP address (partial match supported).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "StartDate",
            "in": "query",
            "description": "Start date for the time range filter (inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "EndDate",
            "in": "query",
            "description": "End date for the time range filter (inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "description": "Free text search across description, username, and entity type.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "description": "Page number (1-based).",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Number of items per page.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Sort by field (default: Timestamp).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDescending",
            "in": "query",
            "description": "Sort in descending order (default: true for most recent first).",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityLogPagedResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/ActivityLogs/ByService/{id}": {
      "get": {
        "tags": [
          "ActivityLog"
        ],
        "summary": "List a service's activity logs",
        "description": "Returns a paginated page of the activity belonging to a single service. Gated by that service's\n`BpFeature.ServiceActivity` blueprint feature (or the per-service\n`Service[#].ServiceActivity` grant) rather than the global `ActivityLog.View`\npermission, so a customer can read their own server's activity without being able to open\nSystem > Activity Logs. The entity scope is forced server-side — a client-supplied\n`EntityType`/`EntityId` is discarded and can never widen the result past the service\nthe feature was checked against. Row visibility still follows the caller's role, so a customer\nsees only their own and their sub-users' entries, never staff actions on the service.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The service ID whose activity to list.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "UserId",
            "in": "query",
            "description": "Filter by user ID who performed the action.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Category",
            "in": "query",
            "description": "Filter by category (e.g., Auth, FileManager, Service).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Action",
            "in": "query",
            "description": "Filter by action (e.g., Login, Logout, Create, Update).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EntityType",
            "in": "query",
            "description": "Filter by entity type (e.g., GameService, User, Server).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EntityId",
            "in": "query",
            "description": "Filter by entity ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IpAddress",
            "in": "query",
            "description": "Filter by IP address (partial match supported).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "StartDate",
            "in": "query",
            "description": "Start date for the time range filter (inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "EndDate",
            "in": "query",
            "description": "End date for the time range filter (inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "description": "Free text search across description, username, and entity type.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "description": "Page number (1-based).",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Number of items per page.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Sort by field (default: Timestamp).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDescending",
            "in": "query",
            "description": "Sort in descending order (default: true for most recent first).",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityLogPagedResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/ActivityLogs/{id}": {
      "get": {
        "tags": [
          "ActivityLog"
        ],
        "summary": "Get activity log entry",
        "description": "Returns a single activity log entry by ID, subject to the caller's visibility scope. Full\n`Details` are only included when the current user is an admin or sub-admin.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The activity log entry ID to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityLogDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/ActivityLogs/ByService/{id}/{activityLogId}": {
      "get": {
        "tags": [
          "ActivityLog"
        ],
        "summary": "Get a service's activity log entry",
        "description": "Returns a single entry that belongs to the given service, gated by that service's\n`BpFeature.ServiceActivity` blueprint feature (or the per-service\n`Service[#].ServiceActivity` grant) rather than the global `ActivityLog.View`\npermission. An entry that exists but is not on this service — or is outside the caller's role\nvisibility — returns `404 Not Found` rather than leaking its existence. Full\n`Details` are still only included for admins and sub-admins.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The service ID that must own the entry.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "activityLogId",
            "in": "path",
            "description": "The activity log entry ID to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityLogDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/ActivityLogs/Settings": {
      "get": {
        "tags": [
          "ActivityLog"
        ],
        "summary": "Get activity log settings",
        "description": "Returns the current activity log settings, creating a default record if none exists yet.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityLogSettingsDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ActivityLog"
        ],
        "summary": "Save activity log settings",
        "description": "Validates and persists the activity log settings. `DatabaseRetentionDays` and\n`FileRetentionDays` must be between 1 and 3650, `CompressAfterDays` between 1 and 365,\nand `MaxFileSizeMB` between 1 and 1024; out-of-range values return `400 Bad Request`.",
        "requestBody": {
          "description": "The activity log settings to persist.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivityLogSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivityLogSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ActivityLogSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityLogSettingsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/ActivityLogs/Cleanup": {
      "post": {
        "tags": [
          "ActivityLog"
        ],
        "summary": "Clean up old activity logs",
        "description": "Triggers a manual cleanup that permanently deletes activity log entries older than the configured\ndatabase retention period. The cutoff is computed as now minus `DatabaseRetentionDays`.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/System/ActivityLogs/DeleteMatching": {
      "post": {
        "tags": [
          "ActivityLog"
        ],
        "summary": "Delete matching activity logs",
        "description": "Permanently deletes every entry the caller can see that matches the filter (the same filter the list\nendpoint takes; paging and sorting are ignored). An empty filter is refused with `400` so a stray\ncall cannot wipe the table. Deletes run in batches; the purge itself is recorded as one activity row.",
        "requestBody": {
          "description": "The filter selecting the entries to delete.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivityLogFilterDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivityLogFilterDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ActivityLogFilterDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityLogDeleteResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/ActivityLogs/Categories": {
      "get": {
        "tags": [
          "ActivityLog"
        ],
        "summary": "List activity log categories",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/System/ActivityLogs/Actions": {
      "get": {
        "tags": [
          "ActivityLog"
        ],
        "summary": "List activity log actions",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/System/ActivityLogs/Export/Csv": {
      "get": {
        "tags": [
          "ActivityLog"
        ],
        "summary": "Export activity logs to CSV",
        "description": "Returns the filtered activity log entries (most recent first) as a downloadable CSV file. The\ncaller's visibility scope is applied and the export is capped at 10,000 entries.",
        "parameters": [
          {
            "name": "UserId",
            "in": "query",
            "description": "Filter by user ID who performed the action.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Category",
            "in": "query",
            "description": "Filter by category (e.g., Auth, FileManager, Service).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Action",
            "in": "query",
            "description": "Filter by action (e.g., Login, Logout, Create, Update).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EntityType",
            "in": "query",
            "description": "Filter by entity type (e.g., GameService, User, Server).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EntityId",
            "in": "query",
            "description": "Filter by entity ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IpAddress",
            "in": "query",
            "description": "Filter by IP address (partial match supported).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "StartDate",
            "in": "query",
            "description": "Start date for the time range filter (inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "EndDate",
            "in": "query",
            "description": "End date for the time range filter (inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "description": "Free text search across description, username, and entity type.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "description": "Page number (1-based).",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Number of items per page.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Sort by field (default: Timestamp).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDescending",
            "in": "query",
            "description": "Sort in descending order (default: true for most recent first).",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/System/ActivityLogs/Export/Json": {
      "get": {
        "tags": [
          "ActivityLog"
        ],
        "summary": "Export activity logs to JSON",
        "description": "Returns the filtered activity log entries (most recent first) as a downloadable JSON file. The\ncaller's visibility scope is applied, full `Details` are only included for admins and\nsub-admins, and the export is capped at 10,000 entries.",
        "parameters": [
          {
            "name": "UserId",
            "in": "query",
            "description": "Filter by user ID who performed the action.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Category",
            "in": "query",
            "description": "Filter by category (e.g., Auth, FileManager, Service).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Action",
            "in": "query",
            "description": "Filter by action (e.g., Login, Logout, Create, Update).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EntityType",
            "in": "query",
            "description": "Filter by entity type (e.g., GameService, User, Server).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EntityId",
            "in": "query",
            "description": "Filter by entity ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IpAddress",
            "in": "query",
            "description": "Filter by IP address (partial match supported).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "StartDate",
            "in": "query",
            "description": "Start date for the time range filter (inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "EndDate",
            "in": "query",
            "description": "End date for the time range filter (inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "description": "Free text search across description, username, and entity type.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "description": "Page number (1-based).",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Number of items per page.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "description": "Sort by field (default: Timestamp).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDescending",
            "in": "query",
            "description": "Sort in descending order (default: true for most recent first).",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/System/AiAssistantSettings/Status": {
      "get": {
        "tags": [
          "AiAssistantSettings"
        ],
        "summary": "Get AI Assistant status",
        "description": "The lightweight feature status (enabled + display name) that decides whether the app-bar entry point\nis shown and how it is labelled. Gated on `AiAssistant.Use`, NOT `AiAssistant.Configure` —\nit answers \"may I open a chat, and what is it called\", the same question the hub's session gate asks,\nso a user without the permission gets a 403 and the toggle stays hidden. Its\nTCAdmin.Web.Attributes.DisplayRolePermissionAttribute is the reason `AiAssistant.Use` appears in the role\neditor for EVERY role type (the catalog enumerates controller endpoints — see the class remarks).\nReads the same DB-backed settings the chat hub reads, so a runtime enable/disable hides/shows the\nentry point on the next panel load. The display name is returned only when enabled (matching the\nhub's `GetAssistantName`).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAssistantStatusDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/AiAssistantSettings/Settings": {
      "get": {
        "tags": [
          "AiAssistantSettings"
        ],
        "summary": "Get AI Assistant settings",
        "description": "Gets the system-wide AI Assistant settings, creating the row (seeded from the\n`TCAdmin:AiAssistant` configuration) on first use.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAssistantSettingsDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "AiAssistantSettings"
        ],
        "summary": "Save AI Assistant settings",
        "requestBody": {
          "description": "The AI Assistant settings to persist.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiAssistantSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AiAssistantSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AiAssistantSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiAssistantSettingsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/AiAssistantSettings/Balance": {
      "get": {
        "tags": [
          "AiAssistantSettings"
        ],
        "summary": "Get the AI credit balance",
        "description": "Relays the install's prepaid-credit balance from the AI Server through the master monitor. Cached\nbriefly and process-wide (the balance is per-install). Returns 200 with a null body when the gateway\nis unreachable so the settings page degrades gracefully rather than erroring.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiBalance"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/AiAssistantSettings/Usage": {
      "get": {
        "tags": [
          "AiAssistantSettings"
        ],
        "summary": "Get the AI usage summary",
        "description": "Relays the install's per-day usage summary (accepted requests grouped by UTC date) from the AI Server\nthrough the master monitor, then resolves the per-day drill-down's user ids to account names locally —\nthe gateway aggregates by id and holds no user table. The window is clamped to 1..90 days. Cached\nprocess-wide for 5 minutes. Returns 200 with a null body when the gateway is unreachable.",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "description": "The number of trailing UTC days to summarize (default 30, clamped to 1..90).",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiUsageSummary"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/AiAssistant/Sessions": {
      "get": {
        "tags": [
          "AiSessionLog"
        ],
        "summary": "List AI chat sessions",
        "description": "Returns a paginated, filtered page of AI chat sessions, newest first by default. Filters\n(user, service, and the local↔UTC date range) are applied server-side; the per-session message\ncount comes from a single grouped query (no N+1) and usernames from one batched lookup.",
        "parameters": [
          {
            "name": "UserId",
            "in": "query",
            "description": "Filter to sessions owned by this user id.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "ServiceId",
            "in": "query",
            "description": "Filter to sessions opened in scope of this service id.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "From",
            "in": "query",
            "description": "Inclusive lower bound on `StartedAt` (UTC).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "To",
            "in": "query",
            "description": "Exclusive upper bound on `StartedAt` (UTC) — already one day past the selected local end date.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "description": "Page number (1-based).",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Number of items per page.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SortDescending",
            "in": "query",
            "description": "Sort by `StartedAt` descending (default: newest first).",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiSessionLogPagedResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/AiAssistant/Sessions/{sessionId}": {
      "get": {
        "tags": [
          "AiSessionLog"
        ],
        "summary": "Get a session transcript",
        "description": "Returns one session's header plus its full, ordered transcript (messages by id ascending —\nchronological append order). User/assistant text, assistant tool-calls, and tool results are all\nincluded so the viewer can render the conversation read-only.",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "description": "The session id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiSessionTranscriptDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "AiSessionLog"
        ],
        "summary": "Erase one session's transcript",
        "description": "Destroys both copies of one conversation: the transcript in this panel's database, and the stored\ncontent the TCAdmin gateway holds for it. The gateway leg clears message content only — request rows,\ntoken counts and credits survive, so <b>an erasure never changes what the install was billed</b> or how\nmuch of today's per-user credit cap has been spent.",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "description": "The session id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiTranscriptErasureDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/api/System/AiAssistant/Sessions/{sessionId}/Actions": {
      "get": {
        "tags": [
          "AiSessionLog"
        ],
        "summary": "Get the actions a session caused",
        "description": "Returns the activity-log rows attributed to a session, newest first, over two legs:\n<list type=\"bullet\"><item>session lifecycle rows — `EntityType == \"AiSession\"` and `EntityId == sessionId`\n(SessionStarted / SessionEnded / SessionExpired);</item><item>tool approve/deny rows — matched by the session id inside `Description`\n(\"… in session {id}\"). Those rows deliberately keep `EntityType == \"Service\"` so they also sit\non the service's own activity timeline. The session id is ALSO inside the `Details` JSON, but\n`Details` maps to a MySQL `json` column and Pomelo refuses a plain `Contains` over it\n(it JSON-parses the argument and a bare session id is not a JSON document) — so the text\n`Description` is the queryable join. Do not \"simplify\" this back to Details.</item></list>\nRows carry summary fields only; the details dialog re-fetches the full entry through\n`IActivityLogApi.GetActivityLog`, exactly as the main activity-log page does.",
        "parameters": [
          {
            "name": "sessionId",
            "in": "path",
            "description": "The session id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ActivityLogDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/System/AiAssistant/Sessions/User/{userId}": {
      "delete": {
        "tags": [
          "AiSessionLog"
        ],
        "summary": "Erase every transcript belonging to a user",
        "description": "The bulk form for a data-subject erasure request: every session this user ever had, in both copies.\nSame billing guarantee as the single-session form — gateway content is cleared, billing rows are not.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The user whose transcripts are erased.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiTranscriptErasureDto"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/api/Announcement/{id}": {
      "get": {
        "tags": [
          "Announcement"
        ],
        "summary": "Get announcement by id",
        "description": "Gets a single announcement by its ID, including its scopes, acknowledgments, and total targeted user count.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The announcement ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Announcement"
        ],
        "summary": "Update announcement",
        "description": "Updates an existing announcement and replaces its targeting scopes with those supplied on the request.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the announcement to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated announcement values, including its scopes.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnnouncementDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AnnouncementDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AnnouncementDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Announcement"
        ],
        "summary": "Delete announcement",
        "description": "Deletes an announcement and its associated scopes and acknowledgments.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the announcement to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Announcement/Search": {
      "get": {
        "tags": [
          "Announcement"
        ],
        "summary": "Search announcements",
        "description": "Searches announcements using server-side filtering, sorting, and paging. When no sort is supplied, results\ndefault to ordering by `Priority` descending, then `CreatedDate` descending.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Announcement": {
      "post": {
        "tags": [
          "Announcement"
        ],
        "summary": "Create announcement",
        "description": "Creates a new announcement along with its targeting scopes.",
        "requestBody": {
          "description": "The announcement to create, including its scopes.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnnouncementDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AnnouncementDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AnnouncementDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Announcement/Active": {
      "get": {
        "tags": [
          "Announcement"
        ],
        "summary": "Get active announcements",
        "description": "Gets the announcements currently active for the calling user, based on their targeting scopes.\nEach announcement's content is overlaid with the translation matching the viewer's resolved\nlanguage (wholesale subject + body) when one exists.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ActiveAnnouncementDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Announcement/History": {
      "get": {
        "tags": [
          "Announcement"
        ],
        "summary": "Get announcement history",
        "description": "Gets every announcement targeted at the calling user, acknowledged or not and expired included,\nwith the user's acknowledgment time. Deactivated and login-page announcements are excluded.\nContent is overlaid with the viewer-language translation like the Active endpoint.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnouncementHistoryDtoPaging"
                }
              }
            }
          }
        }
      }
    },
    "/api/Announcement/LoginPage": {
      "get": {
        "tags": [
          "Announcement"
        ],
        "summary": "Get login-page announcements",
        "description": "Gets the announcements configured to be displayed on the login page. This endpoint is accessible\nanonymously. Each announcement's content is overlaid with the translation matching the viewer's\nresolved language (the client stamps its UI language as Accept-Language even pre-auth).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ActiveAnnouncementDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Announcement/{announcementId}/Acknowledge": {
      "post": {
        "tags": [
          "Announcement"
        ],
        "summary": "Acknowledge announcement",
        "description": "Records the current user's acknowledgment of an announcement.",
        "parameters": [
          {
            "name": "announcementId",
            "in": "path",
            "description": "The ID of the announcement to acknowledge.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/ApiKey/User/{userId}": {
      "post": {
        "tags": [
          "ApiKey"
        ],
        "summary": "Creates a new API key for a user.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The user ID to create the API key for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The create request containing name, permissions, and optional expiration.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiKeyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiKeyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateApiKeyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyCreatedDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "ApiKey"
        ],
        "summary": "Gets all API keys for a user.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The user ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiKeyDto"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/ApiKey/{apiKeyId}": {
      "get": {
        "tags": [
          "ApiKey"
        ],
        "summary": "Gets a specific API key by ID.",
        "parameters": [
          {
            "name": "apiKeyId",
            "in": "path",
            "description": "The API key ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "ApiKey"
        ],
        "summary": "Permanently deletes a revoked API key.",
        "parameters": [
          {
            "name": "apiKeyId",
            "in": "path",
            "description": "The API key ID to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ApiKey"
        ],
        "summary": "Updates an API key's name, expiration, and permissions.",
        "parameters": [
          {
            "name": "apiKeyId",
            "in": "path",
            "description": "The API key ID to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The update request containing new name, permissions, and expiration.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateApiKeyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateApiKeyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateApiKeyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/ApiKey/{apiKeyId}/Revoke": {
      "post": {
        "tags": [
          "ApiKey"
        ],
        "summary": "Revokes an API key.",
        "parameters": [
          {
            "name": "apiKeyId",
            "in": "path",
            "description": "The API key ID to revoke.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "204": {
            "description": "No Content"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/ApiKey/{apiKeyId}/Rotate": {
      "post": {
        "tags": [
          "ApiKey"
        ],
        "summary": "Rotates an API key, generating new key material while preserving name, expiration, and permissions.\nThe old key is immediately invalidated.",
        "parameters": [
          {
            "name": "apiKeyId",
            "in": "path",
            "description": "The API key ID to rotate.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyCreatedDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/ApiKey/{apiKeyId}/Permissions": {
      "get": {
        "tags": [
          "ApiKey"
        ],
        "summary": "Gets the permissions granted to a specific API key.",
        "parameters": [
          {
            "name": "apiKeyId",
            "in": "path",
            "description": "The API key ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiKeyPermissionDto"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/ApiKey/User/{userId}/AvailablePermissions": {
      "get": {
        "tags": [
          "ApiKey"
        ],
        "summary": "Gets the available permissions that a user can grant to their API keys.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The user ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvailablePermissionsResponseDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/ApiSettings/Settings": {
      "get": {
        "tags": [
          "ApiSettings"
        ],
        "summary": "Get API settings",
        "description": "Gets the current global API settings, creating default settings if none exist yet.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiSettingsDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ApiSettings"
        ],
        "summary": "Save API settings",
        "description": "Saves the global API settings, updating billing behavior, termination actions, and the\ngame/Docker server selections used for automated provisioning.",
        "requestBody": {
          "description": "The API settings values to persist.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApiSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiSettingsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/ApiSettings/Servers": {
      "get": {
        "tags": [
          "ApiSettings"
        ],
        "summary": "List available servers",
        "description": "Gets the enabled physical and virtual servers available for selection in the API settings\nserver pools. Returns a combined list with only servers where `Enabled` is true.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServerSelectionItemDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Billing/Suspend": {
      "post": {
        "tags": [
          "Billing"
        ],
        "summary": "Suspend billing resources",
        "description": "Suspends servers, virtual servers, and services with the specified `billingId`. Services\nare stopped and their current status remembered so it can be restored on unsuspend. Runs as a\ntask; when `waitUntilComplete` is set the request blocks until the task finishes or\n`waitSeconds` elapses.",
        "parameters": [
          {
            "name": "billingId",
            "in": "query",
            "description": "The billing id whose matching servers, virtual servers, and services should be suspended.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "waitUntilComplete",
            "in": "query",
            "description": "When true, the request waits for the suspend task to finish (or time out) before returning.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "description": "Maximum number of seconds to wait for the task to complete when waitUntilComplete is true.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 180
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Billing/Unsuspend": {
      "post": {
        "tags": [
          "Billing"
        ],
        "summary": "Unsuspend billing resources",
        "description": "Unsuspends servers, virtual servers, and services with the specified `billingId`. Services\nthat were running before suspension are started again. Runs as a task; when\n`waitUntilComplete` is set the request blocks until the task finishes or `waitSeconds`\nelapses.",
        "parameters": [
          {
            "name": "billingId",
            "in": "query",
            "description": "The billing id whose matching servers, virtual servers, and services should be unsuspended.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "waitUntilComplete",
            "in": "query",
            "description": "When true, the request waits for the unsuspend task to finish (or time out) before returning.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "description": "Maximum number of seconds to wait for the task to complete when waitUntilComplete is true.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 180
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Billing/Terminate": {
      "post": {
        "tags": [
          "Billing"
        ],
        "summary": "Terminate billing resources",
        "description": "Terminates (deletes) servers, virtual servers, and services with the specified `billingId`.\nServices are deleted via their proper delete automation steps. The action taken for servers and\nvirtual servers is determined by API settings (clear owner or delete); when the configured\naction is `ManualTermination` the resource's services are only stopped, not deleted. Runs\nas a task; when `waitUntilComplete` is set the request blocks until the task finishes or\n`waitSeconds` elapses.",
        "parameters": [
          {
            "name": "billingId",
            "in": "query",
            "description": "The billing id whose matching servers, virtual servers, and services should be terminated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "waitUntilComplete",
            "in": "query",
            "description": "When true, the request waits for the terminate task to finish (or time out) before returning.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "waitSeconds",
            "in": "query",
            "description": "Maximum number of seconds to wait for the task to complete when waitUntilComplete is true.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 180
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Billing/Status": {
      "get": {
        "tags": [
          "Billing"
        ],
        "summary": "Get billing status",
        "description": "Returns the billing status of every server, virtual server, and service matching the specified\n`billingId`, one entry per matching resource.",
        "parameters": [
          {
            "name": "billingId",
            "in": "query",
            "description": "The billing id whose matching servers, virtual servers, and services should be reported.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BillingStatusDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Blueprint/{blueprintId}/ConfigFiles": {
      "get": {
        "tags": [
          "Blueprint"
        ],
        "summary": "List blueprint config files",
        "description": "Returns a paged, filterable list of config files for a blueprint. When\n`excludeModConfigFiles` is `true`, files owned by blueprint mods are filtered out;\neither way each returned row is flagged with `IsModConfigFile` indicating whether a mod\nowns it.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "excludeModConfigFiles",
            "in": "query",
            "description": "When true, config files owned by blueprint mods are excluded from the results.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConfigFileInfoDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Create blueprint config file",
        "description": "Creates a new config file on a blueprint. Any `Id` supplied on the body is ignored — the\nnew file is always assigned a fresh ID.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID to add the config file to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The config file to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigFileDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigFileDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigFileDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigFileDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Blueprint/{blueprintId}/ConfigFiles/{configFileId}": {
      "get": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Get blueprint config file",
        "description": "Returns the config file's stored editor layout as saved. Pass `refreshEditor=true` to get\nit merged against the blueprint's current variable definitions instead — see\nTCAdmin.SDK.DynamicInput.VariableEditorMerge. Callers that render the layout for a user to fill in\n(the create-service wizard) want the merge; the blueprint config-file designer must not use\nit, because it saves what it loads and the merge drops controls.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "configFileId",
            "in": "path",
            "description": "The config file ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "refreshEditor",
            "in": "query",
            "description": "When true, refresh each control from its variable's current editor definition (label,\ndescription, options, validation), drop controls whose variable no longer exists, and remove\ncontrols the caller has no role for.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigFileDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Update blueprint config file",
        "description": "Updates an existing config file on a blueprint. The body's `Id` must match the route\n`configFileId`, otherwise the request is rejected with 400.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID the config file belongs to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "configFileId",
            "in": "path",
            "description": "The config file ID to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated config file values. Its Id must match the route configFileId.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigFileDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigFileDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigFileDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Delete blueprint config file",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID the config file belongs to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "configFileId",
            "in": "path",
            "description": "The config file ID to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Blueprint/{blueprintId}/Variables": {
      "get": {
        "tags": [
          "Blueprint"
        ],
        "summary": "List blueprint variables",
        "description": "Returns a paged, filterable list of variables defined on a blueprint. Role information is\nstripped from the results when the current user lacks permission to view roles.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QueryableVariableDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Blueprint/{blueprintId}/FileSystemPermissions": {
      "get": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Get blueprint file-system permissions",
        "description": "Returns the per-role file-system permissions configured on a blueprint.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FileSystemPermissionDto"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Update blueprint file-system permissions",
        "description": "Updates the per-role file-system permissions on a blueprint. For each supplied role an existing\npermission is updated in place, or a new one is created if none yet exists for that role.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The collection of file-system permissions to create or update.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FileSystemPermissionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FileSystemPermissionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FileSystemPermissionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Blueprint/{blueprintId}/FileSystemOptions": {
      "get": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Get blueprint file-system options",
        "description": "Returns the blueprint-wide file-system switches, which apply to every role, together with whether\nthe Linux-executable switch is meaningful for this blueprint.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlueprintFileSystemOptionsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Update blueprint file-system options",
        "description": "Applies to every role and to every existing service of the blueprint.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The file-system options to apply. `RestrictLinuxExeApplies` is read-only.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintFileSystemOptionsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintFileSystemOptionsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintFileSystemOptionsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Blueprint/{blueprintId}/Mods": {
      "get": {
        "tags": [
          "Blueprint"
        ],
        "summary": "List blueprint mods",
        "description": "Returns a paged, filterable list of mods configured for a blueprint. Results default to ordering\nby group name, view order, then name.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BlueprintModInfoDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Create blueprint mod",
        "description": "Creates a new mod on a blueprint. Any `ModId` on the body is ignored, the mod is bound to\nthe route `blueprintId`, and an `Identifier` GUID is generated if one is not supplied.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID to add the mod to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The mod to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintModDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintModDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintModDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlueprintModDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Blueprint/{blueprintId}/Mods/{modId}": {
      "get": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Get blueprint mod",
        "description": "Returns a single mod including its roles and scripts. The mod must belong to the specified\nblueprint, otherwise the request is rejected with 400.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID the mod must belong to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "modId",
            "in": "path",
            "description": "The mod ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlueprintModDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Update blueprint mod",
        "description": "Updates an existing mod on a blueprint and reconciles its roles and scripts to match the\nrequest. The body's `ModId` must match the route `modId` and the mod must belong to\nthe specified blueprint, otherwise the request is rejected with 400.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID the mod must belong to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "modId",
            "in": "path",
            "description": "The mod ID to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated mod values. Its ModId must match the route modId.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintModDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintModDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintModDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Delete blueprint mod",
        "description": "Deletes a mod from a blueprint. The mod must belong to the specified blueprint, and the deletion\nis rejected with 400 if the mod is currently installed on any service.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID the mod must belong to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "modId",
            "in": "path",
            "description": "The mod ID to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Blueprint/{blueprintId}/Mods/Permissions": {
      "put": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Batch-update mod permissions",
        "description": "Batch-updates the role permissions for multiple mods on a blueprint. Roles belonging to the\ncurrent user's own role type are preserved while other roles are reconciled to match the\nrequest. Mods named in the request that don't belong to the blueprint are skipped.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID the mods must belong to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The per-mod role permission assignments to apply.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/BlueprintModPermissionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/BlueprintModPermissionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/BlueprintModPermissionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Blueprint/{blueprintId}/BackupConfig": {
      "get": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Get blueprint backup config",
        "description": "Returns the backup configuration for a blueprint, falling back to defaults if none has been set.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlueprintBackupConfigDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Update blueprint backup config",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The backup configuration values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintBackupConfigDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintBackupConfigDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintBackupConfigDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Blueprint/{blueprintId}/FastDLConfig": {
      "get": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Get blueprint FastDL config",
        "description": "Returns the FastDL configuration for a blueprint, falling back to defaults if none has been set.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlueprintFastDLConfigDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Update blueprint FastDL config",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The FastDL configuration values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintFastDLConfigDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintFastDLConfigDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintFastDLConfigDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Blueprint/Search": {
      "get": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Search entities",
        "description": "Searches the entities, applying the supplied filtering, sorting,\nand paging criteria and returning the matching results as DTOs. The query runs against a\nsecurity-filtered set, so only entities the current user may access are returned.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Blueprint/{id}": {
      "get": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Update entity",
        "description": "Updates an existing entity, applying only the properties the\ncurrent user is permitted to modify and preserving primary keys. The primary key in both the URL and the\nDTO must match the existing entity; mismatches return `400 Bad Request`, and a missing entity\nreturns `404 Not Found`. Properties denied by the security filter retain their existing values, and\nthe update is written to the activity log.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The DTO containing the new values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Delete entity",
        "description": "Deletes the entity with the specified primary key. A snapshot of\nthe entity is captured and written to the activity log before deletion; if the delete affects no rows the\nendpoint returns `500`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Blueprint": {
      "post": {
        "tags": [
          "Blueprint"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/System/CompanyInfo/Settings": {
      "get": {
        "tags": [
          "CompanyInfo"
        ],
        "summary": "Get company information",
        "description": "Gets the main company information, creating the default row if none exists yet.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyInfoDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "CompanyInfo"
        ],
        "summary": "Save company information",
        "requestBody": {
          "description": "The company information to persist.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyInfoDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyInfoDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyInfoDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyInfoDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/CustomLink/Search": {
      "get": {
        "tags": [
          "CustomLink"
        ],
        "summary": "Search custom links",
        "description": "Searches global custom links with server-side filtering, sorting, and paging. Results default to\nordering by `Order` when no sort is supplied, and expose the synthetic `IsGameCustomLink` /\n`IsDockerCustomLink` filter fields. Role assignments are stripped from each result when the\ncurrent user lacks permission to view roles.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/CustomLink/{customLinkId}": {
      "get": {
        "tags": [
          "CustomLink"
        ],
        "summary": "Get custom link by id",
        "description": "Gets a single custom link by its identifier, including its assigned roles. Game or Docker blueprint\nassociations are eagerly loaded depending on the link's concrete type, and the result is mapped to\nthat type's DTO.",
        "parameters": [
          {
            "name": "customLinkId",
            "in": "path",
            "description": "The identifier of the custom link to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "CustomLink"
        ],
        "summary": "Update custom link",
        "description": "Updates an existing custom link, applying the changes appropriate to its concrete type (game or\nDocker blueprint custom link). The route `customLinkId` must match `customLinkDto.CustomLinkId`,\notherwise a 400 is returned.",
        "parameters": [
          {
            "name": "customLinkId",
            "in": "path",
            "description": "The identifier of the custom link to update (must match the DTO).",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated custom link data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomLinkDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomLinkDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomLinkDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "CustomLink"
        ],
        "summary": "Delete custom link",
        "parameters": [
          {
            "name": "customLinkId",
            "in": "path",
            "description": "The identifier of the custom link to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/CustomLink": {
      "post": {
        "tags": [
          "CustomLink"
        ],
        "summary": "Create custom link",
        "requestBody": {
          "description": "The custom link data to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomLinkDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomLinkDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomLinkDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/CustomLink/Permissions": {
      "put": {
        "tags": [
          "CustomLink"
        ],
        "summary": "Batch update link permissions",
        "description": "Applies role assignments to multiple custom links in a single batch. For each link, newly granted\nroles are added and roles no longer present in the request are removed — except roles matching the\ncurrent user's own role type, which are preserved. All changes are saved in a single transaction.",
        "requestBody": {
          "description": "The collection of custom links and their desired role assignments.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CustomLinkPermissionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CustomLinkPermissionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CustomLinkPermissionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Datacenter/{id}": {
      "get": {
        "tags": [
          "Datacenter"
        ],
        "summary": "Get datacenter by id",
        "description": "Returns a single datacenter by its ID, including its associated regions. Responds with\n`404` when no matching datacenter exists.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the datacenter to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Datacenter"
        ],
        "summary": "Update datacenter",
        "description": "Updates an existing datacenter and replaces its associated regions with those referenced by\n`dto.RegionIds`. Responds with `404` when no matching datacenter exists.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the datacenter to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The datacenter DTO containing the new values, including the IDs of the regions to associate.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DatacenterDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DatacenterDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DatacenterDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Datacenter"
        ],
        "summary": "Delete entity",
        "description": "Deletes the entity with the specified primary key. A snapshot of\nthe entity is captured and written to the activity log before deletion; if the delete affects no rows the\nendpoint returns `500`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Datacenter/Search": {
      "get": {
        "tags": [
          "Datacenter"
        ],
        "summary": "Search datacenters",
        "description": "Applies the supplied filtering, sorting, and paging criteria from `gridifyQuery` and returns\nthe matching datacenters, including their regions, as a paged result.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Datacenter": {
      "post": {
        "tags": [
          "Datacenter"
        ],
        "summary": "Create datacenter",
        "description": "Creates a new datacenter and attaches the regions referenced by `dto.RegionIds`.",
        "requestBody": {
          "description": "The datacenter DTO describing the datacenter to create, including the IDs of the regions to associate.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DatacenterDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DatacenterDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DatacenterDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/DockerBlueprint/Search": {
      "get": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Search Docker blueprints",
        "description": "Searches Docker blueprints using the supplied filtering, sorting, and paging criteria,\ndefaulting the sort order to the blueprint name. Sub-admins only receive blueprints they have permission to view.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/DockerBlueprint/SearchForCreate": {
      "get": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Search creatable Docker blueprints for the service-create picker",
        "description": "Behaves like M:TCAdmin.Web.Controllers.Managers.DockerBlueprintController.Search(Gridify.GridifyQuery,System.Threading.CancellationToken) but additionally restricts the result set to blueprints the current\nuser is permitted to <b>create</b> (global or per-blueprint `BpFeature.Create`), so the\n\"Create New Service\" blueprint picker can page server-side. Category and name filtering is supplied by\nthe caller through the Gridify query; the create permission and the target server's allowed-blueprints\nlist (resolved from serverId) are enforced here.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "serverId",
            "in": "query",
            "description": "Optional target physical server; when set and it isn't \"allow all blueprints\", results are limited to its allowed Docker blueprints.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerBlueprintDtoPaging"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerBlueprint/{id}": {
      "get": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Get Docker blueprint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The blueprint ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Update Docker blueprint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The blueprint ID to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The Docker blueprint data to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Delete Docker blueprint",
        "description": "Deletes a Docker blueprint along with its related variables, config files, scripts,\nenvironment variables, volume binds, custom links, and feature permissions. The blueprint\ncannot be deleted while it is in use by any services; orphaned non-global scripts are removed.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The blueprint ID to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/DockerBlueprint/{blueprintId}/Variables": {
      "get": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Search blueprint variables",
        "description": "Searches the variables belonging to a Docker blueprint using the supplied\nfiltering, sorting, and paging criteria, defaulting the sort order to the variable name.\nVariable roles are omitted when the caller lacks permission to view roles.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID whose variables are searched.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VariableInfoDtoPaging"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Create blueprint variable",
        "description": "Creates a new variable on a Docker blueprint, defaulting the template and wiring up\nthe input control, then converting the default value to the control's expected type.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID to add the variable to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The variable definition to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintVariableDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintVariableDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintVariableDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerBlueprintVariableDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerBlueprint/{blueprintId}/Variables/{variableId}": {
      "get": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Get blueprint variable",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID that owns the variable.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "variableId",
            "in": "path",
            "description": "The variable ID to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerBlueprintVariableDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Update blueprint variable",
        "description": "Updates an existing variable on a Docker blueprint, defaulting the template and wiring up\nthe input control, then converting the default value to the control's expected type.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID that owns the variable.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "variableId",
            "in": "path",
            "description": "The variable ID to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated variable definition.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintVariableDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintVariableDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintVariableDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Delete blueprint variable",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID that owns the variable.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "variableId",
            "in": "path",
            "description": "The variable ID to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerBlueprint/{blueprintId}/Variables/Permissions": {
      "put": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Update variable permissions",
        "description": "Applies a batch of role-permission changes to the variables of a Docker blueprint,\nadding newly granted roles and removing roles no longer present (other than roles of the current user's type).",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID whose variable permissions are updated.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The per-variable role assignments to apply.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VariablePermissionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VariablePermissionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VariablePermissionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/DockerBlueprint/{blueprintId}/Scripts": {
      "get": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Search blueprint scripts",
        "description": "Searches the scripts associated with a Docker blueprint using the supplied\nfiltering, sorting, and paging criteria, defaulting the sort order to the script order.\nScript roles are omitted when the caller lacks permission to view roles.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID whose scripts are searched.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerBlueprintScriptInfoDtoPaging"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Create blueprint script",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID to add the script to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The script definition to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintScriptDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintScriptDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintScriptDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerBlueprintScriptDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerBlueprint/{blueprintId}/Scripts/{scriptId}": {
      "get": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Get blueprint script",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID that the script belongs to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scriptId",
            "in": "path",
            "description": "The script ID to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerBlueprintScriptDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Update blueprint script",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID that the script belongs to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scriptId",
            "in": "path",
            "description": "The script ID to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated script definition.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintScriptDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintScriptDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintScriptDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Remove blueprint script",
        "description": "Removes a script association from a Docker blueprint, also deleting the script itself\nwhen it is non-global and only used by this blueprint.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID that the script belongs to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scriptId",
            "in": "path",
            "description": "The script ID to remove.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerBlueprint/{blueprintId}/CustomLinks": {
      "get": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Search blueprint custom links",
        "description": "Searches the custom links associated with a Docker blueprint using the supplied\nfiltering, sorting, and paging criteria, defaulting the sort order to the custom-link order.\nCustom-link roles are omitted when the caller lacks permission to view roles.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID whose custom links are searched.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerBlueprintCustomLinkInfoDtoPaging"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Create blueprint custom link",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID to add the custom link to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The custom link definition to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintCustomLinkDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintCustomLinkDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintCustomLinkDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerBlueprintCustomLinkDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerBlueprint/{blueprintId}/CustomLinks/{customLinkId}": {
      "get": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Get blueprint custom link",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID that the custom link belongs to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "customLinkId",
            "in": "path",
            "description": "The custom link ID to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerBlueprintCustomLinkDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Update blueprint custom link",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID that the custom link belongs to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "customLinkId",
            "in": "path",
            "description": "The custom link ID to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated custom link definition.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintCustomLinkDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintCustomLinkDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintCustomLinkDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Remove blueprint custom link",
        "description": "Removes a custom link association from a Docker blueprint, also deleting the custom link itself\nwhen it is non-global and only used by this blueprint.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID that the custom link belongs to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "customLinkId",
            "in": "path",
            "description": "The custom link ID to remove.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerBlueprint/{blueprintId}/CustomLinks/Permissions": {
      "put": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Update custom link permissions",
        "description": "Applies a batch of role-permission changes to the custom links of a Docker blueprint,\nadding newly granted roles and removing roles no longer present (other than roles of the current user's type).",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID whose custom-link permissions are updated.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The per-custom-link role assignments to apply.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CustomLinkPermissionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CustomLinkPermissionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CustomLinkPermissionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/DockerBlueprint/{blueprintId}/FeaturePermissions": {
      "get": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Get feature permissions",
        "description": "Gets the feature role-permissions for a Docker blueprint. Sub-admins only receive\nthe user-role blueprint-feature permissions.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID whose feature permissions are retrieved.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RolePermissionDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerBlueprint/{blueprintId}/SaveFeaturePermissions": {
      "post": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Save feature permissions",
        "description": "Saves the feature role-permissions for a Docker blueprint, enforcing sub-admin restrictions,\nand automatically grants or revokes the blueprint's `Get`/`Update` permissions for each role based\non whether the role holds any granted blueprint-edit feature.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID whose feature permissions are saved.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The role-permissions to persist for the blueprint's features.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RolePermissionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RolePermissionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RolePermissionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RolePermissionDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerBlueprint/{blueprintId}/AllowedServers": {
      "get": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Get allowed servers",
        "description": "Gets the servers that can be individually allowed for a Docker blueprint, indicating\nwhether each server currently permits the blueprint. Servers that allow all Docker blueprints are excluded.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID to evaluate server allowances for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AllowedServerItemDto"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Save allowed servers",
        "description": "Saves which servers are allowed for a Docker blueprint, adding or removing the blueprint\nfrom each server's allowed list. Servers that allow all Docker blueprints are skipped.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID whose server allowances are saved.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The per-server allowance selections to apply.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AllowedServerItemDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AllowedServerItemDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AllowedServerItemDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/DockerBlueprint/{blueprintId}/Export": {
      "get": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Export Docker blueprint",
        "description": "Exports a Docker blueprint as JSON, either as a downloadable file or as an inline payload.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "description": "The blueprint ID to export.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "downloadAsFile",
            "in": "query",
            "description": "When true, returns the export as a downloadable JSON file; otherwise returns the export inline.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerBlueprint/ExportAll": {
      "get": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Export all Docker blueprints",
        "description": "Exports every Docker blueprint the caller can access, packaging each as a JSON file\ninside a single downloadable ZIP archive.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerBlueprint/Import": {
      "post": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Import Docker blueprint",
        "description": "Imports a Docker blueprint from an uploaded JSON export file, creating a new blueprint\nor updating an existing one when a `blueprintId` is supplied.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "query",
            "description": "The optional existing blueprint ID to import into; when omitted, a new blueprint is created.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "blueprintConfigFile": {
                    "type": "string",
                    "description": "The uploaded JSON blueprint export file.",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "blueprintConfigFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerBlueprint/{blueprintId}/Copy": {
      "post": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Copy Docker blueprint",
        "description": "Creates a new Docker blueprint from this one, with its own scripts, variables, config files, ports and\npermissions. A blank `name` becomes \"Copy of {original name}\".",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CopiedEntityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerBlueprint": {
      "post": {
        "tags": [
          "DockerBlueprint"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DockerBlueprintDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/DockerRegistry": {
      "post": {
        "tags": [
          "DockerRegistry"
        ],
        "summary": "Create Docker registry",
        "description": "Creates a new Docker registry from the supplied `Name`, `Url`, `Username`, and\n`Password`.",
        "requestBody": {
          "description": "The request containing the registry name, URL, username, and password.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDockerRegistryRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDockerRegistryRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDockerRegistryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerRegistryDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerRegistry/{registryId}": {
      "put": {
        "tags": [
          "DockerRegistry"
        ],
        "summary": "Update Docker registry",
        "description": "Updates an existing Docker registry's `Name`, `Url`, `Username`, and `Password`.\nReturns `404` if no registry with the given `registryId` exists.",
        "parameters": [
          {
            "name": "registryId",
            "in": "path",
            "description": "The ID of the Docker registry to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The request containing the updated registry name, URL, username, and password.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDockerRegistryRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDockerRegistryRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDockerRegistryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerRegistry/Search": {
      "get": {
        "tags": [
          "DockerRegistry"
        ],
        "summary": "Search Docker registries",
        "description": "Searches Docker registries using the supplied Gridify filter, sort, and paging query. Requires the\n`Get` permission.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/DockerRegistry/{id}": {
      "get": {
        "tags": [
          "DockerRegistry"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "DockerRegistry"
        ],
        "summary": "Delete entity",
        "description": "Deletes the entity with the specified primary key. A snapshot of\nthe entity is captured and written to the activity log before deletion; if the delete affects no rows the\nendpoint returns `500`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/DockerService/{id}": {
      "get": {
        "tags": [
          "DockerService"
        ],
        "summary": "Get Docker service",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the Docker service to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/DockerService/{serviceId}/UpdateDockerService": {
      "put": {
        "tags": [
          "DockerService"
        ],
        "summary": "Update Docker service",
        "description": "Updates a Docker service and reconciles any managed configuration-file variables that were affected by\nthe change. The unique `BillingId` is validated before the update is applied, and the response lists\nany configuration-file variables that were reverted during reconciliation.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "ID of the Docker service to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated Docker service data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerServiceDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerServiceDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DockerServiceDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUpdateResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerService/{serviceId}/AvailableImages": {
      "get": {
        "tags": [
          "DockerService"
        ],
        "summary": "Get available images",
        "description": "Returns the image catalog defined on this service's blueprint — the set the service may be\nre-pointed at from its settings page. Gated by the service-settings permission so any user\nwho may edit the service can populate the dropdown, without needing `DockerBlueprint.Get`.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the Docker service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DockerBlueprintImageDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerService/CreateDockerService": {
      "post": {
        "tags": [
          "DockerService"
        ],
        "summary": "Create Docker service",
        "description": "Creates a new Docker service, either by auto-selecting a server within a region or datacenter, or by\ntargeting a specific server directly. Exactly one of `ServerId` or `RegionId`/`DatacenterId`\nmust be supplied — specifying both, or neither, is rejected. The caller must hold either the blanket\n`Create` permission or the per-blueprint create feature. For the auto-select path, non-admin callers\nare restricted to servers owned by the service owner. For the direct-server path, billing status, the\nmonitor's licensed service limit, and the server's per-Docker and total service limits are all validated.\nThe unique `BillingId` is enforced before creation, which is performed asynchronously via a task.",
        "requestBody": {
          "description": "The information describing the Docker service to create, including blueprint, owner, and either a target server or a region/datacenter.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDockerServiceInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDockerServiceInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDockerServiceInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerService/{serviceId}/Delete": {
      "delete": {
        "tags": [
          "DockerService"
        ],
        "summary": "Delete Docker service",
        "description": "Deletes a Docker service, executing the uninstall. Returns the task that performs the deletion.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID to delete",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerService/{serviceId}/Detach": {
      "delete": {
        "tags": [
          "DockerService"
        ],
        "summary": "Detach Docker service",
        "description": "Deletes the Docker service and its related rows from the database only. The monitor is never\ncontacted and no container, volume or file is removed from the server, so whatever the host\nstill holds is left behind. Requires the `Detach` blueprint-feature permission <em>and</em>\nan Admin or top-level SubAdmin account; anyone else is rejected with `403 Forbidden`.\nIntended for services whose server is permanently offline, where the regular delete task can\nnever complete.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID to detach",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerService/ReinstallDockerService": {
      "post": {
        "tags": [
          "DockerService"
        ],
        "summary": "Reinstall Docker service",
        "description": "Reinstalls a Docker service: this deletes the service files and reinstalls the service on the server.\nReturns the task that performs the reinstall.",
        "requestBody": {
          "description": "Docker Service Information",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReinstallDockerServiceInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReinstallDockerServiceInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReinstallDockerServiceInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerService/{serviceId}/Repair": {
      "post": {
        "tags": [
          "DockerService"
        ],
        "summary": "Repair Docker service",
        "description": "Repairs the service's files by re-owning its root directory, and everything below it, to the\nowner of that directory. Linux nodes only. A running service is stopped for the repair and\nstarted again afterwards unless `stopService` is false.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to repair.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "stopService",
            "in": "query",
            "description": "Stop a running service for the repair and start it again afterwards.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerService/{serviceId}/ServerHardwareInfo": {
      "get": {
        "tags": [
          "DockerService"
        ],
        "summary": "Get host server hardware info",
        "description": "Gets hardware information about the server hosting the specified Docker service, such as processor count\nand total memory. The data is queried from the host server's monitor client and the response is cached\nfor 60 seconds.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the Docker service whose host server hardware information is requested.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceServerHardwareInfoDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerService/Search": {
      "get": {
        "tags": [
          "DockerService"
        ],
        "summary": "Search Docker services",
        "description": "Searches Docker services using server-side filtering, sorting, and paging, returning only services that\nbelong to enabled servers. The `HostnameOrIP` sort/filter token is expanded to cover both the\n`IPAddress` and `IPHostname` fields.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/DockerService/{serviceId}/ExecConsoleSingleCommand": {
      "post": {
        "tags": [
          "DockerService"
        ],
        "summary": "Execute console command",
        "description": "Executes a single console command against the running Docker service and returns the resulting console\noutput decoded as a UTF-8 string.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the Docker service to run the command against.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "command",
            "in": "query",
            "description": "The console command to execute.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/DockerService/{serviceId}/Info": {
      "get": {
        "tags": [
          "DockerService"
        ],
        "summary": "Get Docker service info",
        "description": "Gets detailed information about a Docker service, including which features (config files, command lines,\nfile manager, scheduled tasks, backups, FastDL) are enabled for the current user based on their\npermissions. Each feature flag is resolved against both the blueprint-level and service-level\npermissions; FastDL availability also factors in the per-service override, blueprint config, and the\nserver-level switch.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the Docker service whose information is requested.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceInfoModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailQueue/Search": {
      "get": {
        "tags": [
          "EmailQueue"
        ],
        "summary": "Search email queue",
        "description": "Searches the mail queue with server-side filtering, sorting, and paging. Results exclude\nthe message bodies; use the single-item endpoint to view a rendered email. Defaults to\nnewest first.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailQueueItemInfoDtoPaging"
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailQueue/{id}": {
      "get": {
        "tags": [
          "EmailQueue"
        ],
        "summary": "Get queue item by id",
        "description": "Gets a single queue item including its rendered bodies and last error.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier of the queue item.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailQueueItemDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "EmailQueue"
        ],
        "summary": "Delete queue item",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier of the queue item to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailQueue/{id}/Retry": {
      "post": {
        "tags": [
          "EmailQueue"
        ],
        "summary": "Retry queue item",
        "description": "Requeues a failed or cancelled item for an immediate send attempt with a fresh retry budget.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier of the queue item to retry.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailQueue/{id}/Cancel": {
      "post": {
        "tags": [
          "EmailQueue"
        ],
        "summary": "Cancel queue item",
        "description": "Cancels a pending item so the processor skips it.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier of the queue item to cancel.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailTemplate/Search": {
      "get": {
        "tags": [
          "EmailTemplate"
        ],
        "summary": "Search email templates",
        "description": "Searches email templates with server-side filtering, sorting, and paging. When no sort is\nsupplied, results default to ordering by category then name.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/EmailTemplate": {
      "post": {
        "tags": [
          "EmailTemplate"
        ],
        "summary": "Create email template",
        "description": "Creates a custom email template. The template key must be unique. When\n`BasedOnTemplateKey` is set it must reference a built-in template's key; the new\ntemplate becomes a variant of it and inherits its context type.",
        "requestBody": {
          "description": "The template to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailTemplate/{id}": {
      "put": {
        "tags": [
          "EmailTemplate"
        ],
        "summary": "Update email template",
        "description": "Updates an email template. For built-in templates the key and context type are fixed —\nposted values for those fields are ignored.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier of the template to update (must match the DTO).",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated template values.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "EmailTemplate"
        ],
        "summary": "Delete email template",
        "description": "Deletes a custom email template. Built-in templates cannot be deleted — disable them instead.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier of the template to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      },
      "get": {
        "tags": [
          "EmailTemplate"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/EmailTemplate/{emailTemplateId}/Reset": {
      "post": {
        "tags": [
          "EmailTemplate"
        ],
        "summary": "Reset built-in template",
        "description": "Restores a built-in template to its factory content (bodies, recipients, icon, enabled state).",
        "parameters": [
          {
            "name": "emailTemplateId",
            "in": "path",
            "description": "The identifier of the built-in template to reset.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplateDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailTemplate/Preview": {
      "post": {
        "tags": [
          "EmailTemplate"
        ],
        "summary": "Preview template content",
        "description": "Renders the posted (possibly unsaved) subject and bodies against sample data for the given\ncontext type. Render errors are returned in the result rather than as an HTTP failure.",
        "requestBody": {
          "description": "The template content and context type to render.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailPreviewRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailPreviewRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EmailPreviewRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreviewResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailTemplate/Variables": {
      "get": {
        "tags": [
          "EmailTemplate"
        ],
        "summary": "List template variables",
        "description": "Lists the variable paths available to templates of the given context type (for the editor's insert-variable helper).",
        "parameters": [
          {
            "name": "contextType",
            "in": "query",
            "description": "The context type to list variables for.",
            "schema": {
              "$ref": "#/components/schemas/EEmailTemplateContextType"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/EmailTemplate/{emailTemplateId}/SendTest": {
      "post": {
        "tags": [
          "EmailTemplate"
        ],
        "summary": "Send test email for template",
        "description": "Renders the saved template against sample data and emails it to the current user's address,\nsynchronously. Transport errors are returned verbatim.",
        "parameters": [
          {
            "name": "emailTemplateId",
            "in": "path",
            "description": "The identifier of the template to test.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "languageId",
            "in": "query",
            "description": "When supplied, sends the saved translation for that language instead of the base content\n(400 when the template has no such translation).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/ExampleModule": {
      "get": {
        "tags": [
          "ExampleModule"
        ],
        "summary": "Get example module greeting",
        "description": "Sample endpoint shipped with the module skeleton, kept as a smoke test that a new module's controller is\ndiscovered and routed. It returns a fixed greeting string, reads nothing and changes nothing, and needs\nonly an authenticated caller — no permission is required.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/FileServer/Search": {
      "get": {
        "tags": [
          "FileServer"
        ],
        "summary": "Search entities",
        "description": "Searches the entities, applying the supplied filtering, sorting,\nand paging criteria and returning the matching results as DTOs. The query runs against a\nsecurity-filtered set, so only entities the current user may access are returned.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/FileServer/{id}": {
      "get": {
        "tags": [
          "FileServer"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "FileServer"
        ],
        "summary": "Update entity",
        "description": "Updates an existing entity, applying only the properties the\ncurrent user is permitted to modify and preserving primary keys. The primary key in both the URL and the\nDTO must match the existing entity; mismatches return `400 Bad Request`, and a missing entity\nreturns `404 Not Found`. Properties denied by the security filter retain their existing values, and\nthe update is written to the activity log.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The DTO containing the new values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileServerDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FileServerDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FileServerDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "FileServer"
        ],
        "summary": "Delete entity",
        "description": "Deletes the entity with the specified primary key. A snapshot of\nthe entity is captured and written to the activity log before deletion; if the delete affects no rows the\nendpoint returns `500`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/FileServer": {
      "post": {
        "tags": [
          "FileServer"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileServerDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FileServerDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FileServerDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Game/{id}": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "Get game blueprint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The game ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Game"
        ],
        "summary": "Update game blueprint",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the game to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The game data to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GameDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GameDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GameDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Game"
        ],
        "summary": "Delete game blueprint",
        "description": "Deletes a game blueprint along with its variables, config files, scripts, custom links, and related\nrole permissions. Fails with 400 if the game is still used by any services. Orphaned non-global\nscripts (used only by this game) are also removed.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the game to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Game/Search": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "Search game blueprints",
        "description": "Searches game blueprints using a Gridify filter/sort/page query, returning a paged list of\nlightweight game summaries (only the fields needed to list and create games). Defaults the sort to\n`Name` when no order is supplied.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Game/SearchForCreate": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "Search creatable games for the service-create picker",
        "description": "Behaves like M:TCAdmin.Web.Controllers.Managers.GameController.Search(Gridify.GridifyQuery,System.Threading.CancellationToken) but additionally restricts the result set to games the current user\nis permitted to <b>create</b> (global or per-blueprint `BpFeature.Create`). This lets the\n\"Create New Service\" game picker page the catalog server-side instead of loading every game. The\ncaller supplies category / operating-system / name filtering through the Gridify query; the create\npermission and the target server/VS's allowed-games list (resolved from serverId /\nvirtualServerId) are enforced here, so paging and total counts stay exact.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "serverId",
            "in": "query",
            "description": "Optional target physical server; when set and it isn't \"allow all games\", results are limited to its allowed games.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "virtualServerId",
            "in": "query",
            "description": "Optional target virtual server; takes precedence over the physical server and applies the VS's own allowed-games list.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Game/ExportAll": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "Export all games",
        "description": "Exports every game blueprint the current user can access into a single downloadable ZIP archive,\nwith one JSON file per game.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/Export": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "Export game",
        "description": "Exports a single game blueprint as JSON. When `downloadAsFile` is true (default) the export is\nreturned as a downloadable JSON file; otherwise the export object is returned in the response body.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game to export.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "downloadAsFile",
            "in": "query",
            "description": "When true (default), returns the export as a downloadable JSON file; when false, returns the export object in the response body.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/Import": {
      "post": {
        "tags": [
          "Game"
        ],
        "summary": "Import game",
        "description": "Imports a game blueprint from an uploaded config file. Accepts either a V3 JSON export or a legacy\nV2 XML game configuration (the file type is auto-detected). When `gameId` is supplied the\nimport overwrites that existing game; otherwise a new game is created. The V2 XML path delegates to\nthe shared `GameManager.ImportGameByV2Xml` importer (see `docs/V2_PLUGIN_REPO.md`).",
        "parameters": [
          {
            "name": "gameId",
            "in": "query",
            "description": "Optional ID of an existing game to import into/overwrite; when omitted, a new game is created.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "gameConfigFile": {
                    "type": "string",
                    "description": "The uploaded game configuration file (V3 JSON or V2 XML).",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "gameConfigFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/Copy": {
      "post": {
        "tags": [
          "Game"
        ],
        "summary": "Copy game",
        "description": "Creates a new game blueprint from this one, with its own scripts, variables, config files and permissions.\nA blank `name` becomes \"Copy of {original name}\".",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CopiedEntityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/ServerSupportedGames/{serverId}": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "List server-supported games",
        "description": "Gets the game blueprints supported by a server, matched on the server's operating system. Returns\n404 when the server does not exist.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server to get supported games for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GameDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/FeaturePermissions": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "Get game feature permissions",
        "description": "Gets the role-based feature permissions configured for a game. Sub-admins only see permissions for\nuser roles under the feature module.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RolePermissionDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/SaveFeaturePermissions": {
      "post": {
        "tags": [
          "Game"
        ],
        "summary": "Save game feature permissions",
        "description": "Saves the role-based feature permissions for a game. Grants `Game.Get` and `Game.Update`\nto any role that has at least one edit-feature permission. Sub-admins may only edit user-role\npermissions; their existing edit-feature permissions are preserved.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The feature permissions to persist for the game.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RolePermissionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RolePermissionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RolePermissionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RolePermissionDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/CustomModProviders": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "List custom mod providers",
        "description": "Gets all configured custom mod providers, ordered by their display order.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConfigFileInfoDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/CurseGames": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "List CurseForge games",
        "description": "Gets the list of games available from the CurseForge browser, ordered by name.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CurseGame"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/UModGames": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "List uMod games",
        "description": "Gets the list of games available from the uMod browser, ordered by name. The response is cached for\none hour because the underlying game list changes rarely.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UModGame"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/ModrinthTags": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "List Modrinth tags",
        "description": "Gets the Modrinth loader list and the released game versions, used by the blueprint's\nModrinth admin config page to populate its default-loader and default-game-version pickers.\nGame versions keep Modrinth's own newest-first order and exclude snapshots.\nThe tag endpoints are public, so no per-game API key is involved.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModrinthTags"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/CustomModProviderConfigs": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "Get game custom mod provider configs",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GameCustomModProviderConfigDto"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Game"
        ],
        "summary": "Save game custom mod provider configs",
        "description": "Creates or updates the custom mod provider configurations for a game. Existing configs are matched\nby `ProviderId` and updated; unmatched entries are created.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The provider configurations to create or update.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GameCustomModProviderConfigDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GameCustomModProviderConfigDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GameCustomModProviderConfigDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Game/{gameId}/AllowedServers": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "List allowed servers",
        "description": "Gets the servers and virtual servers (only those not allowing all games) and indicates whether each\nis currently allowed to host the specified game.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AllowedServerItemDto"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Game"
        ],
        "summary": "Save allowed servers",
        "description": "Updates which servers and virtual servers are allowed to host the specified game. Targets that\nallow all games are skipped.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The servers and virtual servers with their desired allowed state.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AllowedServerItemDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AllowedServerItemDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AllowedServerItemDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Game/{gameId}/Scripts": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "List game scripts",
        "description": "Gets the scripts attached to a game as a paged, filterable list. Role information is omitted when\nthe current user lacks `Role.Get` permission.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameScriptInfoDtoPaging"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Game"
        ],
        "summary": "Create game script",
        "description": "Creates a new script for a game. Enforces that at most one script per game handles the custom query\nprotocol event, returning 400 when that rule would be violated.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The script to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GameScriptDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GameScriptDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GameScriptDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameScriptDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/Scripts/{scriptId}": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "Get game script",
        "description": "Gets a single script belonging to a game, including its input variables and role assignments.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scriptId",
            "in": "path",
            "description": "The ID of the script.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameScriptDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Game"
        ],
        "summary": "Update game script",
        "description": "Updates an existing script belonging to a game. Enforces that at most one script per game handles\nthe custom query protocol event, and that the supplied `scriptId` matches the DTO and belongs\nto the game.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scriptId",
            "in": "path",
            "description": "The ID of the script to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated script data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GameScriptDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GameScriptDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GameScriptDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Game"
        ],
        "summary": "Delete game script",
        "description": "Removes a script from a game. If the script is not global and is used only by this game, the script\nitself is also deleted.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scriptId",
            "in": "path",
            "description": "The ID of the script to remove.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/Scripts/Permissions": {
      "put": {
        "tags": [
          "Game"
        ],
        "summary": "Update game script permissions",
        "description": "Batch-updates the role assignments for a game's scripts. Roles belonging to the current user's user\ntype are protected from removal.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The per-script role assignments to apply.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ScriptPermissionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ScriptPermissionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ScriptPermissionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Game/{gameId}/CustomLinks": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "List game custom links",
        "description": "Gets the custom links attached to a game as a paged, filterable list. Role information is omitted\nwhen the current user lacks `Role.Get` permission.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameCustomLinkInfoDtoPaging"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Game"
        ],
        "summary": "Create game custom link",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The custom link to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GameCustomLinkDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GameCustomLinkDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GameCustomLinkDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameCustomLinkDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/CustomLinks/{customLinkId}": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "Get game custom link",
        "description": "Gets a single custom link belonging to a game, including its role assignments.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "customLinkId",
            "in": "path",
            "description": "The ID of the custom link.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameCustomLinkDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Game"
        ],
        "summary": "Update game custom link",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "customLinkId",
            "in": "path",
            "description": "The ID of the custom link to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated custom link data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GameCustomLinkDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GameCustomLinkDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GameCustomLinkDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Game"
        ],
        "summary": "Delete game custom link",
        "description": "Removes a custom link from a game. If the link is not global and is used only by this game, the\nlink itself is also deleted.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "customLinkId",
            "in": "path",
            "description": "The ID of the custom link to remove.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/CustomLinks/Permissions": {
      "put": {
        "tags": [
          "Game"
        ],
        "summary": "Update game custom link permissions",
        "description": "Batch-updates the role assignments for a game's custom links. Roles belonging to the current user's\nuser type are protected from removal.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The per-link role assignments to apply.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CustomLinkPermissionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CustomLinkPermissionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CustomLinkPermissionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Game/{gameId}/Variables": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "List game variables",
        "description": "Gets the variables defined for a game as a paged, filterable list. Role information is omitted when\nthe current user lacks `Role.Get` permission.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VariableInfoDtoPaging"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Game"
        ],
        "summary": "Create game variable",
        "description": "Creates a new variable for a game. Normalizes the template (defaulting to `${Name}` when\nempty) and the editor control, then coerces the default value to the control's type.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The variable to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GameVariableDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GameVariableDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GameVariableDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameVariableDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/Variables/{variableId}": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "Get game variable",
        "description": "Gets a single variable belonging to a game, including its role assignments.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "variableId",
            "in": "path",
            "description": "The ID of the variable.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameVariableDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Game"
        ],
        "summary": "Update game variable",
        "description": "Updates an existing variable belonging to a game. Normalizes the template (defaulting to\n`${Name}` when empty) and the editor control, then coerces the default value to the control's\ntype.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "variableId",
            "in": "path",
            "description": "The ID of the variable to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated variable data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GameVariableDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GameVariableDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GameVariableDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Game"
        ],
        "summary": "Delete game variable",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "variableId",
            "in": "path",
            "description": "The ID of the variable to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/Variables/Permissions": {
      "put": {
        "tags": [
          "Game"
        ],
        "summary": "Update game variable permissions",
        "description": "Batch-updates the role assignments for a game's variables. Roles belonging to the current user's\nuser type are protected from removal.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The per-variable role assignments to apply.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VariablePermissionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VariablePermissionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VariablePermissionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Game/{gameId}/EnvironmentVariables": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "List game environment variables",
        "description": "Gets the environment variables defined for a game as a paged, filterable list.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlueprintEnvironmentVariableDtoPaging"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Game"
        ],
        "summary": "Create game environment variable",
        "description": "Creates a new environment variable for a game.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The environment variable to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintEnvironmentVariableDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintEnvironmentVariableDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintEnvironmentVariableDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlueprintEnvironmentVariableDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/EnvironmentVariables/{id}": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "Get game environment variable",
        "description": "Gets a single environment variable belonging to a game.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the environment variable.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlueprintEnvironmentVariableDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Game"
        ],
        "summary": "Update game environment variable",
        "description": "Updates an existing environment variable belonging to a game.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the environment variable to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated environment variable data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintEnvironmentVariableDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintEnvironmentVariableDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BlueprintEnvironmentVariableDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Game"
        ],
        "summary": "Delete game environment variable",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the environment variable to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/Updates": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "List game updates",
        "description": "Gets the alternative game updates/builds defined for a game as a paged, filterable list.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameUpdateInfoDtoPaging"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Game"
        ],
        "summary": "Create game update",
        "description": "Creates a new game update. Fails with 400 if the update is marked as the default install while\nanother update for the game already holds that flag.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The update to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GameUpdateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GameUpdateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GameUpdateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameUpdateDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/Updates/{updateId}": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "Get game update",
        "description": "Gets a single game update by ID, including its role assignments and associated scripts.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "updateId",
            "in": "path",
            "description": "The ID of the update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameUpdateDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Game"
        ],
        "summary": "Update game update",
        "description": "Updates an existing game update, synchronizing its role and script assignments. Fails with 400 if\nthe `updateId` mismatches, the update does not belong to the game, or marking it as the\ndefault install conflicts with another default-install update for the game.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "updateId",
            "in": "path",
            "description": "The ID of the update to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated update data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GameUpdateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GameUpdateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GameUpdateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Game"
        ],
        "summary": "Delete game update",
        "description": "Deletes a game update. Fails with 400 if the update does not belong to the game or is currently\ninstalled on one or more services.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "updateId",
            "in": "path",
            "description": "The ID of the update to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/Updates/Permissions": {
      "put": {
        "tags": [
          "Game"
        ],
        "summary": "Update game update permissions",
        "description": "Batch-updates the role assignments for a game's updates. Roles belonging to the current user's user\ntype are protected from removal.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The per-update role assignments to apply.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GameUpdatePermissionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GameUpdatePermissionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GameUpdatePermissionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Game/{gameId}/QueryMonitoringConfig": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "Get query-monitoring config",
        "description": "Gets the query-monitoring configuration for a game, returning defaults when none has been set.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameQueryMonitoringConfigDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Game"
        ],
        "summary": "Update query-monitoring config",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The ID of the game.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The query-monitoring configuration to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GameQueryMonitoringConfigDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GameQueryMonitoringConfigDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GameQueryMonitoringConfigDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/QueryMonitoring/EmailTemplateChoices": {
      "get": {
        "tags": [
          "Game"
        ],
        "summary": "List monitoring email template choices",
        "description": "Lists the email templates a query-monitoring \"send email\" action can reference: each\nmonitoring base template plus any custom template based on one. Returned flat; the query\nmonitoring page groups the list by base key for the per-detection pickers. Served here\n(not on the EmailTemplate controller) so the same permission that opens the page also\nloads its pickers.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmailTemplateInfoDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Game/{gameId}/UpdateExistingServices": {
      "post": {
        "tags": [
          "Game"
        ],
        "summary": "Update existing services' command lines",
        "description": "Re-derives `Service.Commandline` for every existing service of this game, so the game's\ncurrent command-line settings reach services that already exist (a blueprint edit does not\npropagate on its own; see docs/SERVICE_COMMANDLINE.md). Per service: a selected\npredefined/custom line is re-applied, a service whose command line is <b>overridden</b> keeps\nthe admin's template and is only re-parsed, anything else re-adopts the blueprint default.\n            \n**`restart` (default `false`)** picks the mode. `false` = command lines only;\neach new line takes effect on that service's next start. `true` = also restart the\nservice **if it is currently running**, after its new line is persisted.\n            \nCreates <b>one task per hosting server</b> that has services of this game and starts them.\nEvery task runs on the <b>master</b> monitor, so an offline node neither blocks nor delays the\nrun; an unreachable master returns `400` and creates nothing.\n            \n**Re-attach:** if a run for this game is already Pending/Running, its tasks are returned as\nthey are with `reattached: true` and nothing new is created. The response's\n`restartServices` is then the **in-flight** run's mode; the re-attaching caller's\n`restart` argument is ignored.\n            \nA game with no services returns `200` with an empty `servers` list. Individual\nservers whose task could not be started carry an `error` and leave the rest of the run\nintact. Docker blueprints are out of scope.",
        "parameters": [
          {
            "name": "gameId",
            "in": "path",
            "description": "The game whose existing services should be updated.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "restart",
            "in": "query",
            "description": "Restart each running service after its command line is persisted. Default `false`.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateExistingServicesResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Game": {
      "post": {
        "tags": [
          "Game"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GameDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GameDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GameDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/GameService/{id}": {
      "get": {
        "tags": [
          "GameService"
        ],
        "summary": "Get game service",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the game service to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/GameService/{serviceId}/UpdateGameService": {
      "put": {
        "tags": [
          "GameService"
        ],
        "summary": "Update game service",
        "description": "Updates the game service, validates the `BillingId` is unique, then reconciles all\nmanaged config-file variables for the service — returning any variables that were reverted.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "ID of the entity",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The entity to update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GameServiceDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GameServiceDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GameServiceDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceUpdateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/CommandPreview": {
      "get": {
        "tags": [
          "GameService"
        ],
        "summary": "Get start command preview",
        "description": "Builds a human-readable, copy/paste-ready preview of the command line and environment\nthe service would run with, matching the runtime behaviour for the host operating system\n(Windows, Linux, WSL, or Wine). Restricted to admins and top-level sub-admins (those owned\nby the default admin) — other sub-admins receive `403 Forbidden`.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to generate the command preview for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/Search": {
      "get": {
        "tags": [
          "GameService"
        ],
        "summary": "Search game services",
        "description": "Searches game services using a Gridify filter/sort/page query, scoped to services the\ncurrent user can access and hosted on enabled servers. `HostnameOrIP` filters and\nsorts are rewritten to span both the `IPAddress` and `IPHostname` columns.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/GameService/{serviceId}/Query": {
      "get": {
        "tags": [
          "GameService"
        ],
        "summary": "Query game server",
        "description": "Queries the running game server for live information such as player count, server name, and\ncurrent map.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameQueryInfoDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/CreateGameService": {
      "post": {
        "tags": [
          "GameService"
        ],
        "summary": "Create game service",
        "description": "Creates the service and installs the game on the server. The caller must hold either the\nglobal `GameService.Create` permission or the blueprint-feature create permission for\nthe requested `GameId`. Exactly one location method must be supplied: either an explicit\n`ServerId`/`VirtualServerId`, or a `RegionId`/`DatacenterId` for\nauto-selection — supplying both, or neither, is rejected. Non-admin callers are restricted to\nservers and virtual servers they own. Billing-suspended targets, license service limits, and\nper-server/virtual-server service limits are all enforced, and `BillingId` uniqueness is\nvalidated before the install task is queued.",
        "requestBody": {
          "description": "Game Service Information",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGameServiceInfoDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGameServiceInfoDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGameServiceInfoDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/ReinstallGameService": {
      "post": {
        "tags": [
          "GameService"
        ],
        "summary": "Reinstall game service",
        "description": "Reinstalls the service on the server, deleting files and reinstalling the game.",
        "requestBody": {
          "description": "Game Service Information",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReinstallGameServiceInfoDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReinstallGameServiceInfoDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReinstallGameServiceInfoDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/SteamUpdate": {
      "post": {
        "tags": [
          "GameService"
        ],
        "summary": "Run Steam update",
        "description": "Runs a Steam update on the specified service. If a Steam update task is already running for\nthe service, that existing task is returned instead of starting a new one.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to run the steam update for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/Repair": {
      "post": {
        "tags": [
          "GameService"
        ],
        "summary": "Repair game service",
        "description": "Repairs the service's run-as user (creates it if missing and resets its password to the\nstored credential) and re-applies file permissions on the service's root directory.\nA running service is stopped for the repair and started again afterwards unless\n`stopService` is false.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to repair.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "stopService",
            "in": "query",
            "description": "Stop a running service for the repair and start it again afterwards.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/Delete": {
      "delete": {
        "tags": [
          "GameService"
        ],
        "summary": "Delete game service",
        "description": "Deletes the game service and executes the uninstall on the server. Users, sub-users, and\nsub-admins must own the server (or virtual server) where the service is located, otherwise\nthe request is rejected with `403 Forbidden`.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID to delete",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/Detach": {
      "delete": {
        "tags": [
          "GameService"
        ],
        "summary": "Detach game service",
        "description": "Deletes the game service and its related rows from the database only. The monitor is never\ncontacted and no files, containers or operating-system users are removed from the server, so\nwhatever the host still holds is left behind. Requires the `Detach` blueprint-feature\npermission <em>and</em> an Admin or top-level SubAdmin account; anyone else is rejected with\n`403 Forbidden`. Intended for services whose server is permanently offline, where the\nregular delete task can never complete.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID to detach",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/Info": {
      "get": {
        "tags": [
          "GameService"
        ],
        "summary": "Get game service info",
        "description": "Gets detailed information about a game service, including which features (config files,\ncommandlines, file manager, console, updates, backups, custom mods, etc.) are enabled\nfor the current user based on their permissions. Feature flags are gated per-feature against\neither the blueprint-feature permission or the per-service permission, and the effective\nconsole output source is resolved for the host operating system.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to retrieve information for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameServiceInfoModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/ServerHardwareInfo": {
      "get": {
        "tags": [
          "GameService"
        ],
        "summary": "Get host hardware info",
        "description": "Gets hardware information (processor count and total memory) for the server hosting the\nspecified service. The response is cached for 60 seconds.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID whose host server hardware information is requested.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceServerHardwareInfoDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/CustomMods/Search": {
      "get": {
        "tags": [
          "GameService"
        ],
        "summary": "Search custom mods",
        "description": "Searches/browses the custom mods available from a given provider for the specified service.\nSuccessful responses are cached for 5 minutes; error responses are not cached.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to browse mods for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "providerId",
            "in": "query",
            "description": "The custom mod provider ID to query.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AdditionalParameters",
            "in": "query",
            "style": "deepObject",
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/GameService/{serviceId}/CustomMods/Installed": {
      "get": {
        "tags": [
          "GameService"
        ],
        "summary": "Get installed custom mods",
        "description": "Gets the custom mods from a given provider that are currently installed on the service.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to list installed mods for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "providerId",
            "in": "query",
            "description": "The custom mod provider ID to query.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InstalledGenericMod"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/CustomMods/Get": {
      "get": {
        "tags": [
          "GameService"
        ],
        "summary": "Get custom mod",
        "description": "Gets the details of a single custom mod from a provider for the specified service. The\nresponse is cached for 5 minutes.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID the mod belongs to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "providerId",
            "in": "query",
            "description": "The custom mod provider ID to query.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "modId",
            "in": "query",
            "description": "The provider-specific identifier of the mod to retrieve.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "additionalParameters",
            "in": "query",
            "description": "Optional provider-specific parameters used to resolve the mod.",
            "style": "deepObject",
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/CustomMods/Install": {
      "post": {
        "tags": [
          "GameService"
        ],
        "summary": "Install custom mod",
        "description": "Installs a single custom mod from a provider onto the specified service.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to install the mod onto.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "providerId",
            "in": "query",
            "description": "The custom mod provider ID.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "modId",
            "in": "query",
            "description": "The provider-specific identifier of the mod to install.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Optional provider-specific parameters for the install.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/CustomMods/BatchInstall": {
      "post": {
        "tags": [
          "GameService"
        ],
        "summary": "Install custom mods (batch)",
        "description": "Installs multiple custom mods from a provider onto the specified service in a single task.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to install the mods onto.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "providerId",
            "in": "query",
            "description": "The custom mod provider ID.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "modIds",
            "in": "query",
            "description": "The provider-specific identifiers of the mods to install.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "requestBody": {
          "description": "Optional provider-specific parameters for the install.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/CustomMods/Uninstall": {
      "post": {
        "tags": [
          "GameService"
        ],
        "summary": "Uninstall custom mod",
        "description": "Uninstalls a single custom mod from a provider from the specified service.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to uninstall the mod from.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "providerId",
            "in": "query",
            "description": "The custom mod provider ID.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "modId",
            "in": "query",
            "description": "The provider-specific identifier of the mod to uninstall.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Optional provider-specific parameters for the uninstall.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/CustomMods/BatchUninstall": {
      "post": {
        "tags": [
          "GameService"
        ],
        "summary": "Uninstall custom mods (batch)",
        "description": "Uninstalls multiple custom mods from a provider from the specified service in a single task.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to uninstall the mods from.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "providerId",
            "in": "query",
            "description": "The custom mod provider ID.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "modIds",
            "in": "query",
            "description": "The provider-specific identifiers of the mods to uninstall.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "requestBody": {
          "description": "Optional provider-specific parameters for the uninstall.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/CustomMods/Reinstall": {
      "post": {
        "tags": [
          "GameService"
        ],
        "summary": "Reinstall custom mod",
        "description": "Reinstalls a single custom mod from a provider on the specified service.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to reinstall the mod on.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "providerId",
            "in": "query",
            "description": "The custom mod provider ID.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "modId",
            "in": "query",
            "description": "The provider-specific identifier of the mod to reinstall.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Optional provider-specific parameters for the reinstall.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/CustomMods/BatchReinstall": {
      "post": {
        "tags": [
          "GameService"
        ],
        "summary": "Reinstall custom mods (batch)",
        "description": "Reinstalls multiple custom mods from a provider on the specified service in a single task.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to reinstall the mods on.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "providerId",
            "in": "query",
            "description": "The custom mod provider ID.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "modIds",
            "in": "query",
            "description": "The provider-specific identifiers of the mods to reinstall.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "requestBody": {
          "description": "Optional provider-specific parameters for the reinstall.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/CustomMods/ModrinthTags": {
      "get": {
        "tags": [
          "GameService"
        ],
        "summary": "List Modrinth tags",
        "description": "Gets the Modrinth loader list and the released game versions so the service's Modrinth\nbrowse page can populate its loader and game-version filters. Game versions keep Modrinth's\nown newest-first order and exclude snapshots. Modrinth's tag endpoints are public, so this\nnever touches the blueprint's optional API key.\n\nAlso carries `Detected` — what THIS service was found to run (command line, installed\nblueprint mods, installed game update), which the browse page seeds its filters from in\npreference to the blueprint's static defaults.\nDeliberately NOT `[ResponseCache]`d: detection has to reflect a just-installed loader\nimmediately, and the expensive part (the upstream tag lists) is already memory-cached for an\nhour inside `ModrinthBrowser`, so the uncached round trip costs a single DB read.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID whose mods page is asking — permission check plus loader/version detection.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModrinthTags"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/CustomMods/CurseFilters": {
      "get": {
        "tags": [
          "GameService"
        ],
        "summary": "Get Curse Minecraft filters",
        "description": "Gets the loader / game-version filter data for the service's Curse-mods browse page. Only a\nprovider configured for Minecraft gets filters — for any other Curse game the payload is\nempty with `IsMinecraft` false and the page renders no filter selects (the game id\nlives in a `Private.*` config key the client cannot read itself).\n\nLike `GetModrinthTags`, carries `Detected` — what THIS service was found to run —\nand is deliberately not `[ResponseCache]`d so a just-installed loader is reflected\nimmediately; the version list is memory-cached for an hour inside `CurseBrowser`.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID whose mods page is asking — permission check plus loader/version detection.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "providerId",
            "in": "query",
            "description": "The Curse custom mod provider ID (its config names the Curse game).",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CurseFilters"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/Updates": {
      "get": {
        "tags": [
          "GameService"
        ],
        "summary": "List game updates",
        "description": "Gets the game updates (alternative builds) available for the specified service that are\nvisible to the current user based on their roles. Admins see all updates; non-admins only\nsee updates whose roles overlap with theirs (an update with no roles is admin-only). Each\nreturned update is flagged with whether it is the one currently installed.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to list available updates for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceUpdateDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/GameService/{serviceId}/Updates/Install/{updateId}": {
      "post": {
        "tags": [
          "GameService"
        ],
        "summary": "Install game update",
        "description": "Installs a game update (alternative build) on the specified service. The update must be\nvisible to the current user based on their roles (admins may install any update); an update\nwith no roles is admin-only and non-admins need a role overlap, otherwise the request is\nrejected with `403 Forbidden`. This role gate is enforced at the HTTP layer only.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID to install the update on.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "updateId",
            "in": "path",
            "description": "The ID of the game update to install.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/GameTools/Servers": {
      "get": {
        "tags": [
          "GameTools"
        ],
        "summary": "List query tool servers",
        "description": "Gets the list of enabled servers available for the query and RCON tools, with the master server\nlisted first (then ordered by name).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GameToolsServerDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/System/GameTools/Query": {
      "post": {
        "tags": [
          "GameTools"
        ],
        "summary": "Query game server",
        "description": "Queries a game server using the specified protocol and connection details, returning live server\ninformation such as the current map, player counts, server rules, and the connected player list.\nThe `request.Protocol` must match a known `GameProtocol`; the `custom_script` protocol\nis rejected, and the query runs through the enabled server identified by `request.ServerId`.",
        "requestBody": {
          "description": "The query request containing the protocol, target host and port, and the server ID to query through.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueryToolRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QueryToolRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QueryToolRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueryToolResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueryToolResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/GameTools/Rcon/Execute": {
      "post": {
        "tags": [
          "GameTools"
        ],
        "summary": "Execute RCON command",
        "description": "Executes an RCON command against a game server using the specified protocol and connection details,\nreturning the server's response to the command. The `custom_script` protocol is rejected, and\nthe command runs through the enabled server identified by `request.ServerId`.",
        "requestBody": {
          "description": "The RCON request containing the protocol, target host and port, RCON password, command to run, and the server ID to execute through.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RconToolRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RconToolRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RconToolRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RconToolResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RconToolResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/GettingStarted/Status": {
      "get": {
        "tags": [
          "GettingStarted"
        ],
        "summary": "Get getting started status",
        "description": "Returns the completion status of the getting started checklist, including whether the current user still\nuses the default password, which servers lack a valid license, and whether games, Docker blueprints, and\nadditional languages have been configured, and whether the panel mode has been chosen. The\n`AllTasksCompleted` flag is set only when every individual task that still applies is satisfied —\nsteps for a panel feature that is switched off are skipped (see docs/PANEL_MODE.md).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GettingStartedStatusDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Language/{languageId}/Compact": {
      "get": {
        "tags": [
          "Language"
        ],
        "summary": "Get compact language",
        "description": "Returns a compact representation of a language containing only its translations as key/value pairs.\nThe response carries a weak, content-derived `ETag` and `Cache-Control: no-cache`; send the tag\nback as `If-None-Match` to receive `304 Not Modified` while the translations are unchanged.",
        "parameters": [
          {
            "name": "languageId",
            "in": "path",
            "description": "The language ID to retrieve.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompactLanguageDto"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          }
        }
      }
    },
    "/api/Language/Available": {
      "get": {
        "tags": [
          "Language"
        ],
        "summary": "Get available languages",
        "description": "Returns all enabled languages, ordered with the default language first and then alphabetically by name.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LanguageDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Language/ExportAll": {
      "get": {
        "tags": [
          "Language"
        ],
        "summary": "Export all languages",
        "description": "Exports all languages, including their translations, as a downloadable zip archive containing one JSON\nfile per language. Keys a language has not translated yet are included with their English default\nvalue, so each file covers the full key universe.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Language/Import": {
      "post": {
        "tags": [
          "Language"
        ],
        "summary": "Import language",
        "description": "Imports a language from an uploaded JSON config file. When `languageId` is supplied, the existing\nlanguage and its translations are updated (existing translation keys are overwritten and missing keys\nare added; with `deleteMissingTranslations` the language's translations whose keys are absent from\nthe file are deleted first); otherwise a new language is created. Entries whose value still equals the\ncurrent English default are treated as untranslated export fills and behave as if absent from the file\n— they are never stored as translations. The default-language flag is\nguarded: the current default language stays default, and an import can never produce a second\ndefault. Returns `400` for missing or invalid JSON, or when creating a language whose ID\nalready exists, and `404` when updating a language ID that does not exist.",
        "parameters": [
          {
            "name": "languageId",
            "in": "query",
            "description": "Optional ID of an existing language to update. When omitted, a new language is created.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleteMissingTranslations",
            "in": "query",
            "description": "When updating an existing language, delete its translations whose keys are not present in the imported file.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "languageConfigFile": {
                    "type": "string",
                    "description": "The uploaded JSON file containing the language definition and its translations.",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "languageConfigFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Language/{languageId}/Export": {
      "get": {
        "tags": [
          "Language"
        ],
        "summary": "Export language",
        "description": "Exports a single language, including its translations, as JSON. Keys the language has not translated\nyet are included with their English default value, so the file covers the full key universe and can be\ncompleted offline (e.g. handed to an AI to translate the remaining English strings) and re-imported.\nThe result is returned either as a downloadable file attachment or as an inline JSON payload depending\non `downloadAsFile`. Returns `404` when the language ID does not exist.",
        "parameters": [
          {
            "name": "languageId",
            "in": "path",
            "description": "The language ID to export.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "downloadAsFile",
            "in": "query",
            "description": "When true, the export is returned as a downloadable file; when false, it is returned as an inline JSON payload.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Language/Cultures": {
      "get": {
        "tags": [
          "Language"
        ],
        "summary": "List addable cultures",
        "description": "Lists the cultures that can be added as a new language: every culture the runtime predefines, excluding\nthe invariant culture, names longer than the 15-character language ID column, and the languages the\ninstall already has. Sorted by culture name. Native names are returned with their first letter\nupper-cased (the picker auto-fills the language's display name from them). The list backs the\n\"Add Language\" picker; the create endpoint re-validates, so this list is UX rather than the gate.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CultureDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Language/Details": {
      "post": {
        "tags": [
          "Language"
        ],
        "summary": "Create language",
        "description": "Creates an empty language row — no translations yet, so the panel serves the English defaults until keys\nare translated in the editor. The language ID must be a culture the runtime predefines; its casing is\ncanonicalized (\"pt-br\" is stored as \"pt-BR\"). An ID that is not a real culture or a language that already\nexists returns `400`. The new language is never the default.",
        "requestBody": {
          "description": "The language ID, display name and enabled flag for the new language.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LanguageCreateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LanguageCreateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LanguageCreateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LanguageDetailsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Language/{languageId}/Details": {
      "get": {
        "tags": [
          "Language"
        ],
        "summary": "Get language details",
        "description": "Gets a language row together with its translation progress: `TranslatedCount` counts the keys of the\neditable universe (the compiled English catalog plus any extra keys the install's `en` rows carry)\nthis language has a value for, and `TotalKeys` is the size of that universe. Returns `404` when\nthe language ID does not exist.",
        "parameters": [
          {
            "name": "languageId",
            "in": "path",
            "description": "The language ID to describe.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LanguageDetailsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Language"
        ],
        "summary": "Update language details",
        "description": "Updates a language's name, enabled flag and default flag. The language ID is immutable (the route\nparameter wins) and the translation counts on the body are ignored. Setting `Default` clears the flag\non every other language; the install must always keep exactly one enabled default, so disabling or\nun-defaulting the current default returns `400`, as does making a disabled language the default.\nReturns `404` when the language ID does not exist.",
        "parameters": [
          {
            "name": "languageId",
            "in": "path",
            "description": "The language ID to update.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The new name/enabled/default values.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LanguageDetailsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LanguageDetailsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LanguageDetailsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LanguageDetailsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Language"
        ],
        "summary": "Delete language",
        "description": "Deletes a language and all of its translations. The built-in `en` reference language and the current\ndefault language cannot be deleted (`400` — make another language the default first); an unknown\nlanguage ID returns `404`.",
        "parameters": [
          {
            "name": "languageId",
            "in": "path",
            "description": "The language ID to delete.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Language/{languageId}/Translations": {
      "get": {
        "tags": [
          "Language"
        ],
        "summary": "List translations",
        "description": "Lists every key of the editable universe for a language as a paged, filterable grid: the key, the English\ndefault the panel falls back to, and this language's value (`null` when untranslated). With\n`untranslatedOnly` only the keys that have no value are returned — applied before the Gridify query,\nso paging counts reflect the filter. The reference language `en` reports its own default as its\nvalue. Returns `404` when the language ID does not exist.",
        "parameters": [
          {
            "name": "languageId",
            "in": "path",
            "description": "The language ID to list translations for.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "untranslatedOnly",
            "in": "query",
            "description": "When true, only keys this language has no value for are returned.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationEditDtoPaging"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Language"
        ],
        "summary": "Create or update translations in bulk",
        "description": "Upserts a batch of translation rows for a language in one save — the batch counterpart of\n`PUT {languageId}/Translation`, added for the AI assistant's translate loop (a full language is\nfar too large for one round-trip). Same rules as the single upsert: every key must belong to the\neditable universe — an unknown key fails the WHOLE batch with `400` naming the offenders and\nnothing is written — an empty or whitespace value deletes the row (reverting the key to its English\ndefault), the reference language `en` is refused (`400`), and an unknown language ID returns\n`404`. When a key appears more than once, the last entry wins. Guarded by the same\n`Language.UpdateTranslation` permission as the single-key endpoint. Returns the language's\nrefreshed details so callers can report progress.",
        "parameters": [
          {
            "name": "languageId",
            "in": "path",
            "description": "The language ID to write the translations to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The keys to write and their translated values.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TranslationUpdateDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TranslationUpdateDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TranslationUpdateDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LanguageDetailsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Language/{languageId}/Translation": {
      "put": {
        "tags": [
          "Language"
        ],
        "summary": "Create or update a translation",
        "description": "Upserts one translation row for a language. The key must belong to the editable universe (the compiled\nEnglish catalog plus any extra keys the install's `en` rows carry), otherwise `400` — imports\nstay permissive but the editor does not mint keys. An empty or whitespace value deletes the row, which\nreverts the key to its English default. The reference language `en` is maintained from the\napplication code and cannot be edited (`400`); an unknown language ID returns `404`.",
        "parameters": [
          {
            "name": "languageId",
            "in": "path",
            "description": "The language ID to write the translation to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The key to write and its translated value.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslationUpdateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslationUpdateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TranslationUpdateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Language"
        ],
        "summary": "Delete a translation",
        "description": "Deletes one translation row, reverting that key to its English default. Deleting a key the language has\nno row for is a no-op. The reference language `en` cannot be edited (`400`).",
        "parameters": [
          {
            "name": "languageId",
            "in": "path",
            "description": "The language ID to delete the translation from.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "The translation key to revert.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Language/Search": {
      "get": {
        "tags": [
          "Language"
        ],
        "summary": "Search entities",
        "description": "Searches the entities, applying the supplied filtering, sorting,\nand paging criteria and returning the matching results as DTOs. The query runs against a\nsecurity-filtered set, so only entities the current user may access are returned.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Language/{id}": {
      "get": {
        "tags": [
          "Language"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Language"
        ],
        "summary": "Update entity",
        "description": "Updates an existing entity, applying only the properties the\ncurrent user is permitted to modify and preserving primary keys. The primary key in both the URL and the\nDTO must match the existing entity; mismatches return `400 Bad Request`, and a missing entity\nreturns `404 Not Found`. Properties denied by the security filter retain their existing values, and\nthe update is written to the activity log.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The DTO containing the new values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LanguageDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LanguageDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LanguageDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Language"
        ],
        "summary": "Delete entity",
        "description": "Deletes the entity with the specified primary key. A snapshot of\nthe entity is captured and written to the activity log before deletion; if the delete affects no rows the\nendpoint returns `500`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Language": {
      "post": {
        "tags": [
          "Language"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LanguageDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LanguageDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LanguageDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/LayoutTemplate/{id}": {
      "get": {
        "tags": [
          "LayoutTemplate"
        ],
        "summary": "Get layout template",
        "description": "Returns a template together with its surface rows. The base `Get` doesn't include the child\nTCAdmin.SDK.Database.Entities.LayoutTemplate.Contents collection, so this override eager-loads it.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the layout template to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "LayoutTemplate"
        ],
        "summary": "Update layout template",
        "description": "Updates an existing layout template's name, CSS, and surface rows. Every enabled surface is validated\nfor render correctness and required slots before saving, and the child surface rows are synced explicitly\n(matched rows updated, new rows inserted, dropped rows deleted).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the layout template to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The layout template values to apply, including its surface content rows.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutTemplateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutTemplateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutTemplateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "LayoutTemplate"
        ],
        "summary": "Delete entity",
        "description": "Deletes the entity with the specified primary key. A snapshot of\nthe entity is captured and written to the activity log before deletion; if the delete affects no rows the\nendpoint returns `500`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/LayoutTemplate": {
      "post": {
        "tags": [
          "LayoutTemplate"
        ],
        "summary": "Create layout template",
        "description": "Creates a new layout template (and its child surface rows). Every enabled surface is validated for\nrender correctness and required slots before insertion so a template that would brick the login page\nor main shell cannot be saved.",
        "requestBody": {
          "description": "The layout template to create, including its surface content rows.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutTemplateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutTemplateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutTemplateDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/LayoutTemplate/Preview": {
      "post": {
        "tags": [
          "LayoutTemplate"
        ],
        "summary": "Preview template surface",
        "description": "Lightweight editor preview/validate: renders one surface's source against the sample model and\nreturns sanitized HTML (component sentinels swapped for visible placeholders), the detected\ncomponents, and any render error / missing required slots. No live components are mounted.\nGated to users who can create OR update layout templates.",
        "requestBody": {
          "description": "The preview request containing the surface source, its template key, and whether unsafe content is allowed.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutTemplatePreviewRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutTemplatePreviewRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutTemplatePreviewRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LayoutTemplatePreviewResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/LayoutTemplate/{layoutTemplateId}/Export": {
      "get": {
        "tags": [
          "LayoutTemplate"
        ],
        "summary": "Export layout template",
        "description": "Exports one template as its shareable JSON. By default the JSON is returned as a downloadable file;\nset `downloadAsFile` to `false` to receive the export object inline.",
        "parameters": [
          {
            "name": "layoutTemplateId",
            "in": "path",
            "description": "The primary key of the layout template to export.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "downloadAsFile",
            "in": "query",
            "description": "When true (default), returns the JSON as a downloadable file; when false, returns the export object inline.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/LayoutTemplate/ExportAll": {
      "get": {
        "tags": [
          "LayoutTemplate"
        ],
        "summary": "Export all layout templates",
        "description": "Exports every accessible template as a zip of JSON files (one JSON export per template).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/LayoutTemplate/Import": {
      "post": {
        "tags": [
          "LayoutTemplate"
        ],
        "summary": "Import layout template",
        "description": "Imports a template from an uploaded JSON export — as a new template, or updating an existing one\n(layoutTemplateId). Validates the surfaces first (same quality gate as the\neditor's save) so a malformed / required-slot-missing template can't be installed.",
        "parameters": [
          {
            "name": "layoutTemplateId",
            "in": "query",
            "description": "Optional primary key of an existing template to update; when omitted, a new template is created.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "templateConfigFile": {
                    "type": "string",
                    "description": "The uploaded JSON export file describing the template and its surfaces.",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "templateConfigFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/LayoutTemplate/{layoutTemplateId}/Copy": {
      "post": {
        "tags": [
          "LayoutTemplate"
        ],
        "summary": "Copy layout template",
        "description": "Creates a new template with this one's surfaces and CSS. A blank `name` becomes \"Copy of {original name}\".",
        "parameters": [
          {
            "name": "layoutTemplateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CopiedEntityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/LayoutTemplate/Search": {
      "get": {
        "tags": [
          "LayoutTemplate"
        ],
        "summary": "Search entities",
        "description": "Searches the entities, applying the supplied filtering, sorting,\nand paging criteria and returning the matching results as DTOs. The query runs against a\nsecurity-filtered set, so only entities the current user may access are returned.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/System/MailSettings/Settings": {
      "get": {
        "tags": [
          "MailSettings"
        ],
        "summary": "Get mail server settings",
        "description": "Gets the system-wide mail server settings, creating disabled defaults if none exist yet.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MailSettingsDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "MailSettings"
        ],
        "summary": "Save mail server settings",
        "requestBody": {
          "description": "The mail server settings to persist.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MailSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MailSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MailSettingsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/MailSettings/Settings/Test": {
      "post": {
        "tags": [
          "MailSettings"
        ],
        "summary": "Send a test email",
        "description": "Sends a test email synchronously using the saved settings, bypassing the queue and the\nEnabled switch so a configuration can be verified before it is turned on. Transport and\nauthentication errors are returned verbatim.",
        "requestBody": {
          "description": "The recipient address for the test email.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendTestEmailRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendTestEmailRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendTestEmailRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/MaintenanceSettings/Settings": {
      "get": {
        "tags": [
          "MaintenanceSettings"
        ],
        "summary": "Get maintenance settings",
        "description": "Gets the system-wide data retention / maintenance settings, creating defaults if none exist yet.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaintenanceSettingsDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "MaintenanceSettings"
        ],
        "summary": "Save maintenance settings",
        "description": "Persists the data retention / maintenance settings. `LastOptimizedAt` is server-owned\nand ignored on save. The monitors pick up changes on their next maintenance cycle.",
        "requestBody": {
          "description": "The maintenance settings to persist.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MaintenanceSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MaintenanceSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MaintenanceSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaintenanceSettingsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/MaintenanceSettings/Cleanup": {
      "post": {
        "tags": [
          "MaintenanceSettings"
        ],
        "summary": "Clean up finished tasks",
        "description": "Triggers a manual cleanup that permanently deletes finished tasks (Completed, Failed,\nCancelled) older than the configured task retention period, in batches. Task steps are\nremoved with their task; running and pending tasks are never touched.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CleanupResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/MaintenanceSettings/SyncBlueprintContent": {
      "post": {
        "tags": [
          "MaintenanceSettings"
        ],
        "summary": "Run the blueprint content sync now",
        "description": "Asks the master monitor to fire the `SyncBlueprintContent` script event immediately for\nevery blueprint that has a script bound to it, instead of waiting for the daily schedule. The\npass runs in the background on the master (its scripts call external APIs and can take\nminutes) - this call only reports whether it was accepted.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlueprintContentSyncResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Modules/Client": {
      "get": {
        "tags": [
          "Modules"
        ],
        "summary": "List client modules",
        "description": "Returns the assembly names of all registered Web client modules — those that implement\n`ITCAWebClientModule`. Allows anonymous access.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Modules/Client/{assembly}": {
      "get": {
        "tags": [
          "Modules"
        ],
        "summary": "Download client module",
        "description": "Downloads the compiled assembly (`.dll`) for a specific Web client module, matched by\n`assembly` name. Returns `404` when no registered module matches. Allows anonymous access.",
        "parameters": [
          {
            "name": "assembly",
            "in": "path",
            "description": "The assembly name of the module to download.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/OAuthProvider/Providers": {
      "get": {
        "tags": [
          "OAuthProvider"
        ],
        "summary": "List login OAuth providers",
        "description": "Returns the enabled OAuth providers available for login. This endpoint is publicly\naccessible (`[AllowAnonymous]`) and exposes only public provider details — display name,\nicon, and the computed login URL.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OAuthProviderPublicDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/OAuthProvider/Search": {
      "get": {
        "tags": [
          "OAuthProvider"
        ],
        "summary": "Search entities",
        "description": "Searches the entities, applying the supplied filtering, sorting,\nand paging criteria and returning the matching results as DTOs. The query runs against a\nsecurity-filtered set, so only entities the current user may access are returned.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/OAuthProvider/{id}": {
      "get": {
        "tags": [
          "OAuthProvider"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "OAuthProvider"
        ],
        "summary": "Update entity",
        "description": "Updates an existing entity, applying only the properties the\ncurrent user is permitted to modify and preserving primary keys. The primary key in both the URL and the\nDTO must match the existing entity; mismatches return `400 Bad Request`, and a missing entity\nreturns `404 Not Found`. Properties denied by the security filter retain their existing values, and\nthe update is written to the activity log.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The DTO containing the new values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthProviderDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthProviderDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthProviderDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "OAuthProvider"
        ],
        "summary": "Delete entity",
        "description": "Deletes the entity with the specified primary key. A snapshot of\nthe entity is captured and written to the activity log before deletion; if the delete affects no rows the\nendpoint returns `500`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/OAuthProvider": {
      "post": {
        "tags": [
          "OAuthProvider"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthProviderDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthProviderDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthProviderDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/System/PanelSettings/Status": {
      "get": {
        "tags": [
          "PanelSettings"
        ],
        "summary": "Get the panel feature status",
        "description": "The hidden-feature list, read by EVERY authenticated user at boot to build its menus. Requires\nauthentication only — no permission — since the keys are visible in the rendered menu anyway.\n            \n\nNo row is created by this read: an install that has never chosen a mode reports an empty list\n(everything visible), which is also what the client falls back to when the call fails.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PanelFeatureStatusDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/PanelSettings/Settings": {
      "get": {
        "tags": [
          "PanelSettings"
        ],
        "summary": "Get panel mode settings",
        "description": "Gets the panel-wide feature settings plus the derived preset and the live Docker/game service\ncounts the page warns with. A pure read: an install that has never saved a mode is reported as\nan unsaved empty (= Advanced) set, and the row is only created by the first save.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PanelSettingsDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "PanelSettings"
        ],
        "summary": "Save panel mode settings",
        "description": "Persists the hidden-feature list. Unknown keys are rejected, and Games and Docker may not both be\nhidden (a panel with nothing to host). Hiding a feature while services of that kind exist is allowed\non purpose — they keep running, they just disappear from the menus — so the page warns with a count\ninstead of blocking. The first successful save stamps the mode-chosen timestamp the Getting Started\nstep reads. Not available to a demo session.",
        "requestBody": {
          "description": "The settings to persist. Only `DisabledFeatures` is read.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PanelSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PanelSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PanelSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PanelSettingsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/{pluginRepositoryId}/Status": {
      "get": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Get repository status",
        "description": "Gets the current sync status of a plugin repository, including last sync time and manifest counts.",
        "parameters": [
          {
            "name": "pluginRepositoryId",
            "in": "path",
            "description": "The plugin repository ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginRepositoryStatus"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/{pluginRepositoryId}/Sync": {
      "post": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Sync repository",
        "description": "Triggers a sync of the plugin repository, refreshing its manifests from the source.",
        "parameters": [
          {
            "name": "pluginRepositoryId",
            "in": "path",
            "description": "The plugin repository ID to sync.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginRepositoryStatus"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/Manifests": {
      "get": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "List all manifests",
        "description": "Gets the plugin manifests across all configured plugin repositories.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PluginManifest"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/{pluginRepositoryId}/Manifests": {
      "get": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "List repository manifests",
        "description": "Gets the plugin manifests for a specific plugin repository.",
        "parameters": [
          {
            "name": "pluginRepositoryId",
            "in": "path",
            "description": "The plugin repository ID to retrieve manifests for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PluginManifest"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/{pluginRepositoryId}/Manifests/{pluginIdentifier}/Install": {
      "post": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Install plugin",
        "description": "Installs a plugin from the specified repository, queuing a background install task. If\n`pluginVersion` is null the latest version is installed. When the plugin offers multiple\nfiles, `filePath` selects the specific manifest file to install.",
        "parameters": [
          {
            "name": "pluginRepositoryId",
            "in": "path",
            "description": "The plugin repository ID to install from.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "pluginIdentifier",
            "in": "path",
            "description": "The identifier of the plugin to install.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pluginVersion",
            "in": "query",
            "description": "The specific version to install, or null for the latest.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "updateId",
            "in": "query",
            "description": "The optional game update ID associated with the install.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "filePath",
            "in": "query",
            "description": "The optional manifest file path to install when the plugin offers multiple files.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "updateLanguageId",
            "in": "query",
            "description": "The optional update language identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleteMissingTranslations",
            "in": "query",
            "description": "When updating an existing language, delete its translations whose keys are not present in the imported file.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/{pluginRepositoryId}/Manifests/{pluginIdentifier}/InstallModule": {
      "post": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Install module plugin",
        "description": "Installs a module plugin from the specified repository using a set of manifest file paths,\nqueuing a background install task. If `pluginVersion` is null the latest version is installed.",
        "parameters": [
          {
            "name": "pluginRepositoryId",
            "in": "path",
            "description": "The plugin repository ID to install from.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "pluginIdentifier",
            "in": "path",
            "description": "The identifier of the plugin to install.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pluginVersion",
            "in": "query",
            "description": "The specific version to install, or null for the latest.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The manifest file paths to install.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/{pluginRepositoryId}/Manifests/InstallBulk": {
      "post": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Install plugins in bulk",
        "description": "Installs multiple plugins from the specified repository in a single bulk operation, queuing one\nbackground install task.",
        "parameters": [
          {
            "name": "pluginRepositoryId",
            "in": "path",
            "description": "The plugin repository ID to install from.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The bulk install request containing the plugins to install and the task display name.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkInstallRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkInstallRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BulkInstallRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/Credentials": {
      "get": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "List repository credentials",
        "description": "Gets a filtered, sorted, and paged list of plugin repository credentials. Results are ordered by\n`Username` when `gridifyQuery.OrderBy` is not specified.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginRepositoryCredentialDtoPaging"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Create repository credential",
        "description": "Creates a new plugin repository credential. Any supplied `CredentialId` is ignored and a new\nID is assigned by the server.",
        "requestBody": {
          "description": "The credential to create. Its CredentialId is ignored and assigned by the server.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginRepositoryCredentialDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginRepositoryCredentialDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PluginRepositoryCredentialDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginRepositoryCredentialDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/Credentials/{credentialId}": {
      "get": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Get repository credential",
        "description": "Gets a single plugin repository credential by ID. The password is omitted from the response.",
        "parameters": [
          {
            "name": "credentialId",
            "in": "path",
            "description": "The credential ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginRepositoryCredentialDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Update repository credential",
        "description": "Updates an existing plugin repository credential. The credential's `CredentialId` must match\nthe route `credentialId`, otherwise the request is rejected.",
        "parameters": [
          {
            "name": "credentialId",
            "in": "path",
            "description": "The credential ID to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated credential values. Its CredentialId must match the route ID.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginRepositoryCredentialDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginRepositoryCredentialDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PluginRepositoryCredentialDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Delete repository credential",
        "parameters": [
          {
            "name": "credentialId",
            "in": "path",
            "description": "The credential ID to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/Search": {
      "get": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Search repositories",
        "description": "Searches the configured plugin repositories with filtering, sorting, and paging.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/PluginRepository/{pluginRepositoryId}/Share": {
      "post": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Share plugin",
        "description": "Shares a plugin back to the specified repository by opening a pull request against its source. The\nbuilt-in V2 forum repository is read-only and rejects this request with a 400.",
        "parameters": [
          {
            "name": "pluginRepositoryId",
            "in": "path",
            "description": "The plugin repository ID to share to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The share request describing the plugin to share.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginShareRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginShareRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PluginShareRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginShareResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/{pluginRepositoryId}/Share/ValidateToken": {
      "post": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Validate repository share token",
        "description": "Validates a GitHub share token for the specified repository, returning the associated token info.\nThe built-in V2 forum repository is read-only and rejects this request with a 400.",
        "parameters": [
          {
            "name": "pluginRepositoryId",
            "in": "path",
            "description": "The plugin repository ID the token is for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The request containing the token to validate.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ShareTokenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GitHubTokenInfo"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/{pluginRepositoryId}/Share/SaveToken": {
      "post": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Save repository share token",
        "description": "Saves a GitHub share token for the specified repository. The built-in V2 forum repository is\nread-only and rejects this request with a 400.",
        "parameters": [
          {
            "name": "pluginRepositoryId",
            "in": "path",
            "description": "The plugin repository ID to save the token for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The request containing the token to save.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ShareTokenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/{pluginRepositoryId}/Share/TokenStatus": {
      "get": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Get repository share token status",
        "description": "Gets the status of the saved GitHub share token for the specified repository. The built-in V2\nforum repository is read-only and rejects this request with a 400.",
        "parameters": [
          {
            "name": "pluginRepositoryId",
            "in": "path",
            "description": "The plugin repository ID to get the token status for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GitHubTokenInfo"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/Share/ValidateToken": {
      "post": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Validate global share token",
        "description": "Validates a global GitHub share token used across all repositories that lack their own token.",
        "requestBody": {
          "description": "The request containing the token to validate.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ShareTokenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GitHubTokenInfo"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/Share/SaveToken": {
      "post": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Save global share token",
        "description": "Saves the global GitHub share token used across all repositories that lack their own token.",
        "requestBody": {
          "description": "The request containing the token to save.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ShareTokenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/Share/TokenStatus": {
      "get": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Get global share token status",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GitHubTokenInfo"
                }
              }
            }
          }
        }
      }
    },
    "/api/PluginRepository/{id}": {
      "get": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Update entity",
        "description": "Updates an existing entity, applying only the properties the\ncurrent user is permitted to modify and preserving primary keys. The primary key in both the URL and the\nDTO must match the existing entity; mismatches return `400 Bad Request`, and a missing entity\nreturns `404 Not Found`. Properties denied by the security filter retain their existing values, and\nthe update is written to the activity log.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The DTO containing the new values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginRepositoryDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginRepositoryDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PluginRepositoryDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Delete entity",
        "description": "Deletes the entity with the specified primary key. A snapshot of\nthe entity is captured and written to the activity log before deletion; if the delete affects no rows the\nendpoint returns `500`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/PluginRepository": {
      "post": {
        "tags": [
          "PluginRepository"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginRepositoryDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginRepositoryDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PluginRepositoryDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/PrivateNetwork/Search": {
      "get": {
        "tags": [
          "PrivateNetwork"
        ],
        "summary": "Search private networks",
        "description": "Searches private networks using a Gridify query for server-side filtering, sorting, and paging.\nResults are scoped to the secured DbSet and projected to `PrivateNetworkInfoDto`.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/PrivateNetwork/{id}": {
      "get": {
        "tags": [
          "PrivateNetwork"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "PrivateNetwork"
        ],
        "summary": "Update entity",
        "description": "Updates an existing entity, applying only the properties the\ncurrent user is permitted to modify and preserving primary keys. The primary key in both the URL and the\nDTO must match the existing entity; mismatches return `400 Bad Request`, and a missing entity\nreturns `404 Not Found`. Properties denied by the security filter retain their existing values, and\nthe update is written to the activity log.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The DTO containing the new values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrivateNetworkDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PrivateNetworkDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PrivateNetworkDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "PrivateNetwork"
        ],
        "summary": "Delete entity",
        "description": "Deletes the entity with the specified primary key. A snapshot of\nthe entity is captured and written to the activity log before deletion; if the delete affects no rows the\nendpoint returns `500`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/PrivateNetwork": {
      "post": {
        "tags": [
          "PrivateNetwork"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrivateNetworkDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PrivateNetworkDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PrivateNetworkDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/RecurringTask/Search": {
      "get": {
        "tags": [
          "RecurringTask"
        ],
        "summary": "Search entities",
        "description": "Searches the entities, applying the supplied filtering, sorting,\nand paging criteria and returning the matching results as DTOs. The query runs against a\nsecurity-filtered set, so only entities the current user may access are returned.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/RecurringTask/{id}": {
      "get": {
        "tags": [
          "RecurringTask"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "RecurringTask"
        ],
        "summary": "Update entity",
        "description": "Updates an existing entity, applying only the properties the\ncurrent user is permitted to modify and preserving primary keys. The primary key in both the URL and the\nDTO must match the existing entity; mismatches return `400 Bad Request`, and a missing entity\nreturns `404 Not Found`. Properties denied by the security filter retain their existing values, and\nthe update is written to the activity log.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The DTO containing the new values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecurringTaskDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecurringTaskDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecurringTaskDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "RecurringTask"
        ],
        "summary": "Delete entity",
        "description": "Deletes the entity with the specified primary key. A snapshot of\nthe entity is captured and written to the activity log before deletion; if the delete affects no rows the\nendpoint returns `500`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/RecurringTask": {
      "post": {
        "tags": [
          "RecurringTask"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecurringTaskDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecurringTaskDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecurringTaskDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Region/Search": {
      "get": {
        "tags": [
          "Region"
        ],
        "summary": "Search regions",
        "description": "Searches regions using server-side filtering, sorting, and paging driven by the `gridifyQuery`.\nResults are scoped to the secured entity set and projected to `RegionInfoDto`.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Region/{id}": {
      "get": {
        "tags": [
          "Region"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Region"
        ],
        "summary": "Update entity",
        "description": "Updates an existing entity, applying only the properties the\ncurrent user is permitted to modify and preserving primary keys. The primary key in both the URL and the\nDTO must match the existing entity; mismatches return `400 Bad Request`, and a missing entity\nreturns `404 Not Found`. Properties denied by the security filter retain their existing values, and\nthe update is written to the activity log.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The DTO containing the new values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Region"
        ],
        "summary": "Delete entity",
        "description": "Deletes the entity with the specified primary key. A snapshot of\nthe entity is captured and written to the activity log before deletion; if the delete affects no rows the\nendpoint returns `500`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Region": {
      "post": {
        "tags": [
          "Region"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Role": {
      "post": {
        "tags": [
          "Role"
        ],
        "summary": "Create role",
        "description": "Creates a new role, validating that its permissions are allowed for the role's owner and\nrole type, then granting any automatic blueprint/game access permissions implied by the selection.",
        "requestBody": {
          "description": "The role to create, including its requested permissions.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RoleDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Role/{id}": {
      "put": {
        "tags": [
          "Role"
        ],
        "summary": "Update role",
        "description": "Updates an existing role, validating that its permissions are allowed for the role's owner and\nrole type, then refreshing any automatic blueprint/game access permissions implied by the selection.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the role to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The role values to apply, including its requested permissions.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RoleDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Role"
        ],
        "summary": "Delete role",
        "description": "Deletes the role with the specified primary key. Built-in roles cannot be deleted and\nwill result in an error.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the role to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      },
      "get": {
        "tags": [
          "Role"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Role/Search": {
      "get": {
        "tags": [
          "Role"
        ],
        "summary": "Search roles",
        "description": "Searches roles using the supplied Gridify filter, sort, and paging criteria, scoping the\nresults to the role types the current user is allowed to see (sub-user roles for users,\nnon-sub-user roles for admins). Defaults the sort to `RoleType` when no order is supplied.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Role/AvailablePermissions": {
      "get": {
        "tags": [
          "Role"
        ],
        "summary": "Get assignable permissions",
        "description": "Gets the permissions that can be assigned to a role of the given type, optionally filtered to\nthose a specific user is allowed to grant. When `userId` is greater than zero, the result\nis narrowed to permissions that user already holds.",
        "parameters": [
          {
            "name": "roleType",
            "in": "query",
            "description": "The role type to list assignable permissions for.",
            "schema": {
              "$ref": "#/components/schemas/ERoleType"
            }
          },
          {
            "name": "userId",
            "in": "query",
            "description": "The user ID to filter permissions by; when greater than zero, only permissions this user already holds are returned.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AvailablePermissionDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Script/Search": {
      "get": {
        "tags": [
          "Script"
        ],
        "summary": "Search global scripts",
        "description": "Searches global scripts using server-side filtering, sorting, and paging. Results default to\nordering by the script `Order` and omit role information when the current user lacks permission\nto view roles.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Script/ScopeTargets": {
      "get": {
        "tags": [
          "Script"
        ],
        "summary": "List global-script scope targets",
        "description": "Lists the blueprints a GLOBAL script can be scoped to (enabled on) — game blueprints\n(`blueprintType` \"game\") or Docker blueprints (\"docker\") — as slim id + name + OS rows ordered by\nname (the OS is the game's OS or the Docker blueprint's container OS, and is what tells same-named\nblueprints apart). This is the global-script editing surface's own scoping list, so it requires only\n`GlobalScript.Get`: `Game/Search` and `DockerBlueprint/Search` additionally demand the\nblueprint-feature `Create` permission because they serve the service-create pickers, which makes\nthem the wrong dependency for a caller that only edits global scripts (concretely: the AI assistant's\nscoped key, which deliberately does not carry the Create feature).",
        "parameters": [
          {
            "name": "blueprintType",
            "in": "query",
            "description": "Which blueprint family to list: `game` (default) or `docker`.",
            "schema": {
              "type": "string",
              "default": "game"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ScriptScopeTargetDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Script/{scriptId}": {
      "get": {
        "tags": [
          "Script"
        ],
        "summary": "Get global script",
        "description": "Gets a single global script by its primary key, including its input variables and assigned roles.",
        "parameters": [
          {
            "name": "scriptId",
            "in": "path",
            "description": "The ID of the script to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Script"
        ],
        "summary": "Update global script",
        "description": "Updates an existing global script. The `scriptId` in the route must match the `ScriptId`\nin the supplied body, otherwise the request is rejected with a 400.",
        "parameters": [
          {
            "name": "scriptId",
            "in": "path",
            "description": "The ID of the script to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated script data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScriptDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ScriptDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ScriptDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Script"
        ],
        "summary": "Delete global script",
        "parameters": [
          {
            "name": "scriptId",
            "in": "path",
            "description": "The ID of the script to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Script": {
      "post": {
        "tags": [
          "Script"
        ],
        "summary": "Create global script",
        "requestBody": {
          "description": "The script to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScriptDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ScriptDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ScriptDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Script/Permissions": {
      "put": {
        "tags": [
          "Script"
        ],
        "summary": "Update script permissions",
        "description": "Applies role-based permissions to multiple scripts at once, adding newly assigned roles and removing\nroles that are no longer present. Roles matching the current user's own role type are excluded from\nremoval so the caller cannot revoke their own access.",
        "requestBody": {
          "description": "The collection of scripts and the role IDs to assign to each.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ScriptPermissionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ScriptPermissionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ScriptPermissionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Script/CheckSyntax": {
      "post": {
        "tags": [
          "Script"
        ],
        "summary": "Check script syntax",
        "description": "Checks the syntax of the supplied script code for the specified script engine and returns any errors\nfound. Only available to Admin and SubAdmin users; other users receive a 403.",
        "requestBody": {
          "description": "The syntax check request containing the script engine, code, and input variables.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyntaxCheckDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SyntaxCheckDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SyntaxCheckDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SyntaxErrorDto"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Script/VisualNodeDescriptors": {
      "get": {
        "tags": [
          "Script"
        ],
        "summary": "List visual script node types",
        "description": "Returns the catalog of node descriptors — per block type its key, title, category, icon, ports and\nconfig fields — that the visual script editor renders as its palette and validates a block's\nconfiguration against. The catalog is owned by the master monitor, so the descriptors are fetched from\nit over the scripting hub; Admin and SubAdmin callers only, everyone else receives a `403`.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VisualNodeDescriptor"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Script/VisualEntityCatalog": {
      "get": {
        "tags": [
          "Script"
        ],
        "summary": "Visual Editor entity catalog: which runtime variables (`ThisService`, `ThisServer`,\n…) the condition tree picker can offer, with each one's primitive properties enumerated. Built\nhere in the Web via reflection — unlike `GetVisualNodeDescriptors` which lives on the\nMonitor — because the entity types come from `TCAdmin.SDK` which we already reference.",
        "parameters": [
          {
            "name": "scriptType",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "blueprintId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VisualEntityDescriptor"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Script/VisualScriptBlocks": {
      "get": {
        "tags": [
          "Script"
        ],
        "summary": "Visual Editor \"Run Script\" blocks: the scripts tagged with the `VisualScriptBlock` event that\nthe current user may execute, each with its input-variable controls, for the Add Block dialog. Built\nhere in the Web (scripts + permissions live in the database) — like M:TCAdmin.Web.Controllers.Managers.ScriptController.GetVisualEntityCatalog(System.String,System.Nullable{System.Int64})\nand unlike the node descriptors which round-trip to the Monitor. Scoped to the edited script's type:\na game script lists game (and AllGames \"global\") blocks, a Docker script lists Docker blocks. Admins\nsee every block; other users are filtered by the script's role permissions (same rule as the\nper-service script list).",
        "parameters": [
          {
            "name": "scriptType",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "blueprintId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VisualScriptBlockDescriptor"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Script/{scriptId}/Export": {
      "get": {
        "tags": [
          "Script"
        ],
        "summary": "Export global script",
        "description": "Exports a global script as JSON, including its input variables and assigned roles with identifiers\nstripped so it can be re-imported. Assigns a stable script `Identifier` (and persists it) if one\nis not already set.",
        "parameters": [
          {
            "name": "scriptId",
            "in": "path",
            "description": "The ID of the script to export.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "downloadAsFile",
            "in": "query",
            "description": "When true, returns the export as a downloadable JSON file; otherwise returns the JSON payload directly.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Script/Import": {
      "post": {
        "tags": [
          "Script"
        ],
        "summary": "Import global script",
        "description": "Imports a script from an uploaded JSON configuration file, optionally updating an existing script.\nWhen `scriptId` is supplied the import targets that script; otherwise a new one is created. The\nuploaded file must be present and contain valid JSON, otherwise the request is rejected.",
        "parameters": [
          {
            "name": "scriptId",
            "in": "query",
            "description": "The optional ID of an existing script to import into; when omitted, a new script is created.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "scriptConfigFile": {
                    "type": "string",
                    "description": "The uploaded JSON file containing the exported script configuration.",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "scriptConfigFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScriptDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Script/{scriptId}/Copy": {
      "post": {
        "tags": [
          "Script"
        ],
        "summary": "Copy global script",
        "description": "Creates a new global script from this one with a new identifier, keeping its flags, roles, input variables\nand blueprint links. Only global scripts can be copied (400 otherwise). A blank `name` becomes\n\"Copy of {original name}\".",
        "parameters": [
          {
            "name": "scriptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CopiedEntityDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Script/RuntimeObjects/{scriptEvent}": {
      "get": {
        "tags": [
          "Script"
        ],
        "summary": "List script runtime objects",
        "description": "Gets the runtime objects (default objects and script input variables) available to scripts for a given\nscript event and blueprint. Only available to Admin and SubAdmin users; other users receive a 403.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "query",
            "description": "The optional blueprint ID used to scope the input variables; defaults to all blueprints when omitted.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scriptEvent",
            "in": "path",
            "description": "The script event to retrieve runtime objects for; defaults to \"All\".",
            "required": true,
            "schema": {
              "type": "string",
              "default": "All"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RuntimeObject"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Script/RuntimeObject/{objectName}": {
      "get": {
        "tags": [
          "Script"
        ],
        "summary": "Resolve runtime object members",
        "description": "Resolves a dotted runtime object path (e.g. `ThisService.Server`) and returns the properties and\nmethods available on the resolved type, used for script editor auto-completion. Only available to\nAdmin and SubAdmin users; other users receive a 403. Returns a 404 when a segment of the path cannot\nbe resolved.",
        "parameters": [
          {
            "name": "blueprintId",
            "in": "query",
            "description": "The optional blueprint ID used to scope input-variable lookups; defaults to all blueprints when omitted.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "objectName",
            "in": "path",
            "description": "The dot-separated runtime object path to resolve.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RuntimeObject"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/Security/Settings": {
      "get": {
        "tags": [
          "SecuritySettings"
        ],
        "summary": "Get login protection settings",
        "description": "Returns the stored settings with defaults on a fresh install. The CAPTCHA secret is always masked.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecuritySettingsDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "SecuritySettings"
        ],
        "summary": "Save login protection settings",
        "description": "Persists the settings. A blank or still-masked CAPTCHA secret keeps the stored one. Changing the CAPTCHA\nprovider, site key or secret (to anything but None) requires `captchaVerificationToken`: a widget\nresponse solved with the new keys, verified against the new secret before anything is stored, so a wrong\nkey cannot lock every user out. Other processes (remote monitors, other web nodes) pick the change up\nwithin a minute.",
        "requestBody": {
          "description": "The settings to persist.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SecuritySettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SecuritySettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SecuritySettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecuritySettingsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/Security/Captcha/Verify": {
      "post": {
        "tags": [
          "SecuritySettings"
        ],
        "summary": "Test CAPTCHA keys",
        "description": "Verifies a widget response against the given provider and secret without saving anything. A blank or\nmasked secret means the stored one. Always 200; `success` tells, and on failure `errorCode`\ncarries the provider's first error code and `message` a readable explanation.",
        "requestBody": {
          "description": "The provider, secret and widget response to check.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CaptchaVerifyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CaptchaVerifyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CaptchaVerifyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaptchaVerifyResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/Security/Blocks": {
      "get": {
        "tags": [
          "SecuritySettings"
        ],
        "summary": "List blocked IPs",
        "description": "The IPs currently banned by login protection, cluster-wide, newest expiry first.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LoginBlockDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/System/Security/Blocks/Unblock": {
      "post": {
        "tags": [
          "SecuritySettings"
        ],
        "summary": "Unblock an IP",
        "description": "Lifts the ban and clears the IP's failure counter; recorded as an `IpUnblocked` activity row.",
        "requestBody": {
          "description": "The IP to unblock.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnblockIpRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UnblockIpRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UnblockIpRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server": {
      "post": {
        "tags": [
          "Server"
        ],
        "summary": "Create server",
        "description": "Creates a new server after validating that its `BillingId` is unique.",
        "requestBody": {
          "description": "The server to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServerDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ServerDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ServerDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{id}": {
      "put": {
        "tags": [
          "Server"
        ],
        "summary": "Update server",
        "description": "Updates an existing server after validating that its `BillingId` remains unique.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the server to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated server values.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServerDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ServerDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ServerDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Server"
        ],
        "summary": "Delete server",
        "description": "Deletes a server. The deletion is rejected with a `400` if the server still has any game or Docker\nservices assigned to it; all services must be removed or moved first.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the server to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      },
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Server/Search": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Search servers",
        "description": "Searches servers using server-side filtering, sorting, and paging (Gridify), enriching each result with its\ngame, Docker, and total service counts.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Server/SearchAll": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Search servers and virtual servers",
        "description": "Searches both physical servers and virtual servers the user can access, returning a unified, paged selection\nlist with service counts and limits. For sub-admins, `showServers` and `showVirtualServers` are\nfurther constrained by the caller's `Server` / `VirtualServer` Get permissions. Items that are at\ntheir service limit are sorted to the bottom; paging is applied manually after sorting.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Optional free-text term matched against the server / virtual-server name and primary IP address.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "showServers",
            "in": "query",
            "description": "Whether to include physical servers in the results.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "showVirtualServers",
            "in": "query",
            "description": "Whether to include virtual servers in the results.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServerSelectionItemDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/DatacentersWithServers": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "List datacenters with servers",
        "description": "Returns datacenters that have at least one enabled server, including their region IDs and address.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DatacenterInfoDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/RegionsWithServers": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "List regions with servers",
        "description": "Returns regions that have at least one datacenter with an enabled server.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegionInfoDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/Monitor/Version": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get monitor version",
        "description": "Gets the version of the monitor service running on the specified server via its monitor hub connection.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorVersionResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/Monitor/ImportIPs": {
      "post": {
        "tags": [
          "Server"
        ],
        "summary": "Import detected IPs",
        "description": "Instructs the server's monitor service to import the IP addresses detected on the host.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Server/{serverId}/IPs": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Search server IPs",
        "description": "Searches the IP addresses assigned to a server using server-side filtering, sorting, and paging (Gridify).\nWhen no `OrderBy` is supplied, results default to ordering by `IPAddress`.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServerIPDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Server"
        ],
        "summary": "Add server IP",
        "description": "Adds a new IP address to a server after validating that the IP address is not already present on it.\nA hostname already assigned to other IPs is not rejected; those servers are reported in\n`HostnameSharedWith`.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server to add the IP to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The IP address details to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServerIPDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ServerIPDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ServerIPDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerIPDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/IPs/{serverIPId}": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get server IP",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "serverIPId",
            "in": "path",
            "description": "The ID of the server IP to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerIPDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Server"
        ],
        "summary": "Update server IP",
        "description": "Updates an existing IP address on a server after validating that the IP address remains unique on it.\nA hostname already assigned to other IPs is not rejected; those servers are reported in\n`HostnameSharedWith`.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server that owns the IP.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "serverIPId",
            "in": "path",
            "description": "The ID of the server IP to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated IP address values.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServerIPDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ServerIPDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ServerIPDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerIPDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Server"
        ],
        "summary": "Delete server IP",
        "description": "Deletes an IP address from a server. The deletion is rejected if the IP is still assigned to one or more\ngame services.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server that owns the IP.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "serverIPId",
            "in": "path",
            "description": "The ID of the server IP to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/Monitor/LicenseInfo": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get license info",
        "description": "Gets the licensing information reported by the server's monitor service.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseInfoDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/Monitor/LicenseInfoAll": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get license info for all servers (heartbeat-derived)",
        "description": "Returns each server's license snapshot from its monitor's Redis heartbeat in a single\nread — no per-server monitor connections (see docs/SERVER_HEARTBEAT.md). License keys\nare masked; the full key is only available from the live per-server\n`Monitor/LicenseInfo` endpoint. State `Unknown` means Redis was unreachable\n(not \"offline\"); `Offline` means no heartbeat within the TTL.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServerLicenseInfoItemDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/Monitor/UpdateLicense": {
      "post": {
        "tags": [
          "Server"
        ],
        "summary": "Update license key",
        "description": "Updates the license key on the server's monitor service and returns the resulting license information. When\n`licenseKey` is null, the existing key is revalidated. `saveOnFailure` controls whether the key is\npersisted even if validation fails. A password-protected key answers its first use with\n`Message=PASSWORD_REQUIRED` (`INVALID_PASSWORD` after a wrong password) — resend the request with the\nlicense password in the optional body; it is forwarded to the license server once and never stored.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "licenseKey",
            "in": "query",
            "description": "The license key to apply; if null, the existing key is revalidated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "saveOnFailure",
            "in": "query",
            "description": "Whether to persist the license key even if validation fails.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "requestBody": {
          "description": "Optional body carrying the license password for password-protected keys.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLicenseRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLicenseRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLicenseRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseInfoDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/Monitor/AppSettings": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get monitor appsettings",
        "description": "Gets the contents of the monitor service's `appsettings.json` file for the specified server.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTextFileModel"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Server"
        ],
        "summary": "Set monitor appsettings",
        "description": "Writes new contents to the monitor service's `appsettings.json` file for the specified server.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The text-file model whose contents are written to appsettings.json.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetTextFileModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetTextFileModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetTextFileModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Server/{serverId}/Monitor/Log": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Read a monitor system log",
        "description": "Returns the last lines lines of one of the server's system logs — the non-streaming\ncounterpart of the panel's live log viewer (`WebHub.TailServerLog`), which is a SignalR stream and\ntherefore unreachable from the REST API and from API-key callers.\n\nThe log PATH is resolved by the target monitor (`GetSystemLogPath`) rather than accepted from\nthe caller, so this cannot be turned into an arbitrary file read on the node: an unknown log type\nresolves to nothing and returns 404.\nAdministrator-only, matching the hub method's own rule — system logs carry connection strings,\ntokens and customer identifiers, and are not scoped to any one service or owner.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server whose log is read.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "logType",
            "in": "query",
            "description": "Which system log to read, as the monitor names it (e.g. `monitor`, `web`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lines",
            "in": "query",
            "description": "How many trailing lines to return (1-1000, default 200).",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTextFileModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/Monitor/AppSettings/{component}": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get a component's appsettings, masked",
        "description": "Returns the web or monitor `appsettings.{env}.json` of the server with every secret leaf and the\nDatabase/Auth sections replaced by `***`. See docs/MASTER_APPSETTINGS_EDITING.md.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "component",
            "in": "path",
            "description": "Which component's file to read: `Web` or `Monitor`.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/EAppSettingsComponent"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTextFileModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/Monitor/AppSettings/Value": {
      "post": {
        "tags": [
          "Server"
        ],
        "summary": "Set one appsettings key",
        "description": "Sets or removes ONE `TCAdmin:*` key in the server's web or monitor `appsettings.{env}.json`. The\nedit is refused (400, file untouched) unless the result is valid JSON, the key is a real setting and not on\nthe deny list, and the value has the setting's type. The component must be restarted to apply it.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The component, key path, JSON value and remove flag.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetAppSettingsValueRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetAppSettingsValueRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetAppSettingsValueRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppSettingsEditResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/Flash": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get server flash configuration",
        "description": "Returns the merged, decrypted server configuration options used to bootstrap (flash) a remote server. This\nendpoint is anonymous: instead of a normal user session it requires a `Bearer` flash token in the\n`Authorization` header, validated against the target (enabled) server's flash token. Any missing,\nmalformed, or invalid token — or a missing/disabled server — returns `401`.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server being flashed.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServerConfigurationOptionSimple"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/Flash/Reset": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Reset server flash token",
        "description": "Generates a new flash token for the server, invalidating any previous one, and returns the token together\nwith the API URL, a Base64-encoded flash payload (API URL, token, and server ID), and the corresponding\n`tca flash` CLI command.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server to reset the flash token for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerFlashTokenDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/WebFlash/Reset": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Reset web flash token",
        "description": "Generates a new web flash token for the master server — the join credential for standalone web\npanels — invalidating any previous one, and returns the token together with the API URL, a\nBase64-encoded flash payload, and the corresponding web-only install CLI command. The token is\nstored as a BCrypt hash in the master row's metadata, separate from the node flash token columns,\nso rotating one never invalidates the other. Returns `400` for a non-master server.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the master server to reset the web flash token for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerFlashTokenDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/Resources": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get server resources",
        "description": "Gets the current CPU, memory, and drive usage for a server along with its per-category service counts\n(including Docker services). Results are briefly cached to prevent abuse.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerResourcesDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/UnusedCores": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get unused CPU cores",
        "description": "Gets the CPU indices on a server that are not currently allocated to any virtual server. Returned as an\nindex array (not a bitmask) so hosts with more than 64 CPUs are fully represented.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/UsedCores": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get used CPU cores",
        "description": "Gets the CPU indices on a server that are currently allocated to virtual servers or pinned services,\noptionally excluding one virtual server (`excludeVirtualServerId`) from the calculation. Returned\nas an index array (not a bitmask) so hosts with more than 64 CPUs are fully represented.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "excludeVirtualServerId",
            "in": "query",
            "description": "An optional virtual server ID to exclude from the used-cores calculation.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/HardwareInfo": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get server hardware info",
        "description": "Gets static hardware information for a server, such as processor count and total memory. Results are cached.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceServerHardwareInfoDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/Reboot": {
      "post": {
        "tags": [
          "Server"
        ],
        "summary": "Reboot server",
        "description": "Requests a reboot of the physical server via its monitor service. In `DEBUG` builds the reboot is\nlogged but not actually dispatched.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server to reboot.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Server/{serverId}/RestartWeb": {
      "post": {
        "tags": [
          "Server"
        ],
        "summary": "Restart web application",
        "description": "Requests a restart of the web application on the server via its monitor service.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Server/{serverId}/RestartMonitor": {
      "post": {
        "tags": [
          "Server"
        ],
        "summary": "Restart monitor service",
        "description": "Requests a restart of the monitor service running on the server.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the server.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Server/RestartAllMonitors": {
      "post": {
        "tags": [
          "Server"
        ],
        "summary": "Restart all remote monitors",
        "description": "Requests a monitor restart on every enabled non-master server. The master is never included;\nuse the per-server Restart Monitor for it. Returns which servers accepted the request.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestartAllMonitorsResultDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Server/{serverId}/Docker/info": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get Docker engine info",
        "description": "Retrieves general Docker engine information from the specified server by connecting to its\nDocker client over the server hub. Returns `404` if the server cannot be found.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The server ID to query Docker information for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "daemon",
            "in": "query",
            "description": "Which of the node's Docker daemons to query. `Default` (the default) is the node's\nprimary daemon; `Windows` is the optional Windows-containers daemon, which falls back to\nthe primary one when the node has not configured a separate endpoint for it.",
            "schema": {
              "$ref": "#/components/schemas/EDockerDaemon"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerInfoResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Server/{serverId}/Docker/images": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "List Docker images",
        "description": "Retrieves the list of Docker images available on the specified server via its Docker client.\nReturns `404` if the server cannot be found.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The server ID to retrieve Docker images from.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "daemon",
            "in": "query",
            "description": "Which of the node's Docker daemons to list images from.",
            "schema": {
              "$ref": "#/components/schemas/EDockerDaemon"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DockerImageDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Server/{serverId}/Docker/containers": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "List Docker containers",
        "description": "Retrieves the list of Docker containers on the specified server via its Docker client. When\n`includeAll` is `true` (the default) stopped containers are included; when `false`\nonly running containers are returned. Returns `404` if the server cannot be found.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The server ID to retrieve Docker containers from.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "includeAll",
            "in": "query",
            "description": "When true, includes stopped containers; when false, returns only running containers.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "daemon",
            "in": "query",
            "description": "Which of the node's Docker daemons to list containers from.",
            "schema": {
              "$ref": "#/components/schemas/EDockerDaemon"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DockerContainerDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Server/{serverId}/Docker/config": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get Docker config",
        "description": "Retrieves the Docker configuration for the specified server via its Docker client. Returns\n`404` if the server cannot be found.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The server ID to retrieve the Docker configuration for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerConfigResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      },
      "post": {
        "tags": [
          "Server"
        ],
        "summary": "Update Docker config",
        "description": "Applies a new Docker configuration to the specified server via its Docker client and returns\nwhether the update succeeded. Returns `404` if the server cannot be found.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The server ID to update the Docker configuration for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The new Docker configuration to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerConfigRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerConfigRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DockerConfigRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Server/{serverId}/Docker/detectendpoints": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Autodetect Docker endpoints",
        "description": "Asks the node's monitor to probe its well-known local Docker endpoints (named pipes / unix\nsockets / the plain-TCP port, plus `DOCKER_HOST`) and returns the daemons that\nanswered, one row per real engine. Feeds the node-settings card's \"Detect Endpoints\" button;\nnothing is saved — the admin picks a row, the field is filled in, and they still press Save.\n\nUnlike the `nodesettings` endpoints this one <b>needs the node online</b>: only the\nmonitor can see its own pipes. Returns `404` if the server cannot be found.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The server ID to probe for Docker endpoints.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DockerDetectedEndpoint"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Server/{serverId}/Docker/nodesettings": {
      "get": {
        "tags": [
          "Server"
        ],
        "summary": "Get TCAdmin Docker node settings",
        "description": "Retrieves the TCAdmin-side Docker settings stored on the server row: the explicit daemon\nendpoint, the host-path translation mode and the WSL mount root. Read straight from the\ndatabase — unlike the daemon-side `config` endpoints this works while the node is\noffline, which is the case that matters when a wrong endpoint is what took it offline.\nReturns `404` if the server cannot be found.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The server ID to retrieve the Docker node settings for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerNodeSettingsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      },
      "put": {
        "tags": [
          "Server"
        ],
        "summary": "Update TCAdmin Docker node settings",
        "description": "Persists the TCAdmin-side Docker settings on the server row. The monitor picks the new values\nup on its next Docker call — rebuilding its Docker client when the endpoint changed — so no\nrestart is required. Returns `404` if the server cannot be found.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The server ID to update the Docker node settings for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The new Docker node settings.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerNodeSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerNodeSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DockerNodeSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DockerNodeSettingsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Server/{serverId}/Docker/install": {
      "post": {
        "tags": [
          "Server"
        ],
        "summary": "Install Docker",
        "description": "Starts a task on the server's own monitor that installs the requested Docker stack on it:\nthe native Windows-containers engine, WSL2 + Docker CE for Linux containers on a Windows\nnode, or Docker Engine on a Linux node. The work runs on the node itself (nothing is\ninstalled on the master), so the returned task drives the normal task-status dialog.\n\nThe installer is idempotent from end to end — it skips outright when a daemon of the\nrequested flavour already answers, and re-running it after a required reboot completes only\nwhat is left. `400` when the mode does not apply to the server's operating system\n(including any containerized node, which cannot install Docker on its host) or when the\nnode's monitor is not reachable; `404` when the server cannot be found.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The server to install Docker on.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "Which Docker stack to install, and whether the node may reboot itself.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerInstallRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DockerInstallRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DockerInstallRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Server/{serverId}/Docker/images/{imageId}": {
      "delete": {
        "tags": [
          "Server"
        ],
        "summary": "Remove Docker image",
        "description": "Removes the Docker image identified by `imageId` from the specified server via its Docker\nclient and returns whether removal succeeded. Returns `404` if the server cannot be found.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The server ID to remove the Docker image from.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "imageId",
            "in": "path",
            "description": "The identifier of the Docker image to remove.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "daemon",
            "in": "query",
            "description": "Which of the node's Docker daemons holds the image.",
            "schema": {
              "$ref": "#/components/schemas/EDockerDaemon"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/ServerConfiguration": {
      "get": {
        "tags": [
          "ServerConfiguration"
        ],
        "summary": "Get scoped configuration options",
        "description": "Returns configuration options for the resolved scope. When no `serverId` or `datacenterId`\nis supplied the global options are returned; supplying a `datacenterId` returns its\ndatacenter-level options; supplying a `serverId` returns that server's options. Results are\nordered by key, and encrypted values are masked.",
        "parameters": [
          {
            "name": "serverId",
            "in": "query",
            "description": "The optional server ID. When provided, returns server-level options.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "datacenterId",
            "in": "query",
            "description": "The optional datacenter ID. Used when no server ID is provided to return datacenter-level options.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServerConfigurationOptionDto"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ServerConfiguration"
        ],
        "summary": "Sync scoped configuration options",
        "description": "Performs a full sync of the configuration options for the specified scope: adds new options, updates\nexisting ones, and deletes any that are no longer present in the submitted set. The scope is validated\nfirst — a missing `serverId` or `datacenterId` returns `404`. For encrypted options,\nan empty submitted value preserves the existing stored ciphertext; a supplied value is re-encrypted\nbefore storage.",
        "parameters": [
          {
            "name": "serverId",
            "in": "query",
            "description": "The optional server ID identifying the scope to update.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "datacenterId",
            "in": "query",
            "description": "The optional datacenter ID identifying the scope to update when no server ID is provided.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The full desired set of configuration options for the scope.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ServerConfigurationOptionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ServerConfigurationOptionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ServerConfigurationOptionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServerConfigurationOptionDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ServerConfiguration"
        ],
        "summary": "Create configuration option",
        "description": "Creates a new configuration option at the specified scope. The scope is validated first — a missing\n`serverId` or `datacenterId` returns `404`. If the option is marked encrypted and a\nvalue is supplied, the value is encrypted before storage.",
        "parameters": [
          {
            "name": "serverId",
            "in": "query",
            "description": "The optional server ID identifying the scope the option belongs to.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "datacenterId",
            "in": "query",
            "description": "The optional datacenter ID identifying the scope the option belongs to.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The configuration option to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServerConfigurationOptionDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ServerConfigurationOptionDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ServerConfigurationOptionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerConfigurationOptionDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/ServerConfiguration/Effective": {
      "get": {
        "tags": [
          "ServerConfiguration"
        ],
        "summary": "Get effective configuration",
        "description": "Resolves the effective configuration for the specified scope, showing inherited values and their\nsources. Options are layered `Global → Datacenter → Server` with priority-based resolution\n(a higher-or-equal priority option at a more specific scope wins), and each resulting entry is\nflagged with its source and inheritance/override status. Only enabled options are considered; a\nmissing `serverId` returns `404`. Encrypted values are masked, except the license\nkey, which is returned decrypted for non-demo sessions.",
        "parameters": [
          {
            "name": "serverId",
            "in": "query",
            "description": "The optional server ID. When provided, resolves the effective configuration at server scope.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "datacenterId",
            "in": "query",
            "description": "The optional datacenter ID. Used when no server ID is provided to resolve effective configuration at datacenter scope.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EffectiveServerConfigurationDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/ServerConfiguration/{id}": {
      "get": {
        "tags": [
          "ServerConfiguration"
        ],
        "summary": "Get configuration option by ID",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The configuration option ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerConfigurationOptionDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "ServerConfiguration"
        ],
        "summary": "Delete configuration option",
        "description": "Deletes the configuration option with the given ID. Returns `404` if no option matches.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The configuration option ID to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/ServerConfiguration/{id}/Decrypt": {
      "get": {
        "tags": [
          "ServerConfiguration"
        ],
        "summary": "Decrypt configuration option value",
        "description": "Decrypts and returns the value of a specific configuration option. This is a privileged operation that\nshould only be used when absolutely necessary. If the option is not encrypted, its raw value is returned\nas-is; a missing option returns `404`, and a decryption failure (for example, after the encryption\nkey has changed) returns `400`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The configuration option ID whose value should be decrypted.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/ServiceBackup/ByService/{id}": {
      "get": {
        "tags": [
          "ServiceBackup"
        ],
        "summary": "Get service backups",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The service ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceBackupDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/ServiceBackup/Create/{id}": {
      "post": {
        "tags": [
          "ServiceBackup"
        ],
        "summary": "Create service backup",
        "description": "Queues a backup task for the service, attributed to the current user, and returns the task ID\nthat performs the backup operation.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The service ID to back up.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          }
        }
      }
    },
    "/api/ServiceBackup/{id}/{backupId}": {
      "delete": {
        "tags": [
          "ServiceBackup"
        ],
        "summary": "Delete service backup",
        "description": "Queues a delete task for the specified backup, attributed to the current user, and returns the\ntask ID that performs the delete operation.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The service ID that owns the backup.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "backupId",
            "in": "path",
            "description": "The ID of the backup to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          }
        }
      }
    },
    "/api/ServiceBackup/Restore/{id}/{backupId}": {
      "post": {
        "tags": [
          "ServiceBackup"
        ],
        "summary": "Restore service backup",
        "description": "Queues a full restore task for the service from the specified backup, attributed to the current\nuser, and returns the task ID that performs the restore operation.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The service ID to restore.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "backupId",
            "in": "path",
            "description": "The ID of the backup to restore from.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          }
        }
      }
    },
    "/api/ServiceBackup/Files/{id}/{backupId}": {
      "get": {
        "tags": [
          "ServiceBackup"
        ],
        "summary": "List backup files",
        "description": "Lists the files contained in a backup. When `resolveChain` is true, the full backup chain\n(e.g. incremental/differential backups) is resolved to produce the complete file listing.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The service ID that owns the backup.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "backupId",
            "in": "path",
            "description": "The ID of the backup to list files for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "resolveChain",
            "in": "query",
            "description": "When true, resolves the full backup chain (e.g. incremental/differential backups) to produce the complete file listing.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BackupFileEntryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/ServiceBackup/SelectiveRestore/{id}/{backupId}": {
      "post": {
        "tags": [
          "ServiceBackup"
        ],
        "summary": "Selectively restore backup files",
        "description": "Restores a selected subset of files from a backup rather than the entire backup. The specific\nfile paths to restore are supplied via `request.SelectedPaths`. Queues the restore task,\nattributed to the current user, and returns the task ID that performs the operation.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The service ID to restore into.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "backupId",
            "in": "path",
            "description": "The ID of the backup to restore from.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The selective restore request containing the specific file paths to restore.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SelectiveRestoreRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SelectiveRestoreRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SelectiveRestoreRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          }
        }
      }
    },
    "/api/ServiceCategory/Search": {
      "get": {
        "tags": [
          "ServiceCategory"
        ],
        "summary": "Search entities",
        "description": "Searches the entities, applying the supplied filtering, sorting,\nand paging criteria and returning the matching results as DTOs. The query runs against a\nsecurity-filtered set, so only entities the current user may access are returned.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/ServiceCategory/{id}": {
      "get": {
        "tags": [
          "ServiceCategory"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "ServiceCategory"
        ],
        "summary": "Update entity",
        "description": "Updates an existing entity, applying only the properties the\ncurrent user is permitted to modify and preserving primary keys. The primary key in both the URL and the\nDTO must match the existing entity; mismatches return `400 Bad Request`, and a missing entity\nreturns `404 Not Found`. Properties denied by the security filter retain their existing values, and\nthe update is written to the activity log.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The DTO containing the new values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCategoryDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCategoryDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCategoryDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "ServiceCategory"
        ],
        "summary": "Delete entity",
        "description": "Deletes the entity with the specified primary key. A snapshot of\nthe entity is captured and written to the activity log before deletion; if the delete affects no rows the\nendpoint returns `500`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/ServiceCategory": {
      "post": {
        "tags": [
          "ServiceCategory"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCategoryDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCategoryDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCategoryDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Service/{serviceId}/CommandLines/Predefined": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "List predefined command lines",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose predefined command lines are requested.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceCommandLineDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CommandLines/Custom": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "List custom command lines",
        "description": "Gets the custom command lines for a service. Each entry includes a rendered command-line\npreview and a `Selected` flag indicating whether it is the service's currently selected\ncommand line (matched against the `__SelectedCmdLine` service variable).",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose custom command lines are requested.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceCustomCommandLineDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CommandLines/Predefined/{commandLineId}/Apply": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Apply predefined command line",
        "description": "Applies a predefined command line to a service, optionally restarting the service afterwards.\nReturns `404` when no predefined command line with the supplied `commandLineId` exists.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service the command line is applied to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "commandLineId",
            "in": "path",
            "description": "The ID of the predefined command line to apply.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "restart",
            "in": "query",
            "description": "Whether to restart the service after applying the command line.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CommandLines/Custom/{commandLineId}/Apply": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Apply custom command line",
        "description": "Applies a custom command line to a service, optionally restarting the service afterwards.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service the command line is applied to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "commandLineId",
            "in": "path",
            "description": "The ID of the custom command line to apply.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "restart",
            "in": "query",
            "description": "Whether to restart the service after applying the command line.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CommandLines/Predefined/{commandLineId}": {
      "put": {
        "tags": [
          "Services"
        ],
        "summary": "Update predefined command line",
        "description": "Updates the variables of a predefined command line for a service. Variables the current user\nlacks permission to edit are stripped before the update is applied. Returns `404` when no\npredefined command line with the supplied `commandLineId` exists.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the command line.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "commandLineId",
            "in": "path",
            "description": "The ID of the predefined command line to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The update payload containing the new command-line variable values.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCommandLineModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCommandLineModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCommandLineModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get predefined command line",
        "description": "Gets a single predefined command line for a service, with variables the current user lacks\npermission to view removed from the result. Returns `404` when no predefined command line\nwith the supplied `commandLineId` exists.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the command line.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "commandLineId",
            "in": "path",
            "description": "The ID of the predefined command line to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceCommandLineDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CommandLines/Predefined/{commandLineId}/Preview": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Preview predefined command line",
        "description": "Generates a rendered preview of a predefined command line using the supplied variable values,\nwithout persisting any changes. Returns `404` when no predefined command line with the\nsupplied `commandLineId` exists.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the command line.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "commandLineId",
            "in": "path",
            "description": "The ID of the predefined command line to preview.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The payload containing the command-line variable values to render.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCommandLineModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCommandLineModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCommandLineModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CommandLines/Custom/{commandLineId}": {
      "put": {
        "tags": [
          "Services"
        ],
        "summary": "Create or update custom command line",
        "description": "Creates or updates a custom command line for a service. A `commandLineId` of zero (or less)\ncreates a new custom command line; otherwise the existing one is updated. Variables the current\nuser lacks permission to edit are stripped before saving. Returns `404` when a positive\n`commandLineId` does not resolve to an existing command line, or `500` when the save fails.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the command line.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "commandLineId",
            "in": "path",
            "description": "The ID of the custom command line to update, or zero to create a new one.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The update payload containing the command-line name and variable values.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCommandLineModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCommandLineModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCommandLineModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      },
      "delete": {
        "tags": [
          "Services"
        ],
        "summary": "Delete custom command line",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the command line.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "commandLineId",
            "in": "path",
            "description": "The ID of the custom command line to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get custom command line",
        "description": "Gets a single custom command line for a service along with its editor controls and the blueprint\nselection settings. A `commandLineId` of zero (or less) returns an empty, new custom command\nline. Variables the current user lacks permission to view are removed. Returns `404` when a\npositive `commandLineId` does not resolve to an existing command line.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the command line.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "commandLineId",
            "in": "path",
            "description": "The ID of the custom command line to retrieve, or zero for a new one.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomCommandLineConfig"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CommandLines/Custom/{commandLineId}/Preview": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Preview custom command line",
        "description": "Generates a rendered preview of a custom command line using the supplied variable values,\nwithout persisting any changes.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the command line.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "commandLineId",
            "in": "path",
            "description": "The ID of the custom command line to preview.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The payload containing the command-line variable values to render.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCommandLineModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCommandLineModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCommandLineModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/ConfigFiles": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "List config files",
        "description": "Lists the configuration files available for a service, ordered by display order. Each file's\n`RelativePath` has its `${...}` tokens resolved from the service and (as a fallback) the\nblueprint variables; if a token fails to evaluate, the raw template is kept so the list still renders.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose configuration files are requested.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceConfigFile"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/ConfigFiles/{configId}": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get config file",
        "description": "Returns a single configuration file together with the current contents of the file on disk. The\n`RelativePath` returned in the DTO has its `${...}` tokens resolved (falling back to blueprint\ndefaults) so the edit page shows the real path rather than the unresolved template. Returns\n`404` when no config file with `configId` exists for the service.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the configuration file.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "configId",
            "in": "path",
            "description": "The ID of the configuration file to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetConfigFileModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Services"
        ],
        "summary": "Update config file contents",
        "description": "Writes new contents to a service configuration file. Before saving, the write is checked against\nvariable permissions and intrinsic-value (IP / port / slot) edit restrictions; a disallowed edit\nreturns `403`. On a successful save, any changed variables are synchronized back to the service.\nEvery attempt — allowed, saved, failed, or thrown — is recorded as an `UpdateFile` activity-log\nentry. Returns `404` when no config file with `configId` exists for the service.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the configuration file.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "configId",
            "in": "path",
            "description": "The ID of the configuration file to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The update payload containing the new file contents and the text encoding to use.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConfigFileModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConfigFileModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConfigFileModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/ConfigFiles/Variables/{configId}": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get config file variables",
        "description": "Returns the editable variables for a service configuration file together with the resolved config\nfile metadata. Variables are sourced from the game or Docker blueprint (plus globals) and are filtered\nto those the current user's roles are permitted to see; admins bypass the role filter. The config\nfile's `RelativePath` is returned with its `${...}` tokens resolved. Returns `404` when\nno config file with `configId` exists for the service.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the configuration file.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "configId",
            "in": "path",
            "description": "The ID of the configuration file whose variables are requested.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetConfigFileVariablesModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Services"
        ],
        "summary": "Update config file variables",
        "description": "Updates the variable values for a service configuration file and writes the resulting values back to\nthe file. Any variables the current user lacks permission to modify are stripped from the payload\nbefore the write. The outcome is recorded as an `UpdateFile` activity-log entry; a failed write\nreturns `500`, and a missing config file returns `404`.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the configuration file.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "configId",
            "in": "path",
            "description": "The ID of the configuration file whose variables are being updated.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The update payload containing the variable values to apply and the text encoding to use.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConfigFileVariablesModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConfigFileVariablesModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateConfigFileVariablesModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{id}": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get service by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The service ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Service/GetCategories": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get service categories",
        "description": "Gets the service categories. Optionally restricts the result to categories that are\nactually in use by existing services (resolving per-service overrides over blueprint defaults).",
        "parameters": [
          {
            "name": "onlyUsed",
            "in": "query",
            "description": "When true, only returns categories that are referenced by at least one service.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceCategoryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/GetCreateCategories": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get service-creation categories",
        "description": "Gets the distinct categories used by game and docker blueprints, intended for populating\nthe category selector when creating a new service.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceCategoryDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/Search": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Search services",
        "description": "Searches services using a Gridify query (filter, sort, page). Only services belonging to\nenabled servers are returned, and the `HostnameOrIP` alias is expanded to the underlying\nIP-address and hostname fields for filtering and ordering.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Service/{serviceId}/Start": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Start service",
        "description": "Starts the specified service. Blocked if the service, its server, or its virtual server has a\nsuspended billing status. The start is recorded in the service's activity log.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceStatusInfoDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Stop": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Stop service",
        "description": "Stops the specified service. The stop is recorded in the service's activity log.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceStatusInfoDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Kill": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Kill service",
        "description": "Forcibly kills the specified service's process. Requires the additional `KillService`\npermission on top of `Control`. The kill is recorded in the service's activity log.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceStatusInfoDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Restart": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Restart service",
        "description": "Restarts the specified service. Blocked if the service, its server, or its virtual server has a\nsuspended billing status. The restart is recorded in the service's activity log.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceStatusInfoDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Status": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get service status",
        "description": "Gets the current run status of the service (running, stopped, etc.).",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceStatusInfoDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/AvailableIps": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "List available service IPs",
        "description": "Returns the list of TCAdmin.SDK.Database.Entities.ServerIPs available to this service — scoped to the\nservice's server and filtered to entries marked `UseForGameServices`. Gated by the\nservice-settings permission so any user who may edit the service can populate the IP\ndropdown, without needing `Server.Get`.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServerIPDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/SendConsoleInput": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Send console input",
        "description": "Sends a console command to a running game service. Rejected with a 400 when the service's game\nhas no console input source configured.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "command",
            "in": "query",
            "description": "The console command to send.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsoleInputResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/SendConsoleKey": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Send console key",
        "description": "Sends a virtual key press to a running game service's console.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The virtual key to send.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VirtualKey"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VirtualKey"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VirtualKey"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/Database/Create": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Create database",
        "description": "Creates a new MySQL database for the service. The owner's username is prefixed to the\ndatabase name, and the service's database limit is enforced. Requires the MySQL Manager to be\nenabled on the service's server.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "databaseName",
            "in": "query",
            "description": "The base name for the new database (the owner prefix is added automatically).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceDatabaseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Database/Delete": {
      "delete": {
        "tags": [
          "Services"
        ],
        "summary": "Delete database",
        "description": "Deletes a MySQL database belonging to the service. Requires the MySQL Manager to be enabled\non the service's server.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "databaseId",
            "in": "query",
            "description": "The ID of the database to delete.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Service/{serviceId}/Database/Reset": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Reset database password",
        "description": "Resets the password for a MySQL database belonging to the service. Requires the MySQL Manager\nto be enabled on the service's server.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "databaseId",
            "in": "query",
            "description": "The ID of the database whose password is reset.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Service/{serviceId}/Database/Restore": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Restore database",
        "description": "Restores a MySQL database belonging to the service from a SQL file located within the\nservice's directory. Cancelling the request cancels the underlying restore operation.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "databaseId",
            "in": "query",
            "description": "The ID of the database to restore into.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "sqlFile",
            "in": "query",
            "description": "The path to the SQL file, relative to the caller's file root (`/` in the file manager).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Service/{serviceId}/Database/Backup": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Backup database",
        "description": "Creates a backup of a MySQL database belonging to the service. Cancelling the request cancels\nthe underlying backup operation.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "databaseId",
            "in": "query",
            "description": "The ID of the database to back up.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileInformationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/Database/Search": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Search databases",
        "description": "Searches the databases visible to the current user using a Gridify query (filter, sort, page),\nscoped according to the user's role and service permissions.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceDatabaseDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/Database/Limits": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get database limits",
        "description": "Gets the current user's aggregate database usage and the maximum number of databases allowed\nacross the services they can access.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatabaseLimitsModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Screen/{screenIndex}": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Stream screen capture",
        "description": "Streams a live screen capture of the game service's window as an MJPEG\n(`multipart/x-mixed-replace`) HTTP response. The stream continues until the client\ndisconnects, retrying on transient errors.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "screenIndex",
            "in": "path",
            "description": "The index of the window/screen to capture. Defaults to 0.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Service/{serviceId}/Screen": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Stream screen capture",
        "description": "Streams a live screen capture of the game service's window as an MJPEG\n(`multipart/x-mixed-replace`) HTTP response. The stream continues until the client\ndisconnects, retrying on transient errors.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Service/{serviceId}/Mods": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "List service mods",
        "description": "Gets the mods available for the service's blueprint, filtered to those the current user may\nsee (admins see all; non-admins must have a role overlap with the mod), and annotated with\ninstallation state.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceModDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Mods/Install/{modId}": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Install mod",
        "description": "Installs a single mod on the service, subject to the current user's role access to that mod.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "modId",
            "in": "path",
            "description": "The ID of the mod to install.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Mods/Install": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Batch install mods",
        "description": "Batch install: one task with one step per mod, in the order the body lists them. The client\nuses this when the user opts to install a target mod together with its missing dependencies\n— the chain validator inside `ServiceModManager.InstallMods` simulates installs in order\nso a dep scheduled earlier in the list satisfies a later mod's `RequiredMods`.\nSingle-element batches (no missing deps) are accepted too, which simplifies the client.\nEach requested mod must be visible to the current user (admin or role overlap).",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The ordered list of mod IDs to install in a single task.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Mods/Uninstall/{modId}": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Uninstall mod",
        "description": "Uninstalls a single mod from the service, subject to the current user's role access to that mod.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "modId",
            "in": "path",
            "description": "The ID of the mod to uninstall.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Mods/Reinstall/{modId}": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Reinstall mod",
        "description": "Reinstalls a single mod on the service, subject to the current user's role access to that mod.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "modId",
            "in": "path",
            "description": "The ID of the mod to reinstall.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CustomLinks": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get service custom links",
        "description": "Gets the custom links available for a service, filtered to those the current user is permitted to see\nand with any URL variables resolved. Admins see every link; other users only see links whose assigned\nroles they hold (links with no roles assigned are admin-only), and sub-users are additionally gated by\nthe per-link `CustomLink`/`View` permission keyed by `serviceId:customLinkId`. Each\nlink's URL has `${HostnameOrIP}`, `${IPAddress}`, `${IPHostname}`, `${ServiceId}`,\n`${RootDirectory}`, `${WorkingDirectory}`, `${Executable}`, `${Slots}` (game services),\nport ids, and service variables (falling back to the blueprint/global variable defaults) substituted in;\na URL that fails validation resolves to `#UrlError`.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service to retrieve custom links for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceCustomLinkDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CustomScripts": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "List the owner-authored scripts for a service.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceCustomScriptDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Create a new owner-authored service script.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCustomScriptDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCustomScriptDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCustomScriptDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceCustomScriptDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CustomScripts/{scriptId}": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get a single owner-authored service script for editing.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scriptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceCustomScriptDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Services"
        ],
        "summary": "Update an existing owner-authored service script.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scriptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCustomScriptDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCustomScriptDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCustomScriptDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceCustomScriptDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Services"
        ],
        "summary": "Delete an owner-authored service script.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scriptId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CustomScripts/NodeDescriptors": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "The node palette (Monitor-built; user-agnostic) for the service script editor.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VisualNodeDescriptor"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CustomScripts/EntityCatalog": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "The entity catalog for the service script editor (condition trees AND the insert-variable picker),\n<b>restricted to this service</b>: only `Service` + `Service Status`. An owner-authored\nscript must not be able to read — nor, via M:TCAdmin.Web.Controllers.Managers.ServiceController.ValidateEntityAccess(System.String,System.String), inject — the host\nserver, datacenter or blueprint. The admin/blueprint editor (`ScriptController`) returns the full\ncatalog. No input variables (a service script can't define them).",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VisualEntityDescriptor"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CustomScripts/ScriptBlocks": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "The \"Run Script\" blocks available to this service: global/blueprint scripts tagged\n`VisualScriptBlock` that the current user may execute on this service (same role/permission\nfilter as the Custom Action / Icon lists).",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VisualScriptBlockDescriptor"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/CustomScripts/AllowedBlockKeys": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "The built-in Integration/Service block permission keys the current user may use on this service —\ndrives the editor's Add Block filter so the picker only offers permitted blocks. Each gated block's\nTCAdmin.Web.Shared.Models.Scripting.Visual.VisualNodeDescriptor.PermissionKey is a `BpFeature.{key}` role grant on the\nservice's blueprint (configured on the blueprint Feature Permissions page); admins get all. The save\npath re-checks the same set — never trust the client.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/FastDL/Sync": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Sync service FastDL",
        "description": "Queues a monitor-side FastDL sync task for the specified service, mirroring its files to the\nconfigured HTTP origin. The task is queued under the current user's identity.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service to sync FastDL files for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/FastDL/Status": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get service FastDL status",
        "description": "Gets the current FastDL status for the specified service, including enablement, disk usage, file count,\nlast sync time, quota, and the public download URL. Read from the denormalized service columns without\ncontacting the monitor. Enablement requires the server-level switch and honors the per-service override.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service to retrieve FastDL status for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceFastDLStatusDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "List directory contents",
        "description": "Gets a paged listing of the files and folders in a directory of a service's file system. The returned\nlisting's relative path is normalized against the service's root directory for the host's operating system.\nA directory that does not exist returns `404`.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being browsed.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The directory path, relative to the service's root directory, to list.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The maximum number of entries to return per page.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "The zero-based page index to return.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "sortField",
            "in": "query",
            "description": "The field the listing is sorted by before it is paged. Directories always list before files.",
            "schema": {
              "$ref": "#/components/schemas/EFileListingSortField"
            }
          },
          {
            "name": "sortDescending",
            "in": "query",
            "description": "Whether the listing is sorted in descending order.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectoryListingDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/Search": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Search files",
        "description": "Searches a service's file system recursively for files and folders whose NAME contains the query, and —\nwhen the query is at least 3 characters — for editable files whose CONTENT contains it. Both kinds come\nback in one ranked page; a content match also carries a highlighted excerpt. A query containing the\nwildcards `*` (any run) or `?` (one character) matches names as a whole-name pattern instead —\n`*.cfg` finds every file ending in .cfg; content is always matched on the literal text.\n            \n\nThe search is served from a per-service index the hosting server refreshes on demand. When the index\nhas to be built the response returns `Status = Indexing` with a running entry count and no hits —\nrepeat the same request until it turns into `Ready`.\nEntries the caller may not see are filtered out AFTER paging, so a page can hold fewer than\n`pageSize` hits while more pages still exist; only `NoMoreResults` ends paging.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being searched.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "query",
            "in": "query",
            "description": "The text to look for, 1-256 characters. Matching is case-insensitive; substring-based\n             unless the query contains `*`/`?`, which switch name matching to a whole-name wildcard pattern.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "Directory to search under, relative to the service's root directory. Empty searches everything.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The maximum number of hits to return per page. Clamped to 1-100.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "The zero-based page index to return.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileSearchResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/CreateDirectory": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Create directory",
        "description": "Creates a new directory in a service's file system at the specified `path`. The attempt is recorded\nto the service's activity log whether it succeeds or fails.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The path of the directory to create, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/RenameFile": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Rename file",
        "description": "Renames a file in a service's file system. On success, any managed config variables affected by the change\nare reconciled and the reverted variable names are returned. The attempt is recorded to the activity log.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The current path of the file, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "newPath",
            "in": "query",
            "description": "The new path for the file, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/MoveFile": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Move file",
        "description": "Moves a file to a new location in a service's file system. On success, any managed config variables affected\nby the move are reconciled and the reverted variable names are returned. The attempt is recorded to the activity log.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The current path of the file, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "newPath",
            "in": "query",
            "description": "The destination path for the file, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/CopyFile": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Copy file",
        "description": "Copies a file to a new location in a service's file system. The attempt is recorded to the activity log\nwhether it succeeds or fails.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The path of the source file, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "newPath",
            "in": "query",
            "description": "The destination path for the copied file, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/ExtractFile": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Extract archive",
        "description": "Extracts the contents of an archive file in a service's file system to a target directory. When\n`extractPath` is omitted the archive is extracted to the service's root directory. The operation is\nlong-running and cancellable: cancelling `cancellationToken` aborts the in-progress extract on the host.\nThe attempt is recorded to the activity log.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "filePath",
            "in": "query",
            "description": "The path of the archive to extract, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "extractPath",
            "in": "query",
            "description": "The directory to extract into, relative to the service's root directory. When omitted, the archive is extracted to the root directory.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtractResult"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/Compress": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Compress files into archive",
        "description": "Compresses the files and folders listed in `foldersAndFiles` into a single archive. Paths are resolved\nrelative to `rootPath`, which defaults to the service's root directory when omitted. The operation is\nlong-running and cancellable via `cancellationToken`. The returned output path is normalized relative to\nthe service root, and the attempt is recorded to the activity log.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "rootPath",
            "in": "query",
            "description": "The directory the items are relative to, relative to the service's root directory. When omitted, the service's root directory is used.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The list of file and folder paths to include in the archive.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompressResult"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/CreateFile": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Create empty file",
        "description": "Creates a new empty file in a service's file system at the specified `path`. The attempt is recorded\nto the activity log whether it succeeds or fails.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The path of the file to create, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/ReadFile": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Read file contents",
        "description": "Reads the text contents of a file in a service's file system and returns them alongside the file's\nrelative path. A path that does not exist returns `404`.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being read.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The path of the file to read, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTextFileModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/WriteFile": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Write file contents",
        "description": "Writes text contents to a file in a service's file system. Before writing, the request is validated to ensure\nthe caller is not modifying variables they lack permission for and is not editing intrinsic values\n(IP / Ports / Slots) directly in the file; a failed check returns `403`. A file that does not exist yet\nis created first, along with any missing parent folders, and is recorded as a file creation. When the file is\na managed config file, its config variables are synchronized after a successful write. The attempt is\nrecorded to the activity log.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The model containing the relative path of the file and the text contents to write.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetTextFileModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetTextFileModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetTextFileModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/DeleteDirectory": {
      "delete": {
        "tags": [
          "Services"
        ],
        "summary": "Delete directory",
        "description": "Deletes a directory and all of its contents from a service's file system. The attempt is recorded to the\nactivity log whether it succeeds or fails.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The path of the directory to delete, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/DeleteFile": {
      "delete": {
        "tags": [
          "Services"
        ],
        "summary": "Delete file",
        "description": "Deletes a file from a service's file system. The attempt is recorded to the activity log whether it\nsucceeds or fails.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The path of the file to delete, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/RenameDirectory": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Rename directory",
        "description": "Renames a directory in a service's file system. The attempt is recorded to the activity log whether it\nsucceeds or fails.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The current path of the directory, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "newPath",
            "in": "query",
            "description": "The new path for the directory, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/MoveDirectory": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Move directory",
        "description": "Moves a directory to a new location in a service's file system. The attempt is recorded to the activity\nlog whether it succeeds or fails.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The current path of the directory, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "newPath",
            "in": "query",
            "description": "The destination path for the directory, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/CopyDirectory": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Copy directory",
        "description": "Copies a directory and all of its contents to a new location in a service's file system. The attempt is\nrecorded to the activity log whether it succeeds or fails.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The path of the source directory, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "newPath",
            "in": "query",
            "description": "The destination path for the copied directory, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/WriteBytes": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Write raw bytes",
        "description": "Writes a chunk of raw bytes to a file in a service's file system. When `append` is `true` the bytes\nare appended to the existing file; when `false` the file is overwritten. The operation is cancellable\nvia `cancellationToken`. On success, managed config variables are reconciled and the reverted variable\nnames are returned; only the initial (non-append) write is recorded to the activity log to avoid excessive\nlogging across chunks.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being modified.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The path of the file to write, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "append",
            "in": "query",
            "description": "When true the bytes are appended to the existing file; when false the file is overwritten.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "requestBody": {
          "description": "The bytes to write to the file.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/Download": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Download file",
        "description": "Streams a file from a service's file system to the caller as an `application/octet-stream` attachment.\nWhen `deleteAfterDownload` is `true` the file is removed from the file system once the download\ncompletes (or if the request is aborted). The download is recorded to the activity log before streaming begins.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose file system is being read.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "path",
            "in": "query",
            "description": "The path of the file to download, relative to the service's root directory.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleteAfterDownload",
            "in": "query",
            "description": "When true the file is deleted from the file system once the download completes.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Service/{serviceId}/FileManager/Logs": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Find log files",
        "description": "Searches a service's file system for log files whose extensions match those configured on the service's\nblueprint, returning a paged set of matches.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose log files are being searched.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The maximum number of log files to return per page.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "The zero-based page index to return.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FileInformationDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Move": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Move or copy this service to another server",
        "description": "Queues the multi-server move/copy task (docs/SERVICE_MOVE.md) for a game or docker service:\nconnectivity is tested before anything is stopped or transferred, the current ports are kept\nwhen free on the target, per-service MySQL databases are dumped/restored, and a same-machine\nhost↔virtual server move takes an instant no-transfer fast path. Docker services cannot be\nplaced on a virtual server. Requires the global `Game.Move` permission for game services\nor `DockerBlueprint.Move` for docker services (admins implicitly qualify).",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service to move or copy.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "Target, transfer method and options.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MoveServiceRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MoveServiceRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MoveServiceRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/MovePreview": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Preview a move/copy of this service",
        "description": "Returns what moving/copying to the given target would entail — available transfer methods,\ndisk space, databases, backups and warnings. Informational; the move itself re-validates.\nRequires the same `Game.Move` / `DockerBlueprint.Move` permission as the move.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "targetServerId",
            "in": "query",
            "description": "The target physical server.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "targetVirtualServerId",
            "in": "query",
            "description": "Optional target virtual server on that host (game services only).",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MoveServicePreviewDto"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/PageTemplate": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Render a service page layout template",
        "description": "Renders one of the active theme's per-service layout-template surfaces for this service and\nthe requesting user, per request: the home page body (`surface=Home` →\n`GameService.Home` / `DockerService.Home`) or the layout header strip\n(`surface=Header` → `GameService.Header` / `DockerService.Header`). The\nblueprint-specific row (`{base}.{blueprintId}`) wins over the general row; when the\ntheme's template defines neither, `Found` is false and the client renders the compiled\nmarkup. The Liquid model carries curated service fields plus the user's effective permission\nbooleans for THIS service — visibility only; every action stays enforced by its own endpoint.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "Service ID of the service",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "themeId",
            "in": "query",
            "description": "The client's active theme (validated against the host's available themes).",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "surface",
            "in": "query",
            "description": "Which per-service surface to render (Home page body or layout header).",
            "schema": {
              "$ref": "#/components/schemas/EServicePageSurface"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceHomeTemplateRenderDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/ScheduledTasks": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "List service scheduled tasks",
        "description": "Returns all scheduled (recurring) tasks configured for the service identified by `serviceId`.\nResults are scoped to the current user's secure access.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose scheduled tasks should be retrieved.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RecurringTaskDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Create service scheduled task",
        "description": "Creates a new scheduled (recurring) task for the service identified by `serviceId`. The task's steps\nare validated against the owning service (game services via the game service manager, otherwise via the\ndocker service manager) and each step's input variables are verified before the task is persisted.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service the scheduled task is being created for.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The recurring task definition to create, including its steps and trigger.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecurringTaskDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecurringTaskDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecurringTaskDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecurringTaskDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/ScheduledTasks/{scheduledTaskId}": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get service scheduled task",
        "description": "Returns the scheduled (recurring) task identified by `scheduledTaskId` for the given `serviceId`,\nincluding its current task and steps. Results are scoped to the current user's secure access.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the scheduled task.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scheduledTaskId",
            "in": "path",
            "description": "The ID of the scheduled task to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecurringTaskDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Services"
        ],
        "summary": "Update service scheduled task",
        "description": "Updates the scheduled (recurring) task identified by `scheduledTaskId` for the given `serviceId`.\nThe task's steps are re-validated against the owning service (game services via the game service manager,\notherwise via the docker service manager) and each step's input variables are verified. The trigger\ninterval is enforced against the manager's task interval limit — an interval below the limit is rejected.\nAfter saving, the task is reloaded so the returned record reflects the recomputed next scheduled run time.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the scheduled task.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scheduledTaskId",
            "in": "path",
            "description": "The ID of the scheduled task to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated recurring task definition to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecurringTaskDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecurringTaskDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecurringTaskDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecurringTaskDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Services"
        ],
        "summary": "Delete service scheduled task",
        "description": "Deletes the scheduled (recurring) task identified by `scheduledTaskId` from the service identified\nby `serviceId`.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the scheduled task.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scheduledTaskId",
            "in": "path",
            "description": "The ID of the scheduled task to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/ScheduledTasks/{scheduledTaskId}/History": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get service scheduled task history",
        "description": "Returns the past and pending <b>executions</b> of the scheduled (recurring) task identified by\n`scheduledTaskId` — one row per fire — as a Gridify page, newest scheduled time first unless\n`orderBy` says otherwise.\n\nFiltering is by the typed `status`, `from` and `to` parameters only: `from`\nand `to` are inclusive UTC bounds on the execution's <b>scheduled</b> time (the fire time, not\nthe actual start — that is reported as `lastRunTime`), and any `filter` supplied in the\nGridify query is ignored. An inverted range returns `400`.\nAccess is gated by the recurring task, which is resolved through the caller's secure db-set\nand must belong to `serviceId` — so anyone who may view the task definition may read its\nhistory. The per-execution log is not included here; fetch it with\n`GET /api/TCATask/{taskId}/Steps`, which applies its own row-level security.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the scheduled task.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scheduledTaskId",
            "in": "path",
            "description": "The ID of the scheduled task whose executions should be listed.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Optional execution status to keep (Pending, Running, Completed, Failed, Cancelled).",
            "schema": {
              "$ref": "#/components/schemas/ETaskStatus"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Optional inclusive lower bound, in UTC, on the execution's scheduled time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Optional inclusive upper bound, in UTC, on the execution's scheduled time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDtoPaging"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Scripts/{scriptEvent}": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "List executable service scripts",
        "description": "Gets the scripts available for a service that are registered for the given `scriptEvent`,\nfiltered down to the scripts the current user is permitted to execute. Admins see every script;\nfor other users, scripts tied to the `CustomServiceIcon`, `CustomServiceAction`, or\n`ScheduledTask` events are admin-only when they have no roles assigned, and otherwise are\nfiltered by per-service `Script`/`Execute` permission (sub-users) or by role membership\n(regular users). Owner-authored service scripts are exempt from role filtering.\nFor the `ScheduledTask` event the request is additionally gated on the ScheduledTasks feature\n(see TCAdmin.Web.Attributes.ServiceEventScriptsPermission) — the gate that also lets user-scoped API keys\ncall this list with their `Service.ScheduledTasks` grant.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose scripts are requested.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scriptEvent",
            "in": "path",
            "description": "The script event name used to filter the scripts (for example a custom action or scheduled-task event).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceScriptDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Scripts/{scriptId}": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get service script with editor",
        "description": "Gets a single script for a service, including its input-variable editor controls resolved\nfor the service's blueprint (game or Docker) and filtered to the variables the current user may\nview. Editor controls for variables the user lacks role access to are removed (display-only\ncontrols such as `DynamicHeader` and `DynamicLineBreak` are retained). For sub-users,\nthe parent user's roles are used for the permission check.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service the script belongs to.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scriptId",
            "in": "path",
            "description": "The ID of the script to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceScriptDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Scripts/{scriptId}/Execute": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Run a service script",
        "description": "Runs one of the service's Custom Icon / Custom Action scripts (blueprint- or owner-authored) and\nreturns its output — the REST twin of the browser's `WebHub.ExecuteScript` stream, for\ncallers that have no SignalR channel (API keys, the AI assistant). Works for game and Docker\nservices alike.\n            \nAuthorization is deliberately identical to the hub's: service access (row security), the script\nmust resolve for THIS service, and then the shared per-script role rule\n(`ScriptExecutionAuthorizer`) — owner-authored service scripts need only service access,\nsub-users additionally need their per-service `Script`/`Execute` grant, regular users\nneed role membership, admins are unrestricted. On top of that, and unlike the hub, a\nblueprint/global script must be bound to `CustomServiceIcon` or `CustomServiceAction`:\nthose are the only scripts the panel offers as runnable buttons, and lifecycle scripts\n(BeforeServiceStarted, AfterServiceCreated…) are not meant to be triggered on demand.\n            \nThe run is NON-INTERACTIVE: no dialog callbacks exist over REST, so `IsInteractive` is false\nand a script that calls Input / MessageBox / Alert fails fast with an error line instead of\nwaiting forever. Scripts that prompt should guard on `IsInteractive` (docs/VISUAL_EDITOR.md).",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service to run the script against.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scriptId",
            "in": "path",
            "description": "The ID of the script to run.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "Optional input-variable values for the script.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteScriptRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteScriptRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteScriptRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecuteScriptResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Variables": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "List service variables",
        "description": "Returns the service's stored variable values (`Service.Variables`) as a name → value map —\nthe same dictionary the command-line parser, config-file sync and scripts read from. These are\nthe service's current values, not the blueprint's declared defaults; for the definitions\n(editors, roles, defaults) use `GET /Game/{gameId}/Variables`,\n`GET /Blueprint/{blueprintId}/Variables` or `GET /DockerBlueprint/{blueprintId}/Variables`.\n\nNon-admins see only variables declared on the service's blueprint (or as a global) whose assigned\nroles intersect their own — the same role filter the config-file editor applies. Undeclared\ninternal keys such as `__SelectedCmdLine` have no variable definition and therefore no\nroles, which makes them admin-only.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service whose variables are requested.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": { }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Service/{serviceId}/Variables/{name}": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Get service variable",
        "description": "Returns a single `Service.Variables` entry by name. Same value source and role filter as the\nlist endpoint. A variable the caller is not permitted to see is reported exactly like one that\nisn't set — a `404` — so the response can't confirm that a restricted variable exists.",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "The ID of the service that owns the variable.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "name",
            "in": "path",
            "description": "The variable name (case-sensitive, as declared on the blueprint).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceVariableDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Sso/Token": {
      "post": {
        "tags": [
          "Sso"
        ],
        "summary": "Mint SSO token",
        "description": "Mints a single-use 60-second SSO token for an external integration. The target user is resolved\nfrom exactly one of `userId`, `username`, or `billingId` (`userId` wins if\nmultiple are supplied). The caller's API-key owner must be strictly more privileged than the target\nuser — same-tier or higher-tier targets are rejected, which blocks both privilege escalation and\nlateral impersonation. Suspended (billing-suspended or non-loginable) users are also refused.\nEvery attempt — success or failure — is written to the target user's activity feed via the\n`LoginSsoMint` action.",
        "requestBody": {
          "description": "The mint request identifying the target user (one of userId, username, or billingId) and the relative returnUrl to redirect to after redemption.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSsoTokenRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSsoTokenRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSsoTokenRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateSsoTokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/System/SteamSettings/Settings": {
      "get": {
        "tags": [
          "SteamSettings"
        ],
        "summary": "Get default Steam settings",
        "description": "Gets the system-wide default Steam settings, creating anonymous defaults if none exist yet.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SteamSettingsDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "SteamSettings"
        ],
        "summary": "Save default Steam settings",
        "description": "Saves the system-wide default Steam account and Web API key. A blank username is stored as\n\"anonymous\", and an anonymous account never keeps a password.",
        "requestBody": {
          "description": "The default Steam settings to persist.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SteamSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SteamSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SteamSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SteamSettingsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/SystemHealth": {
      "get": {
        "tags": [
          "SystemHealth"
        ],
        "summary": "Get system health report",
        "description": "Returns a consolidated system health report, aggregating database connectivity and\npending migrations, per-server monitor status and license status, Redis connectivity,\nHTTPS certificate expiration, license capacity, and available updates into an overall\nhealth status. Server status is derived from the Redis heartbeat each monitor publishes\n(no per-server SignalR probing — O(1) regardless of cluster size); when Redis itself is\nunreachable, servers report state Unknown rather than Offline.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SystemHealthDto"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/SystemHealth/Version": {
      "get": {
        "tags": [
          "SystemHealth"
        ],
        "summary": "Get the server application version",
        "description": "Returns the running server's assembly version. Deliberately requires no special permission\n(only authentication) so the web client can compare it against its own compiled-in version\nand surface a refresh prompt when its cached WASM bundle is older than the deployed server.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppVersionDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/SystemHealth/Server/{serverId}/Probe": {
      "get": {
        "tags": [
          "SystemHealth"
        ],
        "summary": "Probe a single server's monitor over SignalR (ground truth)",
        "description": "On-demand live connectivity test: opens a SignalR connection to the server's monitor and\nrequests its version. The regular health report derives status from Redis heartbeats; this\nendpoint backs the \"Test connection\" button and is the only remaining per-server probe path.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerStatusDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/Update/Start": {
      "post": {
        "tags": [
          "SystemUpdate"
        ],
        "summary": "Start a cluster update",
        "description": "Creates an update job targeting the latest version on the configured channel. The\n            master updates first; remotes follow once it is healthy and migrated.",
        "parameters": [
          {
            "name": "force",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "concurrency",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 5
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateJobDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/Update/Server/{serverId}": {
      "post": {
        "tags": [
          "SystemUpdate"
        ],
        "summary": "Update or reinstall a single server",
        "description": "Creates a one-server update job. A remote is brought to the master's current version\n            (never ahead of it); the master row runs a normal update to the latest on its channel.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The server to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "force",
            "in": "query",
            "description": "Reinstall even if already at the target version.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateJobDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/Update/Status": {
      "get": {
        "tags": [
          "SystemUpdate"
        ],
        "summary": "Get current update status",
        "description": "Returns the active job, or the most recent non-dismissed job, or an empty job\n            (`Phase = None`) when there is nothing to show.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateJobDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/Update/Retry/{serverId}": {
      "post": {
        "tags": [
          "SystemUpdate"
        ],
        "summary": "Retry a failed or skipped remote",
        "description": "Re-queues a single remote on a job that finished with errors and resumes the rollout.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The server to retry.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateJobDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/Update/Cancel": {
      "post": {
        "tags": [
          "SystemUpdate"
        ],
        "summary": "Cancel an update in progress",
        "description": "Flags the active job for cancellation; the orchestrator finalizes it on its next tick\n            as if every remaining server had timed out. Updaters already running on hosts are not stopped.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateJobDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/Update/Dismiss": {
      "post": {
        "tags": [
          "SystemUpdate"
        ],
        "summary": "Dismiss a finished update",
        "description": "Hides a terminal job from the active view. In-progress jobs cannot be dismissed.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateJobDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/TCATask/{taskId}/Start": {
      "post": {
        "tags": [
          "TCATask"
        ],
        "summary": "Start task",
        "description": "Starts execution of the task identified by `taskId`. Returns `404` if no matching task exists.",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "description": "The ID of the task to start.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCAApiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/TCATask/{taskId}/Cancel": {
      "post": {
        "tags": [
          "TCATask"
        ],
        "summary": "Cancel task",
        "description": "Cancels the running task identified by `taskId`. Returns `400` with the failure message if the\ncancellation could not be performed.",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "description": "The ID of the task to cancel.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/TCATask/{taskId}/Steps": {
      "get": {
        "tags": [
          "TCATask"
        ],
        "summary": "Get task steps",
        "description": "Returns the ordered list of steps for the task identified by `taskId`, including each step's logs\nsorted by key.\n            \nEach step's `debugLogs` (and `displayDebugLog`) are returned <em>only</em> to admins and\ntop-level sub-admins; for everyone else they come back empty. Debug logs carry internals — absolute\npaths, command lines, stack traces — that a customer has no business reading, and this endpoint is\nreachable by any user who can see the task, so the restriction has to live here and not merely in the\nUI that renders it.",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "description": "The ID of the task whose steps are requested.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TCATaskStepDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/TCATask/{taskId}/LiveProgress": {
      "get": {
        "tags": [
          "TCATask"
        ],
        "summary": "Get live task progress",
        "description": "Returns the latest retained progress snapshot for the task (status + current step + progress\n+ any structured `data` counters the handler published). The DB row isn't written\nmid-run, so the task dialog uses this to show the current state on open instead of the stale\npersisted row.\n            \nWhen nothing is retained — the task never ran, it finished more than the snapshot TTL ago, or\nRedis is unavailable — the response is <em>synthesized from the persisted rows</em> instead\n(task status + the most relevant step's status/progress/`ProgressData`), so a dialog\nre-attaching to an old or already-finished task still gets its counters. `null` only\nwhen the task has no steps at all.",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "description": "The ID of the task whose live progress is requested.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskLiveProgressDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/TCATask/LiveProgress": {
      "post": {
        "tags": [
          "TCATask"
        ],
        "summary": "Get live progress for several tasks",
        "description": "The batch form of `GET {taskId}/LiveProgress`, for a dialog watching one run that spans\nmany tasks (e.g. the per-server \"Update Existing Services\" tasks — see\ndocs/UPDATE_EXISTING_SERVICES.md) so it can poll once instead of once per task.\n            \nIds the caller may not see are silently dropped (same row-level visibility as the single\nendpoint: a customer only sees their own tasks), as are ids with no steps — match the result\nback by its `taskId` rather than by position. At most 500 ids per call; extras are\nignored. Each entry is the retained Redis snapshot when there is one, else synthesized from\nthe persisted rows.",
        "requestBody": {
          "description": "The task IDs to read (max 500).",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskLiveProgressDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/TCATask/Calendar": {
      "get": {
        "tags": [
          "TCATask"
        ],
        "summary": "Get calendar tasks",
        "description": "Returns the tasks scheduled in `[from, to)` for the task calendar, together with the\nperiod's task count per status.\n            \nThe counts are a `GROUP BY` over the same range as the items, so the calendar's header\ncan't drift from what the calendar draws — and they cover *every* status regardless of\n`status`, which narrows the returned items only. That keeps the header showing the\nperiod's composition while one status is selected.\n            \nBoth bounds are UTC instants: the caller converts the viewer's local day/week/month\nboundaries to UTC and converts the returned times back.",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "Start of the period (UTC, inclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "End of the period (UTC, exclusive).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Optional status to narrow the returned items to.",
            "schema": {
              "$ref": "#/components/schemas/ETaskStatus"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskCalendarDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/TCATask/{id}": {
      "get": {
        "tags": [
          "TCATask"
        ],
        "summary": "Get task by id",
        "description": "Row-secured: `base.Get` reads through `GetSecureDbSet`, whose `TCATask` expression\npins a user to `OwnerId == their own id` (a sub-user to their parent's), so a task belonging\nto anyone else is simply not found — ownership IS the gate here, which is why\nTCAdmin.Web.SDK.Attributes.RequiresNoPermissionAttribute waives the permission requirement.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the task to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "TCATask"
        ],
        "summary": "Delete task",
        "description": "Deletes the task identified by `id`. A task that is currently running cannot be deleted — cancel it\nfirst; attempting to delete a running task returns `400`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the task to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      },
      "put": {
        "tags": [
          "TCATask"
        ],
        "summary": "Update entity",
        "description": "Updates an existing entity, applying only the properties the\ncurrent user is permitted to modify and preserving primary keys. The primary key in both the URL and the\nDTO must match the existing entity; mismatches return `400 Bad Request`, and a missing entity\nreturns `404 Not Found`. Properties denied by the security filter retain their existing values, and\nthe update is written to the activity log.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The DTO containing the new values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TCATaskDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TCATaskDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TCATaskDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/TCATask/Search": {
      "get": {
        "tags": [
          "TCATask"
        ],
        "summary": "Search tasks",
        "description": "Delegates to the generic search, then resolves each returned task's persisted `DisplayName`\nenvelope to the requester's language (rule 3). The base Search maps entities to DTOs without a\nper-item hook, so the resolution is applied here on the materialized page.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/TCATask": {
      "post": {
        "tags": [
          "TCATask"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TCATaskDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TCATaskDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TCATaskDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Theme/{id}": {
      "put": {
        "tags": [
          "Theme"
        ],
        "summary": "Update theme",
        "description": "Updates a theme. If the supplied theme is marked as default (`IsDefault`), all other themes\nare cleared of their default flag before the update is applied.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the theme to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated theme data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TCAThemeDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TCAThemeDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TCAThemeDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Theme"
        ],
        "summary": "Delete theme",
        "description": "Deletes a theme. The default theme cannot be deleted and the attempt is rejected with a `400`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the theme to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      },
      "get": {
        "tags": [
          "Theme"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Theme/AvailableThemes": {
      "get": {
        "tags": [
          "Theme"
        ],
        "summary": "List available themes",
        "description": "Gets all themes available for the requesting host — the panel's theme catalog, fetched once per\nboot. Each theme's layout templates are rendered server-side into sanitized HTML for the\nCALLER's context: the curated model carries the signed-in user's name for authenticated callers\nand is anonymous for the login page (the endpoint is anonymous so the login page can call it).\nThe response carries a content-derived weak `ETag` with `Cache-Control: private, no-cache`\nand a matching `If-None-Match` gets an empty `304`, so the browser re-downloads the\ncatalog only when a theme or template changed. See docs/LAYOUT_TEMPLATES.md (\"Theme catalog delivery\").",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TCAThemeDto"
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          }
        }
      }
    },
    "/api/Theme/ExportAll": {
      "get": {
        "tags": [
          "Theme"
        ],
        "summary": "Export all themes",
        "description": "Exports every accessible theme as an individual JSON file, bundled into a single downloadable ZIP archive.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Theme/Import": {
      "post": {
        "tags": [
          "Theme"
        ],
        "summary": "Import theme",
        "description": "Imports a theme from an uploaded JSON configuration file. When `themeId` is supplied the\nexisting theme is updated; otherwise a new theme is created. The upload is rejected with a\n`400` if it is empty, and invalid JSON content is rejected.",
        "parameters": [
          {
            "name": "themeId",
            "in": "query",
            "description": "Optional ID of an existing theme to import into; when omitted a new theme is created.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "themeConfigFile": {
                    "type": "string",
                    "description": "The uploaded theme configuration file in JSON format.",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "themeConfigFile": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Theme/{themeId}/Copy": {
      "post": {
        "tags": [
          "Theme"
        ],
        "summary": "Copy theme",
        "description": "Creates a new, non-default theme from this one, not bound to any hostname. A blank `name` becomes\n\"Copy of {original name}\".",
        "parameters": [
          {
            "name": "themeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CopyEntityRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CopiedEntityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Theme/{themeId}/Export": {
      "get": {
        "tags": [
          "Theme"
        ],
        "summary": "Export theme",
        "description": "Exports a single theme's configuration as JSON. When `downloadAsFile` is true the export is\nreturned as a downloadable JSON file; otherwise it is returned as an inline JSON payload.",
        "parameters": [
          {
            "name": "themeId",
            "in": "path",
            "description": "The ID of the theme to export.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "downloadAsFile",
            "in": "query",
            "description": "When true, returns the export as a downloadable JSON file; otherwise returns it inline.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Theme/Search": {
      "get": {
        "tags": [
          "Theme"
        ],
        "summary": "Search entities",
        "description": "Searches the entities, applying the supplied filtering, sorting,\nand paging criteria and returning the matching results as DTOs. The query runs against a\nsecurity-filtered set, so only entities the current user may access are returned.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Theme": {
      "post": {
        "tags": [
          "Theme"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TCAThemeDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TCAThemeDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TCAThemeDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/System/UpdateSettings/Settings": {
      "get": {
        "tags": [
          "UpdateSettings"
        ],
        "summary": "Get update channel settings",
        "description": "Gets the configured update channel, creating the default (\"Beta\") if none exists.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateSettingsDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "UpdateSettings"
        ],
        "summary": "Save update channel settings",
        "description": "Validates and persists the cluster-wide update channel.",
        "requestBody": {
          "description": "The channel to persist.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSettingsDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSettingsDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSettingsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateSettingsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/User": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Create user",
        "description": "Creates a new user, validating uniqueness of username, email, and billing ID and validating the time\nzone. A random initial password is assigned, and the new user's owner is derived from the caller's\nrole. The caller cannot create a user of an equal or higher rank unless the caller is an\nadministrator, and sub-users cannot create users. Successful creation is written to the activity log.",
        "requestBody": {
          "description": "The user to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UserDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UserDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/{id}": {
      "delete": {
        "tags": [
          "User"
        ],
        "summary": "Delete user",
        "description": "Deletes a user. The caller cannot delete a user of an equal or higher rank unless the caller is an\nadministrator (a lower `UserType` value denotes a higher rank).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the user to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      },
      "put": {
        "tags": [
          "User"
        ],
        "summary": "Update user",
        "description": "Updates an existing user, validating uniqueness of username, email, and billing ID and validating the\ntime zone. The caller cannot update a user of an equal or higher rank unless the caller is an\nadministrator (a lower `UserType` value denotes a higher rank).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the user to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated user values.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UserDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UserDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/User/Me": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Get current user",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "User"
        ],
        "summary": "Update current user profile",
        "description": "Updates the currently authenticated user's profile fields — first name, last name, email, and time\nzone. Only non-null fields in the request are applied; omitted fields are left unchanged.",
        "requestBody": {
          "description": "The profile fields to update; only non-null fields are applied.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/Language": {
      "put": {
        "tags": [
          "User"
        ],
        "summary": "Set current user's preferred language",
        "description": "Sets (or clears) the currently authenticated user's preferred panel + email language. A\nnull/empty `LanguageId` clears the preference; a non-empty value must name an enabled\nlanguage. A dedicated endpoint because `PUT /Me` treats null as \"leave unchanged\", which\ncollides with null-means-default here.",
        "requestBody": {
          "description": "The language to set, or null/empty to clear the preference.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePreferredLanguageDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePreferredLanguageDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePreferredLanguageDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/Dashboard/{widgetType}": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Get current user's dashboard layout",
        "description": "Returns the currently authenticated user's saved widget layout for one dashboard, or an empty\nlist when they have never arranged it (the client then renders the default widgets). The layout\nlives on the account rather than the browser, so it roams across devices, an admin\nimpersonating a user sees the dashboard that user actually sees, and a demo account can be\nhanded a pre-arranged one.",
        "parameters": [
          {
            "name": "widgetType",
            "in": "path",
            "description": "The dashboard id, e.g. `Home`. Case-insensitive.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardWidgetDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "User"
        ],
        "summary": "Save current user's dashboard layout",
        "description": "Replaces the currently authenticated user's saved widget layout for one dashboard. An empty\nlist clears it, so the next load falls back to the default widgets. The layout is stored as an\nopaque JSON blob in its own `tc_user_dashboards` row — the server validates only its size\nand shape, never the contents of a widget's `configuration`.\n\nUnder impersonation this writes to the impersonated user (that is the supported way to arrange\na dashboard on someone's behalf). For a demo account the write is refused by the demo-mode\ninterceptor like every other database write.",
        "parameters": [
          {
            "name": "widgetType",
            "in": "path",
            "description": "The dashboard id, e.g. `Home`. Case-insensitive.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The widgets to save, in visual order.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DashboardWidgetDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DashboardWidgetDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DashboardWidgetDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DashboardWidgetDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/ChangePassword": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Change current user password",
        "description": "Changes the currently authenticated user's password after verifying their current password. When the\naccount has a second factor, a step-up grace token (`Me/StepUp/Verify`) is required as well. The new\npassword and its confirmation must match. The change is written to the target user's activity feed\n(attributed as `self`).",
        "requestBody": {
          "description": "The current password, the new password with confirmation, and the step-up token.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/ChangeDefaultPassword": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Change default password",
        "description": "Changes the password without requiring the current password, but only while the user still has the\nshipped default password — otherwise the request is rejected. The new password and its confirmation\nmust match. On success the user is re-signed in with the updated security stamp to avoid being logged\nout, and the change is written to the activity feed (attributed as `self`, `fromDefault`).",
        "requestBody": {
          "description": "The new password and its confirmation.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeDefaultPasswordDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeDefaultPasswordDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeDefaultPasswordDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/Permissions": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Get current user permissions",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GrantedPermissionDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Timezones": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "List time zones",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TimeZoneInfo"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/User/{userId}/Roles": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Get user roles",
        "description": "Returns the roles assigned to a user, with server-side filtering, sorting, and paging applied via the\nsupplied `query`.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The user ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RoleDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/User/{userId}/Roles/{roleId}/Grant": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Grant user role",
        "description": "Grants the role identified by `roleId` to the user. The assignment is written to the user's\nactivity feed.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The user ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "roleId",
            "in": "path",
            "description": "The ID of the role to grant.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/{userId}/Roles/{roleId}/Revoke": {
      "delete": {
        "tags": [
          "User"
        ],
        "summary": "Revoke user role",
        "description": "Revokes the role identified by `roleId` from the user. The revocation is written to the user's\nactivity feed.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The user ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "roleId",
            "in": "path",
            "description": "The ID of the role to revoke.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/{userId}/Roles/Available": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "List assignable roles",
        "description": "Returns the roles that can still be assigned to a user — roles whose type matches the user's type,\nthat are not already assigned, and that the caller may grant (global roles or the caller's own tenant's).",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The user ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RoleDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/User/{userId}/SetRoleType": {
      "put": {
        "tags": [
          "User"
        ],
        "summary": "Set user role type",
        "description": "Sets a user's role type, clearing all existing roles and granting the matching built-in role\n(Administrator, SubAdministrator, or User). The caller cannot change a user of a higher rank unless\nthe caller is an administrator (a lower `UserType` value denotes a higher rank).",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The user ID.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "roleType",
            "in": "query",
            "description": "The new role type to assign to the user.",
            "schema": {
              "$ref": "#/components/schemas/ERoleType"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/{userId}/ChangePassword": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Change another user's password",
        "description": "Changes another user's password administratively, without requiring the target user's current\npassword. The caller cannot change the password of a user of an equal or higher rank unless the caller\nis an administrator or is the target user themselves. The new password and its confirmation must\nmatch. The change is written to the target user's activity feed (attributed as `self` or\n`admin`).",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The ID of the user whose password is being changed.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The new password and its confirmation.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminChangePasswordDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminChangePasswordDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminChangePasswordDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/StepUp/Requirements": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Get which step-up proofs the current user can give",
        "description": "Under impersonation these are the impersonating administrator's factors. With a second factor enrolled\nonly an authenticator code, recovery code or passkey is accepted; the password only without one.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StepUpRequirementsDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/StepUp/Passkey/Begin": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Begin a passkey step-up assertion",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StepUpPasskeyBeginDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/StepUp/Verify": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Verify a step-up proof and receive a short-lived grace token",
        "description": "The token is accepted by every step-up-gated endpoint for five minutes. Wrong proofs count toward the\ncaller's login-protection failures (source `stepup`); a banned IP gets `banned` without a check.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StepUpVerifyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StepUpVerifyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StepUpVerifyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StepUpVerifyResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/TwoFactor/Status": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Get the current user's 2FA status",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwoFactorStatusDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/TwoFactor/Totp/Begin": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Begin TOTP enrollment — returns the secret and a QR code",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BeginTotpResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/TwoFactor/Totp/Confirm": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Confirm TOTP enrollment and receive recovery codes",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmTotpDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmTotpDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmTotpDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecoveryCodesDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/TwoFactor/Disable": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Disable 2FA for the current user (requires step-up verification)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DisableTwoFactorDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DisableTwoFactorDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DisableTwoFactorDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/User/Me/TwoFactor/RecoveryCodes/Regenerate": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Regenerate recovery codes (requires step-up verification)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateRecoveryCodesDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateRecoveryCodesDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateRecoveryCodesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecoveryCodesDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/TwoFactor/TrustedDevices": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "List the current user's trusted devices",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrustedDeviceDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/TwoFactor/TrustedDevices/{deviceId}": {
      "delete": {
        "tags": [
          "User"
        ],
        "summary": "Revoke a trusted device",
        "parameters": [
          {
            "name": "deviceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/User/Me/Passkeys": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "List the current user's passkeys",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PasskeyDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/Passkeys/Register/Begin": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Begin passkey registration (requires step-up verification — prevents a hijacked session from enrolling a persistent passkey)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DisableTwoFactorDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DisableTwoFactorDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DisableTwoFactorDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BeginPasskeyRegistrationDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/Passkeys/Register/Complete": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Complete passkey registration",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompletePasskeyRegistrationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompletePasskeyRegistrationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompletePasskeyRegistrationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/Passkeys/{passkeyId}": {
      "put": {
        "tags": [
          "User"
        ],
        "summary": "Rename a passkey",
        "parameters": [
          {
            "name": "passkeyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenamePasskeyDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RenamePasskeyDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RenamePasskeyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "User"
        ],
        "summary": "Delete a passkey (requires step-up verification)",
        "parameters": [
          {
            "name": "passkeyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DisableTwoFactorDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DisableTwoFactorDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DisableTwoFactorDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/User/Me/SshKeys": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "List the current user's SSH keys",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserSshKeyDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Add an SSH key to the current user (requires step-up verification)",
        "description": "Registers an authorized_keys line for SFTP public-key login. RSA (2048 bits or more) and ECDSA keys are\naccepted; Ed25519 and DSA are refused because the SFTP server cannot verify them. Step-up verification\nis required for the same reason as passkey enrollment: a hijacked session must not plant a lasting credential.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserSshKeyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserSshKeyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserSshKeyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSshKeyDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Me/SshKeys/{sshKeyId}": {
      "delete": {
        "tags": [
          "User"
        ],
        "summary": "Remove one of the current user's SSH keys",
        "parameters": [
          {
            "name": "sshKeyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/{userId}/SshKeys": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "List a user's SSH keys",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserSshKeyDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Add an SSH key to a user",
        "description": "Lets an administrator onboard users whose role must log in to SFTP with a key. Same key rules as the\nself-service endpoint; no password is asked. The rank rule applies: only an administrator may act on an\nequal or higher-ranked user.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserSshKeyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserSshKeyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserSshKeyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSshKeyDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/{userId}/SshKeys/{sshKeyId}": {
      "delete": {
        "tags": [
          "User"
        ],
        "summary": "Remove a user's SSH key",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "sshKeyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/{userId}/TwoFactor/Reset": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Reset (disable) another user's 2FA — for lost-device recovery",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/{userId}/Impersonate": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Impersonate a user",
        "description": "Swaps the caller's browser cookie session to the target user's — the session genuinely BECOMES the\ntarget's (their permissions, their data scope, their `GetMe`) — while tagging it with the real\nadministrator via two informational claims. Staff-only and restricted to a STRICTLY-lower tier\n(identical to the SSO mint-tier rule, TCAD-3; no admin bypass): an Admin may impersonate a\nSubAdmin/User/SubUser, a top-level SubAdmin a User/SubUser, never an equal or higher tier and never\nself. Suspended/billing-suspended targets and the system user are refused. Start and end are written\nto the activity log, and every row written during the session is tagged with the impersonator. The\nimpersonated cookie is a SESSION cookie (never persisted). The caller must reload with\n`forceLoad: true` so the new cookie takes effect.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The id of the user to impersonate.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/Search": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Search users",
        "description": "Applies the supplied Gridify filter, sort and paging to the users the caller is permitted to see and\nreturns the matches as `UserDto`s. The built-in SYSTEM user (`UserId` 1) is never returned:\nits exclusion is combined with the caller's filter, so it stays hidden however the query is written.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/User/{userId}/ServicePermissions": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Get sub-user service permissions",
        "description": "Returns each game and Docker service owned by the sub-user's owner along with the feature permissions\navailable for it (derived from the owner's permissions) and the permissions currently granted to this\nsub-user. Each service also carries the blueprint variables the OWNER can edit — the only ones that\nmay be delegated — and the variable grants the sub-user currently holds (intersected with that set, so\na grant the owner has since lost access to is not reported). The endpoint applies only to sub-users;\nother user types are rejected.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The sub user's ID",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SubUserServicePermissionsDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Save sub-user service permissions",
        "description": "Replaces the sub-user's per-service permissions with the supplied set. Each entry is validated: the\nservice must exist and belong to the owner, and only permissions present in the owner's available\nfeatures are applied. Variable grants are validated the same way — every requested variable ID must be\none the owner can edit right now, and a supplied list replaces the service's existing variable grants\nwholesale so dropped (or newly out-of-reach) IDs are pruned; omitting the list leaves them untouched.\nWhen any permission or variable is granted on a\nservice, a `Get` permission is added so the sub-user can see it. Services that are unknown,\nmissing, or not owned by the owner are skipped. The endpoint applies only to sub-users; other user\ntypes are rejected.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The sub user's ID",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "List of service permissions to save",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SaveSubUserServicePermissionsRequest"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SaveSubUserServicePermissionsRequest"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SaveSubUserServicePermissionsRequest"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/User/{userId}/ScriptPermissions/{serviceId}": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Get sub-user script permissions",
        "description": "Returns the custom-action and custom-icon scripts available for a service (filtered by the owner's\nroles) along with whether the sub-user is currently allowed to execute each. Scripts with no roles\nassigned are admin-only and are never listed; owner-authored service scripts are always listed. The\nservice must belong to the sub-user's owner, and the endpoint applies only to sub-users; other user\ntypes are rejected.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The sub user's ID",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SubUserScriptPermissionDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Save sub-user script permissions",
        "description": "Replaces the sub-user's script execute permissions on a service with the supplied script IDs. Only IDs\nthat resolve to scripts the owner can access (matching the owner's roles, or owner-authored service\nscripts) are granted; others — including admin-only scripts with no roles assigned — are ignored.\nA null body is treated as an empty list, which clears all script permissions for the service.\nThe service must belong to the sub-user's owner, and the endpoint applies only to sub-users; other\nuser types are rejected.",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The sub user's ID",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "serviceId",
            "in": "path",
            "description": "The service ID",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "List of script IDs to grant execute permission for",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/UserMessage/Search": {
      "get": {
        "tags": [
          "UserMessage"
        ],
        "summary": "Search my messages",
        "description": "Searches the current user's messages with server-side filtering, sorting, and paging.\nResults exclude the message bodies; use the single-item endpoint to read a message.\nDefaults to newest first.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserMessageInfoDtoPaging"
                }
              }
            }
          }
        }
      }
    },
    "/api/UserMessage/{id}": {
      "get": {
        "tags": [
          "UserMessage"
        ],
        "summary": "Get message by id",
        "description": "Gets one of the caller's messages with its sanitized HTML body.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier of the message.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserMessageDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "UserMessage"
        ],
        "summary": "Delete message",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier of the message to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/UserMessage/UnreadCount": {
      "get": {
        "tags": [
          "UserMessage"
        ],
        "summary": "Get unread message count",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          }
        }
      }
    },
    "/api/UserMessage/PendingForceView": {
      "get": {
        "tags": [
          "UserMessage"
        ],
        "summary": "Get pending force-view messages",
        "description": "Returns the caller's force-view messages that haven't popped yet and stamps them as shown,\nso each pops in a dialog exactly once (announcement ShowOnce semantics). The messages stay\nunread in the inbox until dismissed.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserMessageDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/UserMessage/{id}/MarkRead": {
      "post": {
        "tags": [
          "UserMessage"
        ],
        "summary": "Mark message read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The identifier of the message to mark read.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/UserMessage/MarkAllRead": {
      "post": {
        "tags": [
          "UserMessage"
        ],
        "summary": "Mark all messages read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/UserOAuthLink/MyLinks": {
      "get": {
        "tags": [
          "UserOAuthLink"
        ],
        "summary": "List my OAuth links",
        "description": "Gets all OAuth provider links for the currently authenticated user.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserOAuthLinkDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/UserOAuthLink/{linkId}/Unlink": {
      "delete": {
        "tags": [
          "UserOAuthLink"
        ],
        "summary": "Unlink my OAuth provider",
        "description": "Removes an OAuth provider link owned by the currently authenticated user. The link is only\ndeleted when it belongs to the caller; otherwise a `404` is returned.",
        "parameters": [
          {
            "name": "linkId",
            "in": "path",
            "description": "The ID of the OAuth link to remove.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/UserOAuthLink/User/{userId}": {
      "get": {
        "tags": [
          "UserOAuthLink"
        ],
        "summary": "Get user OAuth links",
        "description": "Gets all OAuth provider links for a specific user. Requires the `GetUserOAuthLinks`\npermission (admin only).",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The ID of the user whose OAuth links should be retrieved.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserOAuthLinkDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/UserOAuthLink/{linkId}/ForceUnlink": {
      "delete": {
        "tags": [
          "UserOAuthLink"
        ],
        "summary": "Force unlink user OAuth provider",
        "description": "Force unlinks an OAuth provider from a user, regardless of ownership. Requires the\n`ForceOAuthUnlink` permission (admin only). Returns `404` when the link does not exist.",
        "parameters": [
          {
            "name": "linkId",
            "in": "path",
            "description": "The ID of the OAuth link to remove.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/UserOAuthLink/Search": {
      "get": {
        "tags": [
          "UserOAuthLink"
        ],
        "summary": "Search entities",
        "description": "Searches the entities, applying the supplied filtering, sorting,\nand paging criteria and returning the matching results as DTOs. The query runs against a\nsecurity-filtered set, so only entities the current user may access are returned.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/UserOAuthLink/{id}": {
      "get": {
        "tags": [
          "UserOAuthLink"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "UserOAuthLink"
        ],
        "summary": "Update entity",
        "description": "Updates an existing entity, applying only the properties the\ncurrent user is permitted to modify and preserving primary keys. The primary key in both the URL and the\nDTO must match the existing entity; mismatches return `400 Bad Request`, and a missing entity\nreturns `404 Not Found`. Properties denied by the security filter retain their existing values, and\nthe update is written to the activity log.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The DTO containing the new values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserOAuthLinkDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UserOAuthLinkDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UserOAuthLinkDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "UserOAuthLink"
        ],
        "summary": "Delete entity",
        "description": "Deletes the entity with the specified primary key. A snapshot of\nthe entity is captured and written to the activity log before deletion; if the delete affects no rows the\nendpoint returns `500`.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/UserOAuthLink": {
      "post": {
        "tags": [
          "UserOAuthLink"
        ],
        "summary": "Create entity",
        "description": "Creates a new entity from the supplied DTO. The DTO is run through\nthe security filter (only properties the current user may set are applied) before it is mapped and\npersisted, and the creation is written to the activity log.",
        "requestBody": {
          "description": "The DTO describing the entity to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserOAuthLinkDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UserOAuthLinkDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UserOAuthLinkDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/V2ServiceImport/TestConnection": {
      "post": {
        "tags": [
          "V2ServiceImport"
        ],
        "summary": "Test V2 database connection",
        "description": "Tests connectivity to the V2 database using the supplied connection details. Connectivity / DB\nerrors are returned as a `400` with a human-readable message rather than a `500`.",
        "requestBody": {
          "description": "The V2 database connection details to validate.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V2ConnectionInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/V2ConnectionInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/V2ConnectionInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/V2ServiceImport/ListServers": {
      "post": {
        "tags": [
          "V2ServiceImport"
        ],
        "summary": "List V2 servers",
        "description": "Lists the servers defined in the V2 database.",
        "requestBody": {
          "description": "The V2 database connection details.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V2ConnectionInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/V2ConnectionInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/V2ConnectionInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/V2ServiceImport/ListGames": {
      "post": {
        "tags": [
          "V2ServiceImport"
        ],
        "summary": "List V2 games",
        "description": "Lists the games defined in the V2 database.",
        "requestBody": {
          "description": "The V2 database connection details.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V2ConnectionInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/V2ConnectionInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/V2ConnectionInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/V2ServiceImport/ListServices": {
      "post": {
        "tags": [
          "V2ServiceImport"
        ],
        "summary": "List V2 services on a server",
        "description": "Lists the services hosted on the V2 server identified by `v2ServerId`.",
        "parameters": [
          {
            "name": "v2ServerId",
            "in": "query",
            "description": "The ID of the V2 server whose services should be listed.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "description": "The V2 database connection details.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V2ConnectionInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/V2ConnectionInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/V2ConnectionInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/V2ServiceImport/AlreadyImported": {
      "get": {
        "tags": [
          "V2ServiceImport"
        ],
        "summary": "Get already-imported service map",
        "description": "Returns a map of V2 service id → V3 service id for V2-imported V3 services that still exist.\nThe wizard uses this to flag rows that are already imported (so the admin sees re-import state).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "integer",
                    "format": "int64"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/V2ServiceImport/CreateImportTask": {
      "post": {
        "tags": [
          "V2ServiceImport"
        ],
        "summary": "Create V2 service import task",
        "description": "Composes and executes a multi-step `TCATask` that imports the selected V2 services into V3.\nThe task is owned by the current user and assigned to the first enabled master server (falling\nback to the default server when none is flagged `IsMaster`). Step 1 runs on the master to\nresolve V2 users; subsequent steps are bucketed one-per-target-V3-server via\n`V2ServiceToV3Server`. Returns `400` when no services are selected or when none of the\nselected services map to a V3 server.",
        "requestBody": {
          "description": "The import plan describing the selected services, user/server/game mappings, and connection details.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V2ServiceImportPlanRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/V2ServiceImportPlanRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/V2ServiceImportPlanRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TCATaskDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Variable/Search": {
      "get": {
        "tags": [
          "Variable"
        ],
        "summary": "Search global variables",
        "description": "Searches global variables using a Gridify query for filtering, sorting, and paging. Results are\nordered by `Name` when no ordering is supplied. Role information is omitted from the results\nwhen the current user lacks permission to view roles.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Variable/Permissions": {
      "put": {
        "tags": [
          "Variable"
        ],
        "summary": "Update variable role permissions",
        "description": "Applies a batch of role permission changes to global variables. For each variable, newly granted\nroles are added and roles the caller is allowed to revoke are removed; roles matching the current\nuser's own user type are never removed. All changes are persisted in a single save.",
        "requestBody": {
          "description": "The list of variables with their desired role permissions.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VariablePermissionDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VariablePermissionDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/VariablePermissionDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Variable/{variableId}": {
      "get": {
        "tags": [
          "Variable"
        ],
        "summary": "Get global variable",
        "description": "Gets a single global variable by its ID, including its blueprint and role associations. Returns\n`404` when no matching global variable exists.",
        "parameters": [
          {
            "name": "variableId",
            "in": "path",
            "description": "The ID of the global variable to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Variable"
        ],
        "summary": "Update global variable",
        "description": "Updates an existing global variable. When no template is supplied it defaults to `${Name}`,\nand the editor control's ID, required flag, and required message are synced from the variable\nbefore saving. The default value is converted to the editor's expected type. Returns `404`\nwhen no matching global variable exists, and `400` when the caller tries to rename a\nbuilt-in variable (see TCAdmin.SDK.Constants.BuiltInVariables); every other property of a built-in\nvariable stays editable.",
        "parameters": [
          {
            "name": "variableId",
            "in": "path",
            "description": "The ID of the global variable to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The updated variable values.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VariableDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VariableDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VariableDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Variable"
        ],
        "summary": "Delete global variable",
        "description": "Deletes a global variable by its ID. Returns `404` when no matching global variable exists,\nand `400` when the variable is a built-in one (see TCAdmin.SDK.Constants.BuiltInVariables) — those\nmay never be deleted.",
        "parameters": [
          {
            "name": "variableId",
            "in": "path",
            "description": "The ID of the global variable to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Variable": {
      "post": {
        "tags": [
          "Variable"
        ],
        "summary": "Create global variable",
        "description": "Creates a new global variable. Fails if a global variable with the same name already exists. When\nno template is supplied it defaults to `${Name}`, and the editor control's ID, required flag,\nand required message are synced from the variable before saving. The default value is converted to\nthe editor's expected type.",
        "requestBody": {
          "description": "The variable values to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VariableDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VariableDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VariableDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/VirtualServer": {
      "post": {
        "tags": [
          "VirtualServer"
        ],
        "summary": "Create virtual server",
        "description": "Creates a new virtual server, first ensuring its `billingId` is unique across servers, virtual\nservers, and services.",
        "requestBody": {
          "description": "The DTO describing the virtual server to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VirtualServerDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VirtualServerDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VirtualServerDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/VirtualServer/{id}": {
      "put": {
        "tags": [
          "VirtualServer"
        ],
        "summary": "Update virtual server",
        "description": "Updates an existing virtual server, first ensuring its `billingId` remains unique (excluding itself).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the virtual server to update.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "The DTO containing the new values to apply.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VirtualServerDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VirtualServerDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VirtualServerDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "VirtualServer"
        ],
        "summary": "Delete virtual server",
        "description": "Deletes a virtual server, but only if no game services are still assigned to it. If any services remain\nassigned, the request is rejected with a 400 listing the blocking service count.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the virtual server to delete.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      },
      "get": {
        "tags": [
          "VirtualServer"
        ],
        "summary": "Get entity by id",
        "description": "Gets a single entity by its primary key, mapped to a\nsecurity-filtered DTO. Access is denied if the current user is not permitted to\nview the entity (or it does not exist).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The primary key of the entity to retrieve.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/VirtualServer/Search": {
      "get": {
        "tags": [
          "VirtualServer"
        ],
        "summary": "Search virtual servers",
        "description": "Searches virtual servers using the supplied filtering, sorting, and paging criteria, including each\nvirtual server's parent server and a count of the game services currently assigned to it.",
        "parameters": [
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/VirtualServer/ByServer/{serverId}": {
      "get": {
        "tags": [
          "VirtualServer"
        ],
        "summary": "List virtual servers by physical server",
        "description": "Returns all virtual servers that belong to the specified physical server, with each parent server\nincluded.",
        "parameters": [
          {
            "name": "serverId",
            "in": "path",
            "description": "The ID of the physical server whose virtual servers should be returned.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VirtualServerInfoDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/VirtualServer/Validate": {
      "post": {
        "tags": [
          "VirtualServer"
        ],
        "summary": "Validate virtual server",
        "description": "Validates a virtual server definition before save, checking its CPU affinity mask for overlaps with the\nCPU affinity of other virtual servers on the same physical server. On overlap, returns a 400 with a list\nof human-readable errors naming the conflicting CPUs and virtual server.",
        "requestBody": {
          "description": "The virtual server definition to validate, including its server ID and CPU affinity mask.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VirtualServerDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/VirtualServerDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/VirtualServerDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Website/ImageProxy": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Proxy remote image",
        "description": "Proxies a remote image through the server, forwarding most client headers (excluding `Referer`\nand hop-by-hop headers) and relaying caching headers from the origin. The client's real `Referer`\nis dropped and a forged one matching the image's own origin is sent, so origins with hotlink protection\nsee a same-site referral and serve the image. Only HTTP/HTTPS resources whose\nresponse content type begins with `image/` are allowed; `Access-Control-Allow-Origin: *` is set\non the proxied response.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "description": "The absolute HTTP or HTTPS URL of the image to fetch.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/api/Website/CertificateConfig": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Get certificate config",
        "description": "Gets the current TLS certificate configuration, including the installed certificate's\ndetails (common name, issuer, validity, subject alternative names) and ACME account state.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateConfig"
                }
              }
            }
          }
        }
      }
    },
    "/api/Website/CreateCertificate": {
      "post": {
        "tags": [
          "Website"
        ],
        "summary": "Create certificate (HTTP-01)",
        "description": "Requests and installs a new TLS certificate using ACME HTTP-01 validation. For staging\nrequests the resulting certificate is discarded; otherwise it is applied to Kestrel. When\n`UseSavedAccount` is false, any saved ACME account keys are cleared before the request.",
        "requestBody": {
          "description": "The certificate request details: domains, contact email, staging flag, and whether to reuse a saved ACME account.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCertificateInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCertificateInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCertificateInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateConfig"
                }
              }
            }
          }
        }
      }
    },
    "/api/Website/InitiateDnsValidation": {
      "post": {
        "tags": [
          "Website"
        ],
        "summary": "Initiate DNS-01 validation",
        "description": "Begins an ACME DNS-01 certificate order and returns the DNS TXT records that must be\ncreated to prove domain ownership before validation can be completed. When `UseSavedAccount`\nis false, any saved ACME account keys are cleared before the order is started.",
        "requestBody": {
          "description": "The certificate request details: domains, contact email, and whether to reuse a saved ACME account.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCertificateInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCertificateInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCertificateInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsOrderInfo"
                }
              }
            }
          }
        }
      }
    },
    "/api/Website/CompleteDnsValidation": {
      "post": {
        "tags": [
          "Website"
        ],
        "summary": "Complete DNS-01 validation",
        "description": "Completes a previously initiated ACME DNS-01 certificate order once the required DNS\nrecords have been published, then applies the issued certificate to Kestrel.",
        "requestBody": {
          "description": "The completion details, including the order state file produced when the order was initiated.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteDnsValidationInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteDnsValidationInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteDnsValidationInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateConfig"
                }
              }
            }
          }
        }
      }
    },
    "/api/Website/UploadCertificate": {
      "post": {
        "tags": [
          "Website"
        ],
        "summary": "Upload certificate",
        "description": "Uploads a custom PFX certificate, validates that it loads and contains a private key, saves it as\n`custom.pfx`, and applies it to Kestrel with the `Custom` challenge type. Returns a 400 if no\nfile is supplied, the file is invalid, the password is incorrect, or the certificate has no private key.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "certificateFile": {
                    "type": "string",
                    "description": "The uploaded PFX certificate file.",
                    "format": "binary"
                  },
                  "password": {
                    "type": "string",
                    "description": "The password protecting the PFX file, if any."
                  }
                }
              },
              "encoding": {
                "certificateFile": {
                  "style": "form"
                },
                "password": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateConfig"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Website/LoadingScreen": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Get loading screen config",
        "description": "Gets the loading screen configuration (titles, colors, logo, and custom CSS), falling\nback to the legacy single-title setting or a default `TCADMIN` title when none is configured.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoadingScreenConfigDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Website"
        ],
        "summary": "Save loading screen config",
        "description": "Saves the loading screen configuration into the application's `appsettings.Overrides.json` file,\nremoving the legacy single-title key and persisting only non-default values. A temporary backup of the\nexisting overrides file is taken during the write.",
        "requestBody": {
          "description": "The loading screen configuration to persist.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoadingScreenConfigDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LoadingScreenConfigDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LoadingScreenConfigDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Website/RestartWeb": {
      "post": {
        "tags": [
          "Website"
        ],
        "summary": "Restart web service",
        "description": "Requests the host's monitor service (via the server's SignalR monitor client) to restart the web application.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ActiveAnnouncementDto": {
        "type": "object",
        "properties": {
          "announcementId": {
            "type": "integer",
            "format": "int64"
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "nullable": true
          },
          "severity": {
            "$ref": "#/components/schemas/EAnnouncementSeverity"
          },
          "displayType": {
            "$ref": "#/components/schemas/EAnnouncementDisplayType"
          },
          "displayBehavior": {
            "$ref": "#/components/schemas/EAnnouncementDisplayBehavior"
          },
          "customIcon": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ActivityLogDeleteResultDto": {
        "type": "object",
        "properties": {
          "deleted": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ActivityLogDto": {
        "type": "object",
        "properties": {
          "activityLogId": {
            "type": "integer",
            "description": "Primary key for the activity log entry.",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "description": "The ID of the user who performed the action.\nNull for system-generated entries (e.g., failed login attempts).",
            "format": "int64",
            "nullable": true
          },
          "username": {
            "type": "string",
            "description": "The username of the user who performed the action.",
            "nullable": true
          },
          "targetUsername": {
            "type": "string",
            "description": "The username of the target user (when EntityType is \"User\").\nDerived from EntityId lookup.",
            "nullable": true
          },
          "ipAddress": {
            "type": "string",
            "description": "The IP address from which the action was performed.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp when the action occurred (UTC).",
            "format": "date-time"
          },
          "category": {
            "type": "string",
            "description": "The category of the action (e.g., Auth, FileManager, Service).",
            "nullable": true
          },
          "action": {
            "type": "string",
            "description": "The specific action performed (e.g., Login, Logout, Create, Update).",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Human-readable description of the action.",
            "nullable": true
          },
          "entityType": {
            "type": "string",
            "description": "The type of entity affected by the action (e.g., GameService, User, Server).",
            "nullable": true
          },
          "entityId": {
            "type": "string",
            "description": "The ID of the entity affected by the action.",
            "nullable": true
          },
          "details": {
            "type": "string",
            "description": "JSON-serialized details containing old/new values for change tracking.\nOnly included when viewing single log entry with appropriate permissions.",
            "nullable": true
          },
          "detailsPreview": {
            "type": "string",
            "description": "Preview of the details (first 100 characters).",
            "nullable": true
          },
          "success": {
            "type": "boolean",
            "description": "Whether the operation was successful (extracted from details).\nNull if not applicable or unknown.",
            "nullable": true
          },
          "overrideAction": {
            "type": "string",
            "description": "Optional display-action override for icon and color rendering. When set, the UI\nmaps icon / color / severity from this action instead of TCAdmin.Web.Shared.Models.ActivityLog.ActivityLogDto.Action.\nUsed so a system-emitted entry like `action=Monitoring` can render as the\nremediation icon the monitor actually chose (e.g. the Stop icon when the chosen\nremediation was Stop). Populated by the controller from a top-level\n`overrideAction` field in the entry's Details JSON.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Data transfer object for activity log entries."
      },
      "ActivityLogFilterDto": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "description": "Filter by user ID who performed the action.",
            "format": "int64",
            "nullable": true
          },
          "category": {
            "type": "string",
            "description": "Filter by category (e.g., Auth, FileManager, Service).",
            "nullable": true
          },
          "action": {
            "type": "string",
            "description": "Filter by action (e.g., Login, Logout, Create, Update).",
            "nullable": true
          },
          "entityType": {
            "type": "string",
            "description": "Filter by entity type (e.g., GameService, User, Server).",
            "nullable": true
          },
          "entityId": {
            "type": "string",
            "description": "Filter by entity ID.",
            "nullable": true
          },
          "ipAddress": {
            "type": "string",
            "description": "Filter by IP address (partial match supported).",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "description": "Start date for the time range filter (inclusive).",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "description": "End date for the time range filter (inclusive).",
            "format": "date-time",
            "nullable": true
          },
          "search": {
            "type": "string",
            "description": "Free text search across description, username, and entity type.",
            "nullable": true
          },
          "page": {
            "type": "integer",
            "description": "Page number (1-based).",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "description": "Number of items per page.",
            "format": "int32"
          },
          "sortBy": {
            "type": "string",
            "description": "Sort by field (default: Timestamp).",
            "nullable": true
          },
          "sortDescending": {
            "type": "boolean",
            "description": "Sort in descending order (default: true for most recent first)."
          }
        },
        "additionalProperties": false,
        "description": "Filter parameters for querying activity logs."
      },
      "ActivityLogPagedResultDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityLogDto"
            },
            "description": "The list of activity log entries.",
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "description": "Total number of items matching the filter.",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "description": "Current page number (1-based).",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "description": "Number of items per page.",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "description": "Total number of pages.",
            "format": "int32",
            "readOnly": true
          },
          "hasPreviousPage": {
            "type": "boolean",
            "description": "Whether there is a previous page.",
            "readOnly": true
          },
          "hasNextPage": {
            "type": "boolean",
            "description": "Whether there is a next page.",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "Paged result for activity log queries."
      },
      "ActivityLogSettingsDto": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Whether activity logging is enabled."
          },
          "databaseRetentionDays": {
            "type": "integer",
            "description": "Number of days to retain activity logs in the database.",
            "format": "int32"
          },
          "fileRetentionDays": {
            "type": "integer",
            "description": "Number of days to retain activity log files.",
            "format": "int32"
          },
          "compressFiles": {
            "type": "boolean",
            "description": "Whether to compress older log files to save disk space."
          },
          "compressAfterDays": {
            "type": "integer",
            "description": "Number of days after which log files should be compressed.",
            "format": "int32"
          },
          "perUserFiles": {
            "type": "boolean",
            "description": "Whether to create separate log files per user.\nIf false, global daily log files will be created instead."
          },
          "logSensitiveData": {
            "type": "boolean",
            "description": "Whether to log sensitive data (passwords, API keys, tokens, etc.).\nWARNING: Enabling this may expose sensitive information in logs."
          },
          "writeToFile": {
            "type": "boolean",
            "description": "Whether to write activity logs to files."
          },
          "writeToDatabase": {
            "type": "boolean",
            "description": "Whether to write activity logs to the database."
          },
          "maxFileSizeMB": {
            "type": "integer",
            "description": "Maximum size of a single log file in megabytes before rolling over.",
            "format": "int32"
          },
          "excludedCategories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Categories to exclude from logging.",
            "nullable": true
          },
          "excludedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Actions to exclude from logging.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Data transfer object for activity log settings."
      },
      "AddressFamily": {
        "enum": [
          "Unspecified",
          "Unix",
          "InterNetwork",
          "ImpLink",
          "Pup",
          "Chaos",
          "NS",
          "Iso",
          "Ecma",
          "DataKit",
          "Ccitt",
          "Sna",
          "DecNet",
          "DataLink",
          "Lat",
          "HyperChannel",
          "AppleTalk",
          "NetBios",
          "VoiceView",
          "FireFox",
          "Banyan",
          "Atm",
          "InterNetworkV6",
          "Cluster",
          "Ieee12844",
          "Irda",
          "NetworkDesigners",
          "Max",
          "Packet",
          "ControllerAreaNetwork",
          "Unknown"
        ],
        "type": "string"
      },
      "AdminChangePasswordDto": {
        "type": "object",
        "properties": {
          "newPassword": {
            "type": "string",
            "nullable": true
          },
          "confirmNewPassword": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdvancedThemeSettings": {
        "type": "object",
        "properties": {
          "css": {
            "type": "string",
            "nullable": true
          },
          "js": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AiAssistantSettingsDto": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Feature master switch."
          },
          "feedbackEnabled": {
            "type": "boolean",
            "description": "The \"help improve the assistant\" opt-in (default on): whether users may rate replies with thumbs\nup/down and optionally say why. Off hides the thumbs UI and refuses feedback server-side."
          },
          "assistantName": {
            "type": "string",
            "description": "The assistant's display name, shown as the chat page title and in limit messages (max 60 chars;\nseeded \"Tico\"). Cleared/blank falls back to the generic \"AI Assistant\" label.",
            "nullable": true
          },
          "assistantTagline": {
            "type": "string",
            "description": "A short branding line shown after the name on the assistant chat page (e.g. \"Tico — Total\nIntelligent Control Operator\"; max 100 chars). Display/config only — never sent to the model.\nCleared/blank means no tagline is shown.",
            "nullable": true
          },
          "assistantIcon": {
            "type": "string",
            "description": "The assistant's icon everywhere the panel shows one: a MudBlazor-style icon value (SVG fragment\nor built-in icon name). Null/blank falls back to the built-in TCAdmin assistant icon.",
            "nullable": true
          },
          "customPrompt": {
            "type": "string",
            "description": "Optional per-install admin prompt, layered below the canonical platform prompt. It can steer\ntone/scope but cannot unlock tools or bypass confirmation. Null/blank = none.",
            "nullable": true
          },
          "maxToolTurns": {
            "type": "integer",
            "description": "Hard cap on model turns for a single user request (1–100).",
            "format": "int32"
          },
          "maxSessionTokens": {
            "type": "integer",
            "description": "Per-session token budget across all turns (10,000–2,000,000).",
            "format": "int32"
          },
          "maxConcurrentSessions": {
            "type": "integer",
            "description": "Concurrent sessions allowed per install (1–20).",
            "format": "int32"
          },
          "userDailyCreditCap": {
            "type": "integer",
            "description": "Daily prepaid-credit ceiling (whole credits, per UTC day) for users and sub-users. 0 disables it.",
            "format": "int32"
          },
          "subAdminDailyCreditCap": {
            "type": "integer",
            "description": "The same ceiling for TOP-LEVEL sub-admins (staff), counted against their own spend only. 0 disables it.\nA sub-admin inside a customer's tree uses TCAdmin.Web.Shared.Models.AiAssistant.AiAssistantSettingsDto.UserDailyCreditCap; full admins are never\ncapped, so there is no admin equivalent.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "System-wide, admin-tunable AI Assistant settings (singleton). Makes the agent-runtime knobs\nchangeable at runtime from the admin settings page. When TCAdmin.Web.Shared.Models.AiAssistant.AiAssistantSettingsDto.Enabled is false the relay hub\nrefuses to start sessions or stream. The confirmation timeout stays configuration-only and is not\nexposed here."
      },
      "AiAssistantStatusDto": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Feature master switch. When false the nav link hides and the relay hub refuses sessions."
          },
          "assistantName": {
            "type": "string",
            "description": "The assistant's display name when enabled (seeded \"Tico\"), or null when disabled or blank — the\nconsumer falls back to the generic \"AI Assistant\" label, exactly like the chat page title.",
            "nullable": true
          },
          "assistantIcon": {
            "type": "string",
            "description": "The admin-configured assistant icon (a MudBlazor-style icon value) when enabled, or null when\ndisabled or not customized — the consumer falls back to the built-in TCAdmin assistant icon,\nmirroring the name's fallback contract.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The minimal, all-authenticated-users read of the AI Assistant feature state, powering the nav entry\npoint (and any other lightweight \"is the assistant available, and what is it called\" surface). Kept\ndeliberately small — it exposes only the master switch and the display name, never the admin-only\nknobs (caps, custom prompt) the full TCAdmin.Web.Shared.Models.AiAssistant.AiAssistantSettingsDto carries."
      },
      "AiBalance": {
        "type": "object",
        "properties": {
          "balance": {
            "type": "number",
            "format": "double"
          },
          "lowBalance": {
            "type": "boolean"
          },
          "lowBalanceThreshold": {
            "type": "number",
            "format": "double"
          },
          "providers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AiSessionLogDto": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "description": "The monitor-generated session id (GUID \"N\"); the correlation key to the transcript and actions.",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "description": "The owning user's id.",
            "format": "int64"
          },
          "username": {
            "type": "string",
            "description": "The owning user's username, resolved via a batch lookup. Null when the user no longer exists.",
            "nullable": true
          },
          "role": {
            "type": "integer",
            "description": "Session tier the loop ran under (`AiSessionRole` as int: 0 = Admin, 1 = User).",
            "format": "int32"
          },
          "startedAt": {
            "type": "string",
            "description": "When the session was opened (UTC).",
            "format": "date-time"
          },
          "endedAt": {
            "type": "string",
            "description": "When the session ended (UTC); null while it is still live.",
            "format": "date-time",
            "nullable": true
          },
          "serviceId": {
            "type": "integer",
            "description": "The service in scope when the session was opened, if any.",
            "format": "int64",
            "nullable": true
          },
          "pageContext": {
            "type": "string",
            "description": "The panel page the user was on when the session was opened, if any.",
            "nullable": true
          },
          "inputTokens": {
            "type": "integer",
            "description": "Input tokens billed across the whole session.",
            "format": "int64"
          },
          "outputTokens": {
            "type": "integer",
            "description": "Output tokens billed across the whole session.",
            "format": "int64"
          },
          "credits": {
            "type": "number",
            "description": "Credits debited across the whole session, or `null` when no figure was ever recorded — a session\nthat predates the column, ran against an older gateway, or completed no billed turn. Null is UNKNOWN,\nnot free, and the viewer renders it as \"—\" rather than 0.",
            "format": "double",
            "nullable": true
          },
          "messageCount": {
            "type": "integer",
            "description": "Number of persisted messages in the transcript (grouped count, no per-row transcript load).",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "One row in the admin AI chat-log viewer's session list (Tier-1 install-side audit, see\ndocs/AI_ASSISTANT.md \"Logging & Audit\"). A flattened `AiSession` header plus the resolved\nusername and a grouped message count — enough for the list without loading any transcript."
      },
      "AiSessionLogPagedResultDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiSessionLogDto"
            },
            "description": "The list of session rows on this page.",
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "description": "Total number of sessions matching the filter (across all pages).",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "description": "Current page number (1-based).",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "description": "Number of items per page.",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "description": "Total number of pages.",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "Paged result for the admin AI chat-log session list. Mirrors `ActivityLogPagedResultDto`."
      },
      "AiSessionMessageDto": {
        "type": "object",
        "properties": {
          "role": {
            "type": "integer",
            "description": "Author of the message (`AiChatRole` as int: 0 = User, 1 = Assistant, 2 = Tool result).",
            "format": "int32"
          },
          "text": {
            "type": "string",
            "description": "The message text; null for a bare tool-call.",
            "nullable": true
          },
          "toolCallId": {
            "type": "string",
            "description": "Correlation id linking an assistant tool-call to its tool result; null for plain messages.",
            "nullable": true
          },
          "toolName": {
            "type": "string",
            "description": "The tool name for a tool-call / tool-result message; null for plain messages.",
            "nullable": true
          },
          "toolArgumentsJson": {
            "type": "string",
            "description": "The raw tool arguments JSON for a tool-call message; null otherwise.",
            "nullable": true
          },
          "pageContext": {
            "type": "string",
            "description": "For a user message: the page context attached to the send (relative URL + optional entity line),\nexactly as it was carried to the provider; null otherwise. Surfaced in the admin viewer so the\nTier-1 transcript shows everything a turn actually included.",
            "nullable": true
          },
          "blueprintPrompt": {
            "type": "string",
            "description": "For a user message: the admin-authored per-blueprint AI prompt the send carried (resolved from the\npage's service at append time), exactly as it went to the provider; null otherwise. Surfaced in the\nadmin viewer for the same reason as TCAdmin.Web.Shared.Models.AiAssistant.AiSessionMessageDto.PageContext.",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "description": "When the message was written (UTC).",
            "format": "date-time"
          },
          "feedback": {
            "type": "integer",
            "description": "The viewer's thumbs rating on this assistant reply (`+1` up, `-1` down); null = none.",
            "format": "int32",
            "nullable": true
          },
          "feedbackAt": {
            "type": "string",
            "description": "When the rating was set (UTC); null when there is no rating.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One message in an AI session transcript (read-only, for the admin viewer). A flattened\n`AiSessionMessage`: a user turn, an assistant text turn, an assistant tool-call\n(TCAdmin.Web.Shared.Models.AiAssistant.AiSessionMessageDto.ToolName set, TCAdmin.Web.Shared.Models.AiAssistant.AiSessionMessageDto.Text often null), or a tool result\n(TCAdmin.Web.Shared.Models.AiAssistant.AiSessionMessageDto.ToolName set, TCAdmin.Web.Shared.Models.AiAssistant.AiSessionMessageDto.Text holds the result)."
      },
      "AiSessionTranscriptDto": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string",
            "description": "The monitor-generated session id (GUID \"N\").",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "description": "The owning user's id.",
            "format": "int64"
          },
          "username": {
            "type": "string",
            "description": "The owning user's username, resolved server-side. Null when the user no longer exists.",
            "nullable": true
          },
          "role": {
            "type": "integer",
            "description": "Session tier the loop ran under (`AiSessionRole` as int: 0 = Admin, 1 = User).",
            "format": "int32"
          },
          "locale": {
            "type": "string",
            "description": "The user's locale at session start.",
            "nullable": true
          },
          "startedAt": {
            "type": "string",
            "description": "When the session was opened (UTC).",
            "format": "date-time"
          },
          "endedAt": {
            "type": "string",
            "description": "When the session ended (UTC); null while it is still live.",
            "format": "date-time",
            "nullable": true
          },
          "serviceId": {
            "type": "integer",
            "description": "The service in scope when the session was opened, if any.",
            "format": "int64",
            "nullable": true
          },
          "pageContext": {
            "type": "string",
            "description": "The panel page the user was on when the session was opened, if any.",
            "nullable": true
          },
          "inputTokens": {
            "type": "integer",
            "description": "Input tokens billed across the whole session.",
            "format": "int64"
          },
          "outputTokens": {
            "type": "integer",
            "description": "Output tokens billed across the whole session.",
            "format": "int64"
          },
          "maxSessionTokens": {
            "type": "integer",
            "description": "The install's currently configured `MaxSessionTokens` budget, so the viewer can show\nTCAdmin.Web.Shared.Models.AiAssistant.AiSessionTranscriptDto.InputTokens + TCAdmin.Web.Shared.Models.AiAssistant.AiSessionTranscriptDto.OutputTokens as consumption against the limit the agent loop\nactually enforces — a cost circuit-breaker on CUMULATIVE session spend (matching\n`AiChatSession.TotalTokens`), not a context-window size: once the sum crosses it every further\nturn is refused with `session_budget_exceeded`. This is the CURRENT setting, not the one in force\nwhen the session ran — the point of showing it is to let an admin judge whether the budget is set\nsensibly. `0` when no settings row exists yet, and the viewer then shows the raw total with no\ndenominator.",
            "format": "int32"
          },
          "credits": {
            "type": "number",
            "description": "Credits debited across the whole session, or `null` when no figure was ever recorded — a session\nthat predates the column, ran against an older gateway, or completed no billed turn. Null is UNKNOWN,\nnot free, and the viewer renders it as \"—\" rather than 0.",
            "format": "double",
            "nullable": true
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiSessionMessageDto"
            },
            "description": "The transcript messages, ordered chronologically (by message id ascending).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A single AI session's header plus its ordered, read-only transcript for the admin chat-log viewer.\nThe TCAdmin.Web.Shared.Models.AiAssistant.AiSessionTranscriptDto.Messages list is ordered by message id ascending (chronological append order)."
      },
      "AiTranscriptErasureDto": {
        "type": "object",
        "properties": {
          "sessionsDeleted": {
            "type": "integer",
            "description": "Sessions deleted from this panel's database. Their messages go with them (FK cascade).",
            "format": "int32"
          },
          "gatewayRequestsErased": {
            "type": "integer",
            "description": "Gateway request-log rows whose stored content was cleared. Rows already past the 90-day content\nretention window are not counted — their content was gone before this request. Billing rows are never\ndeleted, so this figure is \"conversations erased\", not \"records removed\".",
            "format": "int32"
          },
          "gatewayRatingsDropped": {
            "type": "integer",
            "description": "Gateway thumbs up/down rows dropped, having pointed at content that no longer exists.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "What a transcript-erasure request destroyed, across both copies of the conversation — the install-side\ntranscript (Tier 1, in this panel's own database) and the stored content at TCAdmin's hosted gateway\n(Tier 2). Reported rather than assumed so an admin answering a data-subject request can evidence what\nhappened instead of attesting to a silent success.\n            \n\nThis is returned only when BOTH legs succeeded. A gateway failure is an error response with nothing\ndeleted, never a partial success — see the controller for why the two legs are ordered as they are."
      },
      "AiUsageDay": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "requests": {
            "type": "integer",
            "format": "int32"
          },
          "inputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "cachedInputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "outputTokens": {
            "type": "integer",
            "format": "int64"
          },
          "credits": {
            "type": "number",
            "format": "double"
          },
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiUsageUser"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AiUsageSummary": {
        "type": "object",
        "properties": {
          "days": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AiUsageDay"
            },
            "nullable": true
          },
          "totalCredits": {
            "type": "number",
            "format": "double"
          },
          "totalRequests": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AiUsageUser": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "requests": {
            "type": "integer",
            "format": "int32"
          },
          "credits": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AllowedServerItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "parentServerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "parentServerName": {
            "type": "string",
            "nullable": true
          },
          "operatingSystem": {
            "$ref": "#/components/schemas/EOperatingSystem"
          },
          "isAllowed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "AnnouncementDto": {
        "required": [
          "subject"
        ],
        "type": "object",
        "properties": {
          "announcementId": {
            "type": "integer",
            "format": "int64"
          },
          "subject": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "body": {
            "maxLength": 5000,
            "type": "string",
            "nullable": true
          },
          "severity": {
            "$ref": "#/components/schemas/EAnnouncementSeverity"
          },
          "displayType": {
            "$ref": "#/components/schemas/EAnnouncementDisplayType"
          },
          "displayBehavior": {
            "$ref": "#/components/schemas/EAnnouncementDisplayBehavior"
          },
          "customIcon": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "scopes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnnouncementScopeDto"
            },
            "nullable": true
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnnouncementTranslationDto"
            },
            "nullable": true
          },
          "totalTargetedUsers": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "acknowledgedUsers": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AnnouncementHistoryDto": {
        "type": "object",
        "properties": {
          "announcementId": {
            "type": "integer",
            "format": "int64"
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "nullable": true
          },
          "severity": {
            "$ref": "#/components/schemas/EAnnouncementSeverity"
          },
          "displayType": {
            "$ref": "#/components/schemas/EAnnouncementDisplayType"
          },
          "displayBehavior": {
            "$ref": "#/components/schemas/EAnnouncementDisplayBehavior"
          },
          "customIcon": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "acknowledgedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AnnouncementHistoryDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnnouncementHistoryDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AnnouncementScopeDto": {
        "type": "object",
        "properties": {
          "announcementScopeId": {
            "type": "integer",
            "format": "int64"
          },
          "scopeType": {
            "$ref": "#/components/schemas/EAnnouncementScopeType"
          },
          "scopeEntityId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "scopeEntityName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AnnouncementTranslationDto": {
        "type": "object",
        "properties": {
          "announcementTranslationId": {
            "type": "integer",
            "format": "int64"
          },
          "languageId": {
            "type": "string",
            "description": "The `tc_languages` id this translation is for (e.g. \"es\", \"de-DE\").",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A per-language translation of an announcement. Reconciled server-side by\nTCAdmin.Web.Shared.Models.Announcement.AnnouncementTranslationDto.LanguageId (add / update / remove) on save — see AnnouncementManager.SyncTranslations."
      },
      "ApiExceptionDetails": {
        "type": "object",
        "properties": {
          "actionName": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "stackTrace": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApiKeyCreatedDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique identifier for the API key.",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "description": "The name of the API key.",
            "nullable": true
          },
          "key": {
            "type": "string",
            "description": "The full API key. This is only returned once at creation time.",
            "nullable": true
          },
          "permissionsCount": {
            "type": "integer",
            "description": "The number of permissions granted to this key.",
            "format": "int32"
          },
          "expiresAt": {
            "type": "string",
            "description": "When the API key expires (null for no expiration).",
            "format": "date-time",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "description": "When the API key was created.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Response DTO returned when an API key is created.\nContains the full key which is only shown once."
      },
      "ApiKeyDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique identifier for the API key.",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "description": "The user ID that owns this API key.",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "description": "A descriptive name for the API key.",
            "nullable": true
          },
          "keyPrefix": {
            "type": "string",
            "description": "The first few characters of the key for identification.",
            "nullable": true
          },
          "keySuffix": {
            "type": "string",
            "description": "The last few characters of the key for identification.",
            "nullable": true
          },
          "permissionsCount": {
            "type": "integer",
            "description": "The number of permissions granted to this key.",
            "format": "int32"
          },
          "createdAt": {
            "type": "string",
            "description": "When the API key was created.",
            "format": "date-time"
          },
          "lastUsedAt": {
            "type": "string",
            "description": "When the API key was last used (null if never used).",
            "format": "date-time",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "description": "When the API key expires (null for no expiration).",
            "format": "date-time",
            "nullable": true
          },
          "revokedAt": {
            "type": "string",
            "description": "When the API key was revoked (null if not revoked).",
            "format": "date-time",
            "nullable": true
          },
          "lastUsedIpAddress": {
            "type": "string",
            "description": "The IP address from which the key was last used.",
            "nullable": true
          },
          "isValid": {
            "type": "boolean",
            "description": "Whether the API key is currently valid (not revoked and not expired)."
          },
          "lastModifiedAt": {
            "type": "string",
            "description": "When the API key was last modified (null if never modified after creation).",
            "format": "date-time",
            "nullable": true
          },
          "source": {
            "$ref": "#/components/schemas/EApiKeySource"
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiKeyPermissionDto"
            },
            "description": "The permissions granted to this API key.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents an API key for programmatic access to TCAdmin."
      },
      "ApiKeyPermissionDto": {
        "type": "object",
        "properties": {
          "module": {
            "type": "string",
            "description": "The module this permission belongs to (e.g., \"Server\", \"User\", \"Service\").",
            "nullable": true
          },
          "permission": {
            "type": "string",
            "description": "The permission identifier within the module.",
            "nullable": true
          },
          "moduleData": {
            "type": "string",
            "description": "Optional module-specific data for scoped permissions.",
            "nullable": true
          },
          "label": {
            "type": "string",
            "description": "A human-readable label for the permission.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a permission granted to an API key."
      },
      "ApiSettingsDto": {
        "type": "object",
        "properties": {
          "allowDuplicateBillingIds": {
            "type": "boolean"
          },
          "failOnDeleteNotFound": {
            "type": "boolean"
          },
          "failOnSuspendNotFound": {
            "type": "boolean"
          },
          "serverTerminationAction": {
            "$ref": "#/components/schemas/EServerTerminationAction"
          },
          "virtualServerTerminationAction": {
            "$ref": "#/components/schemas/EServerTerminationAction"
          },
          "gameHostingServerSelection": {
            "$ref": "#/components/schemas/EServerSelectionMode"
          },
          "gameHostingAllServers": {
            "type": "boolean"
          },
          "gameHostingServers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiSettingsServerItemDto"
            },
            "nullable": true
          },
          "dockerServerSelection": {
            "$ref": "#/components/schemas/EServerSelectionMode"
          },
          "dockerAllServers": {
            "type": "boolean"
          },
          "dockerServers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiSettingsServerItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApiSettingsServerItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "type": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AppSettingsEditResponse": {
        "type": "object",
        "properties": {
          "component": {
            "$ref": "#/components/schemas/EAppSettingsComponent"
          },
          "relativePath": {
            "type": "string",
            "description": "The edited file, relative to the install root.",
            "nullable": true
          },
          "keyPath": {
            "type": "string",
            "description": "The canonical key path that was written (property names as the config classes spell them).",
            "nullable": true
          },
          "previousValueJson": {
            "type": "string",
            "description": "The key's previous value as JSON; null when it was not set.",
            "nullable": true
          },
          "newValueJson": {
            "type": "string",
            "description": "The key's value as JSON after the edit; null when it was removed.",
            "nullable": true
          },
          "changed": {
            "type": "boolean",
            "description": "False when the file already said this, so nothing was written."
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Problems elsewhere in the file (unknown keys, unreadable values); never why an edit was refused.",
            "nullable": true
          },
          "restartRequired": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Outcome of a single-key app-settings edit; the component must be restarted to apply it."
      },
      "AppVersionDto": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "The server's assembly file version (matches TCAdmin.Web.Shared.Models.SystemHealth.SystemHealthDto.ApiVersion).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Lightweight application-version response."
      },
      "AvailableApiKeyPermissionDto": {
        "type": "object",
        "properties": {
          "module": {
            "type": "string",
            "description": "The module this permission belongs to (e.g., \"Server\", \"User\", \"Service\").",
            "nullable": true
          },
          "permission": {
            "type": "string",
            "description": "The permission identifier within the module.",
            "nullable": true
          },
          "moduleData": {
            "type": "string",
            "description": "Optional module-specific data for scoped permissions.",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "description": "A human-readable display name for the permission.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents an available permission that can be granted to an API key."
      },
      "AvailablePermissionDto": {
        "type": "object",
        "properties": {
          "module": {
            "type": "string",
            "nullable": true
          },
          "permission": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AvailablePermissionsResponseDto": {
        "type": "object",
        "properties": {
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvailableApiKeyPermissionDto"
            },
            "description": "The list of available permissions.",
            "nullable": true
          },
          "blueprintNames": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Dictionary mapping blueprint IDs to their Names.\nUsed for displaying friendly names for BpFeature, BpEditFeature, DockerBlueprint, and Game modules.\nPopulated for Admin/SubAdmin; for User/SubUser only with the blueprints of their BpFeature.Create[id] rows.",
            "nullable": true
          },
          "serviceNames": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Dictionary mapping service IDs to their display names (format: \"{HostnameOrIP}:{DisplayPort}\").\nOnly populated for User/SubUser users where ModuleData contains ServiceId.",
            "nullable": true
          },
          "userType": {
            "type": "string",
            "description": "The user type of the requesting user (Admin, SubAdmin, User, SubUser).\nUsed by the client to determine how to display permissions.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response containing available permissions and blueprint name mappings."
      },
      "BackupFileEntryDto": {
        "type": "object",
        "properties": {
          "relativePath": {
            "type": "string",
            "nullable": true
          },
          "originalSize": {
            "type": "integer",
            "format": "int64"
          },
          "modifiedDate": {
            "type": "string",
            "format": "date-time"
          },
          "sourceBackupId": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "BeginPasskeyRegistrationDto": {
        "type": "object",
        "properties": {
          "challengeToken": {
            "type": "string",
            "nullable": true
          },
          "optionsJson": {
            "type": "string",
            "description": "Serialized CredentialCreateOptions JSON for navigator.credentials.create.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BeginTotpResponseDto": {
        "type": "object",
        "properties": {
          "secret": {
            "type": "string",
            "description": "Base32 secret for manual entry.",
            "nullable": true
          },
          "qrCodeDataUri": {
            "type": "string",
            "description": "data:image/png;base64,... QR encoding the otpauth URI.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BillingStatusDto": {
        "type": "object",
        "properties": {
          "entityType": {
            "type": "string",
            "nullable": true
          },
          "entityId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "billingStatus": {
            "$ref": "#/components/schemas/EBillingStatus"
          }
        },
        "additionalProperties": false
      },
      "BlueprintBackupConfigDto": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "backupType": {
            "$ref": "#/components/schemas/EBackupType"
          },
          "compressBackup": {
            "type": "boolean"
          },
          "stopServiceBeforeBackup": {
            "type": "boolean"
          },
          "includedPaths": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "maxBackupCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "maxBackupSpace": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BlueprintContentSyncResultDto": {
        "type": "object",
        "properties": {
          "blueprintCount": {
            "type": "integer",
            "description": "Number of blueprints the sync will visit, i.e. those with a script bound to the\n`SyncBlueprintContent` event. Zero means nothing is bound and the run is a no-op.",
            "format": "int32"
          },
          "alreadyRunning": {
            "type": "boolean",
            "description": "True when a sync was already in progress, so this request was dropped."
          }
        },
        "additionalProperties": false,
        "description": "Result of a manually triggered blueprint-content sync (\"Run sync now\"). The sync itself runs in\nthe background on the master monitor — this only reports whether it was accepted and how much\nwork it picked up."
      },
      "BlueprintDto": {
        "required": [
          "description",
          "name"
        ],
        "type": "object",
        "properties": {
          "blueprintId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "ipPortAllocationConfig": {
            "$ref": "#/components/schemas/IpPortAllocationConfigDto"
          },
          "configFiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConfigFileDto"
            },
            "nullable": true
          },
          "scripts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScriptDto"
            },
            "nullable": true
          },
          "variables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VariableDto"
            },
            "nullable": true
          },
          "fileSystemPermissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FileSystemPermissionDto"
            },
            "nullable": true
          },
          "categoryId": {
            "type": "integer",
            "format": "int64"
          },
          "category": {
            "$ref": "#/components/schemas/ServiceCategoryDto"
          },
          "createdBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "metadata": {
            "$ref": "#/components/schemas/TCAEntityMetadataDto"
          }
        },
        "additionalProperties": false
      },
      "BlueprintEnvironmentVariableDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "valueType": {
            "$ref": "#/components/schemas/EValueType"
          }
        },
        "additionalProperties": false
      },
      "BlueprintEnvironmentVariableDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BlueprintEnvironmentVariableDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BlueprintFastDLConfigDto": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "relativeRoot": {
            "type": "string",
            "nullable": true
          },
          "urlExpression": {
            "type": "string",
            "nullable": true
          },
          "includePatterns": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "excludePatterns": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "syncOnServiceCreate": {
            "type": "boolean"
          },
          "autoSyncOnFileChange": {
            "type": "boolean"
          },
          "compression": {
            "$ref": "#/components/schemas/EFastDLCompression"
          },
          "maxCompressSizeKB": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "diskQuotaMB": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "requiresHttps": {
            "type": "boolean"
          },
          "stripPaths": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BlueprintFileSystemOptionsDto": {
        "type": "object",
        "properties": {
          "skipListingSecurityCheck": {
            "type": "boolean"
          },
          "restrictLinuxExe": {
            "type": "boolean"
          },
          "restrictLinuxExeApplies": {
            "type": "boolean",
            "description": "Whether TCAdmin.Web.Shared.Models.Blueprint.BlueprintFileSystemOptionsDto.RestrictLinuxExe means anything for this blueprint (a Linux-container Docker\nblueprint or a Linux game). Computed on GET because the page only knows the blueprint id; ignored on PUT."
          },
          "enableOwnerCheck": {
            "type": "boolean",
            "description": "Resolved on GET, so a blueprint that never stored the switch shows its default."
          },
          "restrictSymlinks": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "The blueprint-wide file-system switches shown on the File System Permissions page."
      },
      "BlueprintModAddLine": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "file": {
            "type": "string",
            "nullable": true
          },
          "findLine": {
            "type": "string",
            "nullable": true
          },
          "isRegex": {
            "type": "boolean"
          },
          "addLine": {
            "type": "string",
            "nullable": true
          },
          "addLineType": {
            "$ref": "#/components/schemas/EAddLineType"
          },
          "errorOnFailure": {
            "type": "boolean"
          },
          "skipIfExists": {
            "type": "boolean"
          },
          "event": {
            "$ref": "#/components/schemas/EAddLineEvent"
          }
        },
        "additionalProperties": false
      },
      "BlueprintModDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "modId": {
            "type": "integer",
            "format": "int64"
          },
          "blueprintId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "groupName": {
            "maxLength": 200,
            "type": "string",
            "nullable": true
          },
          "comments": {
            "type": "string",
            "nullable": true
          },
          "homepageUrl": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "helpUrl": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "saveAsFilename": {
            "maxLength": 200,
            "type": "string",
            "nullable": true
          },
          "extractPath": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "commandline": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "postInstallMessage": {
            "type": "string",
            "nullable": true
          },
          "installType": {
            "$ref": "#/components/schemas/EModInstallType"
          },
          "version": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "releaseType": {
            "maxLength": 50,
            "type": "string",
            "description": "Free-form release channel label (\"Release\", \"Beta\", \"Snapshot\", …).",
            "nullable": true
          },
          "releaseDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "fileSizeBytes": {
            "type": "integer",
            "description": "Download size in bytes. Display-only metadata supplied by the admin.",
            "format": "int64",
            "nullable": true
          },
          "updateVisible": {
            "type": "boolean"
          },
          "uninstallable": {
            "type": "boolean"
          },
          "defaultInstall": {
            "type": "boolean"
          },
          "disableRestart": {
            "type": "boolean"
          },
          "trackInstalledFiles": {
            "type": "boolean"
          },
          "viewOrder": {
            "type": "integer",
            "format": "int32"
          },
          "addLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BlueprintModAddLine"
            },
            "nullable": true
          },
          "removeLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BlueprintModRemoveLine"
            },
            "nullable": true
          },
          "requiredMods": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "requiredUpdates": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "incompatibleMods": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "configFiles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "scripts": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BlueprintModInfoDto": {
        "type": "object",
        "properties": {
          "modId": {
            "type": "integer",
            "format": "int64"
          },
          "blueprintId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "groupName": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "installType": {
            "$ref": "#/components/schemas/EModInstallType"
          },
          "version": {
            "type": "string",
            "nullable": true
          },
          "defaultInstall": {
            "type": "boolean"
          },
          "uninstallable": {
            "type": "boolean"
          },
          "viewOrder": {
            "type": "integer",
            "format": "int32"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BlueprintModPermissionDto": {
        "type": "object",
        "properties": {
          "modId": {
            "type": "integer",
            "format": "int64"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BlueprintModRemoveLine": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "file": {
            "type": "string",
            "nullable": true
          },
          "findLine": {
            "type": "string",
            "nullable": true
          },
          "isRegex": {
            "type": "boolean"
          },
          "errorOnFailure": {
            "type": "boolean"
          },
          "event": {
            "$ref": "#/components/schemas/EAddLineEvent"
          }
        },
        "additionalProperties": false
      },
      "BottomBarThemeSettings": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "elevation": {
            "type": "integer",
            "format": "int32"
          },
          "showPoweredBy": {
            "type": "boolean"
          },
          "showVersion": {
            "type": "boolean"
          },
          "iconUrl": {
            "type": "string",
            "description": "URL for the icon in the footer bar. Empty = the stock TCAdmin logo (the render-time fallback\nin FooterComponent), matching the nav logos' empty-field-plus-fallback pattern. The old\ninitializer baked the stock path into every stored theme row, which made \"unset\" and \"chose\nthe stock logo\" indistinguishable — layout templates couldn't keep their own footer mark\n(migration ClearStockFooterIconUrl cleared those rows).",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BulkInstallRequest": {
        "type": "object",
        "properties": {
          "taskDisplayName": {
            "type": "string",
            "nullable": true
          },
          "plugins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PluginInstallItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CaptchaVerifyRequest": {
        "type": "object",
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/ECaptchaProvider"
          },
          "secretKey": {
            "type": "string",
            "description": "Blank or TCAdmin.Web.Shared.Models.Security.SecuritySettingsDto.MaskedSecret means the stored secret.",
            "nullable": true
          },
          "token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Checks a CAPTCHA response against the given provider and secret without saving anything."
      },
      "CaptchaVerifyResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "errorCode": {
            "type": "string",
            "description": "The provider's first error code (for example `invalid-input-secret`); null on success.",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "A localized explanation of the failure; null on success.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CertificateConfig": {
        "type": "object",
        "properties": {
          "domains": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "hasSupportedPort": {
            "type": "boolean"
          },
          "hasSavedAccount": {
            "type": "boolean"
          },
          "hasCorrectWebPort": {
            "type": "boolean"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "hasCertificate": {
            "type": "boolean"
          },
          "commonName": {
            "type": "string",
            "nullable": true
          },
          "issuer": {
            "type": "string",
            "nullable": true
          },
          "validFrom": {
            "type": "string",
            "format": "date-time"
          },
          "validTo": {
            "type": "string",
            "format": "date-time"
          },
          "serialNumber": {
            "type": "string",
            "nullable": true
          },
          "thumbprint": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CertificateHealthDto": {
        "type": "object",
        "properties": {
          "hasCertificate": {
            "type": "boolean",
            "description": "Whether an HTTPS certificate is configured"
          },
          "commonName": {
            "type": "string",
            "description": "Certificate common name (subject)",
            "nullable": true
          },
          "issuer": {
            "type": "string",
            "description": "Certificate issuer",
            "nullable": true
          },
          "validFrom": {
            "type": "string",
            "description": "Certificate validity start date",
            "format": "date-time",
            "nullable": true
          },
          "validTo": {
            "type": "string",
            "description": "Certificate expiration date",
            "format": "date-time",
            "nullable": true
          },
          "daysUntilExpiration": {
            "type": "integer",
            "description": "Days until certificate expires (negative if expired)",
            "format": "int32",
            "nullable": true
          },
          "isExpiringSoon": {
            "type": "boolean",
            "description": "Whether certificate is expiring within 30 days"
          },
          "isExpired": {
            "type": "boolean",
            "description": "Whether certificate has already expired"
          },
          "errorMessage": {
            "type": "string",
            "description": "Error message if certificate check failed",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "SSL certificate health information"
      },
      "ChangeDefaultPasswordDto": {
        "type": "object",
        "properties": {
          "newPassword": {
            "type": "string",
            "nullable": true
          },
          "confirmNewPassword": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for changing the default password without requiring the current password.\nThis is used when a user still has the default password \"Password!23\" and\nneeds to change it for security purposes."
      },
      "ChangePasswordDto": {
        "type": "object",
        "properties": {
          "currentPassword": {
            "type": "string",
            "nullable": true
          },
          "newPassword": {
            "type": "string",
            "nullable": true
          },
          "confirmNewPassword": {
            "type": "string",
            "nullable": true
          },
          "stepUpToken": {
            "type": "string",
            "description": "Required in addition to TCAdmin.Web.Shared.Models.Profile.ChangePasswordDto.CurrentPassword when the account has a second factor.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CleanupResultDto": {
        "type": "object",
        "properties": {
          "deletedRecords": {
            "type": "integer",
            "description": "The number of database rows that were deleted.",
            "format": "int32"
          },
          "cutoffDate": {
            "type": "string",
            "description": "Rows older than this UTC timestamp were deleted.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Result of a manual retention cleanup run."
      },
      "CompactLanguageDto": {
        "type": "object",
        "properties": {
          "L": {
            "type": "string",
            "nullable": true
          },
          "T": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompactTranslationDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompactTranslationDto": {
        "type": "object",
        "properties": {
          "K": {
            "type": "string",
            "nullable": true
          },
          "V": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompanyInfoDto": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyEmail": {
            "type": "string",
            "description": "Public contact address shown in emails — not the SMTP \"From\".",
            "nullable": true
          },
          "companyWebsite": {
            "type": "string",
            "description": "Public website URL (e.g. https://www.example.com).",
            "nullable": true
          },
          "logoUrl": {
            "type": "string",
            "description": "Absolute URL of the company logo image used in email headers.",
            "nullable": true
          },
          "controlPanelUrl": {
            "type": "string",
            "description": "Public base URL of the control panel (e.g. https://panel.example.com) used for absolute\nlinks in emails. Web endpoints fall back to the request host when blank; emails triggered\nby remote servers require it.",
            "nullable": true
          },
          "signatureHtml": {
            "type": "string",
            "description": "Email signature, HTML flavor ({{ Company.SignatureHtml }} in templates).",
            "nullable": true
          },
          "signatureText": {
            "type": "string",
            "description": "Email signature, plain-text flavor ({{ Company.SignatureText }}).",
            "nullable": true
          },
          "headerHtml": {
            "type": "string",
            "description": "Email header, HTML flavor ({{ Company.HeaderHtml }}).",
            "nullable": true
          },
          "headerText": {
            "type": "string",
            "description": "Email header, plain-text flavor ({{ Company.HeaderText }}).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Company branding and contact details used by outgoing email. This DTO always represents the\nmain company row (reseller-owned rows are a future feature and are never exposed here)."
      },
      "CompleteDnsValidationInfo": {
        "type": "object",
        "properties": {
          "orderStateFile": {
            "type": "string",
            "nullable": true
          },
          "domains": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "useSavedAccount": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CompletePasskeyRegistrationDto": {
        "required": [
          "attestationResponseJson",
          "challengeToken"
        ],
        "type": "object",
        "properties": {
          "challengeToken": {
            "minLength": 1,
            "type": "string"
          },
          "attestationResponseJson": {
            "minLength": 1,
            "type": "string",
            "description": "Serialized AuthenticatorAttestationRawResponse JSON."
          },
          "label": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompressResult": {
        "type": "object",
        "properties": {
          "result": {
            "type": "boolean"
          },
          "outputFile": {
            "type": "string",
            "nullable": true
          },
          "taskId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConfigFileDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "blueprintId": {
            "type": "integer",
            "format": "int64"
          },
          "relativePath": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "template": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "enableEditor": {
            "type": "boolean"
          },
          "editor": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicControlBaseDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConfigFileInfoDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "blueprintId": {
            "type": "integer",
            "format": "int64"
          },
          "relativePath": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "enableEditor": {
            "type": "boolean"
          },
          "isModConfigFile": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ConfirmTotpDto": {
        "required": [
          "code"
        ],
        "type": "object",
        "properties": {
          "code": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ConsoleInputResultDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "rconResponse": {
            "type": "string",
            "description": "RCON protocol response to display to the user, or null/empty when not\napplicable. Populated only when the game's console config has\nPrintRconResponse enabled and input was dispatched via RCON.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContentTranslationDto": {
        "type": "object",
        "properties": {
          "languageId": {
            "type": "string",
            "description": "The `tc_languages` id this translation is for (e.g. \"es\", \"de-DE\"). Never \"en\" — the base\nName/Description fields ARE the English copy, so an \"en\" row is rejected on save.",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "The display name in this language. Required.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "The description in this language. Null/blank falls back to the base description PER FIELD.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A per-language translation of an admin-authored Name/Description pair (a script or a custom link).\nReconciled server-side by TCAdmin.Web.Shared.Models.Blueprint.ContentTranslationDto.LanguageId (add / update / remove) on save — see\n`ContentTranslationSync`. There is deliberately no id on the wire: the language IS the key, which\nkeeps one DTO usable for both entity families (unlike the per-entity\n`AnnouncementTranslationDto` / `EmailTemplateTranslationDto`)."
      },
      "CopiedEntityDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CopyEntityRequestDto": {
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Body of `POST api/{Controller}/{id}/Copy`; a blank name means \"Copy of {original name}\"."
      },
      "CreateApiKeyRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "A descriptive name for the API key.",
            "nullable": true
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The list of permission identifiers to grant to this key.\nFormat: \"Module.Permission\" (e.g., \"Server.Get\", \"User.Create\")",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "description": "When the API key should expire (null for no expiration).",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request DTO for creating a new API key."
      },
      "CreateCertificateInfo": {
        "type": "object",
        "properties": {
          "domains": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "useSavedAccount": {
            "type": "boolean"
          },
          "isStaging": {
            "type": "boolean"
          },
          "challengeType": {
            "$ref": "#/components/schemas/EChallengeType"
          }
        },
        "additionalProperties": false
      },
      "CreateDockerServiceInfo": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "startAfterCreation": {
            "type": "boolean"
          },
          "serverId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "regionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "datacenterId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "ownerUserIdFilter": {
            "type": "integer",
            "description": "When set, server selection only considers servers/virtual servers owned by this user.",
            "format": "int64",
            "nullable": true
          },
          "serviceName": {
            "type": "string",
            "nullable": true
          },
          "blueprintId": {
            "type": "integer",
            "format": "int64"
          },
          "ownerId": {
            "type": "integer",
            "format": "int64"
          },
          "billingId": {
            "type": "string",
            "nullable": true
          },
          "startup": {
            "$ref": "#/components/schemas/EServiceStartup"
          },
          "cpuLimit": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "memoryLimit": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "cpuSets": {
            "type": "string",
            "nullable": true
          },
          "oomKiller": {
            "type": "boolean",
            "nullable": true
          },
          "diskSpace": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "image": {
            "type": "string",
            "nullable": true
          },
          "tag": {
            "type": "string",
            "nullable": true
          },
          "variables": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "Variable values set during service creation, keyed by variable name.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateGameServiceInfoDto": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "startAfterCreation": {
            "type": "boolean"
          },
          "serverId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "virtualServerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "gameId": {
            "type": "integer",
            "format": "int64"
          },
          "ownerId": {
            "type": "integer",
            "format": "int64"
          },
          "billingId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "privatePassword": {
            "type": "string",
            "nullable": true
          },
          "regionId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "datacenterId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "affinity": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "affinityCpus": {
            "type": "string",
            "description": "Cpuset-syntax list of absolute kernel CPU ids (Linux servers, selection past CPU 63). Mutually exclusive with TCAdmin.Web.Shared.Models.GameHosting.CreateGameServiceInfoDto.Affinity/TCAdmin.Web.Shared.Models.GameHosting.CreateGameServiceInfoDto.NumaNode.",
            "nullable": true
          },
          "numaNode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "slots": {
            "type": "integer",
            "format": "int32"
          },
          "startup": {
            "$ref": "#/components/schemas/EServiceStartup"
          },
          "priority": {
            "$ref": "#/components/schemas/ProcessPriorityClass"
          },
          "cpuLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "memoryLimit": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "diskSpace": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "variables": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "Variable values set during service creation, keyed by variable name.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateSsoTokenRequest": {
        "required": [
          "returnUrl"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "description": "The TCAdmin numeric user id. Mutually exclusive with the other identifiers (UserId wins on conflict).",
            "format": "int64",
            "nullable": true
          },
          "username": {
            "type": "string",
            "description": "The TCAdmin username.",
            "nullable": true
          },
          "billingId": {
            "type": "string",
            "description": "The external billing-system identifier stored in `User.BillingId`.",
            "nullable": true
          },
          "returnUrl": {
            "minLength": 1,
            "type": "string",
            "description": "Relative URL the customer should land on after sign-in (e.g. `/Service/Game/123`).\nMust start with `/`, must not start with `//` or `/\\`, must not contain a scheme."
          }
        },
        "additionalProperties": false,
        "description": "Request body for `POST /api/Sso/Token`. Exactly one of TCAdmin.Web.Shared.Models.Sso.CreateSsoTokenRequest.UserId,\nTCAdmin.Web.Shared.Models.Sso.CreateSsoTokenRequest.Username, or TCAdmin.Web.Shared.Models.Sso.CreateSsoTokenRequest.BillingId must be supplied. If multiple\nare supplied, TCAdmin.Web.Shared.Models.Sso.CreateSsoTokenRequest.UserId wins."
      },
      "CreateSsoTokenResponse": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "The raw SSO token (format: `tcsso_<base64url>`). Never persisted or logged after this response.",
            "nullable": true
          },
          "expiresInSeconds": {
            "type": "integer",
            "description": "Seconds until the token expires. Always 60.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Response body for `POST /api/Sso/Token`. The token is shown exactly once and\nmust be appended to the panel's `/Auth/Sso?token=...` URL by the caller."
      },
      "CreateUserSshKeyRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "publicKey": {
            "type": "string",
            "description": "One authorized_keys line: `<type> <base64> [comment]`.",
            "nullable": true
          },
          "stepUpToken": {
            "type": "string",
            "description": "Step-up grace token, required for your own account; ignored on the admin route.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CultureDto": {
        "type": "object",
        "properties": {
          "languageId": {
            "type": "string",
            "nullable": true
          },
          "englishName": {
            "type": "string",
            "nullable": true
          },
          "nativeName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A culture the install can add as a new language (predefined by the runtime, not yet installed)."
      },
      "CurseFilters": {
        "type": "object",
        "properties": {
          "isMinecraft": {
            "type": "boolean",
            "description": "Whether the provider is configured for Minecraft — every other field is empty when false."
          },
          "loaders": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Loader slugs for the loader select (lowercase, the detector's vocabulary).",
            "nullable": true
          },
          "gameVersions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Minecraft versions, newest first. Empty when CurseForge was unreachable.",
            "nullable": true
          },
          "detected": {
            "$ref": "#/components/schemas/ModrinthDetectedDefaults"
          }
        },
        "additionalProperties": false,
        "description": "Payload for the service Curse-mods browse page's Minecraft filters, served by\n`GameServiceController.GetCurseFilters`. The Curse game id lives in a `Private.*`\nconfig key the client never sees, so TCAdmin.Web.Shared.Models.CustomMods.Curse.CurseFilters.IsMinecraft is how the page learns whether\nto render the loader / game-version selects at all."
      },
      "CurseGame": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "dateModified": {
            "type": "string",
            "format": "date-time"
          },
          "assets": {
            "$ref": "#/components/schemas/CurseGameAssets"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "apiStatus": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CurseGameAssets": {
        "type": "object",
        "properties": {
          "iconUrl": {
            "type": "string",
            "nullable": true
          },
          "tileUrl": {
            "type": "string",
            "nullable": true
          },
          "coverUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomCommandLineConfig": {
        "type": "object",
        "properties": {
          "enableSelection": {
            "type": "boolean"
          },
          "editors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicControlBaseDto"
            },
            "nullable": true
          },
          "customCommandLine": {
            "$ref": "#/components/schemas/ServiceCustomCommandLineDto"
          }
        },
        "additionalProperties": false
      },
      "CustomLinkDto": {
        "type": "object",
        "properties": {
          "customLinkType": {
            "type": "string",
            "nullable": true
          },
          "customLinkId": {
            "type": "integer",
            "format": "int64"
          },
          "global": {
            "type": "boolean"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "openInNewWindow": {
            "type": "boolean"
          },
          "openInMainContents": {
            "type": "boolean"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentTranslationDto"
            },
            "description": "Per-language overrides of TCAdmin.Web.Shared.Models.Blueprint.CustomLinkDto.Name / TCAdmin.Web.Shared.Models.Blueprint.CustomLinkDto.Description, shown to customers in the\nservice page's custom-link list. Reconciled server-side by\n`ContentTranslationSync.SyncCustomLinkTranslations` on every create/update path; \"en\" is\nrejected (the base fields ARE English). The slim `ServiceCustomLinkDto` deliberately has no such\nlist — it receives values that are already translated.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomLinkPermissionDto": {
        "type": "object",
        "properties": {
          "customLinkId": {
            "type": "integer",
            "format": "int64"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomModInfoModel": {
        "type": "object",
        "properties": {
          "providerId": {
            "type": "integer",
            "format": "int64"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "text": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "configuration": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomModsConfigModel": {
        "type": "object",
        "properties": {
          "singleIcon": {
            "type": "boolean"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "text": {
            "type": "string",
            "nullable": true
          },
          "customMods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomModInfoModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomPortDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "port": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "expression": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "uriTemplate": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DashboardWidgetDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Client-generated instance id (\"widget-1\", \"widget-2\", …). Unique within a dashboard.",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "Widget type id — the component class name minus \"Widget\" (e.g. \"ServerResources\").",
            "nullable": true
          },
          "x": {
            "type": "number",
            "description": "Fractional horizontal position (0-1) captured from the masonry layout.",
            "format": "double",
            "nullable": true
          },
          "h": {
            "type": "number",
            "description": "Last settled grid-item height in px, replayed as a placeholder on the next load.",
            "format": "double",
            "nullable": true
          },
          "configuration": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "Per-instance widget configuration. Opaque to the server; shape is owned by the widget.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One placed widget on a user's dashboard. The full layout is a `List<DashboardWidgetDto>`\nper dashboard (`WidgetType`), persisted as a `tc_user_dashboards` row so it follows the\naccount rather than the browser — an admin impersonating a user sees (and can fix) their real\ndashboard, and a demo account can be handed a pre-arranged one."
      },
      "DatabaseLimitsModel": {
        "type": "object",
        "properties": {
          "databaseCount": {
            "type": "integer",
            "format": "int32"
          },
          "maxDatabases": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DatacenterDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "datacenterId": {
            "type": "integer",
            "description": "Datacenter ID",
            "format": "int64"
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string",
            "description": "Name of the datacenter"
          },
          "regionIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Regions this datacenter belongs to",
            "nullable": true
          },
          "address": {
            "type": "string",
            "description": "Address/Location of the datacenter",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "description": "Notes and documentation for the datacenter",
            "nullable": true
          },
          "mySqlMgrConfiguration": {
            "$ref": "#/components/schemas/MySqlMgrConfigDto"
          }
        },
        "additionalProperties": false
      },
      "DatacenterInfoDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "datacenterId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "regionIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "address": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DirectoryInformationDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "relativePath": {
            "type": "string",
            "nullable": true
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "DirectoryListingDto": {
        "type": "object",
        "properties": {
          "directories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DirectoryInformationDto"
            },
            "nullable": true
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FileInformationDto"
            },
            "nullable": true
          },
          "relativePath": {
            "type": "string",
            "nullable": true
          },
          "loaded": {
            "type": "boolean"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "noMoreResults": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "DisableTwoFactorDto": {
        "type": "object",
        "properties": {
          "stepUpToken": {
            "type": "string",
            "description": "From `POST api/User/Me/StepUp/Verify`.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Body of the step-up-gated 2FA disable and passkey register/delete calls."
      },
      "DnsChallengeRecord": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "nullable": true
          },
          "recordName": {
            "type": "string",
            "nullable": true
          },
          "recordValue": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DnsOrderInfo": {
        "type": "object",
        "properties": {
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DnsChallengeRecord"
            },
            "nullable": true
          },
          "orderStateFile": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DockerBlueprintCustomLinkDto": {
        "type": "object",
        "properties": {
          "customLinkType": {
            "type": "string",
            "nullable": true
          },
          "customLinkId": {
            "type": "integer",
            "format": "int64"
          },
          "global": {
            "type": "boolean"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "openInNewWindow": {
            "type": "boolean"
          },
          "openInMainContents": {
            "type": "boolean"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentTranslationDto"
            },
            "description": "Per-language overrides of TCAdmin.Web.Shared.Models.Blueprint.CustomLinkDto.Name / TCAdmin.Web.Shared.Models.Blueprint.CustomLinkDto.Description, shown to customers in the\nservice page's custom-link list. Reconciled server-side by\n`ContentTranslationSync.SyncCustomLinkTranslations` on every create/update path; \"en\" is\nrejected (the base fields ARE English). The slim `ServiceCustomLinkDto` deliberately has no such\nlist — it receives values that are already translated.",
            "nullable": true
          },
          "allDockerBlueprints": {
            "type": "boolean"
          },
          "dockerBlueprints": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DockerBlueprintCustomLinkInfoDto": {
        "type": "object",
        "properties": {
          "customLinkId": {
            "type": "integer",
            "format": "int64"
          },
          "global": {
            "type": "boolean"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "openInNewWindow": {
            "type": "boolean"
          },
          "openInMainContents": {
            "type": "boolean"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "allDockerBlueprints": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "DockerBlueprintCustomLinkInfoDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DockerBlueprintCustomLinkInfoDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DockerBlueprintDto": {
        "type": "object",
        "properties": {
          "blueprintId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "shortName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "iconImage": {
            "type": "string",
            "nullable": true
          },
          "backgroundImage": {
            "type": "string",
            "nullable": true
          },
          "categoryId": {
            "type": "integer",
            "format": "int64"
          },
          "connectUrl": {
            "type": "string",
            "description": "Optional template for the URL customers use to connect to a service of this blueprint,\ne.g. `https://${HostnameOrIP}:${HttpPort}`.",
            "nullable": true
          },
          "aiCustomPrompt": {
            "type": "string",
            "description": "Optional admin-authored prompt for the AI assistant, included as context whenever a chat user\nis working with a service of this blueprint (sent to the configured AI provider like the\ninstall-wide custom prompt; it cannot change permissions or bypass confirmations).",
            "nullable": true
          },
          "defaultDiskSpace": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "editableExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "logExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "maxEditableSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "execConsoleType": {
            "$ref": "#/components/schemas/EExecConsoleType"
          },
          "execCommand": {
            "type": "string",
            "nullable": true
          },
          "containerOs": {
            "$ref": "#/components/schemas/EDockerContainerOs"
          },
          "forceOutgoingIp": {
            "type": "boolean",
            "description": "Linux nodes only. When true, this blueprint's containers make outgoing connections from the\nservice's own IP instead of the node's primary IP; skipped with a console note where that\nisn't possible. A service can override it with `DockerServiceDto.ForceOutgoingIp`."
          },
          "imagePullPolicy": {
            "$ref": "#/components/schemas/EDockerImagePullPolicy"
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DockerBlueprintImageDto"
            },
            "nullable": true
          },
          "volumeBinds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DockerBlueprintVolumeBindDto"
            },
            "nullable": true
          },
          "environmentVariables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DockerBlueprintEnvironmentVariableDto"
            },
            "nullable": true
          },
          "limits": {
            "$ref": "#/components/schemas/DockerBlueprintLimitsDto"
          },
          "dockerIpPortAllocationConfig": {
            "$ref": "#/components/schemas/DockerIpPortAllocationConfigDto"
          },
          "ipPortAllocationConfig": {
            "$ref": "#/components/schemas/IpPortAllocationConfigDto"
          }
        },
        "additionalProperties": false
      },
      "DockerBlueprintDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DockerBlueprintDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DockerBlueprintEnvironmentVariableDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "valueType": {
            "$ref": "#/components/schemas/EValueType"
          }
        },
        "additionalProperties": false
      },
      "DockerBlueprintImageDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "image": {
            "type": "string",
            "nullable": true
          },
          "tag": {
            "type": "string",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          },
          "registryId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fullImageName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DockerBlueprintLimitsDto": {
        "type": "object",
        "properties": {
          "memoryLimit": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "cpuLimit": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "cpuSets": {
            "type": "string",
            "nullable": true
          },
          "oomKillEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "DockerBlueprintScriptDto": {
        "type": "object",
        "properties": {
          "scriptType": {
            "type": "string",
            "nullable": true
          },
          "scriptId": {
            "type": "integer",
            "format": "int64"
          },
          "global": {
            "type": "boolean"
          },
          "scriptEngine": {
            "$ref": "#/components/schemas/EScriptEngineDto"
          },
          "operatingSystem": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EOperatingSystem"
            },
            "nullable": true
          },
          "scriptEvents": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "runImpersonated": {
            "type": "boolean"
          },
          "stopService": {
            "type": "boolean"
          },
          "ignoreErrors": {
            "type": "boolean"
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "inputVariables": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "editor": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicControlBaseDto"
            },
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentTranslationDto"
            },
            "description": "Per-language overrides of TCAdmin.Web.Shared.Models.Blueprint.ScriptDto.Name / TCAdmin.Web.Shared.Models.Blueprint.ScriptDto.Description, shown to customers on the\nservice page's Custom Action / Custom Icon surfaces. Reconciled server-side by\n`ContentTranslationSync.SyncScriptTranslations` on every create/update path; \"en\" is rejected\n(the base fields ARE English). The slim `ServiceScriptDto` deliberately has no such list — it\nreceives values that are already translated.",
            "nullable": true
          },
          "importedFromV2": {
            "type": "boolean",
            "description": "READ-ONLY projection of the script's `imported_from_v2` metadata marker: this script came in\nthrough a V2 blueprint import (manual V2 XML or a V2 plugin-repo install) and so was written\nagainst the V2 scripting API. Drives the script editor's \"Convert to C# with AI\" prompt. The write\npaths ignore it (the mappers' `MapperIgnoreSource`), so a client save can never set or clear it."
          },
          "v2ScriptEngine": {
            "type": "string",
            "description": "READ-ONLY projection of `v2_script_engine` — the engine the script was authored for in V2\n(\"IronPython 2\", \"Batch\", …), which the V3 engine value cannot reconstruct. Null unless\nTCAdmin.Web.Shared.Models.Blueprint.ScriptDto.ImportedFromV2 is true. Ignored on every write path, like the flag.",
            "nullable": true
          },
          "v2Pristine": {
            "type": "boolean",
            "description": "READ-ONLY projection of `v2_pristine`: this script is still exactly as the V2 importer created\nit and therefore REFUSES TO RUN until it is converted or reviewed. Unlike\nTCAdmin.Web.Shared.Models.Blueprint.ScriptDto.ImportedFromV2 this one is transient — the server clears it on any successful save of\nthe script. Write-protected on every mapper (a client payload must never set or clear it; only the\nserver-side clear-on-save may), for the obvious reason that it is a safety gate."
          },
          "allDockerBlueprints": {
            "type": "boolean"
          },
          "dockerBlueprints": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DockerBlueprintScriptInfoDto": {
        "type": "object",
        "properties": {
          "scriptId": {
            "type": "integer",
            "format": "int64"
          },
          "global": {
            "type": "boolean"
          },
          "scriptEngine": {
            "$ref": "#/components/schemas/EScriptEngineDto"
          },
          "operatingSystem": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EOperatingSystem"
            },
            "nullable": true
          },
          "scriptEvents": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "runImpersonated": {
            "type": "boolean"
          },
          "stopService": {
            "type": "boolean"
          },
          "ignoreErrors": {
            "type": "boolean"
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "v2Pristine": {
            "type": "boolean",
            "description": "READ-ONLY projection of `v2_pristine` (see TCAdmin.Web.Shared.Models.Blueprint.ScriptDto.V2Pristine) — the script\nwill not run until it is converted or reviewed-and-saved. This is what the blueprint Scripts list\ncounts for its banner: it matches the set of scripts that are actually blocked, on any engine, and\nempties itself as they are approved. The permanent `imported_from_v2` origin marker is\ndeliberately NOT projected here — only the rich TCAdmin.Web.Shared.Models.Blueprint.ScriptDto (the editor) needs it.\nThere is no write path for the info DTO, so no ignore attributes are needed."
          },
          "allDockerBlueprints": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "DockerBlueprintScriptInfoDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DockerBlueprintScriptInfoDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DockerBlueprintVariableDto": {
        "type": "object",
        "properties": {
          "variableType": {
            "type": "string",
            "nullable": true
          },
          "variableId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "editor": {
            "$ref": "#/components/schemas/DynamicControlBaseDto"
          },
          "defaultValue": {
            "nullable": true
          },
          "required": {
            "type": "boolean"
          },
          "requiredMessage": {
            "type": "string",
            "nullable": true
          },
          "scriptParameter": {
            "type": "boolean"
          },
          "commandlineParameter": {
            "type": "boolean"
          },
          "saveScriptParameter": {
            "type": "boolean"
          },
          "syncCommandlineParameter": {
            "type": "boolean"
          },
          "template": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "dockerBlueprintId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DockerBlueprintVolumeBindDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "hostPath": {
            "type": "string",
            "nullable": true
          },
          "containerPath": {
            "type": "string",
            "nullable": true
          },
          "readOnly": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "DockerConfigRequest": {
        "type": "object",
        "properties": {
          "memoryLimitMB": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "processorCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DockerConfigResponse": {
        "type": "object",
        "properties": {
          "isWsl": {
            "type": "boolean"
          },
          "wslConfigPath": {
            "type": "string",
            "nullable": true
          },
          "wslConfigContent": {
            "type": "string",
            "nullable": true
          },
          "memoryLimitMB": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "processorCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DockerContainerDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "image": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "ports": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DockerCustomPortDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "port": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "expression": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "uriTemplate": {
            "type": "string",
            "nullable": true
          },
          "protocol": {
            "type": "string",
            "nullable": true
          },
          "containerPort": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DockerDetectedEndpoint": {
        "type": "object",
        "properties": {
          "endpoint": {
            "type": "string",
            "description": "The endpoint URI that reached this daemon, e.g. `npipe://./pipe/docker_engine`.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "The daemon's server version.",
            "nullable": true
          },
          "isDockerDesktop": {
            "type": "boolean",
            "description": "Whether this is Docker Desktop, which matters beyond cosmetics: it maps Windows host paths\nitself and must not be double-translated (see `DockerPathTranslation`)."
          },
          "suggestedRole": {
            "$ref": "#/components/schemas/EDockerDaemon"
          }
        },
        "additionalProperties": false,
        "description": "One Docker daemon the monitor found by probing the well-known local endpoints. Purely\ninformational: autodetection fills the node-settings fields in for review, it never saves them."
      },
      "DockerImageDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "repoTags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "size": {
            "type": "integer",
            "format": "int64"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "DockerInfoResponse": {
        "type": "object",
        "properties": {
          "isInstalled": {
            "type": "boolean"
          },
          "osType": {
            "type": "string",
            "description": "The daemon's container flavour — `\"linux\"` or `\"windows\"` (docker info\n`OSType`). What the page uses to offer installing the OTHER flavour on a node that\nonly has one; null from monitors predating the field, which offer nothing rather than guess.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "nullable": true
          },
          "platform": {
            "type": "string",
            "nullable": true
          },
          "operatingSystem": {
            "type": "string",
            "nullable": true
          },
          "architecture": {
            "type": "string",
            "nullable": true
          },
          "containers": {
            "type": "integer",
            "format": "int32"
          },
          "containersRunning": {
            "type": "integer",
            "format": "int32"
          },
          "containersPaused": {
            "type": "integer",
            "format": "int32"
          },
          "containersStopped": {
            "type": "integer",
            "format": "int32"
          },
          "images": {
            "type": "integer",
            "format": "int32"
          },
          "serverVersion": {
            "type": "string",
            "nullable": true
          },
          "kernelVersion": {
            "type": "string",
            "nullable": true
          },
          "memoryTotal": {
            "type": "integer",
            "format": "int64"
          },
          "cpUs": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DockerInstallRequest": {
        "type": "object",
        "properties": {
          "mode": {
            "$ref": "#/components/schemas/EDockerInstallMode"
          },
          "autoReboot": {
            "type": "boolean",
            "description": "Reboot the server automatically when the installation needs one. Off by default: a reboot\ntakes every service on the node down with it, so it has to be an explicit choice. When it is\noff and a reboot turns out to be required, the admin reboots and runs the installer again —\nevery step is idempotent, so the second run only does what is left."
          }
        },
        "additionalProperties": false,
        "description": "Asks a node's monitor to install Docker on itself. Answered with the task that does the work,\nso the caller can follow it in the task-status dialog."
      },
      "DockerIpPortAllocationConfigDto": {
        "type": "object",
        "properties": {
          "usePrimaryIpOnly": {
            "type": "boolean"
          },
          "useDefaultPortsOnly": {
            "type": "boolean"
          },
          "supportsIpv6": {
            "type": "boolean"
          },
          "uniquePort": {
            "$ref": "#/components/schemas/EIpPortAllocationUniquePort"
          },
          "portIncrement": {
            "type": "integer",
            "format": "int32"
          },
          "dockerCustomPorts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DockerCustomPortDto"
            },
            "nullable": true
          },
          "customPorts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomPortDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DockerNodeSettingsDto": {
        "type": "object",
        "properties": {
          "dockerEndpoint": {
            "type": "string",
            "description": "Explicit Docker daemon endpoint, e.g. `tcp://127.0.0.1:2375`,\n`npipe://./pipe/docker_engine` or `unix:///var/run/docker.sock`. Empty means the\nbuilt-in resolution (the `DOCKER_HOST` environment variable, else the local named pipe /\nunix socket).",
            "nullable": true
          },
          "dockerWindowsEndpoint": {
            "type": "string",
            "description": "Optional endpoint of a second daemon on the same node — the one that runs Windows\ncontainers, e.g. `npipe://./pipe/docker_engine`. Only blueprints marked\n`ContainerOs = Windows` are routed here; empty means the node drives a single daemon\nand those blueprints fall back to TCAdmin.Web.Shared.Models.Docker.DockerNodeSettingsDto.DockerEndpoint.",
            "nullable": true
          },
          "dockerPathTranslation": {
            "$ref": "#/components/schemas/EDockerPathTranslation"
          },
          "dockerWslMountRoot": {
            "type": "string",
            "description": "Where the daemon's Linux namespace mounts the Windows drives. Empty means the WSL default\n`/mnt`, so `C:\\x` becomes `/mnt/c/x`.",
            "nullable": true
          },
          "hasSeparateWindowsDaemon": {
            "type": "boolean",
            "description": "Whether this node genuinely drives a second, Windows-containers daemon — the single home of\nthat rule for the UI (the daemon selector must not offer a choice between two names for the\nsame engine). Mirrors the monitor's endpoint dedupe: a Windows endpoint equal to the default\none collapses back to a single daemon.",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "TCAdmin-side Docker settings for one server node. These live on the server row\n(`Server.Configuration`) rather than on the node's daemon, so they can be read and written\nwhile the node is offline — which is the point: a wrong endpoint is exactly what makes a node\nunreachable."
      },
      "DockerRegistryDto": {
        "type": "object",
        "properties": {
          "registryId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DockerServiceDto": {
        "type": "object",
        "properties": {
          "serviceType": {
            "type": "string",
            "nullable": true
          },
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "blueprintId": {
            "type": "integer",
            "format": "int64"
          },
          "blueprintName": {
            "type": "string",
            "nullable": true
          },
          "ownerId": {
            "type": "integer",
            "description": "The user who owns this service. On update it is only applied when the caller can view users.",
            "format": "int32"
          },
          "billingId": {
            "type": "string",
            "nullable": true
          },
          "billingStatus": {
            "$ref": "#/components/schemas/EBillingStatus"
          },
          "ipAddress": {
            "type": "string",
            "nullable": true
          },
          "ipHostname": {
            "type": "string",
            "nullable": true
          },
          "hostnameOrIP": {
            "type": "string",
            "nullable": true
          },
          "serverIpId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "ports": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Returns 0 if the port key does not exist",
            "nullable": true
          },
          "portUris": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "portDescriptions": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "blueprintPortNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The blueprint's port ids in definition order; server-derived, ignored on PUT.",
            "nullable": true
          },
          "portExpressions": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Port name → the blueprint expression it is derived from (e.g. `Query` → `\"GamePort + 1\"`),\nin blueprint definition order; only ports that HAVE an expression appear, so it is empty for most\nblueprints. Server-derived in `PostMapAsync`; posted values are ignored (there is no such\nentity property).\n\nIt exists so a caller can see which ports follow another and offer to re-derive them — the\nsettings PUT never does that itself, because an admin may override a linked port deliberately.",
            "nullable": true
          },
          "connectUrl": {
            "type": "string",
            "description": "The blueprint's connect-URL template resolved for this service (e.g.\n`steam://connect/203.0.113.10:27015`). Null when the blueprint defines no template or\na token can't be resolved. Server-derived in `PostMapAsync`; posted values are ignored.",
            "nullable": true
          },
          "displayPort": {
            "type": "integer",
            "format": "int32"
          },
          "ftpPort": {
            "type": "integer",
            "description": "The hosting server's FTP/FTPS port, resolved server-side from the server's Redis heartbeat\n(the monitor publishes its `TCAdmin:Ftp:Port` only while `TCAdmin:Ftp:Enabled`).\n`null` when FTP is disabled on the host or the heartbeat is unavailable (Redis down, no\nbeat yet, an older monitor) — the UI then hides FTPS rather than advertising a dead endpoint.",
            "format": "int32",
            "nullable": true
          },
          "sftpPort": {
            "type": "integer",
            "description": "The hosting server's SFTP port, resolved from the same heartbeat as TCAdmin.Web.Shared.Models.Service.ServiceDto.FtpPort.\n`null` when unknown or when SFTP is disabled on the host. With both null the service-home\nfile-transfer card disappears entirely; with one of them the card drops its FTPS↔SFTP toggle.",
            "format": "int32",
            "nullable": true
          },
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "virtualServerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "rootDirectory": {
            "type": "string",
            "nullable": true
          },
          "workingDirectory": {
            "type": "string",
            "nullable": true
          },
          "executable": {
            "type": "string",
            "nullable": true
          },
          "commandline": {
            "type": "string",
            "description": "The parsed command line the monitor launches. Server-derived from\nTCAdmin.Web.Shared.Models.Service.ServiceDto.UnparsedCommandline on game services, where the settings PUT additionally\ndiscards any posted value (`GameServiceController.NormalizeCommandlinePayload`).\n\nThe write gate below is what protects <b>Docker</b> services, which have no such\nderivation: a Docker `Commandline` is template-evaluated and handed to the container\nas `/bin/sh -c <value>` (`DockerBlueprintExtensions.ToCreateContainerParameters`),\nso an ungated write on `PUT DockerService/{id}/UpdateDockerService` is arbitrary\ncommand execution inside the container. The endpoint's own `ServiceSettingsPermission`\nfilter is satisfied by service-scoped settings access — which owners routinely have — so\nthe field needs the blueprint-scoped grant on top of it. Set the command line through the\npredefined/custom command-line flow (`BpFeature.PredefCmdlines`/`CustomCmdlines`),\nnot this field.\nUpdate-only: reads are unchanged, and `base.Update` restores the stored value for\ncallers without the permission rather than blanking it.",
            "nullable": true
          },
          "unparsedCommandline": {
            "type": "string",
            "description": "The active `${token}` template TCAdmin.Web.Shared.Models.Service.ServiceDto.Commandline is derived from.\nSystem-managed unless TCAdmin.Web.Shared.Models.Service.ServiceDto.OverrideCommandline is set; posted values are only\nhonored while overriding.",
            "nullable": true
          },
          "overrideCommandline": {
            "type": "boolean",
            "description": "When true an admin owns the command-line template: the system keeps re-parsing its tokens\non settings/variable changes but never replaces the template, and applying\npredefined/custom command lines is blocked."
          },
          "startup": {
            "$ref": "#/components/schemas/EServiceStartup"
          },
          "categoryId": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "$ref": "#/components/schemas/EServiceStatus"
          },
          "monitoringDisabled": {
            "type": "boolean",
            "description": "Per-service master opt-out — when true the monitor skips this service entirely, regardless of the blueprint's detection config."
          },
          "branded": {
            "type": "boolean",
            "description": "Per-service opt-in for brand detection (see GameQueryMonitoringConfig.BrandDetectionEnabled)."
          },
          "isPrivate": {
            "type": "boolean",
            "description": "Per-service opt-in for private detection (see GameQueryMonitoringConfig.PrivateDetectionEnabled)."
          },
          "startTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "mySqlDbLimit": {
            "type": "integer",
            "format": "int32"
          },
          "shortName": {
            "type": "string",
            "nullable": true
          },
          "backgroundImage": {
            "type": "string",
            "nullable": true
          },
          "iconImage": {
            "type": "string",
            "nullable": true
          },
          "diskSpace": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "backupMaxCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "backupMaxSpace": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fastDLEnabled": {
            "type": "boolean",
            "description": "Per-service Fast Downloads override. `true` = force-enabled, `false` =\nforce-disabled, `null` = inherit the blueprint's FastDL `Enabled` value.\nAdmin-only — gated to TCAdmin.SDK.Constants.BlueprintFeatures.ServiceSettings like the other\nper-service settings, so customers can't flip their own FastDL state.",
            "nullable": true
          },
          "fastDLUrlOverride": {
            "type": "string",
            "description": "Per-service Fast Downloads URL override. Empty/null = compose the URL from the server's\nFastDL base URL and folder template; set = that exact URL is what `${FastDownloadUrl}`\nrenders into config files (e.g. a Source `sv_downloadurl` line). Publish-only: it does\nnot move where files are uploaded. Admin-only, gated like TCAdmin.Web.Shared.Models.Service.ServiceDto.FastDLEnabled.",
            "nullable": true
          },
          "fastDLUsage": {
            "type": "integer",
            "format": "int64"
          },
          "fastDLFileCount": {
            "type": "integer",
            "format": "int32"
          },
          "fastDLLastSyncUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ownerUsername": {
            "type": "string",
            "nullable": true
          },
          "image": {
            "type": "string",
            "description": "The container image this service runs. Pinned per service at creation — the blueprint's\nimage catalog is a create-time menu, not a live link, so editing the blueprint does not move\nexisting services.",
            "nullable": true
          },
          "tag": {
            "type": "string",
            "nullable": true
          },
          "limits": {
            "$ref": "#/components/schemas/DockerBlueprintLimitsDto"
          },
          "forceOutgoingIp": {
            "type": "boolean",
            "description": "Linux nodes only. Per-service override of the blueprint's `ForceOutgoingIp` switch;\n`null` inherits the blueprint default.",
            "nullable": true
          },
          "imagePullPolicy": {
            "$ref": "#/components/schemas/EDockerImagePullPolicy"
          }
        },
        "additionalProperties": false
      },
      "DrawerClipMode": {
        "enum": [
          "Never",
          "Docked",
          "Always"
        ],
        "type": "string"
      },
      "DrawerVariant": {
        "enum": [
          "Temporary",
          "Responsive",
          "Persistent",
          "Mini"
        ],
        "type": "string"
      },
      "DriveUsageDto": {
        "type": "object",
        "properties": {
          "driveName": {
            "type": "string",
            "nullable": true
          },
          "driveLabel": {
            "type": "string",
            "nullable": true
          },
          "totalBytes": {
            "type": "integer",
            "format": "int64"
          },
          "freeBytes": {
            "type": "integer",
            "format": "int64"
          },
          "usedBytes": {
            "type": "integer",
            "format": "int64"
          },
          "usagePercent": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "DynamicControlBaseDto": {
        "type": "object",
        "properties": {
          "requiresAnyVisible": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "id": {
            "type": "string",
            "nullable": true
          },
          "defaultValue": {
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "required": {
            "type": "boolean"
          },
          "valueType": {
            "type": "string",
            "nullable": true
          },
          "requiredMessage": {
            "type": "string",
            "nullable": true
          },
          "parentId": {
            "type": "string",
            "nullable": true
          },
          "parentValue": {
            "nullable": true
          },
          "controlType": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "sm": {
            "type": "integer",
            "format": "int32"
          },
          "xs": {
            "type": "integer",
            "format": "int32"
          },
          "selected": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "EAddLineEvent": {
        "enum": [
          "Install",
          "Uninstall"
        ],
        "type": "string"
      },
      "EAddLineType": {
        "enum": [
          "StartOfFile",
          "EndOfFile",
          "BeforeFindLine",
          "AfterFindLine",
          "ReplaceLine"
        ],
        "type": "string"
      },
      "EAnnouncementDisplayBehavior": {
        "enum": [
          "ShowOnce",
          "ShowUntilAcknowledged",
          "ShowUntilRemoved",
          "AutoExpire",
          "ShowAtLoginPage"
        ],
        "type": "string"
      },
      "EAnnouncementDisplayType": {
        "enum": [
          "Banner",
          "Snackbar",
          "Dialog"
        ],
        "type": "string"
      },
      "EAnnouncementScopeType": {
        "enum": [
          "Global",
          "User",
          "Role",
          "Service",
          "Blueprint",
          "Region",
          "Datacenter",
          "Server",
          "VirtualServer"
        ],
        "type": "string"
      },
      "EAnnouncementSeverity": {
        "enum": [
          "Info",
          "Success",
          "Warning",
          "Error"
        ],
        "type": "string"
      },
      "EApiKeySource": {
        "enum": [
          "User",
          "AiAssistant"
        ],
        "type": "string",
        "description": "What created an API key — the marker that separates keys a human deliberately made from keys the\nplatform mints for itself. Only the latter are garbage-collectable: a user's key is their property\nand is never touched by automated cleanup."
      },
      "EAppSettingsComponent": {
        "enum": [
          "Web",
          "Monitor"
        ],
        "type": "string",
        "description": "Which component's `config/{web|monitor}/appsettings.{env}.json` an app-settings edit targets."
      },
      "EBackupStatus": {
        "enum": [
          "Pending",
          "InProgress",
          "Completed",
          "Failed"
        ],
        "type": "string"
      },
      "EBackupType": {
        "enum": [
          "Full",
          "Incremental"
        ],
        "type": "string"
      },
      "EBillingStatus": {
        "enum": [
          "Active",
          "Suspended"
        ],
        "type": "string"
      },
      "ECaptchaMode": {
        "enum": [
          "AfterFailures",
          "Always"
        ],
        "type": "string",
        "description": "When the CAPTCHA is demanded."
      },
      "ECaptchaProvider": {
        "enum": [
          "None",
          "Turnstile",
          "ReCaptchaV2"
        ],
        "type": "string",
        "description": "The CAPTCHA service shown on the web login and forgot-password forms."
      },
      "EChallengeType": {
        "enum": [
          "Http01",
          "Dns01",
          "Custom"
        ],
        "type": "string"
      },
      "EDockerContainerOs": {
        "enum": [
          "Linux",
          "Windows"
        ],
        "type": "string",
        "description": "The operating system the containers of a Docker blueprint are built for, and therefore which of\na node's Docker daemons they have to be created on. Docker Desktop in Windows-containers mode\nruns a Linux engine and a Windows engine side by side (separate named pipes), and a Windows\nServer host can pair a native `dockerd.exe` with a Docker CE daemon inside WSL2 — a\nWindows-image blueprint sent to the Linux engine fails with an opaque manifest error."
      },
      "EDockerDaemon": {
        "enum": [
          "Default",
          "Windows"
        ],
        "type": "string",
        "description": "Which of a node's Docker daemons an operation is addressed to. A node drives at most two:\nthe one it always had, plus an optional second daemon for Windows containers."
      },
      "EDockerImagePullPolicy": {
        "enum": [
          "IfNewer",
          "IfNotPresent"
        ],
        "type": "string",
        "description": "Whether starting a Docker service pulls its image from the registry first. Set on the blueprint and\noverridable per service."
      },
      "EDockerInstallMode": {
        "enum": [
          "WindowsEngine",
          "WindowsWsl",
          "LinuxEngine"
        ],
        "type": "string",
        "description": "Which Docker stack the panel installs on a node. A node's operating system decides which of\nthese are offered — see `DockerInstallModes.ForHost`, the single rule both the install\ncards and the API validation read."
      },
      "EDockerPathTranslation": {
        "enum": [
          "Auto",
          "Enabled",
          "Disabled"
        ],
        "type": "string",
        "description": "Controls whether a monitor rewrites Windows host paths into Linux paths before they are sent to\nthe Docker daemon as bind-mount sources. Required when a Windows monitor drives a Linux daemon\nthat lives inside WSL2 (Docker CE installed in a WSL distribution, Rancher Desktop, …) because\nsuch a daemon only sees the Windows drives through its own mount root (`/mnt/c/...`).\nDocker Desktop performs the same translation internally and must NOT be double-translated."
      },
      "EEmailQueueStatus": {
        "enum": [
          "Pending",
          "Sending",
          "Sent",
          "Failed",
          "Cancelled"
        ],
        "type": "string"
      },
      "EEmailTemplateCategory": {
        "enum": [
          "General",
          "Services",
          "Monitoring",
          "System",
          "Custom"
        ],
        "type": "string",
        "description": "Grouping for the email-templates list page."
      },
      "EEmailTemplateContextType": {
        "enum": [
          "General",
          "User",
          "Service",
          "Detection",
          "Task",
          "PasswordReset"
        ],
        "type": "string",
        "description": "Which variable model a template is rendered against. Determines the variables offered in the\neditor and the sample data used for previews. Trigger call sites must pass a context whose\nshape matches the template's context type."
      },
      "EExecConsoleType": {
        "enum": [
          "Command",
          "Attach"
        ],
        "type": "string"
      },
      "EFastDLCompression": {
        "enum": [
          "None",
          "BZip2",
          "Zip",
          "Tar",
          "TarBz2"
        ],
        "type": "string"
      },
      "EFileListingSortField": {
        "enum": [
          "Name",
          "Size",
          "LastModified"
        ],
        "type": "string",
        "description": "Sort field for paged directory listings. Directories always list before files regardless of\nthe field; when sorting by TCAdmin.Web.Shared.Models.FileSystem.Hub.EFileListingSortField.Size the directories keep name order among themselves."
      },
      "EFileSearchMatchKind": {
        "enum": [
          "Name",
          "Content",
          "Both"
        ],
        "type": "string",
        "description": "Why a file-manager search hit matched. A single search covers file/folder NAMES (every indexed\nentry) and full-text CONTENT (editable files only), so one hit can be both."
      },
      "EFileSearchStatus": {
        "enum": [
          "Ready",
          "Indexing"
        ],
        "type": "string",
        "description": "State of the per-service search index at the time a search was answered."
      },
      "EFileServerCategory": {
        "enum": [
          "GameFiles",
          "ServiceBackup",
          "FastDL"
        ],
        "type": "string"
      },
      "EGameConfigInputSource": {
        "enum": [
          "RconProtocol",
          "ConsoleCommands",
          "None"
        ],
        "type": "string"
      },
      "EGameConfigOutputSource": {
        "enum": [
          "LogFile",
          "ConsoleWrapper",
          "MemoryWrapper",
          "LinuxScreen",
          "ScreenCapture",
          "Terminal",
          "LegacySeparator"
        ],
        "type": "string"
      },
      "EGameRunAs": {
        "enum": [
          "LocalSystem",
          "TCAGame",
          "SpecificUser",
          "OperatingSystemUserPerService",
          "OperatingSystemUserPerUser"
        ],
        "type": "string"
      },
      "EHealthStatus": {
        "enum": [
          "Healthy",
          "Degraded",
          "Unhealthy"
        ],
        "type": "string",
        "description": "Health status levels"
      },
      "EIpPortAllocationUniquePort": {
        "enum": [
          "ServerIp",
          "Server",
          "Datacenter",
          "Global"
        ],
        "type": "string"
      },
      "EMailAuthMode": {
        "enum": [
          "None",
          "Password",
          "OAuthMicrosoft",
          "OAuthGoogle"
        ],
        "type": "string",
        "description": "How the panel authenticates against the SMTP server."
      },
      "EMailSecurityMode": {
        "enum": [
          "Auto",
          "None",
          "StartTls",
          "SslOnConnect"
        ],
        "type": "string",
        "description": "TLS mode for the SMTP connection (maps to MailKit's SecureSocketOptions)."
      },
      "EModInstallType": {
        "enum": [
          "Silent",
          "ConfigEditor"
        ],
        "type": "string"
      },
      "EOperatingSystem": {
        "enum": [
          "Windows",
          "Linux",
          "DockerContainer"
        ],
        "type": "string",
        "description": "Represents the operating system types."
      },
      "EPanelPreset": {
        "enum": [
          "Advanced",
          "Classic",
          "Custom"
        ],
        "type": "string",
        "description": "How the current set of disabled panel features presents itself. <b>Derived, never stored</b> — see\n`PanelPresets.Derive` and docs/PANEL_MODE.md."
      },
      "EPermission": {
        "enum": [
          "None",
          "ReadFile",
          "WriteFile",
          "DeleteFile",
          "RenameFile",
          "ListDirectory",
          "Read",
          "CreateDirectory",
          "DeleteDirectory",
          "Delete",
          "RenameDirectory",
          "Write"
        ],
        "type": "string"
      },
      "EPermissionMode": {
        "enum": [
          "Basic",
          "Advanced",
          "None"
        ],
        "type": "string"
      },
      "EPermissionType": {
        "enum": [
          "File",
          "FilePath",
          "SubDirectoryPath"
        ],
        "type": "string"
      },
      "EQueryMonitoringAction": {
        "enum": [
          "None",
          "Restart",
          "Stop",
          "Disable",
          "SendEmail"
        ],
        "type": "string"
      },
      "EQueryMonitoringRuleOperator": {
        "enum": [
          "Equals",
          "NotEquals",
          "LessThan",
          "LessThanOrEqual",
          "GreaterThan",
          "GreaterThanOrEqual",
          "Contains",
          "NotContains",
          "Matches",
          "DoesNotMatch"
        ],
        "type": "string",
        "description": "Comparison operator for a custom monitoring rule. V2's `GameMonitorRule` shipped only the\nsix numeric/equality operators (0–5); V3 adds the four string/regex operators (6–9) on top —\nadmins kept asking for substring/regex matching against query rule values. Numeric values are\nstable; scripts and the activity log read them, do not renumber existing members."
      },
      "EQueryMonitoringRuleSource": {
        "enum": [
          "QueryRule",
          "Status",
          "Hostname",
          "Name",
          "GameType",
          "Map",
          "NumPlayers",
          "MaxPlayers",
          "NumSpectators",
          "MaxSpectators"
        ],
        "type": "string",
        "description": "Identifies which field of `GameQueryResponse` a custom monitoring rule compares against.\nTCAdmin.Web.Shared.Models.Enums.EQueryMonitoringRuleSource.QueryRule looks up a key in `GameQueryResponse.Rules` (the qstat \"rules\"\nsection); every other value targets a typed top-level field. The numeric values are stable —\nscripts and SQL queries may compare against them, do not renumber."
      },
      "ERoleType": {
        "enum": [
          "Admin",
          "SubAdmin",
          "User",
          "SubUser"
        ],
        "type": "string"
      },
      "ERuntimeObjectType": {
        "enum": [
          "Class",
          "Property",
          "Variable",
          "Value",
          "Function"
        ],
        "type": "string"
      },
      "EScriptEngineDto": {
        "enum": [
          "Batch",
          "CSharp",
          "IronPython3",
          "Javascript",
          "Lua",
          "Powershell",
          "VisualEditor"
        ],
        "type": "string"
      },
      "EServerConfigurationOptionScope": {
        "enum": [
          "None",
          "Global",
          "Datacenter",
          "Server"
        ],
        "type": "string",
        "description": "The scope the winning `tc_server_configuration_options` row is stored at; TCAdmin.Web.Shared.Models.Enums.EServerConfigurationOptionScope.None\nmeans the reader falls back to its own appsettings."
      },
      "EServerSelectionMode": {
        "enum": [
          "RoundRobin",
          "LeastServices",
          "MostServices"
        ],
        "type": "string"
      },
      "EServerStatusState": {
        "enum": [
          "Online",
          "Offline",
          "Unknown"
        ],
        "type": "string",
        "description": "Server online state derived from the monitor's Redis heartbeat."
      },
      "EServerTerminationAction": {
        "enum": [
          "ClearOwner",
          "Delete",
          "ManualTermination"
        ],
        "type": "string"
      },
      "EServiceCategoryType": {
        "enum": [
          "GameService",
          "VoiceService",
          "DockerService",
          "Other"
        ],
        "type": "string"
      },
      "EServiceMoveMethod": {
        "enum": [
          "Https",
          "Rsync",
          "Ftps",
          "Robocopy",
          "Local",
          "Sftp"
        ],
        "type": "string",
        "description": "How service files travel from the source server to the target server during a move/copy."
      },
      "EServicePageSurface": {
        "enum": [
          "Home",
          "Header"
        ],
        "type": "string",
        "description": "Which per-service page surface `GET Service/{id}/PageTemplate` renders. The server maps the\nkind to the service-type-specific template key (`GameService.Home` / `DockerService.Home`\n/ `GameService.Header` / `DockerService.Header`), so the client never needs to know\nwhether the service is a game or a docker service."
      },
      "EServiceStartup": {
        "enum": [
          "Automatic",
          "Manual",
          "Disabled"
        ],
        "type": "string"
      },
      "EServiceStatus": {
        "enum": [
          "Starting",
          "Started",
          "Stopping",
          "Stopped",
          "Unknown"
        ],
        "type": "string"
      },
      "ESteamToolDto": {
        "enum": [
          "DepotDownloader",
          "SteamCmd"
        ],
        "type": "string"
      },
      "ETaskStatus": {
        "enum": [
          "Cancelled",
          "Running",
          "Completed",
          "Failed",
          "Pending"
        ],
        "type": "string"
      },
      "EUpdateJobPhase": {
        "enum": [
          "None",
          "Master",
          "Remotes",
          "Complete",
          "CompletedWithErrors",
          "Failed"
        ],
        "type": "string",
        "description": "Lifecycle phase of a system update job. TCAdmin.Web.Shared.Models.SystemUpdate.EUpdateJobPhase.None is a status-only sentinel\n            meaning \"no current job\" and is never persisted."
      },
      "EUpdateJobServerStatus": {
        "enum": [
          "Pending",
          "Updating",
          "WaitingForHealthy",
          "Done",
          "Failed",
          "Skipped"
        ],
        "type": "string",
        "description": "Per-server update status within a job."
      },
      "EUserStatus": {
        "enum": [
          "Active",
          "Suspended"
        ],
        "type": "string"
      },
      "EValueType": {
        "enum": [
          "Static",
          "Template",
          "Expression",
          "Variable"
        ],
        "type": "string"
      },
      "EffectiveServerConfigurationDto": {
        "required": [
          "key",
          "source"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "The configuration key.",
            "nullable": true
          },
          "value": {
            "type": "string",
            "description": "The effective value for this key.\nFor encrypted values, this will be masked (asterisks) unless explicitly requested.",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "description": "The priority of the effective value.",
            "format": "int32"
          },
          "source": {
            "type": "string",
            "description": "The source of the effective value: \"Global\", \"Datacenter\", or \"Server\".",
            "nullable": true
          },
          "sourceId": {
            "type": "integer",
            "description": "The ID of the source entity (DatacenterId or ServerId), if applicable.",
            "format": "int64",
            "nullable": true
          },
          "sourceOptionId": {
            "type": "integer",
            "description": "The ID of the source configuration option entity.\nUsed to support decryption of encrypted values.",
            "format": "int64"
          },
          "isOverriddenAtCurrentScope": {
            "type": "boolean",
            "description": "Whether this value is overridden at the current scope."
          },
          "isInherited": {
            "type": "boolean",
            "description": "Whether this value is inherited from a parent scope."
          },
          "isEncrypted": {
            "type": "boolean",
            "description": "Whether this value is encrypted (and should be treated as a secret)."
          }
        },
        "additionalProperties": false,
        "description": "Represents the effective configuration for a scope, showing where each value comes from."
      },
      "EmailPreviewRequestDto": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "nullable": true
          },
          "htmlBody": {
            "type": "string",
            "nullable": true
          },
          "textBody": {
            "type": "string",
            "nullable": true
          },
          "contextType": {
            "$ref": "#/components/schemas/EEmailTemplateContextType"
          }
        },
        "additionalProperties": false,
        "description": "Render the posted (possibly unsaved) template content against sample data."
      },
      "EmailPreviewResultDto": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "nullable": true
          },
          "htmlBody": {
            "type": "string",
            "nullable": true
          },
          "textBody": {
            "type": "string",
            "nullable": true
          },
          "error": {
            "type": "string",
            "description": "Fluid parse/render error, if any (null on success).",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EmailQueueItemDto": {
        "type": "object",
        "properties": {
          "emailQueueId": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "$ref": "#/components/schemas/EEmailQueueStatus"
          },
          "attempts": {
            "type": "integer",
            "format": "int32"
          },
          "nextAttemptAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastError": {
            "type": "string",
            "nullable": true
          },
          "fromName": {
            "type": "string",
            "nullable": true
          },
          "fromEmail": {
            "type": "string",
            "nullable": true
          },
          "toEmails": {
            "type": "string",
            "nullable": true
          },
          "ccEmails": {
            "type": "string",
            "nullable": true
          },
          "bccEmails": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "htmlBody": {
            "type": "string",
            "nullable": true
          },
          "textBody": {
            "type": "string",
            "nullable": true
          },
          "templateKey": {
            "type": "string",
            "nullable": true
          },
          "targetUserId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "sentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Full queue row including rendered bodies (single-item view)."
      },
      "EmailQueueItemInfoDto": {
        "type": "object",
        "properties": {
          "emailQueueId": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "$ref": "#/components/schemas/EEmailQueueStatus"
          },
          "attempts": {
            "type": "integer",
            "format": "int32"
          },
          "nextAttemptAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastError": {
            "type": "string",
            "nullable": true
          },
          "fromEmail": {
            "type": "string",
            "nullable": true
          },
          "toEmails": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "templateKey": {
            "type": "string",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "sentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "List projection for the mail queue grid — no bodies."
      },
      "EmailQueueItemInfoDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailQueueItemInfoDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EmailTemplateDto": {
        "type": "object",
        "properties": {
          "emailTemplateId": {
            "type": "integer",
            "format": "int64"
          },
          "templateKey": {
            "type": "string",
            "description": "Stable key trigger code sends by (e.g. \"user.welcome\"). Unique; read-only for built-ins.",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "$ref": "#/components/schemas/EEmailTemplateCategory"
          },
          "contextType": {
            "$ref": "#/components/schemas/EEmailTemplateContextType"
          },
          "basedOnTemplateKey": {
            "type": "string",
            "description": "Key of the built-in template this custom template is a variant of, or null for built-ins\nand standalone customs. Set at creation and immutable; variants keep the base's ContextType.",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "isBuiltIn": {
            "type": "boolean"
          },
          "forceUserToView": {
            "type": "boolean",
            "description": "Pop the To-recipient's in-app message in a dialog on their next panel load."
          },
          "customIcon": {
            "type": "string",
            "description": "Icon shown in the user's message list and the force-view dialog.",
            "nullable": true
          },
          "fromName": {
            "type": "string",
            "nullable": true
          },
          "fromEmail": {
            "type": "string",
            "nullable": true
          },
          "toEmails": {
            "type": "string",
            "description": "Additional To recipients, comma-separated (the trigger's target user is always included).",
            "nullable": true
          },
          "ccEmails": {
            "type": "string",
            "nullable": true
          },
          "bccEmails": {
            "type": "string",
            "nullable": true
          },
          "toRoleIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ccRoleIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "bccRoleIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "Fluid template for the subject line.",
            "nullable": true
          },
          "htmlBody": {
            "type": "string",
            "description": "Fluid template for the HTML body.",
            "nullable": true
          },
          "textBody": {
            "type": "string",
            "description": "Fluid template for the plain-text alternative body (HTML-only mail when blank).",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailTemplateTranslationDto"
            },
            "description": "Per-language translations of this template. Reconciled by LanguageId on save; a send in a\nlanguage with a matching row uses it wholesale, otherwise the base content above.",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EmailTemplateInfoDto": {
        "type": "object",
        "properties": {
          "emailTemplateId": {
            "type": "integer",
            "format": "int64"
          },
          "templateKey": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "category": {
            "$ref": "#/components/schemas/EEmailTemplateCategory"
          },
          "contextType": {
            "$ref": "#/components/schemas/EEmailTemplateContextType"
          },
          "basedOnTemplateKey": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "isBuiltIn": {
            "type": "boolean"
          },
          "forceUserToView": {
            "type": "boolean"
          },
          "customIcon": {
            "type": "string",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Flat projection for the email-templates list grid."
      },
      "EmailTemplateTranslationDto": {
        "type": "object",
        "properties": {
          "emailTemplateTranslationId": {
            "type": "integer",
            "format": "int64"
          },
          "languageId": {
            "type": "string",
            "description": "The `tc_languages` id this translation is for (e.g. \"es\", \"de-DE\").",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "htmlBody": {
            "type": "string",
            "nullable": true
          },
          "textBody": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A per-language translation of an email template. Reconciled server-side by\nTCAdmin.Web.Shared.Models.Email.EmailTemplateTranslationDto.LanguageId (add / update / remove) on save — see EmailTemplateManager.SyncTranslations."
      },
      "ExecuteScriptRequestDto": {
        "type": "object",
        "properties": {
          "inputVariables": {
            "type": "object",
            "additionalProperties": { },
            "description": "The script's input-variable values keyed by variable name. Validated (and, for variables flagged\n`SaveScriptParameter`, persisted onto the service) exactly like the browser path; names that\naren't inputs of this script are dropped.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Body of `POST Service/{serviceId}/Scripts/{scriptId}/Execute` — the REST twin of the browser's\n`WebHub.ExecuteScript` call."
      },
      "ExecuteScriptResultDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "`true` when the script ran to completion without emitting an error line. A run that timed\n            out, or that reported an error (including a dialog call, which is invalid on a non-interactive\n            run), is `false`."
          },
          "timedOut": {
            "type": "boolean",
            "description": "`true` when the run hit the endpoint's execution cap and was cancelled — same semantics as\n            the browser closing its tab mid-run. TCAdmin.Web.Shared.Models.Scripting.ExecuteScriptResultDto.Output holds whatever was produced first."
          },
          "output": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScriptOutputLineDto"
            },
            "description": "The collected output lines, in emission order, capped server-side.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The result of a non-interactive script run started through\n`POST Service/{serviceId}/Scripts/{scriptId}/Execute`. The endpoint drains the monitor's output\nstream server-side (there is no streaming REST equivalent of the hub's channel), so this is the whole\nrun in one response."
      },
      "ExtractResult": {
        "type": "object",
        "properties": {
          "result": {
            "type": "boolean"
          },
          "taskId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "revertedVariables": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Restricted variable names that were reverted to their DB values because the archive\ncontained a managed config file whose restricted-variable entries differed from the\nservice's authoritative state. Empty when no managed config files were extracted or\nwhen they contained no restricted-variable changes.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FileInformationDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "relativePath": {
            "type": "string",
            "nullable": true
          },
          "size": {
            "type": "integer",
            "format": "int64"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "FileSearchHit": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "File or folder name without any path.",
            "nullable": true
          },
          "relativePath": {
            "type": "string",
            "description": "Path relative to the service root, using the hosting server's directory separator — the\nsame shape as `FileInformation.RelativePath`, so it can be handed straight to the\ndirectory listing, the file editor and the download endpoint.",
            "nullable": true
          },
          "isDirectory": {
            "type": "boolean"
          },
          "size": {
            "type": "integer",
            "description": "Size in bytes. Always 0 for directories.",
            "format": "int64"
          },
          "lastModified": {
            "type": "string",
            "description": "Last write time, UTC.",
            "format": "date-time"
          },
          "matchKind": {
            "$ref": "#/components/schemas/EFileSearchMatchKind"
          },
          "snippet": {
            "type": "string",
            "description": "Excerpt of the file's content around the match, with every matching run delimited by the\nprivate-use sentinel characters `U+E000` (start) and `U+E001` (end); non-adjacent\ncontext is elided with '…'.\n            \n\n<b>Contract:</b> this is RAW FILE CONTENT. Split it on the two sentinels and render\nevery run as TEXT — never as markup (no `MarkupString`, no `innerHTML`). A service\nfile can contain anything, including HTML and script.\nNull when the hit is name-only, when content search is unavailable, or when the\ncaller may view the file but not read it (view-without-read downgrades the hit to a name\nmatch and drops the snippet).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One file or folder matched by a file-manager search."
      },
      "FileSearchResult": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/EFileSearchStatus"
          },
          "indexedEntries": {
            "type": "integer",
            "description": "Entries scanned so far while TCAdmin.Web.Shared.Models.FileSystem.Hub.FileSearchResult.Status is TCAdmin.Web.Shared.Models.FileSystem.Hub.EFileSearchStatus.Indexing;\nthe total number of indexed entries when the index is ready. Progress only ever moves\nforward within one build.",
            "format": "int32"
          },
          "hits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FileSearchHit"
            },
            "description": "Always empty while TCAdmin.Web.Shared.Models.FileSystem.Hub.FileSearchResult.Status is TCAdmin.Web.Shared.Models.FileSystem.Hub.EFileSearchStatus.Indexing.",
            "nullable": true
          },
          "page": {
            "type": "integer",
            "description": "Zero-based index of the page these hits came from.",
            "format": "int32"
          },
          "noMoreResults": {
            "type": "boolean",
            "description": "True on the page that reached the end of the matches."
          },
          "contentSearchAvailable": {
            "type": "boolean",
            "description": "False when the hosting server's SQLite build has no FTS5 trigram tokenizer: names are still\nsearched, content is not. Tell the user once instead of silently returning fewer hits."
          }
        },
        "additionalProperties": false,
        "description": "One page of file-manager search results.\n            \n\nPermission filtering runs AFTER paging (same contract as the directory listing), so a\npage can hold fewer than `PageSize` hits while more pages still exist — only\nTCAdmin.Web.Shared.Models.FileSystem.Hub.FileSearchResult.NoMoreResults ends paging."
      },
      "FileServerDto": {
        "type": "object",
        "properties": {
          "fileServerId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "fileServerCategory": {
            "$ref": "#/components/schemas/EFileServerCategory"
          },
          "fileProviderType": {
            "type": "string",
            "nullable": true
          },
          "connectionUri": {
            "$ref": "#/components/schemas/UriBuilder"
          }
        },
        "additionalProperties": false
      },
      "FileSystemPermissionDto": {
        "type": "object",
        "properties": {
          "gameId": {
            "type": "integer",
            "format": "int64"
          },
          "roleId": {
            "type": "integer",
            "format": "int64"
          },
          "rootPermission": {
            "$ref": "#/components/schemas/VirtualDirectoryRootDto"
          }
        },
        "additionalProperties": false
      },
      "GameCommandlineConfigDto": {
        "type": "object",
        "properties": {
          "enableSelection": {
            "type": "boolean"
          },
          "defaultCommandline": {
            "type": "string",
            "nullable": true
          },
          "privateCommandline": {
            "type": "string",
            "nullable": true
          },
          "defaultCustomCommandline": {
            "type": "string",
            "nullable": true
          },
          "privateCustomCommandline": {
            "type": "string",
            "nullable": true
          },
          "predefinedCommandlines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PredefinedCommandLineDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GameConsoleConfigDto": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "outputSource": {
            "$ref": "#/components/schemas/EGameConfigOutputSource"
          },
          "logFile": {
            "type": "string",
            "nullable": true
          },
          "inputSource": {
            "$ref": "#/components/schemas/EGameConfigInputSource"
          },
          "printRconResponse": {
            "type": "boolean"
          },
          "outputFilters": {
            "type": "string",
            "nullable": true
          },
          "stopCommand": {
            "type": "string",
            "nullable": true
          },
          "waitAfterStopCommand": {
            "type": "integer",
            "format": "int32"
          },
          "screenCaptureTitleBar": {
            "type": "boolean"
          },
          "screenCaptureQuality": {
            "type": "integer",
            "format": "int32"
          },
          "screenCaptureFPS": {
            "type": "integer",
            "format": "int32"
          },
          "screenCaptureAllowMouse": {
            "type": "boolean"
          },
          "screenCaptureAllowKeys": {
            "type": "boolean"
          },
          "screenCaptureMouseHardware": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GameCustomLinkDto": {
        "type": "object",
        "properties": {
          "customLinkType": {
            "type": "string",
            "nullable": true
          },
          "customLinkId": {
            "type": "integer",
            "format": "int64"
          },
          "global": {
            "type": "boolean"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "openInNewWindow": {
            "type": "boolean"
          },
          "openInMainContents": {
            "type": "boolean"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentTranslationDto"
            },
            "description": "Per-language overrides of TCAdmin.Web.Shared.Models.Blueprint.CustomLinkDto.Name / TCAdmin.Web.Shared.Models.Blueprint.CustomLinkDto.Description, shown to customers in the\nservice page's custom-link list. Reconciled server-side by\n`ContentTranslationSync.SyncCustomLinkTranslations` on every create/update path; \"en\" is\nrejected (the base fields ARE English). The slim `ServiceCustomLinkDto` deliberately has no such\nlist — it receives values that are already translated.",
            "nullable": true
          },
          "allGames": {
            "type": "boolean"
          },
          "games": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GameCustomLinkInfoDto": {
        "type": "object",
        "properties": {
          "customLinkId": {
            "type": "integer",
            "format": "int64"
          },
          "global": {
            "type": "boolean"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "openInNewWindow": {
            "type": "boolean"
          },
          "openInMainContents": {
            "type": "boolean"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "allGames": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GameCustomLinkInfoDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameCustomLinkInfoDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GameCustomModProviderConfigDto": {
        "type": "object",
        "properties": {
          "providerId": {
            "type": "integer",
            "format": "int64"
          },
          "gameId": {
            "type": "integer",
            "format": "int64"
          },
          "enabled": {
            "type": "boolean"
          },
          "customName": {
            "type": "string",
            "nullable": true
          },
          "customIcon": {
            "type": "string",
            "nullable": true
          },
          "configuration": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GameDto": {
        "type": "object",
        "properties": {
          "gameId": {
            "type": "integer",
            "format": "int64"
          },
          "blueprintId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "shortName": {
            "type": "string",
            "nullable": true
          },
          "iconImage": {
            "type": "string",
            "nullable": true
          },
          "backgroundImage": {
            "type": "string",
            "nullable": true
          },
          "minSlots": {
            "maximum": 9999,
            "minimum": 0,
            "type": "integer",
            "format": "int32"
          },
          "maxSlots": {
            "maximum": 9999,
            "minimum": 0,
            "type": "integer",
            "format": "int32"
          },
          "defaultSlots": {
            "maximum": 9999,
            "minimum": 0,
            "type": "integer",
            "format": "int32"
          },
          "defaultDiskSpace": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "categoryId": {
            "type": "integer",
            "format": "int64"
          },
          "connectUrl": {
            "type": "string",
            "description": "Optional template for the URL customers use to connect to a service of this game,\ne.g. `steam://connect/${HostnameOrIP}:${GamePort}`.",
            "nullable": true
          },
          "aiCustomPrompt": {
            "type": "string",
            "description": "Optional admin-authored prompt for the AI assistant, included as context whenever a chat user\nis working with a service of this game (sent to the configured AI provider like the\ninstall-wide custom prompt; it cannot change permissions or bypass confirmations).",
            "nullable": true
          },
          "editableExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "logExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "maxEditableSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "startedUntilResponding": {
            "type": "boolean"
          },
          "startingTimeout": {
            "type": "string",
            "format": "date-span",
            "nullable": true
          },
          "operatingSystem": {
            "$ref": "#/components/schemas/EOperatingSystem"
          },
          "v2GameId": {
            "type": "integer",
            "description": "Identifier of the matching V2 game. Set by the admin to enable V2→V3 service imports —\nthe import wizard maps V2 services' game references to V3 games via this field.",
            "format": "int32",
            "nullable": true
          },
          "queryRconProtocolConfig": {
            "$ref": "#/components/schemas/GameQueryRconProtocolConfigDto"
          },
          "consoleConfig": {
            "$ref": "#/components/schemas/GameConsoleConfigDto"
          },
          "ipPortAllocationConfig": {
            "$ref": "#/components/schemas/IpPortAllocationConfigDto"
          },
          "fileAndDirectoryConfig": {
            "$ref": "#/components/schemas/GameFileAndDirectoryConfigDto"
          },
          "steamConfig": {
            "$ref": "#/components/schemas/GameSteamConfigDto"
          },
          "gameCommandlineConfig": {
            "$ref": "#/components/schemas/GameCommandlineConfigDto"
          },
          "runAsConfig": {
            "$ref": "#/components/schemas/GameRunAsConfigDto"
          }
        },
        "additionalProperties": false
      },
      "GameFileAndDirectoryConfigDto": {
        "type": "object",
        "properties": {
          "relativeExecutable": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "relativeWorkingDirectory": {
            "type": "string",
            "nullable": true
          },
          "autoSetupFolderName": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "failOnMissingExecutable": {
            "type": "boolean"
          },
          "externalDownloadEnable": {
            "type": "boolean"
          },
          "externalDownloadUrl": {
            "type": "string",
            "nullable": true
          },
          "externalDownloadFileName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GameQueryInfoDto": {
        "type": "object",
        "properties": {
          "protocol": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "hostname": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "gameType": {
            "type": "string",
            "nullable": true
          },
          "map": {
            "type": "string",
            "nullable": true
          },
          "numPlayers": {
            "type": "integer",
            "format": "int32"
          },
          "maxPlayers": {
            "type": "integer",
            "format": "int32"
          },
          "numSpectators": {
            "type": "integer",
            "format": "int32"
          },
          "maxSpectators": {
            "type": "integer",
            "format": "int32"
          },
          "success": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GameQueryMonitoringConfigDto": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "checkInterval": {
            "type": "string",
            "format": "date-span"
          },
          "startupGracePeriod": {
            "type": "string",
            "format": "date-span"
          },
          "retryDelay": {
            "type": "string",
            "format": "date-span"
          },
          "failureThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "failureAction": {
            "$ref": "#/components/schemas/EQueryMonitoringAction"
          },
          "maxFailureAction": {
            "$ref": "#/components/schemas/EQueryMonitoringAction"
          },
          "failureEmailTemplateKey": {
            "type": "string",
            "description": "Template for the below-threshold failure email (SendEmail on TCAdmin.Web.Shared.Models.Game.GameQueryMonitoringConfigDto.FailureAction).\nNull/empty → the built-in `service.query_failed`; otherwise that key or a template\nbased on it.",
            "nullable": true
          },
          "maxFailureEmailTemplateKey": {
            "type": "string",
            "description": "Template for the threshold-reached email (SendEmail on TCAdmin.Web.Shared.Models.Game.GameQueryMonitoringConfigDto.MaxFailureAction).\nNull/empty → the built-in `service.query_max_failures`.",
            "nullable": true
          },
          "logActivityOnFailure": {
            "type": "boolean",
            "description": "When true (and monitoring is TCAdmin.Web.Shared.Models.Game.GameQueryMonitoringConfigDto.Enabled), each confirmed query failure is\nrecorded in the activity log with action=Monitoring, attributed to the service owner."
          },
          "autoRestartOnExit": {
            "type": "boolean"
          },
          "autoRestartDelay": {
            "type": "string",
            "format": "date-span"
          },
          "autoRestartMaxAttempts": {
            "type": "integer",
            "format": "int32"
          },
          "autoRestartWindow": {
            "type": "string",
            "format": "date-span"
          },
          "logUnexpectedExit": {
            "type": "boolean",
            "description": "Gates both the unexpected-exit and the restart-limit-reached activity rows."
          },
          "slotDetectionEnabled": {
            "type": "boolean"
          },
          "slotDetectionAction": {
            "$ref": "#/components/schemas/EQueryMonitoringAction"
          },
          "slotDetectionEmailTemplateKey": {
            "type": "string",
            "description": "Null/empty → the built-in `service.detection.slots`.",
            "nullable": true
          },
          "additionalAllowedSlots": {
            "type": "integer",
            "format": "int32"
          },
          "privateDetectionEnabled": {
            "type": "boolean"
          },
          "privateDetectionAction": {
            "$ref": "#/components/schemas/EQueryMonitoringAction"
          },
          "privateDetectionEmailTemplateKey": {
            "type": "string",
            "description": "Null/empty → the built-in `service.detection.private`.",
            "nullable": true
          },
          "brandDetectionEnabled": {
            "type": "boolean"
          },
          "brandDetectionAction": {
            "$ref": "#/components/schemas/EQueryMonitoringAction"
          },
          "brandDetectionEmailTemplateKey": {
            "type": "string",
            "description": "Null/empty → the built-in `service.detection.brand`.",
            "nullable": true
          },
          "brandedText": {
            "type": "string",
            "nullable": true
          },
          "brandedTextAtEnd": {
            "type": "boolean"
          },
          "brandedTextAddSpace": {
            "type": "boolean"
          },
          "brandRegex": {
            "type": "string",
            "nullable": true
          },
          "brandRegexCaseInsensitive": {
            "type": "boolean"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameQueryMonitoringRuleDto"
            },
            "description": "Admin-authored rules evaluated against each running service's latest query result.\nEmpty / all-disabled → no rule evaluation. Each rule has its own per-rule\nTCAdmin.Web.Shared.Models.Game.GameQueryMonitoringRuleDto.Action and TCAdmin.Web.Shared.Models.Game.GameQueryMonitoringRuleDto.Enabled\nflag; the shared timing fields (CheckInterval / StartupGracePeriod / RetryDelay) on this\nconfig apply to rule evaluation too.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO for the per-game query-monitoring config (`tc_game_query_monitoring`).\nMirrors `GameQueryMonitoringConfig` on the `Game` entity; consumed by\nthe \"Monitoring\" page on the Game blueprint editor.\nGame-only — query monitoring does not apply to Docker blueprints."
      },
      "GameQueryMonitoringRuleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "source": {
            "$ref": "#/components/schemas/EQueryMonitoringRuleSource"
          },
          "ruleKey": {
            "type": "string",
            "nullable": true
          },
          "operator": {
            "$ref": "#/components/schemas/EQueryMonitoringRuleOperator"
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "caseInsensitive": {
            "type": "boolean"
          },
          "action": {
            "$ref": "#/components/schemas/EQueryMonitoringAction"
          },
          "emailTemplateKey": {
            "type": "string",
            "description": "Template for this rule's email (SendEmail on TCAdmin.Web.Shared.Models.Game.GameQueryMonitoringRuleDto.Action). Null/empty → the\nbuilt-in `service.detection.rule`; otherwise that key or a template based on it.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "DTO mirror of `GameQueryMonitoringRule` for the rules editor on the Query Monitoring page.\nRound-trips through the parent TCAdmin.Web.Shared.Models.Game.GameQueryMonitoringConfigDto — there is no\nper-rule API endpoint, the page's single Save PUTs the whole config (rules collection\nincluded). `Id` is load-bearing for engine state tracking; on a new (unsaved) rule it\nis 0 and EF assigns the real value when the parent is saved."
      },
      "GameQueryRconProtocolConfigDto": {
        "type": "object",
        "properties": {
          "queryProtocol": {
            "type": "string",
            "nullable": true
          },
          "rconProtocol": {
            "type": "string",
            "nullable": true
          },
          "privateRule": {
            "type": "string",
            "nullable": true
          },
          "privateRuleValue": {
            "type": "string",
            "nullable": true
          },
          "hiddenRules": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "eosClientId": {
            "type": "string",
            "nullable": true
          },
          "eosClientSecret": {
            "type": "string",
            "nullable": true
          },
          "eosDeploymentId": {
            "type": "string",
            "nullable": true
          },
          "eosGrantType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GameRunAsConfigDto": {
        "type": "object",
        "properties": {
          "runAs": {
            "$ref": "#/components/schemas/EGameRunAs"
          },
          "specificUsername": {
            "type": "string",
            "nullable": true
          },
          "specificPassword": {
            "type": "string",
            "nullable": true
          },
          "elevated": {
            "type": "boolean"
          },
          "interactWithDesktop": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GameScriptDto": {
        "type": "object",
        "properties": {
          "scriptType": {
            "type": "string",
            "nullable": true
          },
          "scriptId": {
            "type": "integer",
            "format": "int64"
          },
          "global": {
            "type": "boolean"
          },
          "scriptEngine": {
            "$ref": "#/components/schemas/EScriptEngineDto"
          },
          "operatingSystem": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EOperatingSystem"
            },
            "nullable": true
          },
          "scriptEvents": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "runImpersonated": {
            "type": "boolean"
          },
          "stopService": {
            "type": "boolean"
          },
          "ignoreErrors": {
            "type": "boolean"
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "inputVariables": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "editor": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicControlBaseDto"
            },
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentTranslationDto"
            },
            "description": "Per-language overrides of TCAdmin.Web.Shared.Models.Blueprint.ScriptDto.Name / TCAdmin.Web.Shared.Models.Blueprint.ScriptDto.Description, shown to customers on the\nservice page's Custom Action / Custom Icon surfaces. Reconciled server-side by\n`ContentTranslationSync.SyncScriptTranslations` on every create/update path; \"en\" is rejected\n(the base fields ARE English). The slim `ServiceScriptDto` deliberately has no such list — it\nreceives values that are already translated.",
            "nullable": true
          },
          "importedFromV2": {
            "type": "boolean",
            "description": "READ-ONLY projection of the script's `imported_from_v2` metadata marker: this script came in\nthrough a V2 blueprint import (manual V2 XML or a V2 plugin-repo install) and so was written\nagainst the V2 scripting API. Drives the script editor's \"Convert to C# with AI\" prompt. The write\npaths ignore it (the mappers' `MapperIgnoreSource`), so a client save can never set or clear it."
          },
          "v2ScriptEngine": {
            "type": "string",
            "description": "READ-ONLY projection of `v2_script_engine` — the engine the script was authored for in V2\n(\"IronPython 2\", \"Batch\", …), which the V3 engine value cannot reconstruct. Null unless\nTCAdmin.Web.Shared.Models.Blueprint.ScriptDto.ImportedFromV2 is true. Ignored on every write path, like the flag.",
            "nullable": true
          },
          "v2Pristine": {
            "type": "boolean",
            "description": "READ-ONLY projection of `v2_pristine`: this script is still exactly as the V2 importer created\nit and therefore REFUSES TO RUN until it is converted or reviewed. Unlike\nTCAdmin.Web.Shared.Models.Blueprint.ScriptDto.ImportedFromV2 this one is transient — the server clears it on any successful save of\nthe script. Write-protected on every mapper (a client payload must never set or clear it; only the\nserver-side clear-on-save may), for the obvious reason that it is a safety gate."
          },
          "allGames": {
            "type": "boolean"
          },
          "games": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GameScriptInfoDto": {
        "type": "object",
        "properties": {
          "scriptId": {
            "type": "integer",
            "format": "int64"
          },
          "global": {
            "type": "boolean"
          },
          "scriptEngine": {
            "$ref": "#/components/schemas/EScriptEngineDto"
          },
          "operatingSystem": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EOperatingSystem"
            },
            "nullable": true
          },
          "scriptEvents": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "runImpersonated": {
            "type": "boolean"
          },
          "stopService": {
            "type": "boolean"
          },
          "ignoreErrors": {
            "type": "boolean"
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "v2Pristine": {
            "type": "boolean",
            "description": "READ-ONLY projection of `v2_pristine` (see TCAdmin.Web.Shared.Models.Blueprint.ScriptDto.V2Pristine) — the script\nwill not run until it is converted or reviewed-and-saved. This is what the blueprint Scripts list\ncounts for its banner: it matches the set of scripts that are actually blocked, on any engine, and\nempties itself as they are approved. The permanent `imported_from_v2` origin marker is\ndeliberately NOT projected here — only the rich TCAdmin.Web.Shared.Models.Blueprint.ScriptDto (the editor) needs it.\nThere is no write path for the info DTO, so no ignore attributes are needed."
          },
          "allGames": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GameScriptInfoDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameScriptInfoDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GameServiceDto": {
        "type": "object",
        "properties": {
          "serviceType": {
            "type": "string",
            "nullable": true
          },
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "blueprintId": {
            "type": "integer",
            "format": "int64"
          },
          "blueprintName": {
            "type": "string",
            "nullable": true
          },
          "ownerId": {
            "type": "integer",
            "description": "The user who owns this service. On update it is only applied when the caller can view users.",
            "format": "int32"
          },
          "billingId": {
            "type": "string",
            "nullable": true
          },
          "billingStatus": {
            "$ref": "#/components/schemas/EBillingStatus"
          },
          "ipAddress": {
            "type": "string",
            "nullable": true
          },
          "ipHostname": {
            "type": "string",
            "nullable": true
          },
          "hostnameOrIP": {
            "type": "string",
            "nullable": true
          },
          "serverIpId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "ports": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Returns 0 if the port key does not exist",
            "nullable": true
          },
          "portUris": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "portDescriptions": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "blueprintPortNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The blueprint's port ids in definition order; server-derived, ignored on PUT.",
            "nullable": true
          },
          "portExpressions": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Port name → the blueprint expression it is derived from (e.g. `Query` → `\"GamePort + 1\"`),\nin blueprint definition order; only ports that HAVE an expression appear, so it is empty for most\nblueprints. Server-derived in `PostMapAsync`; posted values are ignored (there is no such\nentity property).\n\nIt exists so a caller can see which ports follow another and offer to re-derive them — the\nsettings PUT never does that itself, because an admin may override a linked port deliberately.",
            "nullable": true
          },
          "connectUrl": {
            "type": "string",
            "description": "The blueprint's connect-URL template resolved for this service (e.g.\n`steam://connect/203.0.113.10:27015`). Null when the blueprint defines no template or\na token can't be resolved. Server-derived in `PostMapAsync`; posted values are ignored.",
            "nullable": true
          },
          "displayPort": {
            "type": "integer",
            "format": "int32"
          },
          "ftpPort": {
            "type": "integer",
            "description": "The hosting server's FTP/FTPS port, resolved server-side from the server's Redis heartbeat\n(the monitor publishes its `TCAdmin:Ftp:Port` only while `TCAdmin:Ftp:Enabled`).\n`null` when FTP is disabled on the host or the heartbeat is unavailable (Redis down, no\nbeat yet, an older monitor) — the UI then hides FTPS rather than advertising a dead endpoint.",
            "format": "int32",
            "nullable": true
          },
          "sftpPort": {
            "type": "integer",
            "description": "The hosting server's SFTP port, resolved from the same heartbeat as TCAdmin.Web.Shared.Models.Service.ServiceDto.FtpPort.\n`null` when unknown or when SFTP is disabled on the host. With both null the service-home\nfile-transfer card disappears entirely; with one of them the card drops its FTPS↔SFTP toggle.",
            "format": "int32",
            "nullable": true
          },
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "virtualServerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "rootDirectory": {
            "type": "string",
            "nullable": true
          },
          "workingDirectory": {
            "type": "string",
            "nullable": true
          },
          "executable": {
            "type": "string",
            "nullable": true
          },
          "commandline": {
            "type": "string",
            "description": "The parsed command line the monitor launches. Server-derived from\nTCAdmin.Web.Shared.Models.Service.ServiceDto.UnparsedCommandline on game services, where the settings PUT additionally\ndiscards any posted value (`GameServiceController.NormalizeCommandlinePayload`).\n\nThe write gate below is what protects <b>Docker</b> services, which have no such\nderivation: a Docker `Commandline` is template-evaluated and handed to the container\nas `/bin/sh -c <value>` (`DockerBlueprintExtensions.ToCreateContainerParameters`),\nso an ungated write on `PUT DockerService/{id}/UpdateDockerService` is arbitrary\ncommand execution inside the container. The endpoint's own `ServiceSettingsPermission`\nfilter is satisfied by service-scoped settings access — which owners routinely have — so\nthe field needs the blueprint-scoped grant on top of it. Set the command line through the\npredefined/custom command-line flow (`BpFeature.PredefCmdlines`/`CustomCmdlines`),\nnot this field.\nUpdate-only: reads are unchanged, and `base.Update` restores the stored value for\ncallers without the permission rather than blanking it.",
            "nullable": true
          },
          "unparsedCommandline": {
            "type": "string",
            "description": "The active `${token}` template TCAdmin.Web.Shared.Models.Service.ServiceDto.Commandline is derived from.\nSystem-managed unless TCAdmin.Web.Shared.Models.Service.ServiceDto.OverrideCommandline is set; posted values are only\nhonored while overriding.",
            "nullable": true
          },
          "overrideCommandline": {
            "type": "boolean",
            "description": "When true an admin owns the command-line template: the system keeps re-parsing its tokens\non settings/variable changes but never replaces the template, and applying\npredefined/custom command lines is blocked."
          },
          "startup": {
            "$ref": "#/components/schemas/EServiceStartup"
          },
          "categoryId": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "$ref": "#/components/schemas/EServiceStatus"
          },
          "monitoringDisabled": {
            "type": "boolean",
            "description": "Per-service master opt-out — when true the monitor skips this service entirely, regardless of the blueprint's detection config."
          },
          "branded": {
            "type": "boolean",
            "description": "Per-service opt-in for brand detection (see GameQueryMonitoringConfig.BrandDetectionEnabled)."
          },
          "isPrivate": {
            "type": "boolean",
            "description": "Per-service opt-in for private detection (see GameQueryMonitoringConfig.PrivateDetectionEnabled)."
          },
          "startTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "mySqlDbLimit": {
            "type": "integer",
            "format": "int32"
          },
          "shortName": {
            "type": "string",
            "nullable": true
          },
          "backgroundImage": {
            "type": "string",
            "nullable": true
          },
          "iconImage": {
            "type": "string",
            "nullable": true
          },
          "diskSpace": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "backupMaxCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "backupMaxSpace": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fastDLEnabled": {
            "type": "boolean",
            "description": "Per-service Fast Downloads override. `true` = force-enabled, `false` =\nforce-disabled, `null` = inherit the blueprint's FastDL `Enabled` value.\nAdmin-only — gated to TCAdmin.SDK.Constants.BlueprintFeatures.ServiceSettings like the other\nper-service settings, so customers can't flip their own FastDL state.",
            "nullable": true
          },
          "fastDLUrlOverride": {
            "type": "string",
            "description": "Per-service Fast Downloads URL override. Empty/null = compose the URL from the server's\nFastDL base URL and folder template; set = that exact URL is what `${FastDownloadUrl}`\nrenders into config files (e.g. a Source `sv_downloadurl` line). Publish-only: it does\nnot move where files are uploaded. Admin-only, gated like TCAdmin.Web.Shared.Models.Service.ServiceDto.FastDLEnabled.",
            "nullable": true
          },
          "fastDLUsage": {
            "type": "integer",
            "format": "int64"
          },
          "fastDLFileCount": {
            "type": "integer",
            "format": "int32"
          },
          "fastDLLastSyncUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ownerUsername": {
            "type": "string",
            "nullable": true
          },
          "slots": {
            "type": "integer",
            "format": "int32"
          },
          "gamePort": {
            "type": "integer",
            "format": "int32"
          },
          "queryPort": {
            "type": "integer",
            "format": "int32"
          },
          "rconPort": {
            "type": "integer",
            "format": "int32"
          },
          "affinity": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "affinityCpus": {
            "type": "string",
            "description": "Cpuset-syntax list of ABSOLUTE kernel CPU ids (\"0-3,70-75\"). Linux servers only; used\ninstead of TCAdmin.Web.Shared.Models.Game.GameServiceDto.Affinity when the selection includes a CPU ≥ 64. Mutually\nexclusive with TCAdmin.Web.Shared.Models.Game.GameServiceDto.NumaNode and never set for VS-hosted services.",
            "nullable": true
          },
          "numaNode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "priority": {
            "$ref": "#/components/schemas/ProcessPriorityClass"
          },
          "cpuLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "memoryLimit": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "virtualServerName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GameServiceInfoModel": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "blueprintId": {
            "type": "integer",
            "format": "int64"
          },
          "blueprintName": {
            "type": "string",
            "nullable": true
          },
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "serverName": {
            "type": "string",
            "nullable": true
          },
          "fileManagerEnabled": {
            "type": "boolean"
          },
          "configFilesEnabled": {
            "type": "boolean"
          },
          "predefinedCommandlinesEnabled": {
            "type": "boolean"
          },
          "customCommandlinesEnabled": {
            "type": "boolean"
          },
          "scheduledTasksEnabled": {
            "type": "boolean"
          },
          "backupsEnabled": {
            "type": "boolean"
          },
          "stopServiceBeforeBackup": {
            "type": "boolean"
          },
          "modsEnabled": {
            "type": "boolean",
            "description": "Mods nav link gating: the blueprint has at least one mod, ANDed with the Mods\nblueprint-feature / per-service permission. Set by the controllers (cheap EXISTS query),\nnever auto-mapped."
          },
          "fastDLEnabled": {
            "type": "boolean",
            "description": "FastDL effective-enabled for the service — the per-service override, or the blueprint\nconfig when the override is unset, ANDed with the server switch. Gates the service-side\n\"Fast Downloads\" nav link. Permission-independent; the layout ANDs this with the FastDL\nblueprint-feature permission. Set by the controller, never auto-mapped — see the\n`[MapperIgnoreTarget]` on the info-model mappers."
          },
          "editableExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "maxEditableSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "diskSpace": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "ownsServer": {
            "type": "boolean"
          },
          "virtualServerName": {
            "type": "string",
            "description": "Name of the virtual server hosting this service, or null when the service runs\ndirectly on the physical server. TCAdmin.Web.Shared.Models.Service.ServiceInfoModel.ServerName is always\nthe physical server's name.",
            "nullable": true
          },
          "virtualServerId": {
            "type": "integer",
            "description": "Id of the virtual server hosting this service, or null when the service runs directly\non the physical server. Pairs with TCAdmin.Web.Shared.Models.GameService.GameServiceInfoModel.VirtualServerName.",
            "format": "int64",
            "nullable": true
          },
          "consoleEnabled": {
            "type": "boolean"
          },
          "steamUpdateEnabled": {
            "type": "boolean"
          },
          "updatesEnabled": {
            "type": "boolean"
          },
          "operatingSystem": {
            "$ref": "#/components/schemas/EOperatingSystem"
          },
          "startedUntilResponding": {
            "type": "boolean"
          },
          "startingTimeout": {
            "type": "string",
            "format": "date-span"
          },
          "customModsConfig": {
            "$ref": "#/components/schemas/CustomModsConfigModel"
          },
          "outputSource": {
            "$ref": "#/components/schemas/EGameConfigOutputSource"
          },
          "inputSource": {
            "$ref": "#/components/schemas/EGameConfigInputSource"
          },
          "screenCaptureAllowMouse": {
            "type": "boolean"
          },
          "screenCaptureAllowKeys": {
            "type": "boolean"
          },
          "screenCaptureMouseHardware": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GameSteamConfigDto": {
        "type": "object",
        "properties": {
          "steamUpdate": {
            "type": "boolean"
          },
          "appId": {
            "type": "integer",
            "format": "int32"
          },
          "storeId": {
            "type": "integer",
            "format": "int32"
          },
          "runAsServiceUser": {
            "type": "boolean"
          },
          "branch": {
            "type": "string",
            "nullable": true
          },
          "branchPassword": {
            "type": "string",
            "nullable": true
          },
          "extraParameters": {
            "type": "string",
            "nullable": true
          },
          "steamUsername": {
            "type": "string",
            "nullable": true
          },
          "steamPassword": {
            "type": "string",
            "nullable": true
          },
          "steamDownloadRetries": {
            "type": "integer",
            "format": "int32"
          },
          "updateAfterCreateOrReinstall": {
            "type": "boolean"
          },
          "verifyAll": {
            "type": "boolean"
          },
          "steamTool": {
            "$ref": "#/components/schemas/ESteamToolDto"
          }
        },
        "additionalProperties": false
      },
      "GameToolsServerDto": {
        "type": "object",
        "properties": {
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "isMaster": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GameUpdateDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "updateId": {
            "type": "integer",
            "format": "int64"
          },
          "gameId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "groupName": {
            "maxLength": 200,
            "type": "string",
            "nullable": true
          },
          "comments": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "saveAsFilename": {
            "maxLength": 200,
            "type": "string",
            "nullable": true
          },
          "extractPath": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "reinstallable": {
            "type": "boolean"
          },
          "defaultInstall": {
            "type": "boolean"
          },
          "viewOrder": {
            "type": "integer",
            "format": "int32"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "maxLength": 100,
            "type": "string",
            "description": "Free-form release version (e.g. \"1.21.4\").",
            "nullable": true
          },
          "releaseType": {
            "maxLength": 50,
            "type": "string",
            "description": "Free-form release channel label (\"Release\", \"Beta\", \"Snapshot\", …).",
            "nullable": true
          },
          "releaseDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "fileSizeBytes": {
            "type": "integer",
            "description": "Download size in bytes. Display-only metadata supplied by the admin.",
            "format": "int64",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "scripts": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GameUpdateInfoDto": {
        "type": "object",
        "properties": {
          "updateId": {
            "type": "integer",
            "format": "int64"
          },
          "gameId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "groupName": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "reinstallable": {
            "type": "boolean"
          },
          "defaultInstall": {
            "type": "boolean"
          },
          "viewOrder": {
            "type": "integer",
            "format": "int32"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Role IDs currently allowed to install this update (for the permissions matrix).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Lightweight list-row projection — used by the admin Updates table. The full\nTCAdmin.Web.Shared.Models.Game.GameUpdateDto (with Roles/Scripts) is fetched only when the\nuser clicks Edit."
      },
      "GameUpdateInfoDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GameUpdateInfoDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GameUpdatePermissionDto": {
        "type": "object",
        "properties": {
          "updateId": {
            "type": "integer",
            "format": "int64"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Batch-update payload for the Updates → Permissions matrix. Each entry replaces the\nrole set for the named update — empty TCAdmin.Web.Shared.Models.Game.GameUpdatePermissionDto.Roles means admin-only."
      },
      "GameVariableDto": {
        "type": "object",
        "properties": {
          "variableType": {
            "type": "string",
            "nullable": true
          },
          "variableId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "editor": {
            "$ref": "#/components/schemas/DynamicControlBaseDto"
          },
          "defaultValue": {
            "nullable": true
          },
          "required": {
            "type": "boolean"
          },
          "requiredMessage": {
            "type": "string",
            "nullable": true
          },
          "scriptParameter": {
            "type": "boolean"
          },
          "commandlineParameter": {
            "type": "boolean"
          },
          "saveScriptParameter": {
            "type": "boolean"
          },
          "syncCommandlineParameter": {
            "type": "boolean"
          },
          "template": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "gameId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetConfigFileModel": {
        "required": [
          "configFile"
        ],
        "type": "object",
        "properties": {
          "configFile": {
            "$ref": "#/components/schemas/ServiceConfigFile"
          },
          "contents": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetConfigFileVariablesModel": {
        "required": [
          "configFile"
        ],
        "type": "object",
        "properties": {
          "configFile": {
            "$ref": "#/components/schemas/ServiceConfigFile"
          },
          "variables": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetTextFileModel": {
        "type": "object",
        "properties": {
          "relativePath": {
            "type": "string",
            "nullable": true
          },
          "contents": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GettingStartedStatusDto": {
        "type": "object",
        "properties": {
          "hasDefaultPassword": {
            "type": "boolean",
            "description": "Whether the current user still has the default password"
          },
          "serversWithoutLicense": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServerLicenseInfoDto"
            },
            "description": "List of servers without valid licenses",
            "nullable": true
          },
          "hasGames": {
            "type": "boolean",
            "description": "Whether there are any games configured"
          },
          "hasDockerBlueprints": {
            "type": "boolean",
            "description": "Whether there are any Docker blueprints configured"
          },
          "hasLanguages": {
            "type": "boolean",
            "description": "Whether there are any languages other than English configured"
          },
          "hasDefaultSteamSettings": {
            "type": "boolean",
            "description": "Whether default Steam settings have been configured (a non-anonymous account or an API key)"
          },
          "hasChosenPanelMode": {
            "type": "boolean",
            "description": "Whether the panel mode has ever been saved (see docs/PANEL_MODE.md)."
          },
          "allLicensesConfigured": {
            "type": "boolean",
            "description": "Whether all licenses are configured"
          },
          "allTasksCompleted": {
            "type": "boolean",
            "description": "Whether all getting started tasks are completed"
          }
        },
        "additionalProperties": false,
        "description": "Getting Started status information"
      },
      "GitHubTokenInfo": {
        "type": "object",
        "properties": {
          "isConfigured": {
            "type": "boolean"
          },
          "username": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GrantedPermissionDto": {
        "type": "object",
        "properties": {
          "module": {
            "type": "string",
            "nullable": true
          },
          "permission": {
            "type": "string",
            "nullable": true
          },
          "moduleData": {
            "type": "string",
            "nullable": true
          },
          "granted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GrantedPermissionItem": {
        "type": "object",
        "properties": {
          "permission": {
            "type": "string",
            "description": "The permission key (e.g., \"Control\", \"FileManager\", etc.)",
            "nullable": true
          },
          "module": {
            "type": "string",
            "description": "The module this permission belongs to:\n- \"GameService\" if from GameFeatures\n- \"DockerService\" if from DockerFeatures\n- \"Service\" if from BlueprintFeatures",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a permission to be granted with its module information"
      },
      "InstalledGenericMod": {
        "type": "object",
        "properties": {
          "updateAvailable": {
            "type": "boolean"
          },
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "IpPortAllocationConfigDto": {
        "type": "object",
        "properties": {
          "usePrimaryIpOnly": {
            "type": "boolean"
          },
          "useDefaultPortsOnly": {
            "type": "boolean"
          },
          "supportsIpv6": {
            "type": "boolean"
          },
          "uniquePort": {
            "$ref": "#/components/schemas/EIpPortAllocationUniquePort"
          },
          "customPorts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomPortDto"
            },
            "nullable": true
          },
          "portIncrement": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "LanguageCreateDto": {
        "required": [
          "cultureName",
          "name"
        ],
        "type": "object",
        "properties": {
          "cultureName": {
            "maxLength": 15,
            "minLength": 1,
            "type": "string",
            "description": "The culture name that becomes the language ID after canonicalization. Deliberately NOT named\nLanguageId: the controller-level EntityExists filter probes body DTOs for the entity key and\nwould 404 the create because the language does not exist yet."
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Creates an empty language row. TCAdmin.Web.Shared.Models.Language.LanguageCreateDto.CultureName must be a culture the runtime predefines\n(the server validates with `predefinedOnly` and canonicalizes the casing — \"pt-br\" is stored\nas \"pt-BR\"). The new language is never the default."
      },
      "LanguageDetailsDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "languageId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "default": {
            "type": "boolean"
          },
          "translatedCount": {
            "type": "integer",
            "description": "Keys of the catalog universe this language has a non-null value for.",
            "format": "int32"
          },
          "totalKeys": {
            "type": "integer",
            "description": "Size of the key universe (compiled catalog ∪ the install's `en` rows).",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "A language row plus its translation progress, as edited by the in-app translation editor.\nTCAdmin.Web.Shared.Models.Language.LanguageDetailsDto.TranslatedCount/TCAdmin.Web.Shared.Models.Language.LanguageDetailsDto.TotalKeys are server-computed and ignored on write;\nTCAdmin.Web.Shared.Models.Language.LanguageDetailsDto.LanguageId is immutable (the route parameter wins)."
      },
      "LanguageDto": {
        "type": "object",
        "properties": {
          "languageId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "default": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "LayoutNode": {
        "type": "object",
        "properties": {
          "component": {
            "type": "string",
            "nullable": true
          },
          "tag": {
            "type": "string",
            "nullable": true
          },
          "text": {
            "type": "string",
            "nullable": true
          },
          "attributes": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LayoutNode"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LayoutProperties": {
        "type": "object",
        "properties": {
          "defaultBorderRadius": {
            "type": "string",
            "nullable": true
          },
          "drawerMiniWidthLeft": {
            "type": "string",
            "nullable": true
          },
          "drawerMiniWidthRight": {
            "type": "string",
            "nullable": true
          },
          "drawerWidthLeft": {
            "type": "string",
            "nullable": true
          },
          "drawerWidthRight": {
            "type": "string",
            "nullable": true
          },
          "appbarHeight": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LayoutTemplateContentDto": {
        "required": [
          "templateKey"
        ],
        "type": "object",
        "properties": {
          "layoutTemplateContentId": {
            "type": "integer",
            "format": "int64"
          },
          "layoutTemplateId": {
            "type": "integer",
            "format": "int64"
          },
          "templateKey": {
            "maxLength": 150,
            "minLength": 0,
            "type": "string"
          },
          "content": {
            "type": "string",
            "description": "The template source (HTML + Liquid). Rendered and sanitized server-side.",
            "nullable": true
          },
          "css": {
            "type": "string",
            "description": "CSS scoped to this surface — applied only while the surface is enabled and renders (concatenated\nonto the template-level CSS server-side). Sanitized as CSS unless the owning theme is full-trust.",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "One surface's markup within a TCAdmin.Web.Shared.Models.LayoutTemplates.LayoutTemplateDto. TCAdmin.Web.Shared.Models.LayoutTemplates.LayoutTemplateContentDto.TemplateKey is\nfree-form so per-page (`Page.*`) surfaces can be added later with no schema change;\nv1 only mounts `LoginPage` and `Shell`."
      },
      "LayoutTemplateDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "layoutTemplateId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string"
          },
          "css": {
            "type": "string",
            "description": "The template's own stylesheet (sanitized as CSS server-side; injected as a real <style>).",
            "nullable": true
          },
          "ownerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "contents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LayoutTemplateContentDto"
            },
            "description": "One markup row per surface (LoginPage / Shell / future Page.*).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A standalone, shareable layout template (the customizable panel *look*). Mirrors the\n`LayoutTemplate` entity; a theme opts into one via `TCAThemeDto.TemplateId`.\nThe per-surface markup lives in TCAdmin.Web.Shared.Models.LayoutTemplates.LayoutTemplateDto.Contents (one row per surface key) and\nTCAdmin.Web.Shared.Models.LayoutTemplates.LayoutTemplateDto.Css is the coordination stylesheet. See docs/LAYOUT_TEMPLATES.md."
      },
      "LayoutTemplatePreviewRequest": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "nullable": true
          },
          "templateKey": {
            "type": "string",
            "description": "The surface key being previewed (drives the required-slot check).",
            "nullable": true
          },
          "allowUnsafeTemplateContent": {
            "type": "boolean",
            "description": "When true, render with NO sanitization (full trust), mirroring the owning theme's trust."
          }
        },
        "additionalProperties": false,
        "description": "Request for the lightweight editor preview/validate endpoint: render one surface's source against\nthe sample model and return the sanitized HTML + any errors, WITHOUT mounting live components."
      },
      "LayoutTemplatePreviewResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "html": {
            "type": "string",
            "description": "Sanitized HTML with `<tc-component>` sentinels swapped for visible placeholders.",
            "nullable": true
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "components": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The component tokens present in the output.",
            "nullable": true
          },
          "missingRequired": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Required component tokens for TCAdmin.Web.Shared.Models.LayoutTemplates.LayoutTemplatePreviewRequest.TemplateKey that are absent.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Result of a preview/validate: sanitized HTML (component sentinels replaced by labelled\n            placeholders), the detected component tokens, and any render error / missing required slots."
      },
      "LicenseHealthDto": {
        "type": "object",
        "properties": {
          "allServersValid": {
            "type": "boolean",
            "description": "Whether all servers have valid licenses"
          },
          "totalMaxServices": {
            "type": "integer",
            "description": "Total maximum services allowed across all servers",
            "format": "int32"
          },
          "totalCurrentServices": {
            "type": "integer",
            "description": "Total current services in use across all servers",
            "format": "int32"
          },
          "isNearCapacity": {
            "type": "boolean",
            "description": "Whether license usage is at or above 90%"
          },
          "usagePercentage": {
            "type": "number",
            "description": "License usage percentage (0-100)",
            "format": "double"
          },
          "errorMessage": {
            "type": "string",
            "description": "Error message if license check failed",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "License health information (aggregated across all servers)"
      },
      "LicenseInfoDto": {
        "type": "object",
        "properties": {
          "licenseKey": {
            "type": "string",
            "nullable": true
          },
          "maxServices": {
            "type": "integer",
            "format": "int32"
          },
          "services": {
            "type": "integer",
            "format": "int32"
          },
          "demoExpired": {
            "type": "boolean"
          },
          "valid": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "lastUpdate": {
            "type": "string",
            "format": "date-time"
          },
          "licenseKeyScope": {
            "$ref": "#/components/schemas/EServerConfigurationOptionScope"
          },
          "licenseKeyScopeName": {
            "type": "string",
            "description": "The datacenter owning the shared key when the scope is Datacenter.",
            "nullable": true
          },
          "licenseKeyReadOnly": {
            "type": "boolean",
            "description": "`true` when a shared global/datacenter row owns the key.",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "LoadingScreenConfigDto": {
        "type": "object",
        "properties": {
          "useDefaultTitles": {
            "type": "boolean",
            "description": "PER-THEME only: when true, the theme uses the GLOBAL loading-screen TCAdmin.Web.Shared.Models.LoadingScreenConfigDto.Titles instead of its\nown (the theme's Titles editor is disabled). Default false = the theme uses its own Titles. Ignored on\nthe global config (which IS the default title source)."
          },
          "titles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "textColor": {
            "type": "string",
            "nullable": true
          },
          "backgroundColor": {
            "type": "string",
            "nullable": true
          },
          "backgroundImageUrl": {
            "type": "string",
            "nullable": true
          },
          "backgroundOverlayOpacity": {
            "type": "number",
            "format": "double"
          },
          "glassCardBackground": {
            "type": "string",
            "nullable": true
          },
          "progressBarColor": {
            "type": "string",
            "nullable": true
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          },
          "customCss": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LoginBlockDto": {
        "type": "object",
        "properties": {
          "ip": {
            "type": "string",
            "nullable": true
          },
          "untilUtc": {
            "type": "string",
            "format": "date-time"
          },
          "failures": {
            "type": "integer",
            "format": "int32"
          },
          "source": {
            "type": "string",
            "description": "The credential path of the failure that tripped the ban (web, sso, 2fa, api, ftp, sftp).",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LoginThemeSettings": {
        "type": "object",
        "properties": {
          "backgroundImageUrl": {
            "type": "string",
            "description": "Background image URL for the login page.\nIf empty, defaults to /img/background.png",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Title text displayed on the login card.\nIf empty, defaults to \"TCAdmin\"",
            "nullable": true
          },
          "subtitle": {
            "type": "string",
            "description": "Subtitle text displayed below the title on the login card.\nIf empty, defaults to the localized \"Sign in to your control panel\"",
            "nullable": true
          },
          "backgroundOverlayOpacity": {
            "type": "number",
            "description": "Opacity of the dark overlay on the background image (0.0 to 1.0).\nHigher values make the background darker. Defaults to 0.6.",
            "format": "double"
          },
          "showFooter": {
            "type": "boolean",
            "description": "Whether to show the copyright footer on the login page."
          }
        },
        "additionalProperties": false
      },
      "MailSettingsDto": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "authMode": {
            "$ref": "#/components/schemas/EMailAuthMode"
          },
          "host": {
            "type": "string",
            "nullable": true
          },
          "port": {
            "type": "integer",
            "format": "int32"
          },
          "securityMode": {
            "$ref": "#/components/schemas/EMailSecurityMode"
          },
          "allowInvalidCertificates": {
            "type": "boolean",
            "description": "Accept invalid/self-signed server certificates."
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "msTenantId": {
            "type": "string",
            "description": "Microsoft 365 directory (tenant) ID for app-only OAuth.",
            "nullable": true
          },
          "msClientId": {
            "type": "string",
            "nullable": true
          },
          "msClientSecret": {
            "type": "string",
            "nullable": true
          },
          "googleServiceAccountJson": {
            "type": "string",
            "description": "Google service-account key JSON (domain-wide delegation).",
            "nullable": true
          },
          "oAuthMailbox": {
            "type": "string",
            "description": "Mailbox the OAuth token authenticates as: the M365 mailbox to send from, or the Google\nWorkspace user the service account impersonates.",
            "nullable": true
          },
          "fromEmail": {
            "type": "string",
            "description": "Default \"From\" address when a template doesn't override it.",
            "nullable": true
          },
          "fromName": {
            "type": "string",
            "description": "Default \"From\" display name when a template doesn't override it.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "System-wide outbound mail settings (singleton). All mail is sent by the master web process;\nwhen TCAdmin.Web.Shared.Models.Email.MailSettingsDto.Enabled is false no SMTP mail goes out, but in-app user messages are still\ncreated."
      },
      "MainContentThemeSettings": {
        "type": "object",
        "properties": {
          "extraClass": {
            "type": "string",
            "nullable": true
          },
          "extraClassWithBanners": {
            "type": "string",
            "nullable": true
          },
          "maxWidth": {
            "$ref": "#/components/schemas/MaxWidth"
          }
        },
        "additionalProperties": false
      },
      "MaintenanceSettingsDto": {
        "type": "object",
        "properties": {
          "taskCleanupEnabled": {
            "type": "boolean",
            "description": "Whether finished tasks (Completed/Failed/Cancelled) are deleted after the retention period."
          },
          "taskRetentionDays": {
            "type": "integer",
            "description": "Number of days to retain finished tasks and their steps.",
            "format": "int32"
          },
          "consoleLogCleanupEnabled": {
            "type": "boolean",
            "description": "Whether rotated console logs and unhandled-exception logs are deleted after the retention period."
          },
          "consoleLogRetentionDays": {
            "type": "integer",
            "description": "Number of days to retain rotated console log files.",
            "format": "int32"
          },
          "optimizeTablesEnabled": {
            "type": "boolean",
            "description": "Whether OPTIMIZE TABLE runs periodically against the cleaned tables to return disk space to the OS."
          },
          "optimizeIntervalDays": {
            "type": "integer",
            "description": "Minimum number of days between OPTIMIZE TABLE runs.",
            "format": "int32"
          },
          "lastOptimizedAt": {
            "type": "string",
            "description": "When OPTIMIZE TABLE last completed. Read-only; the server ignores this field on save.",
            "format": "date-time",
            "nullable": true
          },
          "blueprintContentSyncEnabled": {
            "type": "boolean",
            "description": "Whether the master server fires the `SyncBlueprintContent` script event once a day for\nevery blueprint that has a script bound to it (used to refresh mods / game updates from\nexternal catalogs). Blueprints without such a script are unaffected."
          },
          "blueprintContentSyncTime": {
            "type": "string",
            "description": "Time of day, in the master server's local time, at which the daily sync runs (the first slot of each day when a repeat interval is set).",
            "format": "date-span"
          },
          "blueprintContentSyncRepeatInterval": {
            "type": "string",
            "description": "Optional repeat interval, like a scheduled task's. Null keeps the once-a-day behavior; when\nset, the sync repeats at this interval from the sync time until the end of the day. Must be\nat least one minute and less than a day.",
            "format": "date-span",
            "nullable": true
          },
          "lastBlueprintContentSyncAt": {
            "type": "string",
            "description": "When the blueprint content sync last completed (UTC). Read-only; the server ignores this field on save.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Data retention / maintenance settings (singleton). Consumed by the monitor-hosted\nmaintenance service: finished-task cleanup and table optimization run on the first\nmaster; console-log retention runs on every monitor."
      },
      "MaxWidth": {
        "enum": [
          "Large",
          "Medium",
          "Small",
          "ExtraLarge",
          "ExtraExtraLarge",
          "ExtraSmall",
          "False"
        ],
        "type": "string"
      },
      "ModrinthDetectedDefaults": {
        "type": "object",
        "properties": {
          "loader": {
            "type": "string",
            "description": "Modrinth loader name (`forge`, `fabric`, `paper`, …), or null for vanilla.",
            "nullable": true
          },
          "gameVersion": {
            "type": "string",
            "description": "Minecraft version as Modrinth names it (`26.1.1`), or null when undetermined.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "What a service actually runs, as detected from its command line / installed blueprint mods /\ninstalled game update. Seeds the browse page's Loader and Game version filters in place of the\nblueprint's static `DefaultLoader` / `DefaultGameVersion`."
      },
      "ModrinthLoader": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "supported_project_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A mod/plugin loader from `GET /v2/tag/loader`. TCAdmin.Web.Shared.Models.CustomMods.Modrinth.ModrinthLoader.SupportedProjectTypes is what\nsplits the list into \"mod loaders\" (fabric, forge, …) and \"plugin loaders\" (paper, spigot, …) —\nboth the browse-page loader filter and the install handler's folder inference use it."
      },
      "ModrinthTags": {
        "type": "object",
        "properties": {
          "loaders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModrinthLoader"
            },
            "nullable": true
          },
          "gameVersions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "detected": {
            "$ref": "#/components/schemas/ModrinthDetectedDefaults"
          }
        },
        "additionalProperties": false,
        "description": "The two Modrinth tag lists the UI needs, fetched in one round trip by\n`GameController.GetModrinthTags` (admin config page) and\n`GameServiceController.GetModrinthTags` (per-service browse page).\nTCAdmin.Web.Shared.Models.CustomMods.Modrinth.ModrinthTags.GameVersions is already filtered to releases and keeps the API's newest-first order."
      },
      "MonitorConfigDto": {
        "type": "object",
        "properties": {
          "userFilesPath": {
            "type": "string",
            "nullable": true
          },
          "gameFilesPath": {
            "type": "string",
            "nullable": true
          },
          "gameFileProvider": {
            "type": "string",
            "nullable": true
          },
          "gameFileProviderUri": {
            "$ref": "#/components/schemas/UriBuilder"
          },
          "keepLocalCopyOfCompressedFile": {
            "type": "boolean"
          },
          "fileCopyMaxBytesPerSecond": {
            "type": "integer",
            "format": "int64"
          },
          "fileDownloadMaxBytesPerSecond": {
            "type": "integer",
            "format": "int64"
          },
          "maxSimultaneousTransfers": {
            "type": "integer",
            "format": "int32"
          },
          "shareGameFiles": {
            "type": "boolean",
            "description": "Whether other servers may fetch this server's game files over its SFTP server\n(docs/GAME_FILES_FROM_ANOTHER_SERVER.md). Enforced on the source monitor, not here."
          },
          "gameFilesSourceServerId": {
            "type": "integer",
            "description": "The server this one fetches its game files from; only read when TCAdmin.Web.Shared.Models.Server.MonitorConfigDto.GameFileProvider\nis `FileProviders.RemoteServerGameFiles`.",
            "format": "int64",
            "nullable": true
          },
          "moveShareUncPath": {
            "type": "string",
            "description": "UNC path of an SMB share exposing the user files path. Enables the Robocopy move/copy\nmethod (Windows-to-Windows, LAN/VPN).",
            "nullable": true
          },
          "dockerEndpoint": {
            "type": "string",
            "description": "Explicit Docker daemon endpoint for this node; empty means the local default. Edited through\nthe Docker node-settings endpoints, but carried here so a full server save round-trips it\ninstead of resetting it.",
            "nullable": true
          },
          "dockerWindowsEndpoint": {
            "type": "string",
            "description": "Endpoint of this node's second, Windows-containers daemon; empty means it drives only one.\nEdited through the Docker node-settings endpoints; carried here to survive a full server save.",
            "nullable": true
          },
          "dockerPathTranslation": {
            "$ref": "#/components/schemas/EDockerPathTranslation"
          },
          "dockerWslMountRoot": {
            "type": "string",
            "description": "Where the Docker daemon mounts the Windows drives; empty means `/mnt`. Edited through\nthe Docker node-settings endpoints; carried here to survive a full server save.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MonitorVersionResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "string",
            "nullable": true
          },
          "processStartedUtc": {
            "type": "string",
            "description": "UTC time this monitor process started. Used by the update orchestrator to detect\n            that a host restarted (so a same-version reinstall, where Version is unchanged, is still\n            recognized as completed).",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "MoveServicePreviewDto": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "targetServerId": {
            "type": "integer",
            "format": "int64"
          },
          "targetVirtualServerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "sameServerFlip": {
            "type": "boolean",
            "description": "Same physical server, different virtual-server assignment — instant, no file transfer."
          },
          "sameLocation": {
            "type": "boolean",
            "description": "The target IS the service's current location (same server and same virtual-server\nassignment). A move there is meaningless and is rejected; a copy is still valid (clone on\nthe same server). Guards against a stale client-side location after a recent move."
          },
          "availableMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EServiceMoveMethod"
            },
            "nullable": true
          },
          "serviceDiskUsage": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "targetFreeBytes": {
            "type": "integer",
            "description": "Free bytes on the target's user-files drive; null when unknown.",
            "format": "int64",
            "nullable": true
          },
          "targetHasEnoughSpace": {
            "type": "boolean"
          },
          "databaseCount": {
            "type": "integer",
            "format": "int32"
          },
          "databasesWillMove": {
            "type": "boolean",
            "description": "The service's MySQL databases are dumped/restored (different MySQL endpoints)."
          },
          "backupCount": {
            "type": "integer",
            "format": "int32"
          },
          "backupsShared": {
            "type": "boolean",
            "description": "Source and target share the same backup file server — backups keep working."
          },
          "backupsWillBeDeleted": {
            "type": "boolean",
            "description": "A move deletes the source-side backup storage (not shared with the target)."
          },
          "fastDLWillResync": {
            "type": "boolean",
            "description": "Fast Downloads are re-synced on the target after the move."
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "What a move/copy of this service to the given target would entail — drives the warnings and\nthe method dropdown in the move dialog. Informational: the POST re-validates everything."
      },
      "MoveServiceRequestDto": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "targetServerId": {
            "type": "integer",
            "description": "Target physical server. For a virtual-server target this is the VS's parent host.",
            "format": "int64"
          },
          "targetVirtualServerId": {
            "type": "integer",
            "description": "Target virtual server on TCAdmin.Web.Shared.Models.Service.MoveServiceRequestDto.TargetServerId; null = directly on the host. Game services only.",
            "format": "int64",
            "nullable": true
          },
          "method": {
            "$ref": "#/components/schemas/EServiceMoveMethod"
          },
          "copy": {
            "type": "boolean",
            "description": "False = move (source is deleted), true = copy (source untouched, new service created)."
          },
          "newName": {
            "type": "string",
            "description": "Copy only: name for the new service. Null = \"<source name> (Copy)\".",
            "nullable": true
          },
          "startAfterMove": {
            "type": "boolean",
            "description": "Move only: start the service on the target if it was running on the source."
          },
          "stopSourceDuringCopy": {
            "type": "boolean",
            "description": "Copy only: stop the source while its files are transferred (consistent snapshot), restart after."
          },
          "acknowledgeSourceBackupDeletion": {
            "type": "boolean",
            "description": "Required when the service has backups that are NOT on a backup file server shared with the\ntarget — those backups are deleted from the source's storage by the move."
          }
        },
        "additionalProperties": false,
        "description": "Request to move or copy a game/docker service to another server (or to/from a virtual server).\nAdmin-only."
      },
      "MudColor": {
        "type": "object",
        "properties": {
          "r": {
            "type": "integer",
            "format": "int32"
          },
          "g": {
            "type": "integer",
            "format": "int32"
          },
          "b": {
            "type": "integer",
            "format": "int32"
          },
          "a": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "MySqlMgrConfigDto": {
        "type": "object",
        "properties": {
          "useDatacenterConfig": {
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean"
          },
          "host": {
            "type": "string",
            "nullable": true
          },
          "port": {
            "type": "integer",
            "format": "int32"
          },
          "user": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "phpMyAdminUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NavMenuThemeSettings": {
        "required": [
          "clipMode",
          "variant"
        ],
        "type": "object",
        "properties": {
          "showLogo": {
            "type": "boolean"
          },
          "enableLogoFilter": {
            "type": "boolean"
          },
          "elevation": {
            "type": "integer",
            "format": "int32"
          },
          "clipMode": {
            "$ref": "#/components/schemas/DrawerClipMode"
          },
          "variant": {
            "$ref": "#/components/schemas/DrawerVariant"
          },
          "largeLogoUrl": {
            "type": "string",
            "description": "URL for the large logo displayed when the nav menu is expanded.\nIf empty, defaults to /img/logos/tcadmin-full.png",
            "nullable": true
          },
          "smallLogoUrl": {
            "type": "string",
            "description": "URL for the small logo displayed when the nav menu is collapsed.\nIf empty, defaults to /img/logos/tcadmin.png",
            "nullable": true
          },
          "appName": {
            "type": "string",
            "description": "Installed web app name; blank falls back to the company name.",
            "nullable": true
          },
          "appIconUrl": {
            "type": "string",
            "description": "Square PNG (512×512 recommended) used as the installed web app icon.",
            "nullable": true
          },
          "faviconUrl": {
            "type": "string",
            "description": "URL for the favicon.\nIf empty, defaults to /favicon.ico",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NumaNodeDto": {
        "type": "object",
        "properties": {
          "node": {
            "type": "integer",
            "format": "int32"
          },
          "cpuCount": {
            "type": "integer",
            "format": "int32"
          },
          "memoryBytes": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "OAuthProviderDto": {
        "type": "object",
        "properties": {
          "providerId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "providerType": {
            "type": "string",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "clientSecret": {
            "type": "string",
            "nullable": true
          },
          "authorizationEndpoint": {
            "type": "string",
            "nullable": true
          },
          "tokenEndpoint": {
            "type": "string",
            "nullable": true
          },
          "userInformationEndpoint": {
            "type": "string",
            "nullable": true
          },
          "scopes": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "iconUrl": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "OAuthProviderPublicDto": {
        "type": "object",
        "properties": {
          "providerId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "providerType": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "iconUrl": {
            "type": "string",
            "nullable": true
          },
          "loginUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PanelFeatureStatusDto": {
        "type": "object",
        "properties": {
          "disabledFeatures": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The hidden feature keys (see `PanelFeatures`). Empty means everything is visible.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The minimal, all-authenticated-users read of Panel Mode: which feature keys the panel hides. Fetched\nonce at boot by `AppState` and consulted synchronously by every gating site afterwards."
      },
      "PanelSettingsDto": {
        "type": "object",
        "properties": {
          "disabledFeatures": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The feature keys to hide (see `PanelFeatures`). Empty = Advanced.",
            "nullable": true
          },
          "preset": {
            "$ref": "#/components/schemas/EPanelPreset"
          },
          "modeChosen": {
            "type": "boolean",
            "description": "Whether the panel mode has ever been saved. Read-only; drives the Getting Started step."
          },
          "dockerServiceCount": {
            "type": "integer",
            "description": "Docker services that exist right now — the count in the \"these keep running\" warning. Read-only.",
            "format": "int32"
          },
          "gameServiceCount": {
            "type": "integer",
            "description": "Game/voice services that exist right now — the count in the \"these keep running\" warning. Read-only.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "The admin read/write view of Panel Mode. TCAdmin.Web.Shared.Models.PanelMode.PanelSettingsDto.DisabledFeatures is the only writable member —\neverything else is computed server-side for display and is ignored on save."
      },
      "PasskeyDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "authenticatorName": {
            "type": "string",
            "description": "Friendly authenticator name resolved from the AAGUID (e.g. \"Windows Hello\").",
            "nullable": true
          },
          "isBackedUp": {
            "type": "boolean"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "lastUsedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PluginInstallItem": {
        "type": "object",
        "properties": {
          "identifier": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "string",
            "nullable": true
          },
          "filePath": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PluginManifest": {
        "type": "object",
        "properties": {
          "identifier": {
            "type": "string",
            "nullable": true
          },
          "author": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "shortDescription": {
            "type": "string",
            "nullable": true
          },
          "longDescription": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "string",
            "nullable": true
          },
          "minimumApplicationVersion": {
            "type": "string",
            "description": "Optional minimum TCAdmin application version required to install this plugin.\nNull/absent means \"any version\". Authored in the manifest YAML/JSON as a version\nstring (e.g. \"3.6\"); compared against the running app version to compute TCAdmin.SDK.Hubs.Models.PluginRepository.PluginManifest.IsCompatible.",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "images": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PluginManifestFile"
            },
            "nullable": true
          },
          "updateAvailable": {
            "type": "boolean"
          },
          "isInstalled": {
            "type": "boolean",
            "description": "Computed at read time: whether this plugin's identifier appears in\n`tc_installed_plugins` (any version). A superset of TCAdmin.SDK.Hubs.Models.PluginRepository.PluginManifest.UpdateAvailable —\nan installed-and-current plugin is `IsInstalled = true, UpdateAvailable = false`.\nDrives the install-state filter on the browse page."
          },
          "isCompatible": {
            "type": "boolean",
            "description": "Computed at read time: whether the running TCAdmin version satisfies\nTCAdmin.SDK.Hubs.Models.PluginRepository.PluginManifest.MinimumApplicationVersion. Defaults to true (fail-open) so manifests the\ncompatibility pass never evaluates (e.g. the V2 forum source) remain installable."
          },
          "lastModified": {
            "type": "string",
            "description": "The last commit date for this manifest's folder in the git repository.",
            "format": "date-time",
            "nullable": true
          },
          "versionCount": {
            "type": "integer",
            "description": "The number of version subdirectories available for this manifest.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PluginManifestFile": {
        "type": "object",
        "properties": {
          "identifier": {
            "type": "string",
            "nullable": true
          },
          "path": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "optional": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PluginRepositoryCredentialDto": {
        "type": "object",
        "properties": {
          "credentialId": {
            "type": "integer",
            "format": "int64"
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "isShareToken": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PluginRepositoryCredentialDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PluginRepositoryCredentialDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PluginRepositoryDto": {
        "type": "object",
        "properties": {
          "pluginRepositoryId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "gitUrl": {
            "type": "string",
            "nullable": true
          },
          "branch": {
            "type": "string",
            "nullable": true
          },
          "notifyUpdates": {
            "type": "boolean"
          },
          "credentialId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PluginRepositoryStatus": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "syncMessage": {
            "type": "string",
            "nullable": true
          },
          "isSynced": {
            "type": "boolean"
          },
          "aheadCount": {
            "type": "integer",
            "format": "int32"
          },
          "behindCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "PluginShareFile": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "fileType": {
            "type": "string",
            "nullable": true
          },
          "optional": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PluginShareRequest": {
        "type": "object",
        "properties": {
          "identifier": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "string",
            "nullable": true
          },
          "minimumApplicationVersion": {
            "type": "string",
            "description": "Optional minimum TCAdmin version required to install this plugin. Blank/null = any version.\nNullable so ASP.NET's implicit \"required\" validation for non-nullable reference types doesn't\nreject a share that omits it. Written to the manifest as `minimumApplicationVersion` only\nwhen non-empty.",
            "nullable": true
          },
          "author": {
            "type": "string",
            "nullable": true
          },
          "shortDescription": {
            "type": "string",
            "nullable": true
          },
          "longDescription": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "images": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "isUpdate": {
            "type": "boolean",
            "description": "True when this share updates an existing plugin (the user picked \"Update Existing Plugin\" in the\nshare dialog) rather than creating a new one. Only affects the generated pull-request title\n(\"Update {name}\" vs \"Add {name}\"); defaults to false so a request that omits it reads as an add."
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PluginShareFile"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PluginShareResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "pullRequestUrl": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PredefinedCommandLineDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "commandLine": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PrivateNetworkDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "privateNetworkId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "ProcessPriorityClass": {
        "enum": [
          "Normal",
          "Idle",
          "High",
          "RealTime",
          "BelowNormal",
          "AboveNormal"
        ],
        "type": "string"
      },
      "ProcessResourcesDto": {
        "type": "object",
        "properties": {
          "cpuUsage": {
            "type": "number",
            "format": "double"
          },
          "cpuUsagePerCore": {
            "type": "number",
            "format": "double"
          },
          "memoryUsage": {
            "type": "integer",
            "format": "int64"
          },
          "memoryPercent": {
            "type": "number",
            "format": "double"
          },
          "totalProcessorTime": {
            "type": "string",
            "format": "date-span"
          },
          "networkReceived": {
            "type": "integer",
            "format": "int64"
          },
          "networkSent": {
            "type": "integer",
            "format": "int64"
          },
          "networkTotal": {
            "type": "integer",
            "format": "int64"
          },
          "query": {
            "$ref": "#/components/schemas/GameQueryInfoDto"
          },
          "checkedOn": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "One 5-second sample of a service's resource usage. TCAdmin.Web.Shared.Models.Service.ProcessResourcesDto.Query comes from\nthe sample's `BasicGameQueryResponse`, so it carries no rules or player list — those only exist\non TCAdmin.Web.Shared.Models.Service.ServiceStatusInfoDto.Query."
      },
      "ProcessResourcesDtoCircularArrayDto": {
        "type": "object",
        "properties": {
          "capacity": {
            "type": "integer",
            "format": "int32"
          },
          "buffer": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProcessResourcesDtoCircularArrayRecordDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProcessResourcesDtoCircularArrayRecordDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "integer",
            "format": "int64"
          },
          "value": {
            "$ref": "#/components/schemas/ProcessResourcesDto"
          }
        },
        "additionalProperties": false
      },
      "QueryToolPlayerDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "score": {
            "type": "integer",
            "format": "int32"
          },
          "ping": {
            "type": "integer",
            "format": "int32"
          },
          "team": {
            "type": "string",
            "nullable": true
          },
          "connectTime": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QueryToolRequestDto": {
        "type": "object",
        "properties": {
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "protocol": {
            "type": "string",
            "nullable": true
          },
          "host": {
            "type": "string",
            "nullable": true
          },
          "port": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QueryToolResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "hostname": {
            "type": "string",
            "nullable": true
          },
          "map": {
            "type": "string",
            "nullable": true
          },
          "gameType": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "numPlayers": {
            "type": "integer",
            "format": "int32"
          },
          "maxPlayers": {
            "type": "integer",
            "format": "int32"
          },
          "rules": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "players": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QueryToolPlayerDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QueryableVariableDto": {
        "type": "object",
        "properties": {
          "variableId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "defaultValue": {
            "nullable": true
          },
          "required": {
            "type": "boolean"
          },
          "requiredMessage": {
            "type": "string",
            "nullable": true
          },
          "scriptParameter": {
            "type": "boolean"
          },
          "commandlineParameter": {
            "type": "boolean"
          },
          "saveScriptParameter": {
            "type": "boolean"
          },
          "syncCommandlineParameter": {
            "type": "boolean"
          },
          "template": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "editor": {
            "$ref": "#/components/schemas/DynamicControlBaseDto"
          }
        },
        "additionalProperties": false
      },
      "RconToolRequestDto": {
        "type": "object",
        "properties": {
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "protocol": {
            "type": "string",
            "nullable": true
          },
          "host": {
            "type": "string",
            "nullable": true
          },
          "port": {
            "type": "integer",
            "format": "int32"
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "command": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RconToolResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "error": {
            "type": "string",
            "nullable": true
          },
          "response": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecoveryCodesDto": {
        "type": "object",
        "properties": {
          "codes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecurringTaskDto": {
        "required": [
          "displayName"
        ],
        "type": "object",
        "properties": {
          "recurringTaskId": {
            "type": "integer",
            "format": "int64"
          },
          "currentTaskId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "displayName": {
            "minLength": 1,
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "ownerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "serviceId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "scheduledTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastRunTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastStatus": {
            "$ref": "#/components/schemas/ETaskStatus"
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecurringTaskStepDto"
            },
            "nullable": true
          },
          "triggers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TriggerDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecurringTaskStepDto": {
        "required": [
          "processId"
        ],
        "type": "object",
        "properties": {
          "recurringTaskId": {
            "type": "integer",
            "format": "int64"
          },
          "recurringStepId": {
            "type": "integer",
            "format": "int32"
          },
          "moduleId": {
            "type": "string",
            "format": "uuid"
          },
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "processId": {
            "minLength": 1,
            "type": "string"
          },
          "variables": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RedisHealthDto": {
        "type": "object",
        "properties": {
          "isConnected": {
            "type": "boolean",
            "description": "Whether Redis is connected and responding"
          },
          "server": {
            "type": "string",
            "description": "Redis server address",
            "nullable": true
          },
          "port": {
            "type": "integer",
            "description": "Redis server port",
            "format": "int32"
          },
          "mode": {
            "type": "string",
            "description": "Redis mode (BuiltIn, External, Cluster)",
            "nullable": true
          },
          "latencyMs": {
            "type": "integer",
            "description": "Ping latency in milliseconds (if connected)",
            "format": "int64",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "description": "Error message if connection failed",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Redis connectivity health information"
      },
      "RegenerateRecoveryCodesDto": {
        "type": "object",
        "properties": {
          "stepUpToken": {
            "type": "string",
            "description": "From `POST api/User/Me/StepUp/Verify`.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RegionDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "regionId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "RegionInfoDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "regionId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ReinstallDockerServiceInfo": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "startAfterReinstall": {
            "type": "boolean"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "clearInstalledMods": {
            "type": "boolean",
            "description": "Purge the service's installed blueprint-mod tracking records as part of the reinstall.\nDefaults to true so API callers that omit the field behave like the UI: the reinstall\ndeletes the whole service directory, so the records are stale the moment it runs."
          }
        },
        "additionalProperties": false
      },
      "ReinstallGameServiceInfoDto": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "startAfterReinstall": {
            "type": "boolean"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "rconPassword": {
            "type": "string",
            "nullable": true
          },
          "privatePassword": {
            "type": "string",
            "nullable": true
          },
          "clearInstalledMods": {
            "type": "boolean",
            "description": "Purge the service's installed-mod tracking records (blueprint mods, Steam Workshop, Curse,\nNexus, uMod, generic custom-mod providers) as part of the reinstall. Defaults to true so\nAPI callers that omit the field behave like the UI: the reinstall wipes every file under\nthe service root, so the records are stale the moment it runs."
          },
          "clearCustomCommandLines": {
            "type": "boolean",
            "description": "Delete the service's custom command lines (and drop a custom selection, falling back to\nthe blueprint's default command line) as part of the reinstall. Defaults to true so API\ncallers that omit the field behave like the UI, where the option is checked by default.\nDegraded to false server-side when the caller lacks the `BpFeature.CustomCmdlines`\npermission for the service — the same check that hides the option in the reinstall dialog."
          }
        },
        "additionalProperties": false
      },
      "RenamePasskeyDto": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RestartAllMonitorsFailureDto": {
        "type": "object",
        "properties": {
          "serverId": {
            "type": "integer",
            "description": "The server that failed.",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "description": "The server's name — what the client shows in the failure snackbar.",
            "nullable": true
          },
          "error": {
            "type": "string",
            "description": "The failure reason, already resolved into the viewer's language at the web edge.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One server that did not accept the bulk monitor restart."
      },
      "RestartAllMonitorsResultDto": {
        "type": "object",
        "properties": {
          "requested": {
            "type": "integer",
            "description": "How many servers the restart was attempted on (enabled, non-master).",
            "format": "int32"
          },
          "succeeded": {
            "type": "integer",
            "description": "How many of those accepted the request. \"Accepted\" is not \"restarted\" — the monitor\n            schedules the restart a couple of seconds after answering.",
            "format": "int32"
          },
          "failed": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RestartAllMonitorsFailureDto"
            },
            "description": "The servers whose monitor could not be reached, ordered by name.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Outcome of a bulk monitor restart (`POST /api/Server/RestartAllMonitors`). The master server is\nnever part of TCAdmin.Web.Shared.Models.Server.RestartAllMonitorsResultDto.Requested — see docs/SERVER_TOOLS.md."
      },
      "RoleDto": {
        "type": "object",
        "properties": {
          "roleId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "roleType": {
            "$ref": "#/components/schemas/ERoleType"
          },
          "ownerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RolePermissionDto"
            },
            "nullable": true
          },
          "createdBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RolePermissionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "roleId": {
            "type": "integer",
            "format": "int64"
          },
          "module": {
            "type": "string",
            "nullable": true
          },
          "permission": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "moduleData": {
            "type": "string",
            "nullable": true
          },
          "granted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "RuntimeObject": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "objectType": {
            "$ref": "#/components/schemas/ERuntimeObjectType"
          }
        },
        "additionalProperties": false
      },
      "SaveSubUserServicePermissionsRequest": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "integer",
            "description": "The service ID",
            "format": "int64"
          },
          "serviceType": {
            "type": "string",
            "description": "The service type module (GameService or DockerService)",
            "nullable": true
          },
          "grantedPermissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GrantedPermissionItem"
            },
            "description": "List of permissions to grant with their module information",
            "nullable": true
          },
          "grantedVariableIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Variable IDs to grant edit access to on this service. Server-side the list is intersected\nwith the variables the owner can edit, and <b>replaces</b> the service's existing grants —\nsend an empty list to clear them.\n\n`null` (the property omitted entirely) means \"don't touch the variable grants\", so a\ncaller that predates this field — a stale cached WASM client, a third-party integration —\ncan't silently wipe them. The panel always sends a list.",
            "nullable": true
          },
          "rootFolder": {
            "type": "string",
            "description": "The sub-user's folder on this service, relative to the owner's file root. `null` leaves it\nuntouched, an empty string clears it. Removing every grant on the service clears it too.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request model for saving sub user service permissions"
      },
      "ScriptDto": {
        "type": "object",
        "properties": {
          "scriptType": {
            "type": "string",
            "nullable": true
          },
          "scriptId": {
            "type": "integer",
            "format": "int64"
          },
          "global": {
            "type": "boolean"
          },
          "scriptEngine": {
            "$ref": "#/components/schemas/EScriptEngineDto"
          },
          "operatingSystem": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EOperatingSystem"
            },
            "nullable": true
          },
          "scriptEvents": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "runImpersonated": {
            "type": "boolean"
          },
          "stopService": {
            "type": "boolean"
          },
          "ignoreErrors": {
            "type": "boolean"
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "inputVariables": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "editor": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicControlBaseDto"
            },
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentTranslationDto"
            },
            "description": "Per-language overrides of TCAdmin.Web.Shared.Models.Blueprint.ScriptDto.Name / TCAdmin.Web.Shared.Models.Blueprint.ScriptDto.Description, shown to customers on the\nservice page's Custom Action / Custom Icon surfaces. Reconciled server-side by\n`ContentTranslationSync.SyncScriptTranslations` on every create/update path; \"en\" is rejected\n(the base fields ARE English). The slim `ServiceScriptDto` deliberately has no such list — it\nreceives values that are already translated.",
            "nullable": true
          },
          "importedFromV2": {
            "type": "boolean",
            "description": "READ-ONLY projection of the script's `imported_from_v2` metadata marker: this script came in\nthrough a V2 blueprint import (manual V2 XML or a V2 plugin-repo install) and so was written\nagainst the V2 scripting API. Drives the script editor's \"Convert to C# with AI\" prompt. The write\npaths ignore it (the mappers' `MapperIgnoreSource`), so a client save can never set or clear it."
          },
          "v2ScriptEngine": {
            "type": "string",
            "description": "READ-ONLY projection of `v2_script_engine` — the engine the script was authored for in V2\n(\"IronPython 2\", \"Batch\", …), which the V3 engine value cannot reconstruct. Null unless\nTCAdmin.Web.Shared.Models.Blueprint.ScriptDto.ImportedFromV2 is true. Ignored on every write path, like the flag.",
            "nullable": true
          },
          "v2Pristine": {
            "type": "boolean",
            "description": "READ-ONLY projection of `v2_pristine`: this script is still exactly as the V2 importer created\nit and therefore REFUSES TO RUN until it is converted or reviewed. Unlike\nTCAdmin.Web.Shared.Models.Blueprint.ScriptDto.ImportedFromV2 this one is transient — the server clears it on any successful save of\nthe script. Write-protected on every mapper (a client payload must never set or clear it; only the\nserver-side clear-on-save may), for the obvious reason that it is a safety gate."
          }
        },
        "additionalProperties": false
      },
      "ScriptOutputLineDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "nullable": true
          },
          "isError": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "One line of script output. Deliberately narrower than TCAdmin.Web.Shared.Models.Scripting.ScriptOutputItem — no\n            stack trace: this shape is consumed by API clients (including the AI assistant), which have no use\n            for monitor-side frames and host paths."
      },
      "ScriptPermissionDto": {
        "type": "object",
        "properties": {
          "scriptId": {
            "type": "integer",
            "format": "int64"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ScriptScopeTargetDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "operatingSystem": {
            "type": "string",
            "description": "\"Windows\" or \"Linux\": a game's OS, or a Docker blueprint's container OS.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One blueprint a GLOBAL script can be scoped to (enabled on): a game blueprint or a Docker blueprint,\ndepending on the `blueprintType` the scope-targets endpoint was asked for. Deliberately slim:\nid, name, and the OS so a caller can tell same-named blueprints (a Linux and a Windows \"Minecraft\") apart."
      },
      "SecuritySettingsDto": {
        "type": "object",
        "properties": {
          "loginProtectionEnabled": {
            "type": "boolean"
          },
          "ipFailureThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "ipFailureWindowMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "ipBanMinutes": {
            "type": "integer",
            "format": "int32"
          },
          "maxAuthAttemptsPerConnection": {
            "type": "integer",
            "format": "int32"
          },
          "ipAllowList": {
            "type": "string",
            "description": "One IP address or CIDR per line.",
            "nullable": true
          },
          "captchaProvider": {
            "$ref": "#/components/schemas/ECaptchaProvider"
          },
          "captchaSiteKey": {
            "type": "string",
            "nullable": true
          },
          "captchaSecretKey": {
            "type": "string",
            "description": "Always returned masked; sending the mask (or blank) back keeps the stored secret.",
            "nullable": true
          },
          "captchaMode": {
            "$ref": "#/components/schemas/ECaptchaMode"
          },
          "captchaFailureThreshold": {
            "type": "integer",
            "format": "int32"
          },
          "publicKeyRequiredRoles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ERoleType"
            },
            "description": "Roles whose users must log in to SFTP with an SSH key; FTP and SFTP passwords are refused.",
            "nullable": true
          },
          "captchaDisabledByConfig": {
            "type": "boolean",
            "description": "Read-only: `TCAdmin:Security:DisableCaptcha` is set, so the CAPTCHA is off regardless."
          },
          "captchaSecretIsTestKey": {
            "type": "boolean",
            "description": "Read-only: the stored secret is a provider test secret. The secret reaches the client masked, so this\nis the only way the page can tell a demo secret from a real one."
          },
          "captchaVerificationToken": {
            "type": "string",
            "description": "Write-only: a widget response solved with the new keys. Required by the save whenever\nM:TCAdmin.Web.Shared.Models.Security.SecuritySettingsDto.CaptchaKeysDifferFrom(TCAdmin.Web.Shared.Models.Enums.ECaptchaProvider,System.String) is true and the provider is not None; never returned or stored.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Login protection, CAPTCHA and file-transfer authentication settings (singleton)."
      },
      "SelectiveRestoreRequest": {
        "type": "object",
        "properties": {
          "selectedPaths": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SendTestEmailRequestDto": {
        "type": "object",
        "properties": {
          "toEmail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServerConfigurationOptionDto": {
        "required": [
          "key"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "key": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "enabled": {
            "type": "boolean"
          },
          "isEncrypted": {
            "type": "boolean",
            "description": "Indicates whether the value is encrypted in the database.\nWhen true, the value should be treated as a secret (masked in UI).\nWhen updating, an empty value means \"keep existing\" for encrypted fields."
          }
        },
        "additionalProperties": false,
        "description": "DTO for server configuration options that can be set at Global, Datacenter, or Server level."
      },
      "ServerConfigurationOptionSimple": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ServerDto": {
        "required": [
          "name",
          "primaryIPAddress",
          "securePort",
          "standardPort"
        ],
        "type": "object",
        "properties": {
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "primaryIPAddress": {
            "minLength": 1,
            "type": "string"
          },
          "firewallIPAddress": {
            "type": "string",
            "nullable": true
          },
          "privateNetworkIPAddress": {
            "type": "string",
            "nullable": true
          },
          "standardPort": {
            "type": "integer",
            "format": "int32"
          },
          "securePort": {
            "type": "integer",
            "format": "int32"
          },
          "datacenterId": {
            "type": "integer",
            "format": "int64"
          },
          "privateNetworkId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isMaster": {
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean"
          },
          "gameServiceLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dockerServiceLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "totalServiceLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "allowAllGames": {
            "type": "boolean"
          },
          "allowedGameIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "allowAllDockerBlueprints": {
            "type": "boolean"
          },
          "allowedDockerBlueprintIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "operatingSystem": {
            "$ref": "#/components/schemas/EOperatingSystem"
          },
          "configuration": {
            "$ref": "#/components/schemas/MonitorConfigDto"
          },
          "mySqlMgrConfiguration": {
            "$ref": "#/components/schemas/MySqlMgrConfigDto"
          },
          "backupPath": {
            "type": "string",
            "nullable": true
          },
          "backupFileServerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fastDLEnabled": {
            "type": "boolean"
          },
          "fastDLPath": {
            "type": "string",
            "nullable": true
          },
          "fastDLFileServerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "fastDLBaseUrl": {
            "type": "string",
            "nullable": true
          },
          "fastDLFolderTemplate": {
            "type": "string",
            "nullable": true
          },
          "ownerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "billingId": {
            "type": "string",
            "nullable": true
          },
          "billingStatus": {
            "$ref": "#/components/schemas/EBillingStatus"
          }
        },
        "additionalProperties": false
      },
      "ServerFlashTokenDto": {
        "required": [
          "apiUrl",
          "cliCommand",
          "flashTokenBase64",
          "token"
        ],
        "type": "object",
        "properties": {
          "serverId": {
            "type": "integer",
            "description": "The server ID this token is associated with.",
            "format": "int64"
          },
          "token": {
            "type": "string",
            "description": "The plain-text flash token. Only available immediately after reset.",
            "nullable": true
          },
          "apiUrl": {
            "type": "string",
            "description": "The API URL to use for flash configuration.",
            "nullable": true
          },
          "flashTokenBase64": {
            "type": "string",
            "description": "Pre-computed Base64-encoded flash token for CLI usage.",
            "nullable": true
          },
          "cliCommand": {
            "type": "string",
            "description": "The full CLI command to run on the remote server.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response DTO for flash token reset operation.\nContains all information needed to construct the flash command."
      },
      "ServerHealthDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "description": "Total number of enabled servers",
            "format": "int32"
          },
          "online": {
            "type": "integer",
            "description": "Number of servers that are online and responding",
            "format": "int32"
          },
          "unknown": {
            "type": "integer",
            "description": "Number of servers whose status is unknown (Redis unreachable)",
            "format": "int32"
          },
          "offline": {
            "type": "integer",
            "description": "Number of servers that are offline or not responding",
            "format": "int32",
            "readOnly": true
          },
          "servers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServerStatusDto"
            },
            "description": "Individual server status details",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Server connectivity health information"
      },
      "ServerIPDto": {
        "required": [
          "ipAddress"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "ipAddress": {
            "maxLength": 45,
            "minLength": 1,
            "type": "string"
          },
          "hostname": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "addressFamily": {
            "$ref": "#/components/schemas/AddressFamily"
          },
          "useForGameServices": {
            "type": "boolean"
          },
          "useForVoiceServices": {
            "type": "boolean"
          },
          "hostnameSharedWith": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Response-only: names of the servers that already assign this hostname to another IP. Null when there is no overlap.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServerLicenseInfoDto": {
        "type": "object",
        "properties": {
          "serverId": {
            "type": "integer",
            "description": "Server ID",
            "format": "int64"
          },
          "serverName": {
            "type": "string",
            "description": "Server name",
            "nullable": true
          },
          "hasValidLicense": {
            "type": "boolean",
            "description": "Whether the server has a valid license"
          }
        },
        "additionalProperties": false,
        "description": "Server license information"
      },
      "ServerLicenseInfoItemDto": {
        "type": "object",
        "properties": {
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "state": {
            "$ref": "#/components/schemas/EServerStatusState"
          },
          "maskedLicenseKey": {
            "type": "string",
            "description": "Masked key for display (e.g. \"•••••-…-AB12C\"); empty when unavailable.",
            "nullable": true
          },
          "valid": {
            "type": "boolean"
          },
          "demoExpired": {
            "type": "boolean"
          },
          "services": {
            "type": "integer",
            "format": "int32"
          },
          "maxServices": {
            "type": "integer",
            "format": "int32"
          },
          "lastUpdate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "licenseKeyScope": {
            "$ref": "#/components/schemas/EServerConfigurationOptionScope"
          },
          "licenseKeyScopeName": {
            "type": "string",
            "description": "The datacenter owning the shared key when the scope is Datacenter.",
            "nullable": true
          },
          "licenseKeyReadOnly": {
            "type": "boolean",
            "description": "`true` when a shared global/datacenter row owns the key.",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "Heartbeat-derived per-server license status for the License Information page — one Redis\nread for the whole cluster instead of a monitor connection per server. Carries a masked\nkey only; the full key is revealed via the live `Server/{id}/Monitor/LicenseInfo`\nendpoint. TCAdmin.Web.Shared.Models.Server.ServerLicenseInfoItemDto.State Unknown means Redis was unreachable (not \"offline\")."
      },
      "ServerLicenseStatusDto": {
        "type": "object",
        "properties": {
          "isValid": {
            "type": "boolean",
            "description": "Whether the license is valid"
          },
          "maxServices": {
            "type": "integer",
            "description": "Maximum services allowed by this license",
            "format": "int32"
          },
          "currentServices": {
            "type": "integer",
            "description": "Current services in use on this server",
            "format": "int32"
          },
          "lastUpdate": {
            "type": "string",
            "description": "When the license info was last updated",
            "format": "date-time",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "License status message",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "License status of a single server, carried by its TCAdmin.Web.Shared.Models.SystemHealth.ServerStatusDto"
      },
      "ServerResourcesDto": {
        "type": "object",
        "properties": {
          "processorCount": {
            "type": "integer",
            "format": "int32"
          },
          "cpuUsagePerCore": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "cpuUsageTotal": {
            "type": "integer",
            "format": "int32"
          },
          "totalMemoryBytes": {
            "type": "integer",
            "format": "int64"
          },
          "freeMemoryBytes": {
            "type": "integer",
            "format": "int64"
          },
          "usedMemoryBytes": {
            "type": "integer",
            "format": "int64"
          },
          "memoryUsagePercent": {
            "type": "number",
            "format": "double"
          },
          "serverName": {
            "type": "string",
            "nullable": true
          },
          "driveUsage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DriveUsageDto"
            },
            "nullable": true
          },
          "serviceCategoryCounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServiceCategoryCountDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServerSelectionItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "parentServerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "parentServerName": {
            "type": "string",
            "nullable": true
          },
          "primaryIPAddress": {
            "type": "string",
            "nullable": true
          },
          "operatingSystem": {
            "$ref": "#/components/schemas/EOperatingSystem"
          },
          "enabled": {
            "type": "boolean"
          },
          "gameServiceLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "dockerServiceLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "totalServiceLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "gameServiceCount": {
            "type": "integer",
            "format": "int32"
          },
          "dockerServiceCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalServiceCount": {
            "type": "integer",
            "format": "int32"
          },
          "allowAllGames": {
            "type": "boolean"
          },
          "allowedGameIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "allowAllDockerBlueprints": {
            "type": "boolean"
          },
          "allowedDockerBlueprintIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "vsAffinity": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "vsNumaNode": {
            "type": "integer",
            "description": "When set, TCAdmin.Web.Shared.Models.Server.ServerSelectionItemDto.VsAffinity is node-relative and 0 = the whole node (the wizard sizes CPU capacity from the node's CPU count).",
            "format": "int32",
            "nullable": true
          },
          "vsAffinityCpus": {
            "type": "string",
            "description": "Cpuset-syntax CPU list of the VS partition (Linux hosts past CPU 63) — wins over TCAdmin.Web.Shared.Models.Server.ServerSelectionItemDto.VsAffinity; the wizard sizes CPU capacity from its length.",
            "nullable": true
          },
          "vsMemoryLimitBytes": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "vsPriority": {
            "$ref": "#/components/schemas/ProcessPriorityClass"
          },
          "status": {
            "$ref": "#/components/schemas/EServerStatusState"
          }
        },
        "additionalProperties": false
      },
      "ServerStatusDto": {
        "type": "object",
        "properties": {
          "serverId": {
            "type": "integer",
            "description": "Server ID",
            "format": "int64"
          },
          "serverName": {
            "type": "string",
            "description": "Server name",
            "nullable": true
          },
          "isOnline": {
            "type": "boolean",
            "description": "Whether the server is online and responding (true only when TCAdmin.Web.Shared.Models.SystemHealth.ServerStatusDto.State is Online)"
          },
          "state": {
            "$ref": "#/components/schemas/EServerStatusState"
          },
          "lastHeartbeatUtc": {
            "type": "string",
            "description": "When the monitor last heartbeated (UTC), if known",
            "format": "date-time",
            "nullable": true
          },
          "monitorVersion": {
            "type": "string",
            "description": "Monitor version if server is online",
            "nullable": true
          },
          "isMaster": {
            "type": "boolean",
            "description": "Whether this server is the master"
          },
          "errorMessage": {
            "type": "string",
            "description": "Error message if server is offline",
            "nullable": true
          },
          "license": {
            "$ref": "#/components/schemas/ServerLicenseStatusDto"
          }
        },
        "additionalProperties": false,
        "description": "Individual server status information"
      },
      "ServiceBackupDto": {
        "type": "object",
        "properties": {
          "serviceBackupId": {
            "type": "integer",
            "format": "int64"
          },
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "parentBackupId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "backupType": {
            "$ref": "#/components/schemas/EBackupType"
          },
          "compressed": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/EBackupStatus"
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "fileCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalSize": {
            "type": "integer",
            "format": "int64"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServiceCategoryCountDto": {
        "type": "object",
        "properties": {
          "categoryType": {
            "$ref": "#/components/schemas/EServiceCategoryType"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ServiceCategoryDto": {
        "type": "object",
        "properties": {
          "categoryId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "categoryType": {
            "$ref": "#/components/schemas/EServiceCategoryType"
          }
        },
        "additionalProperties": false
      },
      "ServiceCommandLineDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "commandLine": {
            "type": "string",
            "nullable": true
          },
          "unparsedCommandLine": {
            "type": "string",
            "nullable": true
          },
          "variables": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "editor": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicControlBaseDto"
            },
            "nullable": true
          },
          "selected": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ServiceConfigFile": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "relativePath": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "enableEditor": {
            "type": "boolean"
          },
          "editor": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicControlBaseDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServiceCustomCommandLineDto": {
        "type": "object",
        "properties": {
          "cmdLineId": {
            "type": "integer",
            "format": "int64"
          },
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "commandLine": {
            "type": "string",
            "nullable": true
          },
          "variables": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "selected": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ServiceCustomLinkDto": {
        "type": "object",
        "properties": {
          "customLinkId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "openInNewWindow": {
            "type": "boolean"
          },
          "openInMainContents": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ServiceCustomScriptDto": {
        "type": "object",
        "properties": {
          "scriptType": {
            "type": "string",
            "nullable": true
          },
          "scriptId": {
            "type": "integer",
            "format": "int64"
          },
          "global": {
            "type": "boolean"
          },
          "scriptEngine": {
            "$ref": "#/components/schemas/EScriptEngineDto"
          },
          "operatingSystem": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EOperatingSystem"
            },
            "nullable": true
          },
          "scriptEvents": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "runImpersonated": {
            "type": "boolean"
          },
          "stopService": {
            "type": "boolean"
          },
          "ignoreErrors": {
            "type": "boolean"
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "inputVariables": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "editor": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicControlBaseDto"
            },
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentTranslationDto"
            },
            "description": "Per-language overrides of TCAdmin.Web.Shared.Models.Blueprint.ScriptDto.Name / TCAdmin.Web.Shared.Models.Blueprint.ScriptDto.Description, shown to customers on the\nservice page's Custom Action / Custom Icon surfaces. Reconciled server-side by\n`ContentTranslationSync.SyncScriptTranslations` on every create/update path; \"en\" is rejected\n(the base fields ARE English). The slim `ServiceScriptDto` deliberately has no such list — it\nreceives values that are already translated.",
            "nullable": true
          },
          "importedFromV2": {
            "type": "boolean",
            "description": "READ-ONLY projection of the script's `imported_from_v2` metadata marker: this script came in\nthrough a V2 blueprint import (manual V2 XML or a V2 plugin-repo install) and so was written\nagainst the V2 scripting API. Drives the script editor's \"Convert to C# with AI\" prompt. The write\npaths ignore it (the mappers' `MapperIgnoreSource`), so a client save can never set or clear it."
          },
          "v2ScriptEngine": {
            "type": "string",
            "description": "READ-ONLY projection of `v2_script_engine` — the engine the script was authored for in V2\n(\"IronPython 2\", \"Batch\", …), which the V3 engine value cannot reconstruct. Null unless\nTCAdmin.Web.Shared.Models.Blueprint.ScriptDto.ImportedFromV2 is true. Ignored on every write path, like the flag.",
            "nullable": true
          },
          "v2Pristine": {
            "type": "boolean",
            "description": "READ-ONLY projection of `v2_pristine`: this script is still exactly as the V2 importer created\nit and therefore REFUSES TO RUN until it is converted or reviewed. Unlike\nTCAdmin.Web.Shared.Models.Blueprint.ScriptDto.ImportedFromV2 this one is transient — the server clears it on any successful save of\nthe script. Write-protected on every mapper (a client payload must never set or clear it; only the\nserver-side clear-on-save may), for the obvious reason that it is a safety gate."
          },
          "serviceId": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false,
        "description": "The rich, editable DTO for an owner-authored service-level script (entity\n`ServiceCustomScript`). Carries the full TCAdmin.Web.Shared.Models.Blueprint.ScriptDto surface (Code/ScriptEngine/\nScriptEvents + the editable fields) plus the owning TCAdmin.Web.Shared.Models.Blueprint.ServiceCustomScriptDto.ServiceId. `ScriptType`\nresolves to \"ServiceCustomScript\" via the base ctor, matching the entity and the\n`ScriptDtoConverter` arm."
      },
      "ServiceDatabaseDto": {
        "type": "object",
        "properties": {
          "databaseId": {
            "type": "integer",
            "format": "int64"
          },
          "ownerId": {
            "type": "integer",
            "format": "int64"
          },
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "host": {
            "type": "string",
            "nullable": true
          },
          "port": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "phpMyAdminUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServiceFastDLStatusDto": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Effective enabled state — the per-service `FastDLEnabled` override when set,\notherwise the blueprint config, ANDed with the server master switch. Computed by\n`FastDLPathHelper.IsServiceFastDLEnabled`."
          },
          "usage": {
            "type": "integer",
            "description": "Total destination bytes after the last sync (`Service.FastDLUsage`).",
            "format": "int64"
          },
          "fileCount": {
            "type": "integer",
            "description": "Total files mirrored after the last sync (`Service.FastDLFileCount`).",
            "format": "int32"
          },
          "lastSyncUtc": {
            "type": "string",
            "description": "When the last sync finished (any outcome); null if never synced.",
            "format": "date-time",
            "nullable": true
          },
          "quotaMB": {
            "type": "integer",
            "description": "Per-service disk quota in MB from the blueprint config; null = unlimited.",
            "format": "int32",
            "nullable": true
          },
          "fastDLUrl": {
            "type": "string",
            "description": "Public HTTP origin for this service's FastDL files (composed from server config).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Read-only FastDL status for a service — drives the service-side \"Fast Downloads\" card.\nBuilt entirely from the denormalized `Service.FastDL*` columns plus the blueprint\nFastDL config, so the web tier never has to contact the monitor to render it."
      },
      "ServiceHomeTemplateRenderDto": {
        "type": "object",
        "properties": {
          "found": {
            "type": "boolean",
            "description": "An enabled, non-empty home row matched this service on the theme's template."
          },
          "resolvedKey": {
            "type": "string",
            "description": "The row that resolved, e.g. \"GameService.Home.526\" (blueprint variant) or \"GameService.Home\".",
            "nullable": true
          },
          "root": {
            "$ref": "#/components/schemas/LayoutNode"
          },
          "error": {
            "type": "string",
            "description": "Render error for the client's error UI (parse failure, output cap, unknown token…).",
            "nullable": true
          },
          "css": {
            "type": "string",
            "description": "The resolved row's surface CSS — already sanitized (or raw for full-trust themes) AND escaped\nfor `<style>` markup injection (`<` → `\\3c `). Inject via\n`(MarkupString)` only; null when the render failed or the row has no CSS.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Result of a per-request service home-page template render (one service + theme + requesting\nuser). Plain PascalCase POCO — like TCAdmin.SDK.Constants.LayoutNode it must round-trip reflection\nSystem.Text.Json over Refit with no serializer attributes.\n\nClient semantics: `Found == false` → render the compiled page (no home row on the\ntheme's template). `Found && Error != null` → the row exists but failed to render\n(author bug) — show the template error UI. `Found && Root == null && Error == null`\n(whitespace / all-conditionals-false output) → compiled fallback."
      },
      "ServiceInfoModel": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "blueprintId": {
            "type": "integer",
            "format": "int64"
          },
          "blueprintName": {
            "type": "string",
            "nullable": true
          },
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "serverName": {
            "type": "string",
            "nullable": true
          },
          "fileManagerEnabled": {
            "type": "boolean"
          },
          "configFilesEnabled": {
            "type": "boolean"
          },
          "predefinedCommandlinesEnabled": {
            "type": "boolean"
          },
          "customCommandlinesEnabled": {
            "type": "boolean"
          },
          "scheduledTasksEnabled": {
            "type": "boolean"
          },
          "backupsEnabled": {
            "type": "boolean"
          },
          "stopServiceBeforeBackup": {
            "type": "boolean"
          },
          "modsEnabled": {
            "type": "boolean",
            "description": "Mods nav link gating: the blueprint has at least one mod, ANDed with the Mods\nblueprint-feature / per-service permission. Set by the controllers (cheap EXISTS query),\nnever auto-mapped."
          },
          "fastDLEnabled": {
            "type": "boolean",
            "description": "FastDL effective-enabled for the service — the per-service override, or the blueprint\nconfig when the override is unset, ANDed with the server switch. Gates the service-side\n\"Fast Downloads\" nav link. Permission-independent; the layout ANDs this with the FastDL\nblueprint-feature permission. Set by the controller, never auto-mapped — see the\n`[MapperIgnoreTarget]` on the info-model mappers."
          },
          "editableExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "maxEditableSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "diskSpace": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "ownsServer": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ServiceModDto": {
        "type": "object",
        "properties": {
          "modId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "groupName": {
            "type": "string",
            "nullable": true
          },
          "comments": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "homepageUrl": {
            "type": "string",
            "nullable": true
          },
          "helpUrl": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "string",
            "nullable": true
          },
          "releaseType": {
            "type": "string",
            "description": "Release metadata — rendered as extra columns on the service Mods page.\n            Each column only renders when at least one visible mod carries a value for it.",
            "nullable": true
          },
          "releaseDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "fileSizeBytes": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "installType": {
            "$ref": "#/components/schemas/EModInstallType"
          },
          "uninstallable": {
            "type": "boolean"
          },
          "updateVisible": {
            "type": "boolean"
          },
          "viewOrder": {
            "type": "integer",
            "format": "int32"
          },
          "installed": {
            "type": "boolean"
          },
          "installedVersion": {
            "type": "string",
            "nullable": true
          },
          "requiredMods": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Mod IDs (within the same blueprint) that must be installed before this one.\nUsed client-side to compute the missing-deps chain so the install dialog can offer\nto install everything in one task. Server-side validation in\n`ServiceModManager.ValidateModInstall` still enforces the same rules.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Service-side projection: which blueprint mods are visible to the user for a service,\nwith the currently-installed state pre-computed."
      },
      "ServicePermissionItemDto": {
        "type": "object",
        "properties": {
          "permission": {
            "type": "string",
            "description": "The permission key (e.g., \"Control\", \"FileManager\", etc.)",
            "nullable": true
          },
          "label": {
            "type": "string",
            "description": "Display label for the permission",
            "nullable": true
          },
          "module": {
            "type": "string",
            "description": "The module this permission belongs to based on its feature source:\n- \"GameService\" if from GameFeatures\n- \"DockerService\" if from DockerFeatures\n- \"Service\" if from BlueprintFeatures",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a single permission item with display information"
      },
      "ServiceScriptDto": {
        "type": "object",
        "properties": {
          "scriptId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "stopService": {
            "type": "boolean"
          },
          "editor": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicControlBaseDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServiceServerHardwareInfoDto": {
        "type": "object",
        "properties": {
          "processorCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalMemoryBytes": {
            "type": "integer",
            "format": "int64"
          },
          "operatingSystem": {
            "$ref": "#/components/schemas/EOperatingSystem"
          },
          "numaNodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NumaNodeDto"
            },
            "description": "Host NUMA topology; the UI shows a node picker only when Count > 1.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServiceStatusInfoDto": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "integer",
            "format": "int64"
          },
          "processId": {
            "type": "integer",
            "format": "int32"
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "stopTime": {
            "type": "string",
            "format": "date-time"
          },
          "cpuUsage": {
            "type": "number",
            "format": "double"
          },
          "cpuUsagePerCore": {
            "type": "number",
            "format": "double"
          },
          "memoryUsage": {
            "type": "integer",
            "format": "int64"
          },
          "memoryLimit": {
            "type": "number",
            "format": "double"
          },
          "memoryPercent": {
            "type": "number",
            "format": "double"
          },
          "networkReceived": {
            "type": "integer",
            "format": "int64"
          },
          "networkSent": {
            "type": "integer",
            "format": "int64"
          },
          "networkTotal": {
            "type": "integer",
            "format": "int64"
          },
          "networkStatsSupported": {
            "type": "boolean",
            "description": "False when the host platform cannot attribute network traffic to this service\n            (e.g. Linux without systemd) — the UI hides the network stat instead of showing 0."
          },
          "diskUsage": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "diskLimit": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "diskPercent": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "readOnly": true
          },
          "status": {
            "$ref": "#/components/schemas/EServiceStatus"
          },
          "query": {
            "$ref": "#/components/schemas/GameQueryInfoDto"
          },
          "processStats": {
            "$ref": "#/components/schemas/ProcessResourcesDtoCircularArrayDto"
          },
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServiceUpdateDto": {
        "type": "object",
        "properties": {
          "updateId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "groupName": {
            "type": "string",
            "nullable": true
          },
          "comments": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "viewOrder": {
            "type": "integer",
            "format": "int32"
          },
          "reinstallable": {
            "type": "boolean"
          },
          "installed": {
            "type": "boolean"
          },
          "version": {
            "type": "string",
            "description": "Release metadata — rendered as extra columns on the service Updates page.\n            Each column only renders when at least one visible update carries a value for it.",
            "nullable": true
          },
          "releaseType": {
            "type": "string",
            "nullable": true
          },
          "releaseDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "fileSizeBytes": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Service-side projection: which updates are visible to the user for a service,\nwith the currently-installed flag pre-computed."
      },
      "ServiceUpdateResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "nullable": true
          },
          "revertedVariables": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "commandlineWarning": {
            "type": "string",
            "description": "Non-null when the settings were saved but the command line could not be rebuilt from its\ntemplate (fail-soft — the previous command line was kept). Surface as a warning.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response returned by service update endpoints. TCAdmin.Web.Shared.Models.Service.ServiceUpdateResponse.RevertedVariables contains the\nintrinsic / restricted variable names that were rewritten in managed config files after the\nDB-side update, so the UI can surface which values were propagated to disk."
      },
      "ServiceVariableDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A single `Service.Variables` entry."
      },
      "SetAppSettingsValueRequest": {
        "type": "object",
        "properties": {
          "component": {
            "$ref": "#/components/schemas/EAppSettingsComponent"
          },
          "keyPath": {
            "type": "string",
            "description": "Colon-separated configuration path under `TCAdmin:`, e.g. `TCAdmin:Upnp:Enabled`.",
            "nullable": true
          },
          "valueJson": {
            "type": "string",
            "description": "The new value as JSON, e.g. `true`, `8821`, `\"text\"`; ignored with TCAdmin.Web.Shared.Models.Server.SetAppSettingsValueRequest.Remove.",
            "nullable": true
          },
          "remove": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Sets or removes ONE key in a component's appsettings file (docs/MASTER_APPSETTINGS_EDITING.md)."
      },
      "ShareTokenRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SteamSettingsDto": {
        "type": "object",
        "properties": {
          "steamUsername": {
            "type": "string",
            "description": "Default Steam account username. \"anonymous\" means anonymous login.",
            "nullable": true
          },
          "steamPassword": {
            "type": "string",
            "description": "Default Steam account password (blank for an anonymous account).",
            "nullable": true
          },
          "steamApiKey": {
            "type": "string",
            "description": "Default Steam Web API key (create one at https://steamcommunity.com/dev/apikey).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "System-wide default Steam settings — the fallback account and Web API key used when a game\nleaves its own Steam values blank."
      },
      "StepUpPasskeyBeginDto": {
        "type": "object",
        "properties": {
          "challengeToken": {
            "type": "string",
            "nullable": true
          },
          "optionsJson": {
            "type": "string",
            "description": "Serialized Fido2 `AssertionOptions` for `navigator.credentials.get`.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StepUpRequirementsDto": {
        "type": "object",
        "properties": {
          "hasSecondFactor": {
            "type": "boolean"
          },
          "totp": {
            "type": "boolean",
            "description": "An authenticator or recovery code is accepted."
          },
          "passkey": {
            "type": "boolean"
          },
          "password": {
            "type": "boolean",
            "description": "True only when the account has no second factor and a verifiable password."
          }
        },
        "additionalProperties": false,
        "description": "Which proofs `Me/StepUp/Verify` accepts for the acting account; rendering hints only."
      },
      "StepUpVerifyRequest": {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "description": "One of TCAdmin.Web.Shared.Models.Security.StepUpMethods.",
            "nullable": true
          },
          "code": {
            "type": "string",
            "description": "Authenticator or recovery code (TCAdmin.Web.Shared.Models.Security.StepUpMethods.Code).",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "challengeToken": {
            "type": "string",
            "description": "From `Me/StepUp/Passkey/Begin` (TCAdmin.Web.Shared.Models.Security.StepUpMethods.Passkey).",
            "nullable": true
          },
          "assertionResponseJson": {
            "type": "string",
            "nullable": true
          },
          "purpose": {
            "type": "string",
            "description": "One of TCAdmin.Web.Shared.Models.Security.StepUpPurposes; recorded in the audit row.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StepUpVerifyResult": {
        "type": "object",
        "properties": {
          "outcome": {
            "type": "string",
            "description": "One of TCAdmin.Web.Shared.Models.Security.StepUpOutcomes.",
            "nullable": true
          },
          "token": {
            "type": "string",
            "description": "The grace token, set only on TCAdmin.Web.Shared.Models.Security.StepUpOutcomes.Ok.",
            "nullable": true
          },
          "expiresUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StringObjectKeyValuePair": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubUserScriptPermissionDto": {
        "type": "object",
        "properties": {
          "scriptId": {
            "type": "integer",
            "description": "The script ID",
            "format": "int64"
          },
          "scriptName": {
            "type": "string",
            "description": "The script name",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of what the script does",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "description": "Icon for the script (MudBlazor icon name)",
            "nullable": true
          },
          "canExecute": {
            "type": "boolean",
            "description": "Whether the sub user can execute this script"
          }
        },
        "additionalProperties": false,
        "description": "Represents a script with its permission status for a sub user"
      },
      "SubUserServicePermissionsDto": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "integer",
            "description": "The service ID",
            "format": "int64"
          },
          "serviceType": {
            "type": "string",
            "description": "The service type (GameService or DockerService)",
            "nullable": true
          },
          "displayLabel": {
            "type": "string",
            "description": "Display label in format {HostnameOrIP}:{Port}",
            "nullable": true
          },
          "blueprintName": {
            "type": "string",
            "description": "The blueprint/game name",
            "nullable": true
          },
          "availablePermissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServicePermissionItemDto"
            },
            "description": "List of available permissions for this service based on owner's roles",
            "nullable": true
          },
          "grantedPermissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GrantedPermissionDto"
            },
            "description": "List of currently granted permissions for this service",
            "nullable": true
          },
          "availableScripts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubUserScriptPermissionDto"
            },
            "description": "List of available scripts for this service based on owner's roles",
            "nullable": true
          },
          "availableVariables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubUserVariablePermissionDto"
            },
            "description": "The blueprint variables the OWNER can edit on this service — the only ones that may be\ndelegated to the sub-user. Empty when the owner reaches none of them.",
            "nullable": true
          },
          "grantedVariableIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "description": "Variable IDs currently granted to the sub-user on this service, already intersected with\nTCAdmin.Web.Shared.Models.Permissions.SubUserServicePermissionsDto.AvailableVariables — a stale grant for a variable the owner has since lost is\nnot reported (and is pruned on the next save).",
            "nullable": true
          },
          "rootFolder": {
            "type": "string",
            "description": "The folder the sub-user is confined to, relative to the owner's own file root. Empty = none.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a service with its available and granted permissions for a sub user"
      },
      "SubUserVariablePermissionDto": {
        "type": "object",
        "properties": {
          "variableId": {
            "type": "integer",
            "description": "The variable ID (`tc_variables.VariableId`). Unique per blueprint, so it is always\npaired with a service ID when stored as a grant.",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "description": "The variable's raw name (the config-file / command-line token).",
            "nullable": true
          },
          "label": {
            "type": "string",
            "description": "Display label — the variable's editor label when it has one, otherwise TCAdmin.Web.Shared.Models.Permissions.SubUserVariablePermissionDto.Name.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One blueprint variable a sub-user can be granted edit access to on a service."
      },
      "SyntaxCheckDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "scriptEngine": {
            "$ref": "#/components/schemas/EScriptEngineDto"
          },
          "inputVariables": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SyntaxErrorDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "nullable": true
          },
          "startLine": {
            "type": "integer",
            "format": "int32"
          },
          "startColumn": {
            "type": "integer",
            "format": "int32"
          },
          "endLine": {
            "type": "integer",
            "format": "int32"
          },
          "endColumn": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "SystemHealthDto": {
        "type": "object",
        "properties": {
          "databaseConnectionHealthy": {
            "type": "boolean",
            "description": "Whether the database connection is healthy"
          },
          "databaseUpToDate": {
            "type": "boolean",
            "description": "Whether the database schema is up to date"
          },
          "databasePendingMigrations": {
            "type": "integer",
            "description": "Number of pending database migrations",
            "format": "int32"
          },
          "apiVersion": {
            "type": "string",
            "description": "API version string",
            "nullable": true
          },
          "serverHealth": {
            "$ref": "#/components/schemas/ServerHealthDto"
          },
          "redisHealth": {
            "$ref": "#/components/schemas/RedisHealthDto"
          },
          "certificateHealth": {
            "$ref": "#/components/schemas/CertificateHealthDto"
          },
          "licenseHealth": {
            "$ref": "#/components/schemas/LicenseHealthDto"
          },
          "updateHealth": {
            "$ref": "#/components/schemas/UpdateHealthDto"
          },
          "overallStatus": {
            "$ref": "#/components/schemas/EHealthStatus"
          },
          "checkedAt": {
            "type": "string",
            "description": "Timestamp when the health check was performed",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "System health status response"
      },
      "TCAApiResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "errorDetails": {
            "$ref": "#/components/schemas/ApiExceptionDetails"
          }
        },
        "additionalProperties": false
      },
      "TCADarkPalette": {
        "type": "object",
        "properties": {
          "white": {
            "$ref": "#/components/schemas/MudColor"
          },
          "primaryContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "secondary": {
            "$ref": "#/components/schemas/MudColor"
          },
          "secondaryContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "tertiary": {
            "$ref": "#/components/schemas/MudColor"
          },
          "tertiaryContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "infoContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "successContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "warningContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "errorContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "darkContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "tableHover": {
            "$ref": "#/components/schemas/MudColor"
          },
          "skeleton": {
            "$ref": "#/components/schemas/MudColor"
          },
          "primaryDarken": {
            "type": "string",
            "nullable": true
          },
          "primaryLighten": {
            "type": "string",
            "nullable": true
          },
          "secondaryDarken": {
            "type": "string",
            "nullable": true
          },
          "secondaryLighten": {
            "type": "string",
            "nullable": true
          },
          "tertiaryDarken": {
            "type": "string",
            "nullable": true
          },
          "tertiaryLighten": {
            "type": "string",
            "nullable": true
          },
          "infoDarken": {
            "type": "string",
            "nullable": true
          },
          "infoLighten": {
            "type": "string",
            "nullable": true
          },
          "successDarken": {
            "type": "string",
            "nullable": true
          },
          "successLighten": {
            "type": "string",
            "nullable": true
          },
          "warningDarken": {
            "type": "string",
            "nullable": true
          },
          "warningLighten": {
            "type": "string",
            "nullable": true
          },
          "errorDarken": {
            "type": "string",
            "nullable": true
          },
          "errorLighten": {
            "type": "string",
            "nullable": true
          },
          "darkDarken": {
            "type": "string",
            "nullable": true
          },
          "darkLighten": {
            "type": "string",
            "nullable": true
          },
          "borderOpacity": {
            "type": "number",
            "format": "double"
          },
          "hoverOpacity": {
            "type": "number",
            "format": "double"
          },
          "rippleOpacity": {
            "type": "number",
            "format": "double"
          },
          "rippleOpacitySecondary": {
            "type": "number",
            "format": "double"
          },
          "grayDefault": {
            "type": "string",
            "nullable": true
          },
          "grayLight": {
            "type": "string",
            "nullable": true
          },
          "grayLighter": {
            "type": "string",
            "nullable": true
          },
          "grayDark": {
            "type": "string",
            "nullable": true
          },
          "grayDarker": {
            "type": "string",
            "nullable": true
          },
          "overlayDark": {
            "type": "string",
            "nullable": true
          },
          "overlayLight": {
            "type": "string",
            "nullable": true
          },
          "consoleBackground": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleForeground": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleCursor": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleSelection": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleBlack": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleRed": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleGreen": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleYellow": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleBlue": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleMagenta": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleCyan": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleWhite": {
            "$ref": "#/components/schemas/MudColor"
          },
          "black": {
            "$ref": "#/components/schemas/MudColor"
          },
          "primary": {
            "$ref": "#/components/schemas/MudColor"
          },
          "info": {
            "$ref": "#/components/schemas/MudColor"
          },
          "success": {
            "$ref": "#/components/schemas/MudColor"
          },
          "warning": {
            "$ref": "#/components/schemas/MudColor"
          },
          "error": {
            "$ref": "#/components/schemas/MudColor"
          },
          "dark": {
            "$ref": "#/components/schemas/MudColor"
          },
          "textPrimary": {
            "$ref": "#/components/schemas/MudColor"
          },
          "textSecondary": {
            "$ref": "#/components/schemas/MudColor"
          },
          "textDisabled": {
            "$ref": "#/components/schemas/MudColor"
          },
          "actionDefault": {
            "$ref": "#/components/schemas/MudColor"
          },
          "actionDisabled": {
            "$ref": "#/components/schemas/MudColor"
          },
          "actionDisabledBackground": {
            "$ref": "#/components/schemas/MudColor"
          },
          "background": {
            "$ref": "#/components/schemas/MudColor"
          },
          "backgroundGray": {
            "$ref": "#/components/schemas/MudColor"
          },
          "surface": {
            "$ref": "#/components/schemas/MudColor"
          },
          "drawerBackground": {
            "$ref": "#/components/schemas/MudColor"
          },
          "drawerText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "drawerIcon": {
            "$ref": "#/components/schemas/MudColor"
          },
          "appbarBackground": {
            "$ref": "#/components/schemas/MudColor"
          },
          "appbarText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "linesDefault": {
            "$ref": "#/components/schemas/MudColor"
          },
          "linesInputs": {
            "$ref": "#/components/schemas/MudColor"
          },
          "tableLines": {
            "$ref": "#/components/schemas/MudColor"
          },
          "tableStriped": {
            "$ref": "#/components/schemas/MudColor"
          },
          "divider": {
            "$ref": "#/components/schemas/MudColor"
          },
          "dividerLight": {
            "$ref": "#/components/schemas/MudColor"
          }
        },
        "additionalProperties": false
      },
      "TCAEntityMetadataDto": {
        "type": "object",
        "properties": {
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TCALightPalette": {
        "type": "object",
        "properties": {
          "black": {
            "$ref": "#/components/schemas/MudColor"
          },
          "white": {
            "$ref": "#/components/schemas/MudColor"
          },
          "primary": {
            "$ref": "#/components/schemas/MudColor"
          },
          "primaryContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "secondary": {
            "$ref": "#/components/schemas/MudColor"
          },
          "secondaryContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "tertiary": {
            "$ref": "#/components/schemas/MudColor"
          },
          "tertiaryContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "info": {
            "$ref": "#/components/schemas/MudColor"
          },
          "infoContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "success": {
            "$ref": "#/components/schemas/MudColor"
          },
          "successContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "warning": {
            "$ref": "#/components/schemas/MudColor"
          },
          "warningContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "error": {
            "$ref": "#/components/schemas/MudColor"
          },
          "errorContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "dark": {
            "$ref": "#/components/schemas/MudColor"
          },
          "darkContrastText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "textPrimary": {
            "$ref": "#/components/schemas/MudColor"
          },
          "textSecondary": {
            "$ref": "#/components/schemas/MudColor"
          },
          "textDisabled": {
            "$ref": "#/components/schemas/MudColor"
          },
          "actionDefault": {
            "$ref": "#/components/schemas/MudColor"
          },
          "actionDisabled": {
            "$ref": "#/components/schemas/MudColor"
          },
          "actionDisabledBackground": {
            "$ref": "#/components/schemas/MudColor"
          },
          "background": {
            "$ref": "#/components/schemas/MudColor"
          },
          "backgroundGray": {
            "$ref": "#/components/schemas/MudColor"
          },
          "surface": {
            "$ref": "#/components/schemas/MudColor"
          },
          "drawerBackground": {
            "$ref": "#/components/schemas/MudColor"
          },
          "drawerText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "drawerIcon": {
            "$ref": "#/components/schemas/MudColor"
          },
          "appbarBackground": {
            "$ref": "#/components/schemas/MudColor"
          },
          "appbarText": {
            "$ref": "#/components/schemas/MudColor"
          },
          "linesDefault": {
            "$ref": "#/components/schemas/MudColor"
          },
          "linesInputs": {
            "$ref": "#/components/schemas/MudColor"
          },
          "tableLines": {
            "$ref": "#/components/schemas/MudColor"
          },
          "tableStriped": {
            "$ref": "#/components/schemas/MudColor"
          },
          "tableHover": {
            "$ref": "#/components/schemas/MudColor"
          },
          "divider": {
            "$ref": "#/components/schemas/MudColor"
          },
          "dividerLight": {
            "$ref": "#/components/schemas/MudColor"
          },
          "skeleton": {
            "$ref": "#/components/schemas/MudColor"
          },
          "primaryDarken": {
            "type": "string",
            "nullable": true
          },
          "primaryLighten": {
            "type": "string",
            "nullable": true
          },
          "secondaryDarken": {
            "type": "string",
            "nullable": true
          },
          "secondaryLighten": {
            "type": "string",
            "nullable": true
          },
          "tertiaryDarken": {
            "type": "string",
            "nullable": true
          },
          "tertiaryLighten": {
            "type": "string",
            "nullable": true
          },
          "infoDarken": {
            "type": "string",
            "nullable": true
          },
          "infoLighten": {
            "type": "string",
            "nullable": true
          },
          "successDarken": {
            "type": "string",
            "nullable": true
          },
          "successLighten": {
            "type": "string",
            "nullable": true
          },
          "warningDarken": {
            "type": "string",
            "nullable": true
          },
          "warningLighten": {
            "type": "string",
            "nullable": true
          },
          "errorDarken": {
            "type": "string",
            "nullable": true
          },
          "errorLighten": {
            "type": "string",
            "nullable": true
          },
          "darkDarken": {
            "type": "string",
            "nullable": true
          },
          "darkLighten": {
            "type": "string",
            "nullable": true
          },
          "borderOpacity": {
            "type": "number",
            "format": "double"
          },
          "hoverOpacity": {
            "type": "number",
            "format": "double"
          },
          "rippleOpacity": {
            "type": "number",
            "format": "double"
          },
          "rippleOpacitySecondary": {
            "type": "number",
            "format": "double"
          },
          "grayDefault": {
            "type": "string",
            "nullable": true
          },
          "grayLight": {
            "type": "string",
            "nullable": true
          },
          "grayLighter": {
            "type": "string",
            "nullable": true
          },
          "grayDark": {
            "type": "string",
            "nullable": true
          },
          "grayDarker": {
            "type": "string",
            "nullable": true
          },
          "overlayDark": {
            "type": "string",
            "nullable": true
          },
          "overlayLight": {
            "type": "string",
            "nullable": true
          },
          "consoleBackground": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleForeground": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleCursor": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleSelection": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleBlack": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleRed": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleGreen": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleYellow": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleBlue": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleMagenta": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleCyan": {
            "$ref": "#/components/schemas/MudColor"
          },
          "consoleWhite": {
            "$ref": "#/components/schemas/MudColor"
          }
        },
        "additionalProperties": false
      },
      "TCATaskCalendarDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TCATaskCalendarItemDto"
            },
            "description": "The tasks to draw, ordered by scheduled time. Never longer than TCAdmin.Web.Shared.Models.TCATask.TCATaskCalendarDto.MaxItems.",
            "nullable": true
          },
          "counts": {
            "$ref": "#/components/schemas/TCATaskStatusCountsDto"
          },
          "totalMatching": {
            "type": "integer",
            "description": "How many tasks matched the request (period + status filter) in the database. Larger than\n`Items.Count` only when the period holds more than TCAdmin.Web.Shared.Models.TCATask.TCATaskCalendarDto.MaxItems tasks.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "One date range's worth of task-calendar data: the tasks to draw, plus the period's status\ncomposition. Both come from the same database query, so the header counts and the calendar can't\ndisagree."
      },
      "TCATaskCalendarItemDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "integer",
            "format": "int64"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "scheduledTime": {
            "type": "string",
            "description": "Always UTC (the Kind is pinned server-side). Render it through `ToLocalTime()`.",
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/ETaskStatus"
          }
        },
        "additionalProperties": false,
        "description": "A single task as the calendar needs it — no steps, no logs."
      },
      "TCATaskDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "integer",
            "format": "int64"
          },
          "currentTaskStepId": {
            "type": "integer",
            "format": "int64"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "ownerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "status": {
            "$ref": "#/components/schemas/ETaskStatus"
          },
          "scheduledTime": {
            "type": "string",
            "format": "date-time"
          },
          "lastRunTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TCATaskDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TCATaskDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TCATaskStatusCountsDto": {
        "type": "object",
        "properties": {
          "pending": {
            "type": "integer",
            "format": "int32"
          },
          "running": {
            "type": "integer",
            "format": "int32"
          },
          "completed": {
            "type": "integer",
            "format": "int32"
          },
          "failed": {
            "type": "integer",
            "format": "int32"
          },
          "cancelled": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Task counts per status over a period."
      },
      "TCATaskStepDto": {
        "required": [
          "processId"
        ],
        "type": "object",
        "properties": {
          "taskId": {
            "type": "integer",
            "format": "int64"
          },
          "stepId": {
            "type": "integer",
            "format": "int64"
          },
          "moduleId": {
            "type": "string",
            "format": "uuid"
          },
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "processId": {
            "minLength": 1,
            "type": "string"
          },
          "progress": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/ETaskStatus"
          },
          "logs": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "debugLogs": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "displayLog": {
            "type": "string",
            "nullable": true
          },
          "displayDebugLog": {
            "type": "string",
            "nullable": true
          },
          "variables": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "returnValue": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TCAThemeDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "themeId": {
            "type": "integer",
            "format": "int64"
          },
          "titlePrefix": {
            "type": "string",
            "nullable": true
          },
          "titlePostfix": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string"
          },
          "hostname": {
            "type": "string",
            "nullable": true
          },
          "logoutUrl": {
            "type": "string",
            "nullable": true
          },
          "isDefault": {
            "type": "boolean"
          },
          "isEnabled": {
            "type": "boolean"
          },
          "lightPalette": {
            "$ref": "#/components/schemas/TCALightPalette"
          },
          "darkPalette": {
            "$ref": "#/components/schemas/TCADarkPalette"
          },
          "layoutProperties": {
            "$ref": "#/components/schemas/LayoutProperties"
          },
          "mainContentSettings": {
            "$ref": "#/components/schemas/MainContentThemeSettings"
          },
          "topBarSettings": {
            "$ref": "#/components/schemas/TopBarThemeSettings"
          },
          "bottomBarSettings": {
            "$ref": "#/components/schemas/BottomBarThemeSettings"
          },
          "navMenuSettings": {
            "$ref": "#/components/schemas/NavMenuThemeSettings"
          },
          "advancedSettings": {
            "$ref": "#/components/schemas/AdvancedThemeSettings"
          },
          "loginSettings": {
            "$ref": "#/components/schemas/LoginThemeSettings"
          },
          "loadingScreen": {
            "$ref": "#/components/schemas/LoadingScreenConfigDto"
          },
          "allowUnsafeTemplateContent": {
            "type": "boolean",
            "description": "When true, the selected layout template's HTML & CSS render RAW (no sanitization) —\n            full local trust. See entity docs (`TCATheme.AllowUnsafeTemplateContent`)."
          },
          "paletteMode": {
            "$ref": "#/components/schemas/ThemePaletteMode"
          },
          "templateId": {
            "type": "integer",
            "description": "The standalone layout template this theme renders (its look), or null for the built-in layout.",
            "format": "int64",
            "nullable": true
          },
          "templateCss": {
            "type": "string",
            "description": "The selected template's own stylesheet, server-sanitized as CSS (external `url()` stripped\nunless full-trust). The host injects it as a real `<style>` element. Computed\nserver-side (no entity source); not persisted on the theme. Empty when no template is selected.",
            "nullable": true
          },
          "renderedTemplates": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/LayoutNode"
            },
            "description": "Server-rendered + sanitized template structure, keyed by TemplateKey (e.g. \"LoginPage\"). Each\nvalue is a parsed TCAdmin.SDK.Constants.LayoutNode tree (not an HTML string) so the client builds a\nsingle render tree and splices live components in at the `{% component %}` slots while\npreserving the author's wrapper nesting. Populated by the theme read path. Not persisted and\nnot mapped from the entity.",
            "nullable": true
          },
          "templateRenderErrors": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Render failures, keyed by TemplateKey → error message. A key appears here OR in\nTCAdmin.Web.Shared.Models.Theme.TCAThemeDto.RenderedTemplates, never both. The client shows a detailed error + a one-click\nsafe-mode escape for these (instead of silently falling back), so a broken template is\nvisible to the admin. Not persisted and not mapped from the entity.",
            "nullable": true
          },
          "ownerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaskLiveProgressDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "integer",
            "description": "The task this snapshot belongs to; how a batch result's flat list is matched up.",
            "format": "int64"
          },
          "stepId": {
            "type": "integer",
            "format": "int64"
          },
          "taskStatus": {
            "$ref": "#/components/schemas/ETaskStatus"
          },
          "stepStatus": {
            "$ref": "#/components/schemas/ETaskStatus"
          },
          "progress": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Structured counters the handler published alongside the percentage, from the step's\n`ReturnValue[\"ProgressData\"]`; `null` for handlers that don't use the convention.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The latest live progress snapshot for a running task, served from the retained Redis value\n(see `IEventsService.SetLastAsync`). Lets a freshly-opened task dialog show the current\nstate immediately, since the database row is not written mid-run."
      },
      "ThemePaletteMode": {
        "enum": [
          "LightAndDark",
          "LightOnly",
          "DarkOnly"
        ],
        "type": "string",
        "description": "Which palettes a theme offers its users. Stored as int on `TCATheme.PaletteMode`."
      },
      "TimeZoneInfo": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "hasIanaId": {
            "type": "boolean",
            "readOnly": true
          },
          "displayName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "standardName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "daylightName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "baseUtcOffset": {
            "type": "string",
            "format": "date-span",
            "readOnly": true
          },
          "supportsDaylightSavingTime": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "TimeZoneInfoDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "standardName": {
            "type": "string",
            "nullable": true
          },
          "daylightName": {
            "type": "string",
            "nullable": true
          },
          "baseUtcOffset": {
            "type": "string",
            "format": "date-span"
          },
          "supportsDaylightSavingTime": {
            "type": "boolean"
          },
          "hasIanaId": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TopBarThemeSettings": {
        "type": "object",
        "properties": {
          "showBreadcrumbs": {
            "type": "boolean"
          },
          "dense": {
            "type": "boolean"
          },
          "elevation": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "TranslationEditDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "defaultValue": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One row of the translation editor grid: a catalog key, the English default the panel falls back\nto, and this language's override (`null` when the key is untranslated)."
      },
      "TranslationEditDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TranslationEditDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TranslationUpdateDto": {
        "required": [
          "key"
        ],
        "type": "object",
        "properties": {
          "key": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Upsert body for a single translation. An empty TCAdmin.Web.Shared.Models.Language.TranslationUpdateDto.Value reverts to the default."
      },
      "TriggerDto": {
        "type": "object",
        "properties": {
          "JobKey": {
            "nullable": true
          },
          "Description": {
            "type": "string",
            "nullable": true
          },
          "CalendarName": {
            "type": "string",
            "nullable": true
          },
          "JobDataMap": {
            "$ref": "#/components/schemas/StringObjectKeyValuePair"
          },
          "Key": {
            "$ref": "#/components/schemas/TriggerKeyDto"
          },
          "MisfireInstruction": {
            "type": "integer",
            "format": "int32"
          },
          "StartTimeUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "EndTimeUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "NextFireTimeUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "PreviousFireTimeUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "Priority": {
            "type": "integer",
            "format": "int32"
          },
          "TriggerType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TriggerKeyDto": {
        "type": "object",
        "properties": {
          "Name": {
            "type": "string",
            "nullable": true
          },
          "Group": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TrustedDeviceDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "lastUsedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastUsedIp": {
            "type": "string",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "TwoFactorStatusDto": {
        "type": "object",
        "properties": {
          "methods": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Enrolled method names (`nameof(ETwoFactorMethod.*)`). Gate per-method UI on the\n            specific method — a combined \"is 2FA on\" flag hid TOTP setup for passkey-only users once.",
            "nullable": true
          },
          "recoveryCodesRemaining": {
            "type": "integer",
            "format": "int32"
          },
          "trustedDevices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrustedDeviceDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UModGame": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "slug": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "icon_url": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "plugin_count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Game entry returned from https://umod.org/games.json. Used to populate the per-game\nuMod provider config dropdown dynamically instead of hardcoding the list."
      },
      "UnblockIpRequest": {
        "type": "object",
        "properties": {
          "ip": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateApiKeyRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The new name for the API key.",
            "nullable": true
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The new list of permission identifiers for this key.\nFormat: \"Module.Permission\" (e.g., \"Server.Get\", \"User.Create\")",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "description": "The new expiration date (null for no expiration).",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request DTO for updating an existing API key."
      },
      "UpdateCommandLineModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "variables": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateConfigFileModel": {
        "type": "object",
        "properties": {
          "contents": {
            "type": "string",
            "nullable": true
          },
          "encoding": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateConfigFileVariablesModel": {
        "type": "object",
        "properties": {
          "variables": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "encoding": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateDockerRegistryRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateExistingServicesResultDto": {
        "type": "object",
        "properties": {
          "gameId": {
            "type": "integer",
            "description": "The game whose existing services are being updated.",
            "format": "int64"
          },
          "gameName": {
            "type": "string",
            "description": "The game's display name, for the dialog title.",
            "nullable": true
          },
          "reattached": {
            "type": "boolean",
            "description": "True when a run was already in flight and the returned tasks are that run's."
          },
          "restartServices": {
            "type": "boolean",
            "description": "Whether the run restarts each running service after its command line is persisted. On a\nre-attach this is the <em>in-flight</em> run's mode, not the re-attaching caller's choice."
          },
          "servers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateExistingServicesServerDto"
            },
            "description": "One entry per hosting server; empty when no service uses this game.",
            "nullable": true
          },
          "totalServiceCount": {
            "type": "integer",
            "description": "Total services across every server in TCAdmin.Web.Shared.Models.Game.UpdateExistingServicesResultDto.Servers.",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "The response to `POST /Game/{id}/UpdateExistingServices`: one task per hosting server, each\nrefreshing that server's services' command lines. See docs/UPDATE_EXISTING_SERVICES.md."
      },
      "UpdateExistingServicesServerDto": {
        "type": "object",
        "properties": {
          "serverId": {
            "type": "integer",
            "description": "The <b>hosting</b> server whose services this task covers; the task runs on the master.",
            "format": "int64"
          },
          "serverName": {
            "type": "string",
            "description": "The hosting server's display name.",
            "nullable": true
          },
          "taskId": {
            "type": "integer",
            "description": "The task refreshing this server's services. 0 when TCAdmin.Web.Shared.Models.Game.UpdateExistingServicesServerDto.Error is set.",
            "format": "int64"
          },
          "serviceCount": {
            "type": "integer",
            "description": "How many services of the game this server hosts.",
            "format": "int32"
          },
          "error": {
            "type": "string",
            "description": "Why this server's task could not be started; the rest of the run still proceeds.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One hosting server's share of an Update Existing Services run."
      },
      "UpdateHealthDto": {
        "type": "object",
        "properties": {
          "updateAvailable": {
            "type": "boolean",
            "description": "Whether a newer version is available"
          },
          "currentVersion": {
            "type": "string",
            "description": "Currently installed version",
            "nullable": true
          },
          "latestVersion": {
            "type": "string",
            "description": "Latest available version from CDN (null if check failed)",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "description": "Error message if update check failed",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Update availability health information"
      },
      "UpdateJobDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "phase": {
            "$ref": "#/components/schemas/EUpdateJobPhase"
          },
          "channel": {
            "type": "string",
            "nullable": true
          },
          "targetVersion": {
            "type": "string",
            "nullable": true
          },
          "startedByUserName": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "cancelRequestedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "servers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateJobServerDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateJobServerDto": {
        "type": "object",
        "properties": {
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "serverName": {
            "type": "string",
            "nullable": true
          },
          "isMaster": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/EUpdateJobServerStatus"
          },
          "currentVersion": {
            "type": "string",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateLicenseRequestDto": {
        "type": "object",
        "properties": {
          "password": {
            "type": "string",
            "description": "The license key's password, prompted for after a `PASSWORD_REQUIRED` /\n`INVALID_PASSWORD` response. Null/empty = no password supplied (the monitor\nfalls back to the server's stored `TCAdmin:LicensePassword` configuration\noption, when one exists).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Optional body for the `UpdateLicense` endpoint. Exists so the password of a\npassword-protected license key travels in the request body instead of the query string\n(query strings end up in request logs). The password is forwarded to the license server\nfor that one validation and never stored."
      },
      "UpdatePreferredLanguageDto": {
        "type": "object",
        "properties": {
          "languageId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Sets the current user's preferred panel + email language. A null/empty TCAdmin.Web.Shared.Models.Profile.UpdatePreferredLanguageDto.LanguageId\nclears the preference (panel falls back to the per-browser choice; emails use the default\nlanguage). A dedicated endpoint because `PUT /Me` treats null as \"leave unchanged\", which\ncollides with null-means-default here. The controller validates that a non-empty value names an\nenabled language."
      },
      "UpdateProfileDto": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateSettingsDto": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string",
            "description": "The configured update channel (e.g. \"Beta\", \"Stable\", \"Dev-Fix\").",
            "nullable": true
          },
          "latestVersion": {
            "type": "string",
            "description": "The latest version detected for TCAdmin.Web.Shared.Models.UpdateSettings.UpdateSettingsDto.Channel (read-only, may be null).",
            "nullable": true
          },
          "defaultUpdateConcurrency": {
            "type": "integer",
            "description": "Default number of remotes to update concurrently, pre-filled when starting an update. 0 = unlimited.",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "UriBuilder": {
        "type": "object",
        "properties": {
          "scheme": {
            "type": "string",
            "nullable": true
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "host": {
            "type": "string",
            "nullable": true
          },
          "port": {
            "type": "integer",
            "format": "int32"
          },
          "path": {
            "type": "string",
            "nullable": true
          },
          "query": {
            "type": "string",
            "nullable": true
          },
          "fragment": {
            "type": "string",
            "nullable": true
          },
          "uri": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "UserDto": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string",
            "nullable": true
          },
          "timeZone": {
            "$ref": "#/components/schemas/TimeZoneInfoDto"
          },
          "preferredLanguage": {
            "type": "string",
            "description": "The user's preferred panel + email language (a `tc_languages` id). Null = no explicit\npreference (per-browser panel language; default-flagged language for emails).",
            "nullable": true
          },
          "userType": {
            "$ref": "#/components/schemas/ERoleType"
          },
          "userStatus": {
            "$ref": "#/components/schemas/EUserStatus"
          },
          "ownerId": {
            "type": "integer",
            "description": "The ID of the parent user (owner) for sub-users and sub-admins.\nNull for regular users/admins without a parent.",
            "format": "int64",
            "nullable": true
          },
          "ownerUsername": {
            "type": "string",
            "description": "The username behind TCAdmin.Web.Shared.Models.User.UserDto.OwnerId. Server-derived, so it is populated on the GET-by-id\npath only and posted values are ignored.",
            "nullable": true
          },
          "billingId": {
            "type": "string",
            "nullable": true
          },
          "billingStatus": {
            "$ref": "#/components/schemas/EBillingStatus"
          },
          "billingSuspended": {
            "type": "boolean",
            "description": "Whether TCAdmin.Web.Shared.Models.User.UserDto.BillingStatus blocks sign-in, derived on the server so every viewer sees it:\nTCAdmin.Web.Shared.Models.User.UserDto.BillingStatus itself is permission-gated and reads back as Active without\n`User.ManageBilling`. Deliberately ungated; posted values are ignored — there is no such entity property."
          },
          "demoMode": {
            "type": "boolean",
            "description": "Admin-only: when true this user is in demo mode, so all of their data changes are blocked\n(effective at their next sign-in). Backed by user metadata. Only an administrator may change\nit, and never on their own account — the server enforces both regardless of this value."
          }
        },
        "additionalProperties": false
      },
      "UserMessageDto": {
        "type": "object",
        "properties": {
          "userMessageId": {
            "type": "integer",
            "format": "int64"
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "htmlBody": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "forceView": {
            "type": "boolean"
          },
          "isRead": {
            "type": "boolean"
          },
          "readAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "sentDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "A message in the current user's inbox. TCAdmin.Web.Shared.Models.UserMessages.UserMessageDto.HtmlBody is sanitized server-side before\nit reaches the client."
      },
      "UserMessageInfoDto": {
        "type": "object",
        "properties": {
          "userMessageId": {
            "type": "integer",
            "format": "int64"
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "isRead": {
            "type": "boolean"
          },
          "sentDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Inbox list projection — no body."
      },
      "UserMessageInfoDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserMessageInfoDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserOAuthLinkDto": {
        "type": "object",
        "properties": {
          "linkId": {
            "type": "integer",
            "format": "int64"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "providerId": {
            "type": "integer",
            "format": "int64"
          },
          "providerName": {
            "type": "string",
            "nullable": true
          },
          "providerDisplayName": {
            "type": "string",
            "nullable": true
          },
          "providerUserId": {
            "type": "string",
            "nullable": true
          },
          "providerUsername": {
            "type": "string",
            "nullable": true
          },
          "providerEmail": {
            "type": "string",
            "nullable": true
          },
          "linkedDate": {
            "type": "string",
            "format": "date-time"
          },
          "lastUsedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserSshKeyDto": {
        "type": "object",
        "properties": {
          "userSshKeyId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "keyType": {
            "type": "string",
            "nullable": true
          },
          "fingerprint": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastUsedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "V2ConnectionInfo": {
        "type": "object",
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/V2DatabaseProvider"
          },
          "host": {
            "type": "string",
            "nullable": true
          },
          "port": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "database": {
            "type": "string",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "filePath": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "V2DatabaseProvider": {
        "enum": [
          "MySql",
          "Sqlite"
        ],
        "type": "string"
      },
      "V2ServiceImportPlanRequest": {
        "type": "object",
        "properties": {
          "connection": {
            "$ref": "#/components/schemas/V2ConnectionInfo"
          },
          "v2ServiceIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "V2 service ids the admin selected for import.",
            "nullable": true
          },
          "serverMap": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int64"
            },
            "description": "V2 server id (physical, `real_server_id == 0`) → V3 server id.",
            "nullable": true
          },
          "virtualServerMap": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int64"
            },
            "description": "V2 server id (virtual, `real_server_id != 0`) → V3 virtual server id.",
            "nullable": true
          },
          "gameMap": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int64"
            },
            "description": "V2 game id → V3 game id.",
            "nullable": true
          },
          "v2UserIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "V2 user ids the prepare step should resolve / create. Wizard collects these from the selected services.",
            "nullable": true
          },
          "v2ServiceToV3Server": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int64"
            },
            "description": "For each selected service, the V3 server it should land on (after physical/virtual mapping). Lets the controller bucket without re-querying V2.",
            "nullable": true
          },
          "preserveV2ServiceIds": {
            "type": "boolean",
            "description": "When true, the importer attempts to set the V3 `ServiceId` equal to the V2 service id.\nBest-effort: if the V2 id is already used by an existing V3 service, that one row falls back\nto an auto-generated id. The mapping is always preserved in `Service.Metadata[\"V2ServiceId\"]`."
          }
        },
        "additionalProperties": false,
        "description": "Wizard-built import plan submitted to the controller. The controller groups TCAdmin.Web.Shared.V2ServiceImport.V2ServiceImportPlanRequest.V2ServiceIds\nby target V3 server (resolved through TCAdmin.Web.Shared.V2ServiceImport.V2ServiceImportPlanRequest.ServerMap and TCAdmin.Web.Shared.V2ServiceImport.V2ServiceImportPlanRequest.VirtualServerMap) and\ncomposes a multi-step `TCATask` with one prepare step (master) plus one import step per V3 server."
      },
      "VariableDto": {
        "type": "object",
        "properties": {
          "variableType": {
            "type": "string",
            "nullable": true
          },
          "variableId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "editor": {
            "$ref": "#/components/schemas/DynamicControlBaseDto"
          },
          "defaultValue": {
            "nullable": true
          },
          "required": {
            "type": "boolean"
          },
          "requiredMessage": {
            "type": "string",
            "nullable": true
          },
          "scriptParameter": {
            "type": "boolean"
          },
          "commandlineParameter": {
            "type": "boolean"
          },
          "saveScriptParameter": {
            "type": "boolean"
          },
          "syncCommandlineParameter": {
            "type": "boolean"
          },
          "template": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedBy": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "modifiedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VariableInfoDto": {
        "type": "object",
        "properties": {
          "variableType": {
            "type": "string",
            "nullable": true
          },
          "variableId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "scriptParameter": {
            "type": "boolean"
          },
          "commandlineParameter": {
            "type": "boolean"
          },
          "editor": {
            "$ref": "#/components/schemas/DynamicControlBaseDto"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VariableInfoDtoPaging": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VariableInfoDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VariablePermissionDto": {
        "type": "object",
        "properties": {
          "variableId": {
            "type": "integer",
            "format": "int64"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VirtualDirectoryPermissionDto": {
        "type": "object",
        "properties": {
          "pathOrFilters": {
            "type": "string",
            "nullable": true
          },
          "permissionType": {
            "$ref": "#/components/schemas/EPermissionType"
          },
          "permissionMode": {
            "$ref": "#/components/schemas/EPermissionMode"
          },
          "permissions": {
            "$ref": "#/components/schemas/EPermission"
          }
        },
        "additionalProperties": false
      },
      "VirtualDirectoryRootDto": {
        "type": "object",
        "properties": {
          "permissionMode": {
            "$ref": "#/components/schemas/EPermissionMode"
          },
          "defaultPermissions": {
            "$ref": "#/components/schemas/EPermission"
          },
          "additionalPermissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VirtualDirectoryPermissionDto"
            },
            "nullable": true
          },
          "customRootFolder": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VirtualKey": {
        "type": "object",
        "properties": {
          "windowIndex": {
            "type": "integer",
            "format": "int32"
          },
          "keyCode": {
            "type": "string",
            "nullable": true
          },
          "ctrlKey": {
            "type": "boolean"
          },
          "shiftKey": {
            "type": "boolean"
          },
          "altKey": {
            "type": "boolean"
          },
          "metalKey": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "VirtualServerDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "virtualServerId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "enabled": {
            "type": "boolean"
          },
          "affinity": {
            "type": "integer",
            "format": "int64"
          },
          "numaNode": {
            "type": "integer",
            "description": "NUMA node to bind this virtual server to (null = no binding). When set,\nTCAdmin.Web.Shared.Models.VirtualServer.VirtualServerDto.Affinity is NODE-RELATIVE (bit i = the node's i-th CPU) and 0 selects the\nwhole node.",
            "format": "int32",
            "nullable": true
          },
          "affinityCpus": {
            "maxLength": 1024,
            "type": "string",
            "description": "Cpuset-syntax list of ABSOLUTE kernel CPU ids (\"0-3,70-75\"). Linux hosts only; used\ninstead of TCAdmin.Web.Shared.Models.VirtualServer.VirtualServerDto.Affinity when the selection includes a CPU ≥ 64 (the mask is\nthen 0). Mutually exclusive with TCAdmin.Web.Shared.Models.VirtualServer.VirtualServerDto.NumaNode.",
            "nullable": true
          },
          "memoryLimitBytes": {
            "type": "integer",
            "format": "int64"
          },
          "priority": {
            "$ref": "#/components/schemas/ProcessPriorityClass"
          },
          "gameServiceLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "allowAllGames": {
            "type": "boolean"
          },
          "allowedGameIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "ownerId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "billingId": {
            "type": "string",
            "nullable": true
          },
          "billingStatus": {
            "$ref": "#/components/schemas/EBillingStatus"
          },
          "v2VirtualServerId": {
            "type": "integer",
            "description": "Identifier of the matching V2 virtual server. Set by the admin to enable V2→V3 service\nimports for services that lived on a V2 virtual server.",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VirtualServerInfoDto": {
        "type": "object",
        "properties": {
          "virtualServerId": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "serverId": {
            "type": "integer",
            "format": "int64"
          },
          "serverName": {
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "affinity": {
            "type": "integer",
            "format": "int64"
          },
          "numaNode": {
            "type": "integer",
            "description": "When set, TCAdmin.Web.Shared.Models.VirtualServer.VirtualServerInfoDto.Affinity is node-relative and 0 = the whole node (clients size affinity grids from the node's CPU count).",
            "format": "int32",
            "nullable": true
          },
          "affinityCpus": {
            "type": "string",
            "description": "Cpuset-syntax CPU list (Linux hosts with a selection past CPU 63) — wins over TCAdmin.Web.Shared.Models.VirtualServer.VirtualServerInfoDto.Affinity when set.",
            "nullable": true
          },
          "memoryLimitBytes": {
            "type": "integer",
            "format": "int64"
          },
          "priority": {
            "$ref": "#/components/schemas/ProcessPriorityClass"
          },
          "gameServiceLimit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "allowAllGames": {
            "type": "boolean"
          },
          "allowedGameIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "gameServiceCount": {
            "type": "integer",
            "format": "int32"
          },
          "billingId": {
            "type": "string",
            "nullable": true
          },
          "billingStatus": {
            "$ref": "#/components/schemas/EBillingStatus"
          }
        },
        "additionalProperties": false
      },
      "VisualConfigFieldType": {
        "enum": [
          "Text",
          "Multiline",
          "Number",
          "Bool",
          "Select",
          "Duration",
          "VariableName",
          "ConditionTree",
          "InputForm",
          "VariableList",
          "KeyValueList"
        ],
        "type": "string",
        "description": "How the editor renders a config field, and how the interpreter interprets its value."
      },
      "VisualConfigOption": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VisualEntityDescriptor": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "The runtime variable name the script can read at execution time (e.g. `\"ThisService\"`).",
            "nullable": true
          },
          "tokenName": {
            "type": "string",
            "description": "Friendly, space-free name used inside an inserted `{ent:Name.Property}` template token (e.g.\n`\"Service\"`, `\"ServiceStatus\"`). Derived from TCAdmin.Web.Shared.Models.Scripting.Visual.VisualEntityDescriptor.Key via\nTCAdmin.Web.Shared.Models.Scripting.Visual.VisualEntityTokens so the Monitor can map the token back to the bag key at runtime.\nDistinct from TCAdmin.Web.Shared.Models.Scripting.Visual.VisualEntityDescriptor.Label (which may contain spaces, e.g. `\"Service Status\"`).",
            "nullable": true
          },
          "label": {
            "type": "string",
            "description": "Human-readable label shown in the editor dropdown (e.g. `\"Service\"`).",
            "nullable": true
          },
          "category": {
            "type": "string",
            "description": "Optional grouping label for the dropdown (e.g. `\"Service\"`, `\"Server\"`, `\"Input variables\"`).",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Optional hover tip describing what the entity represents.",
            "nullable": true
          },
          "properties": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VisualEntityProperty"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Editor-facing description of a runtime entity (script variable) and its primitive properties.\nBuilt server-side by reflecting over the types behind `ThisService` / `ThisServer` etc.\nfor a given script event, then shipped to the WASM editor so the condition tree's value pickers\ncan populate Entity → Property cascading dropdowns without the WASM bundle needing to reference\nthe domain assemblies.\n\nUnlike TCAdmin.Web.Shared.Models.Scripting.Visual.VisualNodeDescriptor (which travels Web→Monitor over the scripting hub —\nthe catalog itself is Monitor-only), the entity catalog is built in the Web because the entity\ntypes (`Service`, `Server`, `Game`, …) come from `TCAdmin.SDK` which the Web\nalready references. No hub round-trip needed."
      },
      "VisualEntityProperty": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/VisualEntityPropertyType"
          },
          "enumValues": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "For TCAdmin.Web.Shared.Models.Scripting.Visual.VisualEntityPropertyType.Enum: the list of valid enum names (the literal value the user selects).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One primitive property on an entity, exposed for comparison in the condition editor."
      },
      "VisualEntityPropertyType": {
        "enum": [
          "String",
          "Number",
          "Bool",
          "Enum",
          "DateTime"
        ],
        "type": "string",
        "description": "Coarse classification of a comparable CLR type. The editor uses this to:\n<list type=\"bullet\"><item>Render the right-hand-literal input control (text vs number vs checkbox vs select).</item><item>Hide operators that don't apply (e.g. only numeric/comparable types get </>).</item></list>\nThe evaluator doesn't read this — it parses on demand based on the property's actual CLR type."
      },
      "VisualNodeConfigField": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/VisualConfigFieldType"
          },
          "required": {
            "type": "boolean"
          },
          "defaultValue": {
            "nullable": true
          },
          "helperText": {
            "type": "string",
            "nullable": true
          },
          "supportsVariables": {
            "type": "boolean",
            "description": "True when this field's value is run through `FormatTemplate` at runtime, so it accepts the\n`{in}` / `{var:Name}` template tokens. The editor surfaces an inline \"insert variable\"\npicker (braces icon) on such fields, offering the variables provided by upstream blocks. Leave\nfalse for fields that take a literal value (e.g. the While/Do-While comparison target) or a\nvariable <em>name</em> rather than a template (e.g. Set Variable's Variable Name)."
          },
          "advanced": {
            "type": "boolean",
            "description": "When true, the config panel hides this field under a collapsed <b>Advanced options</b> section\ninstead of showing it inline — for nodes with many optional fields (e.g. the Discord webhook's\nusername/avatar/thread overrides + the rich embed) so the panel stays uncluttered. Purely\npresentational; the interpreter ignores it. Leave false for primary / required fields."
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VisualConfigOption"
            },
            "description": "Options for TCAdmin.Web.Shared.Models.Scripting.Visual.VisualConfigFieldType.Select fields.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Schema for one configurable field on a node, used to render the editor's config panel."
      },
      "VisualNodeDescriptor": {
        "type": "object",
        "properties": {
          "typeKey": {
            "type": "string",
            "description": "Stable unique key; matches TCAdmin.Web.Shared.Models.Scripting.Visual.VisualScriptNode.Type.",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "tip": {
            "type": "string",
            "description": "Optional editor-only hint rendered as a prominent info alert in the node's config panel —\nuse for behaviour the user must know but that doesn't fit a single field's `HelperText`\n(e.g. supported template placeholders, side-effects, prerequisites). Plain text; no markup.",
            "nullable": true
          },
          "category": {
            "type": "string",
            "description": "Palette grouping, e.g. \"Flow\", \"Service\", \"Conditions\".",
            "nullable": true
          },
          "permissionKey": {
            "type": "string",
            "description": "When set, this block is gated behind a per-blueprint role permission of the same name — stored as a\n`BpFeature.{PermissionKey}` grant (e.g. `\"Block-ServiceControl\"`) and configured on the\nblueprint's Feature Permissions page under \"Custom Scripts\". The catalog auto-derives it for the\nIntegration and Service categories (`\"Block-\" + handler class name`); a handler may set its own.\nIn the service-script editor a gated block the owner's role wasn't granted is hidden from Add Block\nand rejected on save. Null = ungated (always available, e.g. Flow blocks). Enforced ONLY for\nowner-authored service scripts — the admin/blueprint editor is unaffected.",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "description": "An MudBlazor icon constant or SVG path (optional).",
            "nullable": true
          },
          "shape": {
            "$ref": "#/components/schemas/VisualNodeShape"
          },
          "isEntry": {
            "type": "boolean",
            "description": "True for the graph entry node. Exactly one entry node is allowed per graph."
          },
          "inputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VisualNodePort"
            },
            "nullable": true
          },
          "outputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VisualNodePort"
            },
            "nullable": true
          },
          "configFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VisualNodeConfigField"
            },
            "nullable": true
          },
          "providedVariables": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Names of runtime variables this node ALWAYS publishes, regardless of config — surfaced to\ndownstream blocks' insert-variable picker exactly like a TCAdmin.Web.Shared.Models.Scripting.Visual.VisualConfigFieldType.VariableName\nfield's value, but with no field to fill in. Use for nodes with fixed, zero-config outputs (e.g.\nthe Web Request / Discord Webhook nodes publish `ResponseBody` + `Status`). The handler\nis responsible for actually writing each name into the runtime bag during execution; this list is\npurely the editor-side declaration so the picker can offer them.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Editor-facing metadata for a node type: what it looks like in the palette, which ports it exposes,\nand which config fields it needs. Built server-side from the reflection catalog and shipped to the\nWASM editor over the scripting hub (the Web cannot reflect over the Monitor-only handler types).\nThe same type is also the interpreter's source of truth for config-field validation, so palette and\nruntime never drift."
      },
      "VisualNodePort": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "alignment": {
            "$ref": "#/components/schemas/VisualNodePortAlignment"
          }
        },
        "additionalProperties": false,
        "description": "A named connection point on a node. TCAdmin.Web.Shared.Models.Scripting.Visual.VisualNodePort.Key is what links reference."
      },
      "VisualNodePortAlignment": {
        "enum": [
          "Auto",
          "Top",
          "Bottom",
          "Left",
          "Right",
          "TopLeft",
          "TopRight",
          "BottomLeft",
          "BottomRight"
        ],
        "type": "string",
        "description": "Anchors on a node's bounding box, mirroring Z.Blazor.Diagrams' `PortAlignment` so the\neditor can map 1:1 without a lossy translation, but expressed in our own enum so\n`TCAdmin.Web.Shared` doesn't have to reference the diagram library. TCAdmin.Web.Shared.Models.Scripting.Visual.VisualNodePortAlignment.Auto\nsignals \"let the count-based heuristic decide\" — the explicit values override it."
      },
      "VisualNodeShape": {
        "enum": [
          "Rectangle",
          "Circle",
          "Diamond"
        ],
        "type": "string",
        "description": "Visual shape the editor draws for a node (matches the hand-drawn flowchart conventions)."
      },
      "VisualScriptBlockDescriptor": {
        "type": "object",
        "properties": {
          "scriptId": {
            "type": "integer",
            "description": "The script's primary key — stored in the placed node's `scriptId` config and used at\n            runtime to load and execute the script.",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "description": "Optional script icon (MudBlazor icon constant), shown in the Add Block list.",
            "nullable": true
          },
          "inputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DynamicControlBaseDto"
            },
            "description": "The script's input-variable controls (textbox / checkbox / dropdown / …, each the variable's own\nconfigured editor), rendered in the block's config panel so the user fills the values at design\ntime. Each control's `Id` is the variable `Name` — the same key the runtime injects the\nentered value under when the script runs. Permission-filtered: controls for variables the user may\nnot view are omitted (matching the per-service script editor).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Editor-facing metadata for one script that can be embedded as a \"Run Script\" block — i.e. a script\ntagged with the `VisualScriptBlock` event. Unlike TCAdmin.Web.Shared.Models.Scripting.Visual.VisualNodeDescriptor (a static,\nreflection-built catalog served Monitor → Web over the scripting hub), this is built <b>web-side per\nrequest</b>: the list of scripts and their input forms come from the database and depend on the\ncurrent user's execute permission, so it can't be a fixed catalog entry. Served by\n`GET /Script/VisualScriptBlocks` and consumed by the Add Block dialog (one row per script) and\nthe placed block's config panel (which renders TCAdmin.Web.Shared.Models.Scripting.Visual.VisualScriptBlockDescriptor.Inputs for the user to fill in)."
      }
    }
  },
  "tags": [
    {
      "name": "ActivityLog"
    },
    {
      "name": "AiAssistantSettings"
    },
    {
      "name": "AiSessionLog"
    },
    {
      "name": "Announcement"
    },
    {
      "name": "ApiKey"
    },
    {
      "name": "ApiSettings"
    },
    {
      "name": "Billing"
    },
    {
      "name": "Blueprint"
    },
    {
      "name": "CompanyInfo"
    },
    {
      "name": "CustomLink"
    },
    {
      "name": "Datacenter"
    },
    {
      "name": "DockerBlueprint"
    },
    {
      "name": "DockerRegistry"
    },
    {
      "name": "DockerService"
    },
    {
      "name": "EmailQueue"
    },
    {
      "name": "EmailTemplate"
    },
    {
      "name": "ExampleModule"
    },
    {
      "name": "FileServer"
    },
    {
      "name": "Game"
    },
    {
      "name": "GameService"
    },
    {
      "name": "GameTools"
    },
    {
      "name": "GettingStarted"
    },
    {
      "name": "Language"
    },
    {
      "name": "LayoutTemplate"
    },
    {
      "name": "MailSettings"
    },
    {
      "name": "MaintenanceSettings"
    },
    {
      "name": "Modules"
    },
    {
      "name": "OAuthProvider"
    },
    {
      "name": "PanelSettings"
    },
    {
      "name": "PluginRepository"
    },
    {
      "name": "PrivateNetwork"
    },
    {
      "name": "RecurringTask"
    },
    {
      "name": "Region"
    },
    {
      "name": "Role"
    },
    {
      "name": "Script"
    },
    {
      "name": "SecuritySettings"
    },
    {
      "name": "Server"
    },
    {
      "name": "ServerConfiguration"
    },
    {
      "name": "ServiceBackup"
    },
    {
      "name": "ServiceCategory"
    },
    {
      "name": "Services"
    },
    {
      "name": "Sso"
    },
    {
      "name": "SteamSettings"
    },
    {
      "name": "SystemHealth"
    },
    {
      "name": "SystemUpdate"
    },
    {
      "name": "TCATask"
    },
    {
      "name": "Theme"
    },
    {
      "name": "UpdateSettings"
    },
    {
      "name": "User"
    },
    {
      "name": "UserMessage"
    },
    {
      "name": "UserOAuthLink"
    },
    {
      "name": "V2ServiceImport"
    },
    {
      "name": "Variable"
    },
    {
      "name": "VirtualServer"
    },
    {
      "name": "Website"
    }
  ]
}