{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ctlsurf-com/json-schema/ctlsurf-com-page-share-list-response-schema.json",
  "title": "PageShareListResponse",
  "description": "List of shares for a page.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ctlsurf-com-shares-api-openapi.yml#/components/schemas/PageShareListResponse",
  "properties": {
    "page_id": {
      "type": "string",
      "format": "uuid",
      "title": "Page Id"
    },
    "owner": {
      "$ref": "#/$defs/UserSummary"
    },
    "shares": {
      "items": {
        "$ref": "#/$defs/PageShareResponse"
      },
      "type": "array",
      "title": "Shares"
    }
  },
  "type": "object",
  "required": [
    "page_id",
    "owner",
    "shares"
  ],
  "$defs": {
    "PageShareResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "page_id": {
          "type": "string",
          "format": "uuid",
          "title": "Page Id"
        },
        "shared_with": {
          "$ref": "#/$defs/UserSummary"
        },
        "permission": {
          "$ref": "#/$defs/app__schemas__share__SharePermission"
        },
        "created_by": {
          "type": "string",
          "format": "uuid",
          "title": "Created By"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "page_id",
        "shared_with",
        "permission",
        "created_by",
        "created_at"
      ],
      "title": "PageShareResponse",
      "description": "Page share response with user details."
    },
    "UserSummary": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "email": {
          "type": "string",
          "title": "Email"
        }
      },
      "type": "object",
      "required": [
        "id",
        "email"
      ],
      "title": "UserSummary",
      "description": "Minimal user info for display in shares."
    },
    "app__schemas__share__SharePermission": {
      "type": "string",
      "enum": [
        "view",
        "edit",
        "admin"
      ],
      "title": "SharePermission",
      "description": "Permission levels for shared resources."
    }
  }
}