{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fleetai-com/json-schema/fleetai-com-public-browser-create-request-schema.json",
  "title": "PublicBrowserCreateRequest",
  "description": "SDK-facing create/renew request.\n\n``cluster_name`` is a Fleet-only override that pins a *new* browser lease to\na specific cluster instead of the team's feature-enabled routing. It is\nignored for renews (a lease already lives on its cluster) and rejected for\nnon-Fleet callers -- mirroring the env instances create endpoint.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fleetai-com-browsers-api-openapi.yml#/components/schemas/PublicBrowserCreateRequest",
  "properties": {
    "lease_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lease Id"
    },
    "ttl_seconds": {
      "type": "integer",
      "exclusiveMinimum": 0.0,
      "title": "Ttl Seconds"
    },
    "cluster_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cluster Name"
    },
    "allowed_hosts": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Allowed Hosts"
    },
    "request_timestamp_ms": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Request Timestamp Ms"
    },
    "adaptive_resolution": {
      "anyOf": [
        {
          "$ref": "#/$defs/BrowserAdaptiveResolutionConfig"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "ttl_seconds"
  ],
  "$defs": {
    "BrowserAdaptiveResolutionConfig": {
      "properties": {
        "width_px": {
          "type": "integer",
          "maximum": 8192.0,
          "exclusiveMinimum": 0.0,
          "title": "Width Px"
        },
        "height_px": {
          "type": "integer",
          "maximum": 8192.0,
          "exclusiveMinimum": 0.0,
          "title": "Height Px"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "width_px",
        "height_px"
      ],
      "title": "BrowserAdaptiveResolutionConfig",
      "description": "Model-facing observation size for adaptive browser screenshots."
    }
  }
}