{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sealgate-ai/json-schema/sealgate-ai-set-device-scope-response-schema.json",
  "title": "SetDeviceScopeResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sealgate-ai-devices-api-openapi.yml#/components/schemas/SetDeviceScopeResponse",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "scope": {
      "type": "string",
      "title": "Scope"
    },
    "previous_scope": {
      "type": "string",
      "title": "Previous Scope"
    },
    "affected_servers": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Affected Servers",
      "description": "Names of this device's stdio_tunnel servers whose enablement rows were rewritten (demotion only; promotion touches none)."
    }
  },
  "type": "object",
  "required": [
    "id",
    "scope",
    "previous_scope"
  ]
}