{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postzen-dev/json-schema/postzen-dev-linked-in-reactions-response-schema.json",
  "title": "LinkedInReactionsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postzen-dev-posts-api-openapi.yml#/components/schemas/LinkedInReactionsResponse",
  "type": "object",
  "required": [
    "reactions",
    "totalsByType"
  ],
  "properties": {
    "reactions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LinkedInReaction"
      }
    },
    "totalsByType": {
      "type": "object",
      "description": "Reaction count keyed by reaction type, tallied from the reactions in this response. Sum the pages yourself for a whole-post total.",
      "additionalProperties": {
        "type": "integer"
      }
    },
    "nextCursor": {
      "type": "string",
      "description": "Present when more reactions are available. Pass it back as `cursor` to fetch the next page."
    }
  },
  "$defs": {
    "LinkedInReaction": {
      "type": "object",
      "description": "A single reaction LinkedIn holds on an organization post published through PostZen.",
      "required": [
        "reactionType",
        "actorUrn"
      ],
      "properties": {
        "reactionType": {
          "type": "string",
          "description": "LinkedIn reaction type, such as `LIKE`, `PRAISE`, `EMPATHY`, `INTEREST`, `APPRECIATION`, or `ENTERTAINMENT`. Treat this as an open set — LinkedIn adds reaction types over time."
        },
        "actorUrn": {
          "type": "string",
          "description": "URN of the member or organization that reacted."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "When the reaction was recorded, when LinkedIn returns a timestamp."
        }
      }
    }
  }
}