{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ctlsurf-com/json-schema/ctlsurf-com-page-share-response-schema.json",
  "title": "PageShareResponse",
  "description": "Page share response with user details.",
  "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/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"
  ],
  "$defs": {
    "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."
    }
  }
}