{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/comingup-today/json-schema/comingup-today-ok-envelope-calendars-list-schema.json",
  "title": "OkEnvelopeCalendarsList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/comingup-today-calendars-api-openapi.yml#/components/schemas/OkEnvelopeCalendarsList",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/CalendarsListResponseData"
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false,
  "$defs": {
    "CalendarListItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "integrationId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "provider": {
          "type": "string",
          "minLength": 1
        },
        "externalCalendarId": {
          "type": "string",
          "minLength": 1
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "primary": {
          "type": "boolean"
        },
        "hidden": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "integrationId",
        "provider",
        "externalCalendarId",
        "name",
        "primary",
        "hidden"
      ],
      "additionalProperties": false
    },
    "CalendarsListResponseData": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CalendarListItem"
          }
        }
      },
      "required": [
        "items"
      ],
      "additionalProperties": {}
    }
  }
}