{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/clarivate/main/json-schema/clarivate-userspaceresource-schema.json",
  "title": "userspaceresource",
  "description": "Retrieve a set of fields related to User's workspace. ",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarivate-user-space-api-openapi.yml#/components/schemas/userspaceresource",
  "properties": {
    "referenceUserSpaceUri": {
      "$ref": "#/$defs/uri"
    },
    "totalSpace": {
      "format": "int64",
      "description": "Total attachment size allowed to have in User's workspace.A positive Number",
      "readOnly": true,
      "default": 0,
      "type": "integer"
    },
    "referenceLimit": {
      "format": "int64",
      "description": "Total Amount of references allowed to have in User's workspace.A positive Number",
      "readOnly": true,
      "default": 0,
      "type": "integer"
    },
    "referenceCount": {
      "format": "int64",
      "description": "Current Amount of references in the User's space.A positive Number",
      "readOnly": true,
      "default": 0,
      "type": "integer"
    },
    "sizeAvailable": {
      "format": "int64",
      "description": "Current space size available in the User's space.A positive Number",
      "readOnly": true,
      "default": 0,
      "type": "integer"
    },
    "unlimitedSpace": {
      "description": "As true, the user has unlimited space for attachments. ",
      "readOnly": true,
      "default": false,
      "type": "boolean"
    },
    "uri": {
      "$ref": "#/$defs/uri"
    },
    "referenceCountRemaining": {
      "format": "int64",
      "description": "Current Amount of references allowed to create in User's workspace.A positive Number",
      "readOnly": true,
      "default": 0,
      "type": "integer"
    },
    "attachmentSize": {
      "format": "int64",
      "description": "Current size of all attachments in the User's workspace.A positive Number",
      "readOnly": true,
      "default": 0,
      "type": "integer"
    }
  },
  "type": "object",
  "$defs": {
    "uri": {
      "properties": {
        "system": {
          "description": "As true, POST method is not allowed",
          "readOnly": true,
          "default": false,
          "type": "boolean"
        },
        "readOnly": {
          "description": "As true, PUT method is not allowed",
          "readOnly": true,
          "default": false,
          "type": "boolean"
        },
        "idValue": {
          "description": "Unique Identifier of a pointed resource",
          "readOnly": true,
          "type": "string"
        },
        "hidden": {
          "description": "As true, GET method is not allowed",
          "readOnly": true,
          "default": false,
          "type": "boolean"
        },
        "mandatory": {
          "description": "As true, DELETE method is not allowed",
          "readOnly": true,
          "default": false,
          "type": "boolean"
        },
        "display": {
          "description": "Name of the resource to show users",
          "readOnly": true,
          "type": "string"
        },
        "uri": {
          "description": "URL pointing to a resource",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}