{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aurinko/json-schema/aurinko-calendars-page-schema.json",
  "title": "CalendarsPage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aurinko-calendars-api-openapi.yml#/components/schemas/CalendarsPage",
  "type": "object",
  "properties": {
    "nextPageToken": {
      "type": "string"
    },
    "length": {
      "type": "integer"
    },
    "records": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Calendar"
      }
    }
  },
  "$defs": {
    "Calendar": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true
        },
        "name": {
          "type": "string"
        },
        "color": {
          "type": "string",
          "readOnly": true
        },
        "description": {
          "type": "string",
          "readOnly": true
        },
        "accessRole": {
          "type": "string",
          "readOnly": true,
          "enum": [
            "owner",
            "writer",
            "reader"
          ]
        },
        "primary": {
          "type": "boolean",
          "readOnly": true
        }
      }
    }
  }
}