{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/send21-io/json-schema/send21-io-me-response-schema.json",
  "title": "MeResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/send21-io-auth-api-openapi.yml#/components/schemas/MeResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ]
    },
    "totpEnabled": {
      "type": "boolean"
    },
    "hasPassword": {
      "type": "boolean"
    },
    "isAdmin": {
      "type": "boolean"
    },
    "credentials": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/CredentialInfo"
      }
    },
    "receivingAddressPolicy": {
      "$ref": "#/$defs/ReceivingAddressPolicy"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "CredentialInfo": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "lastUsedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "ReceivingAddressPolicy": {
      "enum": [
        "InlineAllowed",
        "ApprovedOnly"
      ],
      "type": "string"
    }
  }
}