{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/secure-flows-com/json-schema/secure-flows-com-session-identity-view-schema.json",
  "title": "SessionIdentityView",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/secure-flows-session-api.yaml#/components/schemas/SessionIdentityView",
  "type": "object",
  "required": [
    "userId",
    "email"
  ],
  "properties": {
    "userId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Stable, opaque id for this person across sessions/logins. Not a Firebase UID. Intended correlation key for your own backend linking external events (e.g. billing webhooks) to this user."
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "description": "Workspace end-user email when known (from hosted login); null otherwise."
    }
  }
}