{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ai2fin-com/json-schema/ai2fin-com-auth-response-schema.json",
  "title": "AuthResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ai2fin-com-authentication-api-openapi.yml#/components/schemas/AuthResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "token": {
      "type": "string"
    },
    "user": {
      "$ref": "#/$defs/User"
    }
  },
  "$defs": {
    "User": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "businessType": {
          "type": "string",
          "enum": [
            "business",
            "individual",
            "company",
            "trust"
          ]
        },
        "countryCode": {
          "type": "string"
        },
        "emailVerified": {
          "type": "boolean"
        }
      }
    }
  }
}