{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sewerai/main/json-schema/sewerai-notification-preference-schema.json",
  "title": "NotificationPreference",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sewerai-notification-preferences-api-openapi.yml#/components/schemas/NotificationPreference",
  "required": [
    "notification_type"
  ],
  "type": "object",
  "properties": {
    "notification_method": {
      "title": "Notification method",
      "type": "string",
      "enum": [
        "email",
        "app"
      ],
      "default": "app"
    },
    "notification_type": {
      "title": "Notification type",
      "type": "string",
      "enum": [
        "export_ready",
        "digital_submittal_sent",
        "digital_submittal_accepted",
        "digital_submittal_received",
        "digital_submittal_deleted",
        "review_task_created",
        "review_task_comment_created",
        "review_task_comment_user_tagged",
        "user_invited_to_account_or_project"
      ]
    },
    "notification_type_category": {
      "title": "Notification type category",
      "type": "string",
      "readOnly": true
    },
    "sid": {
      "title": "Sid",
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "url": {
      "title": "Url",
      "type": "string",
      "format": "uri",
      "readOnly": true
    },
    "user": {
      "title": "User",
      "type": "string",
      "readOnly": true,
      "minLength": 1
    }
  }
}