{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe-captivate/json-schema/adobe-captivate-notification-list-response-schema.json",
  "title": "NotificationListResponse",
  "description": "Paginated list of notifications",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-captivate-notifications-api-openapi.yml#/components/schemas/NotificationListResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Notification"
      }
    },
    "links": {
      "$ref": "#/$defs/PaginationLinks"
    }
  },
  "$defs": {
    "Notification": {
      "type": "object",
      "description": "A user notification",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique notification identifier"
        },
        "type": {
          "type": "string",
          "const": "userNotification"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "actionTaken": {
              "type": "boolean",
              "description": "Whether the user has acted on this notification"
            },
            "channel": {
              "type": "string",
              "description": "Notification delivery channel"
            },
            "dateCreated": {
              "type": "string",
              "format": "date-time",
              "description": "Notification creation timestamp"
            },
            "message": {
              "type": "object",
              "description": "Notification message content"
            },
            "modelType": {
              "type": "string",
              "description": "The type of model this notification relates to"
            },
            "read": {
              "type": "boolean",
              "description": "Whether the notification has been read"
            }
          }
        }
      }
    },
    "PaginationLinks": {
      "type": "object",
      "description": "Pagination links following JSON:API conventions",
      "properties": {
        "self": {
          "type": "string",
          "format": "uri",
          "description": "URL for the current page"
        },
        "next": {
          "type": "string",
          "format": "uri",
          "description": "URL for the next page"
        },
        "prev": {
          "type": "string",
          "format": "uri",
          "description": "URL for the previous page"
        }
      }
    }
  }
}