{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commareports-com/json-schema/commareports-com-share-settings-schema.json",
  "title": "ShareSettings",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commareports-com-openapi.yml#/components/schemas/ShareSettings",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "visibility": {
      "type": "string",
      "enum": [
        "private",
        "team",
        "registered",
        "public",
        "domain"
      ]
    },
    "public_permission": {
      "type": "string",
      "enum": [
        "none",
        "view",
        "comment",
        "edit"
      ]
    },
    "allowed_email_domains": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Email domains allowed to view. Empty unless visibility is 'domain'."
    },
    "password_set": {
      "type": "boolean"
    },
    "show_approved_only": {
      "type": "boolean"
    },
    "approved_revision_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "allowed_embed_origins": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "embed_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "`/embed/{id}`, or null when embedding is off."
    },
    "embed_snippet": {
      "type": [
        "string",
        "null"
      ],
      "description": "Markup to paste into the host page, or null when embedding is off. Renders only while the report is public, its link permission isn't `none`, and it has no share password."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "share_url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "visibility",
    "public_permission",
    "password_set",
    "show_approved_only",
    "allowed_embed_origins",
    "embed_url",
    "embed_snippet",
    "updated_at",
    "share_url"
  ]
}