{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-oauth-identity-view-schema.json",
  "title": "OauthIdentityView",
  "description": "One linked external identity, as returned by [`identities`]. The provider\n`subject` is intentionally omitted — it is an internal correlation id.",
  "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/OauthIdentityView",
  "type": "object",
  "required": [
    "provider",
    "email_at_link",
    "created_at",
    "can_unlink"
  ],
  "properties": {
    "can_unlink": {
      "type": "boolean",
      "description": "`false` when unlinking would remove the user's last sign-in method\n(no password set and this is the only linked identity)."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the identity was linked."
    },
    "email_at_link": {
      "type": "string",
      "description": "Email the provider returned when the identity was linked."
    },
    "provider": {
      "type": "string",
      "description": "Provider key (`google` | `github`)."
    }
  }
}