{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/security-scorecard/json-schema/security-scorecard-get-notifications-latest7days-schema-response-schema.json",
  "title": "getNotificationsLatest7daysSchemaResponse",
  "description": "Scorecard Tag Group",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/security-scorecard-alerts-api-openapi.yml#/components/schemas/getNotificationsLatest7daysSchemaResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "entries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "the notification id"
          },
          "username": {
            "type": "string",
            "description": "owner of notification"
          },
          "priority": {
            "type": "boolean",
            "description": "the notification priority"
          },
          "is_alert_for_rule_owner": {
            "type": "boolean",
            "description": "flag that indicates if the notification was from a user workflow rule"
          },
          "change_type": {
            "type": "string",
            "description": "the notification change type"
          },
          "alert_settings": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "array of ids of the alert settings that caused the creation of this notification"
            }
          },
          "domain": {
            "type": "string",
            "description": "the domain identifying the company associated to the change/event that happened."
          },
          "last_logged_in": {
            "type": "string",
            "description": "last time contact logged in"
          },
          "company_name": {
            "type": "string",
            "description": "company name"
          },
          "portfolios": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "my_scorecard": {
                  "type": "boolean"
                }
              }
            }
          },
          "platform_score_date": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}:\\d{2}\\.{0,1}[0-9]*Z$"
          },
          "read": {
            "format": "date-time",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}:\\d{2}\\.{0,1}[0-9]*Z$"
          },
          "processed_on": {
            "format": "date-time",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}:\\d{2}\\.{0,1}[0-9]*Z$"
          }
        }
      },
      "required": [
        "id",
        "username",
        "change_type",
        "domain",
        "company_name",
        "platform_score_date",
        "created_at"
      ],
      "description": "Array of notifications"
    },
    "processed_by": {
      "type": "object",
      "properties": {
        "change_data": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "direction": {
                "type": "string"
              },
              "score": {
                "type": "number"
              },
              "grade_letter": {
                "type": "string"
              },
              "factor": {
                "type": "string"
              },
              "score_impact": {
                "type": "number"
              }
            }
          }
        }
      }
    },
    "category": {
      "type": "string",
      "description": "notification category: standard, prioritized, queued, or customer_contacts"
    },
    "page": {
      "type": "integer",
      "description": "page"
    },
    "size": {
      "type": "integer",
      "description": "size"
    }
  },
  "required": [
    "entries",
    "page",
    "size"
  ]
}