{
  "$defs": {
    "ProjectFilters": {
      "additionalProperties": false,
      "properties": {
        "archived": {
          "default": "active",
          "description": "Archive scope: active (default), archived, or all. Stored projects use status equality.",
          "enum": [
            "active",
            "archived",
            "all"
          ],
          "title": "Archived",
          "type": "string"
        },
        "name_prefix": {
          "anyOf": [
            {
              "description": "At most 256 bytes of serialized UTF-8 JSON content, excluding quotes.",
              "minLength": 1,
              "type": "string",
              "x-max-json-utf8-bytes": 256
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Case-insensitive name PREFIX, not substring; lowercase JSON content at most 256 UTF-8 bytes; requires name_lower ASC.",
          "title": "Name Prefix"
        }
      },
      "title": "ProjectFilters",
      "type": "object"
    }
  },
  "additionalProperties": false,
  "else": {
    "properties": {
      "order": {
        "enum": [
          null,
          "desc"
        ]
      },
      "sort": {
        "enum": [
          null,
          "updated_at"
        ]
      }
    }
  },
  "if": {
    "properties": {
      "filters": {
        "properties": {
          "name_prefix": {
            "type": "string"
          }
        },
        "required": [
          "name_prefix"
        ]
      }
    },
    "required": [
      "filters"
    ]
  },
  "properties": {
    "count": {
      "default": false,
      "description": "Request full matching storage count, including unreadable documents; page count is always returned.",
      "title": "Count",
      "type": "boolean"
    },
    "cursor": {
      "anyOf": [
        {
          "maxLength": 32768,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Opaque continuation token; omit for page one.",
      "title": "Cursor"
    },
    "filters": {
      "$ref": "#/$defs/ProjectFilters",
      "default": {
        "archived": "active",
        "name_prefix": null
      },
      "description": "Narrow the list by archive scope or a name prefix. Omit for your active projects.",
      "type": "object"
    },
    "limit": {
      "default": 20,
      "description": "Maximum documents per page (count), 1\u201350.",
      "maximum": 50,
      "minimum": 1,
      "title": "Limit",
      "type": "integer"
    },
    "order": {
      "anyOf": [
        {
          "enum": [
            "asc",
            "desc"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Omitted: asc with a name prefix, otherwise desc; document ID DESC breaks ties.",
      "title": "Order"
    },
    "sort": {
      "anyOf": [
        {
          "enum": [
            "updated_at",
            "name_lower"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Sort field (enum). Omitted: name_lower ASC with a name_prefix, otherwise updated_at DESC; explicit conflicts refuse.",
      "title": "Sort"
    }
  },
  "then": {
    "properties": {
      "order": {
        "enum": [
          null,
          "asc"
        ]
      },
      "sort": {
        "enum": [
          null,
          "name_lower"
        ]
      }
    }
  },
  "title": "ProjectListArguments",
  "type": "object"
}
