{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudbrowser-tv/json-schema/cloudbrowser-tv-browser-library-entry-schema.json",
  "title": "BrowserLibraryEntry",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudbrowser-tv-openapi.json#/components/schemas/BrowserLibraryEntry",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "starting",
        "running",
        "pausing",
        "paused",
        "resuming",
        "failed",
        "deleting",
        "unavailable"
      ]
    },
    "parentId": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "runtimeGeneration": {
      "type": "integer"
    },
    "owner": {
      "type": "boolean"
    },
    "permission": {
      "type": "string",
      "enum": [
        "view",
        "control"
      ]
    },
    "ownerName": {
      "type": "string"
    },
    "shared": {
      "type": "boolean",
      "description": "Owned browser has at least one currently active sharing grant."
    },
    "ownerAvatarUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "pauseReason": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "user",
        "free_allowance_exhausted",
        "payment_required",
        "concurrency_limit",
        "upstream",
        "created_paused",
        null
      ],
      "description": "Recorded reason for the most recent pause. Null for unknown historical reasons and shared viewers. Does not indicate whether resume is currently allowed."
    },
    "pausedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time the pause completed. Null while pausing, for older records or shared viewers."
    }
  },
  "required": [
    "id",
    "name",
    "status",
    "owner",
    "permission",
    "runtimeGeneration"
  ]
}