{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/totalparks-com-au/json-schema/totalparks-com-au-invite-accepted-response-schema.json",
  "title": "InviteAcceptedResponse",
  "description": "Returned by /accept-invite/start for non-admin invites — a\nfull session token and the standard ``UserPublic`` payload.\n\nBackward-compatible with the legacy single-shot ``/accept-invite/{token}``\nbody so older clients keep working through the shim.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/totalparks-com-au-openapi.json#/components/schemas/InviteAcceptedResponse",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "username": {
      "type": "string",
      "format": "email",
      "title": "Username"
    },
    "firstname": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Firstname"
    },
    "lastname": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lastname"
    },
    "displayname": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Displayname"
    },
    "phone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Phone"
    },
    "register_date": {
      "type": "string",
      "format": "date-time",
      "title": "Register Date"
    },
    "roles": {
      "items": {},
      "type": "array",
      "title": "Roles",
      "default": []
    },
    "profile_pic": {
      "type": "string",
      "title": "Profile Pic"
    },
    "access_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Access Token",
      "default": ""
    },
    "pending_email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pending Email"
    },
    "mfa_satisfied": {
      "type": "boolean",
      "title": "Mfa Satisfied",
      "default": false
    },
    "mfa_enrolled": {
      "type": "boolean",
      "title": "Mfa Enrolled",
      "default": false
    },
    "mfa_recovery": {
      "type": "boolean",
      "title": "Mfa Recovery",
      "default": false
    },
    "mfa_access_required": {
      "type": "boolean",
      "title": "Mfa Access Required",
      "default": false
    },
    "kind": {
      "type": "string",
      "const": "session",
      "title": "Kind",
      "default": "session"
    }
  },
  "type": "object",
  "required": [
    "id",
    "username",
    "register_date",
    "profile_pic"
  ]
}