{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkbreakers-com/json-schema/linkbreakers-com-list-directories-response-schema.json",
  "title": "Response containing a list of directories",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkbreakers-com-directories-api-openapi.yml#/components/schemas/ListDirectoriesResponse",
  "properties": {
    "directories": {
      "items": {
        "$ref": "#/$defs/Directory",
        "type": "object"
      },
      "title": "The list of directories matching the filter criteria",
      "type": "array"
    },
    "nextPageToken": {
      "description": "Cursor to continue listing directories",
      "title": "Token for retrieving the next page of results",
      "type": "string"
    },
    "totalCount": {
      "description": "How many records exist in total, so a client can tell a complete answer\nfrom a page of one. A local-first client reads absence from this list as\ndeletion, and may only do so when the count it was given matches what it\nreceived: without that, one page would look like the whole model and\neverything beyond it would be removed locally.",
      "format": "int64",
      "type": "integer"
    }
  },
  "type": "object",
  "$defs": {
    "Directory": {
      "description": "An organizational bucket that groups links and other directories into a hierarchical folder structure\nwithin a workspace.",
      "properties": {
        "createdAt": {
          "format": "date-time",
          "readOnly": true,
          "title": "When the directory was created",
          "type": "string"
        },
        "id": {
          "title": "The unique identifier of the directory (UUID)",
          "type": "string"
        },
        "name": {
          "title": "The name of the directory",
          "type": "string"
        },
        "parentDirectoryId": {
          "description": "The ID of the parent directory (UUID)\nIf not set, the directory is at the root level.",
          "type": "string"
        },
        "path": {
          "description": "Full hierarchical path separated by slashes, computed server-side",
          "readOnly": true,
          "type": "string"
        },
        "updatedAt": {
          "format": "date-time",
          "readOnly": true,
          "title": "When the directory was last updated",
          "type": "string"
        },
        "workspaceId": {
          "title": "The workspace ID the directory belongs to (UUID)",
          "type": "string"
        }
      },
      "title": "Directory",
      "type": "object"
    }
  }
}