{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flexpa/json-schema/flexpa-endpoint-schema.json",
  "title": "Endpoint",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flexpa-openapi.yml#/components/schemas/Endpoint",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "label": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "mode": {
      "type": "string",
      "enum": [
        "TEST",
        "LIVE"
      ]
    },
    "refreshable": {
      "type": "boolean"
    },
    "maxAuthPeriod": {
      "type": [
        "number",
        "null"
      ],
      "description": "Seconds."
    },
    "status": {
      "type": "string",
      "description": "For example CONNECTED or IN_PROGRESS."
    },
    "resources": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "organization": {
      "type": "object"
    }
  }
}