{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/groundmail-dev/json-schema/groundmail-dev-vercel-integration-response-schema.json",
  "title": "VercelIntegrationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/groundmail-dev-integrations-api-openapi.yml#/components/schemas/VercelIntegrationResponse",
  "type": "object",
  "required": [
    "vercel"
  ],
  "properties": {
    "vercel": {
      "$ref": "#/$defs/VercelIntegrationStatus"
    }
  },
  "$defs": {
    "VercelIntegrationStatus": {
      "type": "object",
      "required": [
        "connected",
        "hint",
        "connectedAt",
        "teamId"
      ],
      "properties": {
        "connected": {
          "type": "boolean"
        },
        "hint": {
          "type": [
            "string",
            "null"
          ],
          "description": "Last 4 characters of the stored token"
        },
        "connectedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "teamId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Optional Vercel team id for team-scoped DNS"
        },
        "oauth": {
          "type": "boolean",
          "description": "Connected through Connect Vercel (the Groundmail Vercel integration) rather than a pasted token"
        },
        "oauthAvailable": {
          "type": "boolean",
          "description": "Whether Connect Vercel is offered on this deployment"
        }
      }
    }
  }
}