{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ctlsurf-com/json-schema/ctlsurf-com-page-response-schema.json",
  "title": "PageResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ctlsurf-com-openapi.yml#/components/schemas/PageResponse",
  "properties": {
    "title": {
      "type": "string",
      "title": "Title",
      "default": "Untitled"
    },
    "root_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Root Path"
    },
    "repo_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Repo Url"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tags",
      "default": []
    },
    "type": {
      "type": "string",
      "title": "Type",
      "default": "page"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "parent_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parent Id"
    },
    "folder_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Folder Id"
    },
    "user_id": {
      "type": "string",
      "format": "uuid",
      "title": "User Id"
    },
    "order": {
      "type": "integer",
      "title": "Order",
      "default": 0
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "deleted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Deleted At"
    },
    "is_project": {
      "type": "boolean",
      "title": "Is Project",
      "default": false
    },
    "is_private": {
      "type": "boolean",
      "title": "Is Private",
      "default": false
    },
    "is_private_inherited": {
      "type": "boolean",
      "title": "Is Private Inherited",
      "default": false
    },
    "organization_placement": {
      "anyOf": [
        {
          "$ref": "#/$defs/OrganizationPlacementReceipt"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "id",
    "user_id",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "OrganizationPlacementReceipt": {
      "properties": {
        "project_root_id": {
          "type": "string",
          "format": "uuid",
          "title": "Project Root Id"
        },
        "binding_revision": {
          "type": "integer",
          "title": "Binding Revision"
        },
        "template_id": {
          "type": "string",
          "format": "uuid",
          "title": "Template Id"
        },
        "template_version": {
          "type": "integer",
          "title": "Template Version"
        },
        "template_name": {
          "type": "string",
          "title": "Template Name"
        },
        "mode": {
          "type": "string",
          "enum": [
            "section",
            "user_override"
          ],
          "title": "Mode"
        },
        "section_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Section Key"
        },
        "section_path": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Section Path"
        },
        "override_reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Override Reason"
        },
        "destination_parent_id": {
          "type": "string",
          "format": "uuid",
          "title": "Destination Parent Id"
        },
        "semantic_review": {
          "type": "string",
          "const": "not_performed",
          "title": "Semantic Review",
          "default": "not_performed"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "project_root_id",
        "binding_revision",
        "template_id",
        "template_version",
        "template_name",
        "mode",
        "destination_parent_id"
      ],
      "title": "OrganizationPlacementReceipt"
    }
  }
}