{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/everyonesocial/json-schema/everyonesocial-content-schema.json",
  "title": "Content",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/everyonesocial-openapi.yml#/components/schemas/Content",
  "required": [
    "id",
    "group_id"
  ],
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "content_data": {
      "$ref": "#/$defs/ContentData"
    },
    "group_id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "repost_group_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "readOnly": true
    },
    "reactions": {
      "type": "string",
      "readOnly": true
    },
    "comments": {
      "type": "string",
      "readOnly": true
    },
    "shared_by": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserInfo"
      }
    },
    "status": {
      "type": "string",
      "readOnly": true
    },
    "created_by": {
      "$ref": "#/$defs/UserInfo"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "important_message": {
      "type": "string"
    },
    "media": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MediaContent"
      }
    },
    "publish_info": {
      "$ref": "#/$defs/ContentPublishInfo"
    },
    "_metadata": {
      "$ref": "#/$defs/Metadata"
    }
  },
  "$defs": {
    "ContentData": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "title": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "disclosure_list": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "disclosure_id": {
                "type": "string"
              },
              "network": {
                "type": "string"
              }
            }
          },
          "writeOnly": true
        },
        "disclosures": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/Disclosure"
          }
        },
        "is_engageable": {
          "type": "boolean"
        },
        "is_shareable": {
          "type": "boolean"
        },
        "is_important": {
          "type": "boolean"
        },
        "important_message": {
          "type": "string"
        },
        "share_commentary": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "network": {
                "type": "string"
              },
              "commentary": {
                "type": "string"
              }
            }
          }
        },
        "lock_share_commentary": {
          "type": "boolean"
        }
      }
    },
    "ContentPublishInfo": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "is_pinned": {
          "type": "boolean"
        },
        "pinned_end_at": {
          "type": "string",
          "format": "date-time"
        },
        "publish_at": {
          "type": "string",
          "format": "date-time",
          "description": "Defaults to immediately."
        },
        "expire_at": {
          "type": "string",
          "format": "date-time"
        },
        "html_url": {
          "type": "string",
          "readOnly": true
        },
        "embedded_content_code": {
          "type": "string",
          "readOnly": true
        },
        "embedded_content_url": {
          "type": "string",
          "readOnly": true
        }
      }
    },
    "Disclosure": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "disclosure_id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "disclosure": {
          "type": "string"
        },
        "network": {
          "type": "string"
        },
        "_metadata": {
          "$ref": "#/$defs/Metadata"
        }
      }
    },
    "MediaContent": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "url": {
          "type": "string",
          "readOnly": true
        },
        "media_type": {
          "type": "string",
          "readOnly": true
        },
        "width": {
          "type": "integer",
          "readOnly": true
        },
        "height": {
          "type": "integer",
          "readOnly": true
        }
      }
    },
    "Metadata": {
      "required": [
        "object_type"
      ],
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "next": {
          "type": "string",
          "readOnly": true
        },
        "self": {
          "type": "string",
          "readOnly": true
        },
        "object_type": {
          "type": "string",
          "readOnly": true
        },
        "total_count": {
          "type": "integer",
          "readOnly": true
        }
      }
    },
    "UserInfo": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string"
        },
        "full_name": {
          "type": "string"
        },
        "email_address": {
          "type": "string"
        },
        "_metadata": {
          "$ref": "#/$defs/Metadata"
        }
      }
    }
  }
}