{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AttachmentActivity",
  "title": "AttachmentActivity",
  "type": "object",
  "required": [
    "type",
    "messageId"
  ],
  "properties": {
    "id": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VzL0NBTExTLzU0MUFFMzBFLUUyQzUtNERENi04NTM4LTgzOTRDODYzM0I3MQo",
      "description": "A unique identifier for the action."
    },
    "personId": {
      "type": "string",
      "example": "Y2lzY29zcGFyazovL3VzL1BFT1BMRS83MTZlOWQxYy1jYTQ0LTRmZ",
      "description": "The ID of the person who performed the action."
    },
    "roomId": {
      "type": "string",
      "example": "L3VzL1BFT1BMRS80MDNlZmUwNy02Yzc3LTQyY2UtOWI",
      "description": "The ID of the room in which the action was performed."
    },
    "type": {
      "type": "string",
      "enum": [
        "submit"
      ],
      "description": "The type of action performed."
    },
    "messageId": {
      "type": "string",
      "example": "GFyazovL3VzL1BFT1BMRS80MDNlZmUwNy02Yzc3LTQyY2UtOWI4NC",
      "description": "The parent message on which the attachment action was performed."
    },
    "inputs": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "example": "John Andersen"
        },
        "Url": {
          "type": "string",
          "example": "https://example.com"
        },
        "Email": {
          "type": "string",
          "example": "john.andersen@example.com"
        },
        "Tel": {
          "type": "string",
          "example": "+1 408 555 7209"
        }
      },
      "description": "The action's inputs."
    },
    "created": {
      "type": "string",
      "example": "2016-05-10T19:41:00.100Z",
      "description": "The date and time the action was created."
    }
  }
}