{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-trusted-device-view-schema.json",
  "title": "TrustedDeviceView",
  "description": "A device currently trusted to skip the second factor.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-auth-api-openapi.yml#/components/schemas/TrustedDeviceView",
  "type": "object",
  "required": [
    "id",
    "label",
    "created_at",
    "last_seen_at",
    "trusted_until",
    "current"
  ],
  "properties": {
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the device was first seen on the account."
    },
    "current": {
      "type": "boolean",
      "description": "Whether this is the browser making the request."
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Device identifier, to pass to `DELETE /v1/auth/me/devices/{id}`."
    },
    "label": {
      "type": "string",
      "description": "Coarse browser and OS summary (`Firefox sur Linux`)."
    },
    "last_seen_at": {
      "type": "string",
      "format": "date-time",
      "description": "Last sign-in from this device."
    },
    "trusted_until": {
      "type": "string",
      "format": "date-time",
      "description": "End of the trust window."
    }
  }
}