{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/safetyculture/json-schema/safetyculture-s12-announcements-v1-list-heads-up-users-response-schema.json",
  "title": "ListHeadsUpUsersResponse",
  "description": "Result returned from `ListHeadsUpUsers`",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/safetyculture-heads-up-api-openapi.yml#/components/schemas/s12.announcements.v1.ListHeadsUpUsersResponse",
  "type": "object",
  "properties": {
    "users": {
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "#/$defs/s12.announcements.v1.HeadsUpUserListItem"
      },
      "description": "List of users"
    },
    "total": {
      "type": "integer",
      "format": "int32",
      "description": "Total number of users found"
    }
  },
  "$defs": {
    "s12.announcements.v1.HeadsUpCompletionDetails": {
      "type": "object",
      "properties": {
        "viewed": {
          "type": "boolean",
          "description": "Viewed determines whether or not the user has viewed the headsup before"
        },
        "viewed_at": {
          "type": "string",
          "format": "date-time",
          "description": "ViewedAt defines when a headsup was first viewed"
        },
        "acknowledged": {
          "type": "boolean",
          "description": "Acknowledged defines if a headsup has been acknowledged"
        },
        "acknowledged_at": {
          "type": "string",
          "format": "date-time",
          "description": "AcknowledgedAt defines when a headsup was acknowledged by the user"
        }
      },
      "title": "HeadsUpCompletionDetails is a composition for the headsup completion details"
    },
    "s12.announcements.v1.HeadsUpUserListItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "ID of the user"
        },
        "email": {
          "type": "string",
          "description": "Users email"
        },
        "first_name": {
          "type": "string",
          "description": "Users first name"
        },
        "last_name": {
          "type": "string",
          "description": "Users last name"
        },
        "profile_picture": {
          "allOf": [
            {
              "$ref": "#/$defs/s12.common.Media"
            }
          ],
          "description": "Media object with details on how to retrieve and view users profile picture"
        },
        "completion_details": {
          "allOf": [
            {
              "$ref": "#/$defs/s12.announcements.v1.HeadsUpCompletionDetails"
            }
          ],
          "description": "Composition of the users completion stats"
        },
        "status": {
          "type": "boolean",
          "description": "Status represents whether or not the user has completed all necessary\nrequirements"
        }
      },
      "title": "HeadsUpUserListItem represents a list response item containing information on\na user"
    },
    "s12.common.Media": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "token": {
          "type": "string"
        },
        "filename": {
          "type": "string",
          "description": "full file name, including file extension"
        },
        "media_type": {
          "$ref": "#/$defs/s12.common.MediaType"
        }
      },
      "title": "Represents an image or video"
    },
    "s12.common.MediaType": {
      "type": "string",
      "enum": [
        "MEDIA_TYPE_IMAGE",
        "MEDIA_TYPE_VIDEO",
        "MEDIA_TYPE_PDF",
        "MEDIA_TYPE_DOCX",
        "MEDIA_TYPE_XLSX",
        "MEDIA_TYPE_PPTX",
        "MEDIA_TYPE_CSV"
      ],
      "description": " - MEDIA_TYPE_IMAGE: An image file (GIF, JPG, PNG, WEBP).\n - MEDIA_TYPE_VIDEO: A video file (MP4, MOV).\n - MEDIA_TYPE_PDF: A PDF document.\n - MEDIA_TYPE_DOCX: A Microsoft Word document (DOCX, DOC).\n - MEDIA_TYPE_XLSX: A Microsoft Excel spreadsheet (XLSX, XLS).\n - MEDIA_TYPE_PPTX: A Microsoft PowerPoint presentation (PPTX, PPT).\n - MEDIA_TYPE_CSV: A CSV file."
    }
  }
}