{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/centaur-labs/json-schema/centaur-labs-project-list-response-schema.json",
  "title": "ProjectListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/centaur-labs-add-and-manage-projects-api-openapi.yml#/components/schemas/ProjectListResponse",
  "properties": {
    "payload": {
      "items": {
        "$ref": "#/$defs/ProjectResponse"
      },
      "type": "array",
      "title": "Payload",
      "description": "The list of projects"
    },
    "has_next": {
      "type": "boolean",
      "title": "Has Next",
      "description": "Whether or not the list of assets has reached the end"
    },
    "last_sequence_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Sequence Id",
      "description": "If has_next is true, the last_sequence_id is the token that should accompany the next request to get the following page of results"
    },
    "limit": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 1000,
          "minimum": 1,
          "exclusiveMinimum": 0
        },
        {
          "type": "null"
        }
      ],
      "title": "Limit",
      "description": "The maximum number of labeling results to retrieve per page",
      "default": 100
    }
  },
  "type": "object",
  "required": [
    "payload",
    "has_next"
  ],
  "$defs": {
    "ContentType": {
      "type": "string",
      "enum": [
        "image",
        "video",
        "audio",
        "text",
        "html",
        "dicom",
        "pdf"
      ],
      "title": "ContentType"
    },
    "DatasetTypes": {
      "type": "string",
      "enum": [
        "study_break",
        "research",
        "sample",
        "inactive_customer",
        "test",
        "customer"
      ],
      "title": "DatasetTypes"
    },
    "ProjectResponse": {
      "properties": {
        "org_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Org Id",
          "default": 1
        },
        "name": {
          "type": "string",
          "maxLength": 60,
          "minLength": 1,
          "title": "Name"
        },
        "content_type": {
          "$ref": "#/$defs/ContentType"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "contains_image_series": {
          "type": "boolean",
          "title": "Contains Image Series",
          "default": false
        },
        "copy_files": {
          "type": "boolean",
          "title": "Copy Files"
        },
        "views": {
          "anyOf": [
            {
              "items": {
                "type": "string",
                "maxLength": 20,
                "minLength": 1
              },
              "type": "array",
              "maxLength": 10,
              "minLength": 1,
              "unique_items": true
            },
            {
              "type": "null"
            }
          ],
          "title": "Views"
        },
        "project_id": {
          "type": "integer",
          "title": "Project Id"
        },
        "task_types": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Task Types",
          "description": "Distinct task types used in this project"
        },
        "dataset_type": {
          "anyOf": [
            {
              "$ref": "#/$defs/DatasetTypes"
            },
            {
              "type": "null"
            }
          ],
          "description": "The dataset type of the project"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At",
          "description": "When the project was created"
        }
      },
      "type": "object",
      "required": [
        "name",
        "content_type",
        "copy_files",
        "project_id"
      ],
      "title": "ProjectResponse"
    }
  }
}