{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opoint/json-schema/opoint-single-user-invite-paginated-schema.json",
  "title": "SingleUserInvitePaginated",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opoint-invite-api-openapi.yml#/components/schemas/SingleUserInvitePaginated",
  "type": "object",
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "type": [
        "string",
        "null"
      ]
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SingleUserInvitation"
      }
    }
  },
  "required": [
    "count",
    "next",
    "previous",
    "results"
  ],
  "$defs": {
    "SingleUserInvitation": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "token": {
          "type": "string",
          "maxLength": 43,
          "minLength": 43
        },
        "email": {
          "type": "string",
          "format": "email",
          "maxLength": 255
        },
        "owner": {
          "type": "integer",
          "description": "The parent user in the tree when user is created"
        },
        "invitation_text": {
          "type": [
            "string",
            "null"
          ]
        },
        "sent": {
          "type": "integer",
          "maximum": 2147483647,
          "minimum": -2147483648
        },
        "expires": {
          "type": "integer",
          "maximum": 2147483647,
          "minimum": -2147483648
        },
        "created_user": {
          "type": [
            "integer",
            "null"
          ],
          "description": "id of newly created user."
        },
        "status": {
          "allOf": [
            {
              "$ref": "#/$defs/SingleUserInvitationStatusEnum"
            }
          ],
          "minimum": -2147483648,
          "maximum": 2147483647
        },
        "usable": {
          "type": "boolean",
          "readOnly": true
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "role": {
          "type": "string",
          "readOnly": true
        }
      },
      "required": [
        "email",
        "id",
        "owner",
        "reason",
        "role",
        "token",
        "usable"
      ]
    },
    "SingleUserInvitationStatusEnum": {
      "enum": [
        0,
        1,
        2,
        3
      ],
      "type": "integer",
      "description": "* `0` - Failed\n* `1` - Pending\n* `2` - Accepted\n* `3` - Expired"
    }
  }
}