{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atlassian/json-schema/atlassian-content-restriction-array-schema.json",
  "title": "ContentRestrictionArray",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atlassian-content-restrictions-api-openapi.yml#/components/schemas/ContentRestrictionArray",
  "required": [
    "_links",
    "limit",
    "restrictionsHash",
    "results",
    "size",
    "start"
  ],
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContentRestriction"
      }
    },
    "start": {
      "type": "integer",
      "format": "int32"
    },
    "limit": {
      "type": "integer",
      "format": "int32"
    },
    "size": {
      "type": "integer",
      "format": "int32"
    },
    "restrictionsHash": {
      "type": "string",
      "description": "This property is used by the UI to figure out whether a set of restrictions\nhas changed."
    },
    "_links": {
      "$ref": "#/$defs/GenericLinks"
    }
  },
  "$defs": {
    "ButtonLookAndFeel": {
      "required": [
        "backgroundColor",
        "color"
      ],
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "backgroundColor": {
          "type": "string"
        },
        "color": {
          "type": "string"
        }
      }
    },
    "Container": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "description": "Container for content. This can be either a space (containing a page or blogpost)\nor a page/blog post (containing an attachment or comment)"
    },
    "ContainerLookAndFeel": {
      "required": [
        "background",
        "backgroundColor",
        "backgroundImage",
        "backgroundSize",
        "borderRadius",
        "padding"
      ],
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "background": {
          "type": "string"
        },
        "backgroundAttachment": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundBlendMode": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundClip": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundColor": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundImage": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundOrigin": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundPosition": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundRepeat": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundSize": {
          "type": [
            "string",
            "null"
          ]
        },
        "padding": {
          "type": "string"
        },
        "borderRadius": {
          "type": "string"
        }
      }
    },
    "Content": {
      "required": [
        "status",
        "type"
      ],
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "description": "Can be \"page\", \"blogpost\", \"attachment\" or \"content\""
        },
        "status": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "space": {
          "$ref": "#/$defs/Space"
        },
        "history": {
          "$ref": "#/$defs/ContentHistory"
        },
        "version": {
          "$ref": "#/$defs/Version"
        },
        "ancestors": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Content"
          }
        },
        "operations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OperationCheckResult"
          }
        },
        "children": {
          "$ref": "#/$defs/ContentChildren"
        },
        "childTypes": {
          "$ref": "#/$defs/ContentChildType"
        },
        "descendants": {
          "$ref": "#/$defs/ContentChildren"
        },
        "container": {
          "$ref": "#/$defs/Container"
        },
        "body": {
          "type": "object",
          "properties": {
            "view": {
              "$ref": "#/$defs/ContentBody"
            },
            "export_view": {
              "$ref": "#/$defs/ContentBody"
            },
            "styled_view": {
              "$ref": "#/$defs/ContentBody"
            },
            "storage": {
              "$ref": "#/$defs/ContentBody"
            },
            "wiki": {
              "$ref": "#/$defs/ContentBody"
            },
            "editor": {
              "$ref": "#/$defs/ContentBody"
            },
            "editor2": {
              "$ref": "#/$defs/ContentBody"
            },
            "anonymous_export_view": {
              "$ref": "#/$defs/ContentBody"
            },
            "atlas_doc_format": {
              "$ref": "#/$defs/ContentBody"
            },
            "dynamic": {
              "$ref": "#/$defs/ContentBody"
            },
            "raw": {
              "$ref": "#/$defs/ContentBody"
            },
            "_expandable": {
              "type": "object",
              "properties": {
                "editor": {
                  "type": "string"
                },
                "view": {
                  "type": "string"
                },
                "export_view": {
                  "type": "string"
                },
                "styled_view": {
                  "type": "string"
                },
                "storage": {
                  "type": "string"
                },
                "editor2": {
                  "type": "string"
                },
                "anonymous_export_view": {
                  "type": "string"
                },
                "atlas_doc_format": {
                  "type": "string"
                },
                "wiki": {
                  "type": "string"
                },
                "dynamic": {
                  "type": "string"
                },
                "raw": {
                  "type": "string"
                }
              }
            }
          }
        },
        "restrictions": {
          "type": "object",
          "properties": {
            "read": {
              "$ref": "#/$defs/ContentRestriction"
            },
            "update": {
              "$ref": "#/$defs/ContentRestriction"
            },
            "_expandable": {
              "type": "object",
              "properties": {
                "read": {
                  "type": "string"
                },
                "update": {
                  "type": "string"
                }
              }
            },
            "_links": {
              "$ref": "#/$defs/GenericLinks"
            }
          }
        },
        "metadata": {
          "$ref": "#/$defs/ContentMetadata"
        },
        "macroRenderedOutput": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "extensions": {
          "type": "object"
        },
        "_expandable": {
          "type": "object",
          "properties": {
            "childTypes": {
              "type": "string"
            },
            "container": {
              "type": "string"
            },
            "metadata": {
              "type": "string"
            },
            "operations": {
              "type": "string"
            },
            "children": {
              "type": "string"
            },
            "restrictions": {
              "type": "string"
            },
            "history": {
              "type": "string"
            },
            "ancestors": {
              "type": "string"
            },
            "body": {
              "type": "string"
            },
            "version": {
              "type": "string"
            },
            "descendants": {
              "type": "string"
            },
            "space": {
              "type": "string"
            },
            "extensions": {
              "type": "string"
            },
            "schedulePublishDate": {
              "type": "string"
            },
            "schedulePublishInfo": {
              "type": "string"
            },
            "macroRenderedOutput": {
              "type": "string"
            }
          }
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      },
      "description": "Base object for all content types."
    },
    "ContentArray": {
      "required": [
        "_links",
        "results",
        "size"
      ],
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Content"
          }
        },
        "start": {
          "type": "integer",
          "format": "int32"
        },
        "limit": {
          "type": "integer",
          "format": "int32"
        },
        "size": {
          "type": "integer",
          "format": "int32"
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      }
    },
    "ContentBody": {
      "required": [
        "representation",
        "value"
      ],
      "type": "object",
      "properties": {
        "value": {
          "type": "string"
        },
        "representation": {
          "type": "string",
          "enum": [
            "view",
            "export_view",
            "styled_view",
            "storage",
            "editor",
            "editor2",
            "anonymous_export_view",
            "wiki",
            "atlas_doc_format",
            "raw"
          ]
        },
        "embeddedContent": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EmbeddedContent"
          }
        },
        "webresource": {
          "$ref": "#/$defs/WebResourceDependencies"
        },
        "mediaToken": {
          "type": "object",
          "properties": {
            "collectionIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "contentId": {
              "type": "string"
            },
            "expiryDateTime": {
              "type": "string"
            },
            "fileIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "token": {
              "type": "string"
            }
          }
        },
        "_expandable": {
          "type": "object",
          "properties": {
            "content": {
              "type": "string"
            },
            "embeddedContent": {
              "type": "string"
            },
            "webresource": {
              "type": "string"
            },
            "mediaToken": {
              "type": "string"
            }
          }
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      }
    },
    "ContentChildType": {
      "type": "object",
      "properties": {
        "attachment": {
          "required": [
            "_links",
            "value"
          ],
          "type": "object",
          "properties": {
            "value": {
              "type": "boolean"
            },
            "_links": {
              "$ref": "#/$defs/GenericLinks"
            }
          }
        },
        "comment": {
          "required": [
            "_links",
            "value"
          ],
          "type": "object",
          "properties": {
            "value": {
              "type": "boolean"
            },
            "_links": {
              "$ref": "#/$defs/GenericLinks"
            }
          }
        },
        "page": {
          "required": [
            "_links",
            "value"
          ],
          "type": "object",
          "properties": {
            "value": {
              "type": "boolean"
            },
            "_links": {
              "$ref": "#/$defs/GenericLinks"
            }
          }
        },
        "_expandable": {
          "type": "object",
          "properties": {
            "all": {
              "type": "string"
            },
            "attachment": {
              "type": "string"
            },
            "comment": {
              "type": "string"
            },
            "page": {
              "type": "string"
            },
            "whiteboard": {
              "type": "string"
            }
          }
        }
      },
      "additionalProperties": true,
      "description": "Shows whether a piece of content has attachments, comments, or child pages/whiteboards.\nNote, this doesn't actually contain the child objects."
    },
    "ContentChildren": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "attachment": {
          "$ref": "#/$defs/ContentArray"
        },
        "comment": {
          "$ref": "#/$defs/ContentArray"
        },
        "page": {
          "$ref": "#/$defs/ContentArray"
        },
        "_expandable": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "attachment": {
              "type": "string"
            },
            "comment": {
              "type": "string"
            },
            "page": {
              "type": "string"
            }
          }
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      }
    },
    "ContentHistory": {
      "required": [
        "latest"
      ],
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "latest": {
          "type": "boolean"
        },
        "createdBy": {
          "$ref": "#/$defs/User"
        },
        "ownedBy": {
          "$ref": "#/$defs/User"
        },
        "lastOwnedBy": {
          "$ref": "#/$defs/User"
        },
        "createdDate": {
          "type": "string",
          "format": "date-time"
        },
        "lastUpdated": {
          "$ref": "#/$defs/Version"
        },
        "previousVersion": {
          "$ref": "#/$defs/Version"
        },
        "contributors": {
          "type": "object",
          "properties": {
            "publishers": {
              "$ref": "#/$defs/UsersUserKeys"
            }
          }
        },
        "nextVersion": {
          "$ref": "#/$defs/Version"
        },
        "_expandable": {
          "type": "object",
          "properties": {
            "lastUpdated": {
              "type": "string"
            },
            "previousVersion": {
              "type": "string"
            },
            "contributors": {
              "type": "string"
            },
            "nextVersion": {
              "type": "string"
            },
            "ownedBy": {
              "type": "string"
            },
            "lastOwnedBy": {
              "type": "string"
            }
          }
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      }
    },
    "ContentLookAndFeel": {
      "type": "object",
      "properties": {
        "screen": {
          "$ref": "#/$defs/ScreenLookAndFeel"
        },
        "container": {
          "$ref": "#/$defs/ContainerLookAndFeel"
        },
        "header": {
          "$ref": "#/$defs/ContainerLookAndFeel"
        },
        "body": {
          "$ref": "#/$defs/ContainerLookAndFeel"
        }
      }
    },
    "ContentMetadata": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "currentuser": {
          "type": "object",
          "properties": {
            "favourited": {
              "type": "object",
              "properties": {
                "isFavourite": {
                  "type": "boolean"
                },
                "favouritedDate": {
                  "type": "string",
                  "format": "date-time"
                }
              }
            },
            "lastmodified": {
              "type": "object",
              "properties": {
                "version": {
                  "$ref": "#/$defs/Version"
                },
                "friendlyLastModified": {
                  "type": "string"
                }
              }
            },
            "lastcontributed": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string"
                },
                "when": {
                  "type": "string",
                  "format": "date-time"
                }
              }
            },
            "viewed": {
              "type": "object",
              "properties": {
                "lastSeen": {
                  "type": "string",
                  "format": "date-time"
                },
                "friendlyLastSeen": {
                  "type": "string"
                }
              }
            },
            "scheduled": {
              "type": "object"
            },
            "_expandable": {
              "type": "object",
              "properties": {
                "favourited": {
                  "type": "string"
                },
                "lastmodified": {
                  "type": "string"
                },
                "lastcontributed": {
                  "type": "string"
                },
                "viewed": {
                  "type": "string"
                },
                "scheduled": {
                  "type": "string"
                }
              }
            }
          }
        },
        "properties": {
          "$ref": "#/$defs/GenericLinks"
        },
        "frontend": {
          "type": "object",
          "additionalProperties": true
        },
        "labels": {
          "oneOf": [
            {
              "$ref": "#/$defs/LabelArray"
            },
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/Label"
              }
            }
          ]
        }
      },
      "description": "Metadata object for page, blogpost, comment content"
    },
    "ContentRestriction": {
      "required": [
        "_expandable",
        "_links",
        "operation"
      ],
      "type": "object",
      "properties": {
        "operation": {
          "type": "string",
          "enum": [
            "administer",
            "copy",
            "create",
            "delete",
            "export",
            "move",
            "purge",
            "purge_version",
            "read",
            "restore",
            "update",
            "use"
          ]
        },
        "restrictions": {
          "type": "object",
          "properties": {
            "user": {
              "$ref": "#/$defs/UserArray"
            },
            "group": {
              "$ref": "#/$defs/GroupArray"
            },
            "_expandable": {
              "type": "object",
              "properties": {
                "user": {
                  "type": "string"
                },
                "group": {
                  "type": "string"
                }
              }
            }
          }
        },
        "content": {
          "$ref": "#/$defs/Content"
        },
        "_expandable": {
          "type": "object",
          "properties": {
            "restrictions": {
              "type": "string"
            },
            "content": {
              "type": "string"
            }
          }
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      }
    },
    "Embeddable": {
      "type": "object",
      "additionalProperties": true
    },
    "EmbeddedContent": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "entityId": {
          "type": "integer",
          "format": "int64"
        },
        "entityType": {
          "type": "string"
        },
        "entity": {
          "$ref": "#/$defs/Embeddable"
        }
      }
    },
    "GenericAccountId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The account ID of the user, which uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`."
    },
    "GenericLinks": {
      "type": "object",
      "additionalProperties": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": true
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "GenericUserKey": {
      "type": [
        "string",
        "null"
      ],
      "description": "This property is no longer available and will be removed from the documentation soon.\nUse `accountId` instead.\nSee the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details."
    },
    "GenericUserName": {
      "type": [
        "string",
        "null"
      ],
      "description": "This property is no longer available and will be removed from the documentation soon.\nUse `accountId` instead.\nSee the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details."
    },
    "Group": {
      "required": [
        "name",
        "type",
        "id"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "default": "group",
          "enum": [
            "group"
          ]
        },
        "name": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      }
    },
    "GroupArray": {
      "required": [
        "limit",
        "results",
        "size",
        "start"
      ],
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Group"
          }
        },
        "start": {
          "type": "integer",
          "format": "int32"
        },
        "limit": {
          "type": "integer",
          "format": "int32"
        },
        "size": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "HeaderLookAndFeel": {
      "required": [
        "backgroundColor",
        "button",
        "primaryNavigation",
        "search",
        "secondaryNavigation"
      ],
      "type": "object",
      "properties": {
        "backgroundColor": {
          "type": "string"
        },
        "button": {
          "$ref": "#/$defs/ButtonLookAndFeel"
        },
        "primaryNavigation": {
          "$ref": "#/$defs/NavigationLookAndFeel"
        },
        "secondaryNavigation": {
          "$ref": "#/$defs/NavigationLookAndFeel"
        },
        "search": {
          "$ref": "#/$defs/SearchFieldLookAndFeel"
        }
      }
    },
    "HorizontalHeaderLookAndFeel": {
      "required": [
        "backgroundColor",
        "primaryNavigation"
      ],
      "type": "object",
      "properties": {
        "backgroundColor": {
          "type": "string"
        },
        "button": {
          "$ref": "#/$defs/ButtonLookAndFeel"
        },
        "primaryNavigation": {
          "$ref": "#/$defs/TopNavigationLookAndFeel"
        },
        "secondaryNavigation": {
          "$ref": "#/$defs/NavigationLookAndFeel"
        },
        "search": {
          "$ref": "#/$defs/SearchFieldLookAndFeel"
        }
      }
    },
    "Icon": {
      "required": [
        "height",
        "isDefault",
        "path",
        "width"
      ],
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "path": {
          "type": "string"
        },
        "width": {
          "type": "integer",
          "format": "int32"
        },
        "height": {
          "type": "integer",
          "format": "int32"
        },
        "isDefault": {
          "type": "boolean"
        }
      },
      "description": "This object represents an icon. If used as a profilePicture, this may be returned as null, depending on the user's privacy setting."
    },
    "Label": {
      "required": [
        "id",
        "label",
        "name",
        "prefix"
      ],
      "type": "object",
      "properties": {
        "prefix": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        }
      }
    },
    "LabelArray": {
      "required": [
        "results",
        "size"
      ],
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Label"
          }
        },
        "start": {
          "type": "integer",
          "format": "int32"
        },
        "limit": {
          "type": "integer",
          "format": "int32"
        },
        "size": {
          "type": "integer",
          "format": "int32"
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      }
    },
    "LookAndFeel": {
      "required": [
        "bordersAndDividers",
        "content",
        "header",
        "headings",
        "links",
        "menus"
      ],
      "type": "object",
      "properties": {
        "headings": {
          "required": [
            "color"
          ],
          "type": "object",
          "properties": {
            "color": {
              "type": "string"
            }
          }
        },
        "links": {
          "required": [
            "color"
          ],
          "type": "object",
          "properties": {
            "color": {
              "type": "string"
            }
          }
        },
        "menus": {
          "$ref": "#/$defs/MenusLookAndFeel"
        },
        "header": {
          "$ref": "#/$defs/HeaderLookAndFeel"
        },
        "horizontalHeader": {
          "$ref": "#/$defs/HorizontalHeaderLookAndFeel"
        },
        "content": {
          "$ref": "#/$defs/ContentLookAndFeel"
        },
        "bordersAndDividers": {
          "required": [
            "color"
          ],
          "type": "object",
          "properties": {
            "color": {
              "type": "string"
            }
          }
        },
        "spaceReference": {
          "type": [
            "object",
            "null"
          ]
        }
      }
    },
    "MenusLookAndFeel": {
      "required": [
        "color",
        "hoverOrFocus"
      ],
      "type": "object",
      "properties": {
        "hoverOrFocus": {
          "required": [
            "backgroundColor"
          ],
          "type": "object",
          "properties": {
            "backgroundColor": {
              "type": "string"
            }
          }
        },
        "color": {
          "type": "string"
        }
      }
    },
    "NavigationLookAndFeel": {
      "required": [
        "color",
        "hoverOrFocus"
      ],
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "color": {
          "type": "string"
        },
        "highlightColor": {
          "type": [
            "string",
            "null"
          ]
        },
        "hoverOrFocus": {
          "required": [
            "backgroundColor",
            "color"
          ],
          "type": "object",
          "properties": {
            "backgroundColor": {
              "type": "string"
            },
            "color": {
              "type": "string"
            }
          }
        }
      }
    },
    "OperationCheckResult": {
      "required": [
        "operation",
        "targetType"
      ],
      "type": "object",
      "properties": {
        "operation": {
          "type": "string",
          "description": "The operation itself.",
          "enum": [
            "administer",
            "archive",
            "clear_permissions",
            "copy",
            "create",
            "create_space",
            "delete",
            "export",
            "move",
            "purge",
            "purge_version",
            "read",
            "restore",
            "restrict_content",
            "update",
            "use"
          ]
        },
        "targetType": {
          "type": "string",
          "description": "The space or content type that the operation applies to. Could be one of- - application - page - blogpost - comment - attachment - space"
        }
      },
      "description": "An operation and the target entity that it applies to, e.g. create page."
    },
    "ScreenLookAndFeel": {
      "required": [
        "background"
      ],
      "type": "object",
      "properties": {
        "background": {
          "type": "string"
        },
        "backgroundAttachment": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundBlendMode": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundClip": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundColor": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundImage": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundOrigin": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundPosition": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundRepeat": {
          "type": [
            "string",
            "null"
          ]
        },
        "backgroundSize": {
          "type": [
            "string",
            "null"
          ]
        },
        "layer": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "width": {
              "type": "string"
            },
            "height": {
              "type": "string"
            }
          }
        },
        "gutterTop": {
          "type": [
            "string",
            "null"
          ]
        },
        "gutterRight": {
          "type": [
            "string",
            "null"
          ]
        },
        "gutterBottom": {
          "type": [
            "string",
            "null"
          ]
        },
        "gutterLeft": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "SearchFieldLookAndFeel": {
      "required": [
        "backgroundColor",
        "color"
      ],
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "backgroundColor": {
          "type": "string"
        },
        "color": {
          "type": "string"
        }
      }
    },
    "Space": {
      "required": [
        "_expandable",
        "_links",
        "key",
        "name",
        "status",
        "type"
      ],
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "key": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "icon": {
          "$ref": "#/$defs/Icon"
        },
        "description": {
          "type": "object",
          "properties": {
            "plain": {
              "$ref": "#/$defs/SpaceDescription"
            },
            "view": {
              "$ref": "#/$defs/SpaceDescription"
            },
            "_expandable": {
              "type": "object",
              "properties": {
                "view": {
                  "type": "string"
                },
                "plain": {
                  "type": "string"
                }
              }
            }
          }
        },
        "homepage": {
          "$ref": "#/$defs/Content"
        },
        "type": {
          "type": "string"
        },
        "metadata": {
          "type": "object",
          "properties": {
            "labels": {
              "$ref": "#/$defs/LabelArray"
            },
            "_expandable": {
              "type": "object"
            }
          }
        },
        "operations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OperationCheckResult"
          }
        },
        "permissions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SpacePermission"
          }
        },
        "status": {
          "type": "string"
        },
        "settings": {
          "$ref": "#/$defs/SpaceSettings"
        },
        "theme": {
          "$ref": "#/$defs/Theme"
        },
        "lookAndFeel": {
          "$ref": "#/$defs/LookAndFeel"
        },
        "history": {
          "required": [
            "createdDate"
          ],
          "type": "object",
          "properties": {
            "createdDate": {
              "type": "string",
              "format": "date-time"
            },
            "createdBy": {
              "$ref": "#/$defs/User"
            }
          }
        },
        "_expandable": {
          "type": "object",
          "properties": {
            "settings": {
              "type": "string"
            },
            "metadata": {
              "type": "string"
            },
            "operations": {
              "type": "string"
            },
            "lookAndFeel": {
              "type": "string"
            },
            "permissions": {
              "type": "string"
            },
            "icon": {
              "type": "string"
            },
            "description": {
              "type": "string"
            },
            "theme": {
              "type": "string"
            },
            "history": {
              "type": "string"
            },
            "homepage": {
              "type": "string"
            },
            "identifiers": {
              "type": "string"
            }
          }
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      }
    },
    "SpaceDescription": {
      "required": [
        "embeddedContent",
        "representation",
        "value"
      ],
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "value": {
          "type": "string"
        },
        "representation": {
          "type": "string",
          "enum": [
            "plain",
            "view"
          ]
        },
        "embeddedContent": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {}
          }
        }
      }
    },
    "SpacePermission": {
      "required": [
        "anonymousAccess",
        "operation",
        "unlicensedAccess"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "subjects": {
          "type": "object",
          "properties": {
            "user": {
              "required": [
                "results",
                "size"
              ],
              "type": "object",
              "properties": {
                "results": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/User"
                  }
                },
                "size": {
                  "type": "integer",
                  "format": "int32"
                },
                "start": {
                  "type": "integer",
                  "format": "int32"
                },
                "limit": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "group": {
              "required": [
                "results",
                "size"
              ],
              "type": "object",
              "properties": {
                "results": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/Group"
                  }
                },
                "size": {
                  "type": "integer",
                  "format": "int32"
                },
                "start": {
                  "type": "integer",
                  "format": "int32"
                },
                "limit": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "_expandable": {
              "type": "object",
              "properties": {
                "user": {
                  "type": "string"
                },
                "group": {
                  "type": "string"
                }
              }
            }
          },
          "description": "The users and/or groups that the permission applies to."
        },
        "operation": {
          "$ref": "#/$defs/OperationCheckResult"
        },
        "anonymousAccess": {
          "type": "boolean",
          "description": "Grant anonymous users permission to use the operation.",
          "default": false
        },
        "unlicensedAccess": {
          "type": "boolean",
          "description": "Grants access to unlicensed users from JIRA Service Desk when used\nwith the 'read space' operation.",
          "default": false
        }
      },
      "description": "This object represents a permission for given space. Permissions consist of\nat least one operation object with an accompanying subjects object.\n\nThe following combinations of `operation` and `targetType` values are\nvalid for the `operation` object:\n\n  - 'create': 'page', 'blogpost', 'comment', 'attachment'\n  - 'read': 'space'\n  - 'delete': 'page', 'blogpost', 'comment', 'attachment'\n  - 'export': 'space'\n  - 'administer': 'space'"
    },
    "SpaceSettings": {
      "required": [
        "_links",
        "routeOverrideEnabled"
      ],
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "routeOverrideEnabled": {
          "type": "boolean",
          "description": "Defines whether an override for the space home should be used. This is\nused in conjunction with a space theme provided by an app. For\nexample, if this property is set to true, a theme can display a page\nother than the space homepage when users visit the root URL for a\nspace. This property allows apps to provide content-only theming\nwithout overriding the space home."
        },
        "editor": {
          "required": [
            "page",
            "blogpost",
            "default"
          ],
          "type": "object",
          "properties": {
            "page": {
              "type": "string"
            },
            "blogpost": {
              "type": "string"
            },
            "default": {
              "type": "string"
            }
          }
        },
        "spaceKey": {
          "type": "string"
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      }
    },
    "SuperBatchWebResources": {
      "type": "object",
      "properties": {
        "uris": {
          "type": "object",
          "properties": {
            "all": {
              "oneOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "string"
                }
              ]
            },
            "css": {
              "oneOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "string"
                }
              ]
            },
            "js": {
              "oneOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "string"
                }
              ]
            }
          }
        },
        "tags": {
          "type": "object",
          "properties": {
            "all": {
              "type": "string"
            },
            "css": {
              "type": "string"
            },
            "data": {
              "type": "string"
            },
            "js": {
              "type": "string"
            }
          }
        },
        "metatags": {
          "type": "string"
        },
        "_expandable": {
          "type": "object",
          "additionalProperties": true
        }
      }
    },
    "Theme": {
      "required": [
        "themeKey"
      ],
      "type": "object",
      "properties": {
        "themeKey": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "icon": {
          "$ref": "#/$defs/Icon"
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      }
    },
    "TopNavigationLookAndFeel": {
      "required": [
        "highlightColor"
      ],
      "type": "object",
      "properties": {
        "color": {
          "type": [
            "string",
            "null"
          ]
        },
        "highlightColor": {
          "type": "string"
        },
        "hoverOrFocus": {
          "type": "object",
          "properties": {
            "backgroundColor": {
              "type": "string"
            },
            "color": {
              "type": "string"
            }
          }
        }
      }
    },
    "User": {
      "required": [
        "type"
      ],
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "known",
            "unknown",
            "anonymous",
            "user"
          ]
        },
        "username": {
          "$ref": "#/$defs/GenericUserName"
        },
        "userKey": {
          "$ref": "#/$defs/GenericUserKey"
        },
        "accountId": {
          "$ref": "#/$defs/GenericAccountId"
        },
        "accountType": {
          "type": "string",
          "description": "The account type of the user, may return empty string if unavailable. App is if the user is a bot user created on behalf of an Atlassian app.",
          "enum": [
            "atlassian",
            "app",
            ""
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "description": "The email address of the user. Depending on the user's privacy setting, this may return an empty string."
        },
        "publicName": {
          "type": "string",
          "description": "The public name or nickname of the user. Will always contain a value."
        },
        "profilePicture": {
          "$ref": "#/$defs/Icon"
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The displays name of the user. Depending on the user's privacy setting, this may be the same as publicName."
        },
        "timeZone": {
          "type": [
            "string",
            "null"
          ],
          "description": "This displays user time zone. Depending on the user's privacy setting, this may return null."
        },
        "isExternalCollaborator": {
          "type": "boolean",
          "description": "Whether the user is an external collaborator user"
        },
        "externalCollaborator": {
          "type": "boolean",
          "description": "Whether the user is an external collaborator user"
        },
        "operations": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/OperationCheckResult"
          }
        },
        "details": {
          "$ref": "#/$defs/UserDetails"
        },
        "personalSpace": {
          "$ref": "#/$defs/Space"
        },
        "_expandable": {
          "type": "object",
          "properties": {
            "operations": {
              "type": "string"
            },
            "details": {
              "type": "string"
            },
            "personalSpace": {
              "type": "string"
            }
          }
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      }
    },
    "UserArray": {
      "required": [
        "results"
      ],
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/User"
          }
        },
        "start": {
          "type": "integer",
          "format": "int32"
        },
        "limit": {
          "type": "integer",
          "format": "int32"
        },
        "size": {
          "type": "integer",
          "format": "int32"
        },
        "totalSize": {
          "type": "integer",
          "format": "int64",
          "default": 0,
          "description": "This property will return total count of the objects before pagination is applied.\nThis value is returned if `shouldReturnTotalSize` is set to `true`."
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      }
    },
    "UserDetails": {
      "type": "object",
      "properties": {
        "business": {
          "type": "object",
          "properties": {
            "position": {
              "type": "string",
              "description": "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
            },
            "department": {
              "type": "string",
              "description": "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
            },
            "location": {
              "type": "string",
              "description": "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
            }
          }
        },
        "personal": {
          "type": "object",
          "properties": {
            "phone": {
              "type": "string",
              "description": "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
            },
            "im": {
              "type": "string",
              "description": "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
            },
            "website": {
              "type": "string",
              "description": "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
            },
            "email": {
              "type": "string",
              "description": "This property has been deprecated due to privacy changes. Use the `User.email` property instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
            }
          }
        }
      }
    },
    "UsersUserKeys": {
      "required": [
        "userAccountIds"
      ],
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "properties": {
        "users": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/User"
          }
        },
        "userKeys": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        }
      }
    },
    "Version": {
      "required": [
        "minorEdit",
        "number",
        "when"
      ],
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "properties": {
        "by": {
          "$ref": "#/$defs/User"
        },
        "when": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "friendlyWhen": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        },
        "number": {
          "type": "integer",
          "format": "int32",
          "description": "Set this to the current version number incremented by one"
        },
        "minorEdit": {
          "description": "If `minorEdit` is set to 'true', no notification email or activity\nstream will be generated for the change.",
          "type": "boolean"
        },
        "content": {
          "$ref": "#/$defs/Content"
        },
        "collaborators": {
          "$ref": "#/$defs/UsersUserKeys"
        },
        "_expandable": {
          "type": "object",
          "properties": {
            "content": {
              "type": "string"
            },
            "collaborators": {
              "type": "string"
            }
          }
        },
        "_links": {
          "$ref": "#/$defs/GenericLinks"
        },
        "contentTypeModified": {
          "type": "boolean",
          "description": "True if content type is modifed in this version (e.g. page to blog)"
        },
        "confRev": {
          "type": [
            "string",
            "null"
          ],
          "description": "The revision id provided by confluence to be used as a revision in Synchrony"
        },
        "syncRev": {
          "type": [
            "string",
            "null"
          ],
          "description": "The revision id provided by Synchrony"
        },
        "syncRevSource": {
          "type": [
            "string",
            "null"
          ],
          "description": "Source of the synchrony revision"
        }
      }
    },
    "WebResourceDependencies": {
      "type": "object",
      "properties": {
        "_expandable": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "uris": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "additionalProperties": true
                }
              ]
            }
          }
        },
        "keys": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "contexts": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "uris": {
          "type": "object",
          "properties": {
            "all": {
              "oneOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "string"
                }
              ]
            },
            "css": {
              "oneOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "string"
                }
              ]
            },
            "js": {
              "oneOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "string"
                }
              ]
            },
            "_expandable": {
              "type": "object",
              "additionalProperties": true,
              "properties": {
                "css": {
                  "oneOf": [
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "js": {
                  "oneOf": [
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              }
            }
          }
        },
        "tags": {
          "type": "object",
          "properties": {
            "all": {
              "type": "string"
            },
            "css": {
              "type": "string"
            },
            "data": {
              "type": "string"
            },
            "js": {
              "type": "string"
            },
            "_expandable": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "superbatch": {
          "$ref": "#/$defs/SuperBatchWebResources"
        }
      }
    }
  }
}