{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opoint/json-schema/opoint-ifmlogin-schema.json",
  "title": "IFMLogin",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opoint-auth-api-openapi.yml#/components/schemas/IFMLogin",
  "type": "object",
  "properties": {
    "user": {
      "$ref": "#/$defs/IFMLoginUser"
    },
    "organization": {
      "$ref": "#/$defs/IFMLoginOrganization"
    },
    "rights": {
      "$ref": "#/$defs/IFMLoginRights"
    },
    "remember_me": {
      "type": "boolean",
      "default": true
    }
  },
  "required": [
    "organization",
    "rights",
    "user"
  ],
  "$defs": {
    "IFMLoginOrganization": {
      "type": "object",
      "properties": {
        "uuid": {
          "type": "string",
          "maxLength": 36,
          "minLength": 36
        },
        "debitor_id": {
          "type": "integer",
          "minimum": 0
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "debitor_id",
        "name",
        "uuid"
      ]
    },
    "IFMLoginRights": {
      "type": "object",
      "properties": {
        "is_organization_admin": {
          "type": "boolean"
        },
        "media_report": {
          "type": "boolean"
        },
        "alerts": {
          "type": "boolean"
        },
        "multimedia": {
          "type": "boolean"
        },
        "statistics": {
          "type": "boolean"
        },
        "print": {
          "type": "boolean"
        },
        "share": {
          "type": "boolean"
        }
      },
      "required": [
        "alerts",
        "is_organization_admin",
        "media_report",
        "multimedia",
        "print",
        "share",
        "statistics"
      ]
    },
    "IFMLoginUser": {
      "type": "object",
      "properties": {
        "uuid": {
          "type": "string",
          "maxLength": 36,
          "minLength": 36
        },
        "login": {
          "type": "string",
          "format": "email"
        },
        "name": {
          "type": "string"
        },
        "create_date": {
          "type": "integer"
        },
        "archive_length": {
          "type": "integer"
        },
        "profiles": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "required": [
        "archive_length",
        "create_date",
        "login",
        "profiles",
        "uuid"
      ]
    }
  }
}