{
  "openapi": "3.1.1",
  "info": {
    "title": "Projects API",
    "description": "Projects with their files, filed jobs, workflow and fields, batch runs, tasks, checklists and people.",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "{{API_BASE_URL}}",
      "description": "Your API environment"
    }
  ],
  "tags": [
    {
      "name": "Projects"
    },
    {
      "name": "Members"
    },
    {
      "name": "Workflow"
    },
    {
      "name": "Fields"
    },
    {
      "name": "Batches"
    },
    {
      "name": "Files"
    },
    {
      "name": "Processes"
    },
    {
      "name": "Tasks"
    },
    {
      "name": "Task statuses"
    },
    {
      "name": "Task members"
    },
    {
      "name": "Checklists"
    },
    {
      "name": "Activity"
    },
    {
      "name": "Analytics"
    },
    {
      "name": "Portfolio"
    }
  ],
  "paths": {
    "/v1/checklist-item/{id}": {
      "patch": {
        "operationId": "update-a-checklist-item",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Checklist item id.",
            "schema": {
              "type": "string",
              "examples": [
                "f1888af0-9baa-444f-b513-4c5b428071a0"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateChecklistItemDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Every checklist of the task, after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChecklistDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "An assignee is not in your organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Checklist item not found`, or its task is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a checklist item",
        "tags": [
          "Checklists"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `checklist:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Tick or untick an item, rename it, change its due date, or replace its assignees.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/checklist/{id}": {
      "patch": {
        "operationId": "update-a-checklist",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Checklist id.",
            "schema": {
              "type": "string",
              "examples": [
                "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateChecklistDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Every checklist of the task, after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChecklistDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Checklist not found`, or its task is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a checklist",
        "tags": [
          "Checklists"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `checklist:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Rename a checklist, move it among the task’s checklists, or change whether it blocks approval.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/checklist/{id}/items": {
      "post": {
        "operationId": "add-a-checklist-item",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Checklist id.",
            "schema": {
              "type": "string",
              "examples": [
                "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateChecklistItemDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Every checklist of the task, after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChecklistDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "An assignee is not in your organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Checklist not found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Add a checklist item",
        "tags": [
          "Checklists"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `checklist:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Add an item at the end of a checklist, optionally with assignees and a due date. Assigned items show up in each assignee’s List my work.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/checklist/{id}/items/order": {
      "put": {
        "operationId": "reorder-checklist-items",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Checklist id.",
            "schema": {
              "type": "string",
              "examples": [
                "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReorderChecklistItemsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Every checklist of the task, after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChecklistDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The ids are not exactly this checklist’s items.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Checklist not found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Reorder checklist items",
        "tags": [
          "Checklists"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `checklist:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Set the order of a checklist’s items. Send every item id once.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project": {
      "get": {
        "operationId": "list-projects",
        "parameters": [
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page, from 1.",
            "schema": {
              "default": 1,
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Projects per page, 1 to 200. Grouped views (list by status, board) load up to 200 at once.",
            "schema": {
              "default": 20,
              "type": "number",
              "examples": [
                20
              ]
            }
          },
          {
            "name": "q",
            "required": false,
            "in": "query",
            "description": "Keep only projects whose name contains this (any case).",
            "schema": {
              "type": "string",
              "examples": [
                "brochure"
              ]
            }
          },
          {
            "name": "statusGroup",
            "required": false,
            "in": "query",
            "description": "Keep only projects whose status is in this group: `NOT_STARTED`, `ACTIVE`, `DONE` or `CLOSED`.",
            "schema": {
              "type": "string",
              "enum": [
                "NOT_STARTED",
                "ACTIVE",
                "DONE",
                "CLOSED"
              ],
              "examples": [
                "ACTIVE"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Keep only projects with this exact status id.",
            "schema": {
              "type": "string",
              "examples": [
                "QvCQT30CEfb8OaDJQKI5g"
              ]
            }
          },
          {
            "name": "mode",
            "required": false,
            "in": "query",
            "description": "Keep only `cosmos` (workflow) or `manual` projects.",
            "schema": {
              "type": "string",
              "enum": [
                "manual",
                "cosmos"
              ],
              "examples": [
                "manual"
              ]
            }
          },
          {
            "name": "starred",
            "required": false,
            "in": "query",
            "description": "Send `true` for only the projects you starred.",
            "schema": {
              "type": "string",
              "examples": [
                "false"
              ]
            }
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "description": "Sort by status (the order of your statuses, then newest), last change, creation, name or due date.",
            "schema": {
              "default": "status",
              "type": "string",
              "enum": [
                "updatedAt",
                "createdAt",
                "name",
                "endDate",
                "status"
              ],
              "examples": [
                "updatedAt"
              ]
            }
          },
          {
            "name": "order",
            "required": false,
            "in": "query",
            "description": "Sort direction. Defaults to `DESC` for dates and `ASC` for name.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ],
              "examples": [
                "DESC"
              ]
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Read one status page by page: pass `status`, then each page’s `nextCursor` here for the next. Projects come in their manual order; `page` is ignored.",
            "schema": {
              "type": "string",
              "examples": [
                "WzEwMjQsIjExMTExMTExLTExMTEtNDExMS04MTExLTExMTExMTExMTExMSJd"
              ]
            }
          },
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal`: only projects you lead, belong to, created, or have a task in. A role restricted to its own work always gets `personal`.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ],
              "examples": [
                "org"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of projects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List projects",
        "tags": [
          "Projects"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The projects you can see, a page at a time, with counts per status group for status tabs. A project is visible to you when it is shared with the whole organization (`visibility: org`), when you lead or belong to it, or when your role manages every project. With `scope=personal` (always on for roles restricted to their own work) you get only projects you lead, belong to, created, or have a task in.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "create-a-project",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, the status or priority is not one of your organization’s, a lead or member is not in your organization, or (`Task status preset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "A project with this name already exists (`A project named \"<name>\" already exists.`). Names are unique ignoring case.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create a project",
        "tags": [
          "Projects"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Create a project. You become its first lead. Its folder `Projects/<name>/` is created in your drive straight away — upload into it with the Assets API (List assets with `projectId` returns it). The project gets its own task statuses, copied from `taskStatusPresetId` or the built-in preset.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project-portfolio": {
      "get": {
        "operationId": "summarize-your-projects",
        "parameters": [
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal`: only projects you lead, belong to, created or have a task in, and only your own tasks and time in them. A role restricted to its own work always gets `personal`.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ],
              "examples": [
                "org"
              ]
            }
          },
          {
            "name": "q",
            "required": false,
            "in": "query",
            "description": "Keep only projects whose name contains this (any case).",
            "schema": {
              "type": "string",
              "examples": [
                "brochure"
              ]
            }
          },
          {
            "name": "statusGroup",
            "required": false,
            "in": "query",
            "description": "Keep only projects whose status is in this group.",
            "schema": {
              "type": "string",
              "enum": [
                "NOT_STARTED",
                "ACTIVE",
                "DONE",
                "CLOSED"
              ],
              "examples": [
                "ACTIVE"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Keep only projects with this exact status id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lead",
            "required": false,
            "in": "query",
            "description": "Keep only projects where this member is a `LEAD` project member. Creating a project does not count.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "name": "due",
            "required": false,
            "in": "query",
            "description": "`overdue`: open projects past their due date. `week` / `month`: due in the next 7 / 30 days. `none`: no due date.",
            "schema": {
              "type": "string",
              "enum": [
                "overdue",
                "week",
                "month",
                "none"
              ],
              "examples": [
                "week"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortfolioSummaryDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Summarize your projects",
        "tags": [
          "Portfolio"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.\n\nTime (minutes logged and planned) is filled only for members who keep timesheets (`timesheet:read_own`): team readers and managers get everyone’s, a project’s leads its whole team’s, anyone else their own. Cost needs `member_rate:read` too. Otherwise those fields are `null`.",
            "position": "after-description"
          }
        ],
        "description": "Totals across the projects you can see (the same projects as List projects, with its `scope`): projects per status group, overdue and at risk; tasks per status group, overdue and due this week; runs running, failed and waiting for an approval; time logged and planned; and an 8-week trend of tasks completed, created and overdue. Filters narrow it like the table.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project-portfolio/projects": {
      "get": {
        "operationId": "list-your-projects-with-their-progress",
        "parameters": [
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal`: only projects you lead, belong to, created or have a task in, and only your own tasks and time in them. A role restricted to its own work always gets `personal`.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ],
              "examples": [
                "org"
              ]
            }
          },
          {
            "name": "q",
            "required": false,
            "in": "query",
            "description": "Keep only projects whose name contains this (any case).",
            "schema": {
              "type": "string",
              "examples": [
                "brochure"
              ]
            }
          },
          {
            "name": "statusGroup",
            "required": false,
            "in": "query",
            "description": "Keep only projects whose status is in this group.",
            "schema": {
              "type": "string",
              "enum": [
                "NOT_STARTED",
                "ACTIVE",
                "DONE",
                "CLOSED"
              ],
              "examples": [
                "ACTIVE"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Keep only projects with this exact status id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lead",
            "required": false,
            "in": "query",
            "description": "Keep only projects where this member is a `LEAD` project member. Creating a project does not count.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "name": "due",
            "required": false,
            "in": "query",
            "description": "`overdue`: open projects past their due date. `week` / `month`: due in the next 7 / 30 days. `none`: no due date.",
            "schema": {
              "type": "string",
              "enum": [
                "overdue",
                "week",
                "month",
                "none"
              ],
              "examples": [
                "week"
              ]
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "schema": {
              "default": 1,
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "1 to 100.",
            "schema": {
              "default": 25,
              "type": "number",
              "examples": [
                25
              ]
            }
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "description": "Due date, name, progress (done / all tasks), overdue tasks, failed runs, approvals waiting, hours logged or last activity. Empty values sort last.",
            "schema": {
              "default": "due",
              "type": "string",
              "enum": [
                "name",
                "due",
                "progress",
                "overdue",
                "failed",
                "approvals",
                "hours",
                "activity"
              ]
            }
          },
          {
            "name": "order",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ],
              "examples": [
                "ASC"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortfolioPageDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List your projects with their progress",
        "tags": [
          "Portfolio"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.\n\nTime (minutes logged and planned) is filled only for members who keep timesheets (`timesheet:read_own`): team readers and managers get everyone’s, a project’s leads its whole team’s, anyone else their own. Cost needs `member_rate:read` too. Otherwise those fields are `null`.",
            "position": "after-description"
          }
        ],
        "description": "One page of the projects you can see, each with its progress (done / all tasks), health (`overdue`, `at_risk`, `on_track` or `done`), tasks overdue and due this week, runs running / failed / waiting for an approval, time logged against planned, its leads and when it last changed. Sort by any of them.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project-portfolio/words": {
      "get": {
        "operationId": "proofreading-across-your-projects",
        "parameters": [
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal`: only projects you lead, belong to, created or have a task in, and only your own tasks and time in them. A role restricted to its own work always gets `personal`.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ],
              "examples": [
                "org"
              ]
            }
          },
          {
            "name": "q",
            "required": false,
            "in": "query",
            "description": "Keep only projects whose name contains this (any case).",
            "schema": {
              "type": "string",
              "examples": [
                "brochure"
              ]
            }
          },
          {
            "name": "statusGroup",
            "required": false,
            "in": "query",
            "description": "Keep only projects whose status is in this group.",
            "schema": {
              "type": "string",
              "enum": [
                "NOT_STARTED",
                "ACTIVE",
                "DONE",
                "CLOSED"
              ],
              "examples": [
                "ACTIVE"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Keep only projects with this exact status id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lead",
            "required": false,
            "in": "query",
            "description": "Keep only projects where this member is a `LEAD` project member. Creating a project does not count.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "name": "due",
            "required": false,
            "in": "query",
            "description": "`overdue`: open projects past their due date. `week` / `month`: due in the next 7 / 30 days. `none`: no due date.",
            "schema": {
              "type": "string",
              "enum": [
                "overdue",
                "week",
                "month",
                "none"
              ],
              "examples": [
                "week"
              ]
            }
          },
          {
            "name": "period",
            "required": false,
            "in": "query",
            "description": "Proofreading edited in the last 7, 30 or 90 days, or all time. Default `30d`.",
            "schema": {
              "type": "string",
              "enum": [
                "7d",
                "30d",
                "90d",
                "all"
              ],
              "examples": [
                "30d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortfolioWordsDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Proofreading across your projects",
        "tags": [
          "Portfolio"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Proofreading in the projects you can see (the same projects and filters as Summarize your projects) over a period: words reviewed (each segment once per linguist, at its length after their last edit) and words edited (added + removed), the average per project that had any, per language pair, and the 5 projects with the most. With `scope=personal`, only your own work.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project-runs/mine": {
      "get": {
        "operationId": "list-runs-that-need-me",
        "parameters": [
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page number (from 1). Send `page` or `size` for one page and its total; send neither for the whole list.",
            "schema": {
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "size",
            "required": false,
            "in": "query",
            "description": "Rows per page (1–100).",
            "schema": {
              "type": "number",
              "examples": [
                10
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyRunsDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List runs that need me",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Runs waiting for an approval from you — on tasks assigned to you (a step’s owners are assigned when the task reaches it) and in projects you lead — oldest wait first, each with its approval steps to approve or reject. And failed runs in the projects you lead, newest first, while the workflow still owns the task. Up to 100 of each, across the projects you can see; send `page`/`size` for one page of the approvals and their total.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project-runs/summary": {
      "get": {
        "operationId": "summarize-runs",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunsSummaryDto"
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Summarize runs",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Counts across the projects you can see, for a dashboard: tasks whose run waits for an approval (and how many wait for you), is running, failed, or completed in the last 7 days, and open tasks past their due date.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}": {
      "get": {
        "operationId": "get-a-project",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such project in your organization, or it is hidden from you (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a project",
        "tags": [
          "Projects"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One project with its members, task counts and the number of galaxy processes filed under it.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "update-a-project",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProjectDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or the status or priority is not one of your organization’s.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such project, or it is hidden from you (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Another project already has this name.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a project",
        "tags": [
          "Projects"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change any of the fields you send. Renaming the project also renames its folder in your drive.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/activity": {
      "get": {
        "operationId": "list-project-activity",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "The previous page’s `nextCursor`, for the page after it.",
            "schema": {
              "type": "string",
              "examples": [
                "WyIyMDI2LTEwLTA2IDAyOjExOjQ4LjAxMDEyMyswMCIsIjYxYyJd"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Entries per page.",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 30,
              "type": "number",
              "examples": [
                30
              ]
            }
          },
          {
            "name": "kind",
            "required": false,
            "in": "query",
            "description": "Only one kind: `project` (the project itself), `tasks`, `checklists`, or `workflow` (workflow, fields, step owners and checklists, batches and runs).",
            "schema": {
              "type": "string",
              "enum": [
                "project",
                "tasks",
                "checklists",
                "workflow"
              ],
              "examples": [
                "tasks"
              ]
            }
          },
          {
            "name": "actor",
            "required": false,
            "in": "query",
            "description": "Only what this user did (their user id).",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityPageDto"
                }
              }
            }
          },
          "400": {
            "description": "The cursor is not one this API returned, or a filter is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List project activity",
        "tags": [
          "Activity"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What happened in a project, newest first: changes to the project, its workflow, fields and batches, and to every task and checklist in it. Each entry says who did it (`null` for automation), what (`action`, and `summary` as a sentence) and when. Filter by `kind` or `actor`; page with `cursor`.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/analytics": {
      "get": {
        "operationId": "get-project-analytics",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "period",
            "required": false,
            "in": "query",
            "description": "The last 7, 30 or 90 days (compared with the same length before), or all time.",
            "schema": {
              "default": "30d",
              "type": "string",
              "enum": [
                "7d",
                "30d",
                "90d",
                "all"
              ],
              "examples": [
                "30d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectAnalyticsDto"
                }
              }
            }
          },
          "400": {
            "description": "`period` is not one of `7d`, `30d`, `90d` or `all`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get project analytics",
        "tags": [
          "Analytics"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.\n\n`credits` is filled only for members who may see credit usage (`credits:read`); for everyone else it is `null`.",
            "position": "after-description"
          }
        ],
        "description": "How a project is going over a `period` (7, 30 or 90 days, compared with the same length before, or all time): headline numbers, progress (burn-up, tasks per status, due dates), flow (tasks per status day by day, time in each status, approval waits), workflow runs (outcomes, durations, failures by step and reason, re-runs, batches), credits, people, language pairs and files. Time series share `period.buckets` — by day, or by week past 92 days. In Personal view only your own tasks count.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/assignment-rules": {
      "put": {
        "operationId": "set-assignment-rules",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetAssignmentRulesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFieldsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A step is not one of the project’s, a rule names nobody (only a pool rule may), or a person is not a current member of your organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set assignment rules",
        "tags": [
          "Workflow"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:assign`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Say who takes work nobody named by hand: rules by step (`nodeId`, or `null` for the task itself) and language pair, in order — the first that matches decides. `fixed` gives it to everyone named, `balance` to the named person with the least open work, `pool` offers it for an eligible person to claim. Rules come after a task’s own named owners and the step’s owners, and before the deal and the org’s preferred linguists. Replaces the whole list; `poolLimit` caps how many open pool tasks one person holds in the project.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/batches": {
      "get": {
        "operationId": "list-batches",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BatchDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List batches",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The project’s 50 most recent batches, newest first.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "start-a-batch",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "Idempotency-Key",
            "required": false,
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Any unique string (up to 100 characters). Repeating a start with the same key returns the first batch instead of starting another."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartBatchDto"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchDto"
                }
              }
            }
          },
          "400": {
            "description": "The batch is blocked (no workflow, required fields missing, a step you can’t run, no files to run, more than 200 files), or `That folder isn’t in this project`, or the folder holds too many files and folders to scan.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "`InsufficientCredits`: the balance doesn’t cover one credit per paid step for every file. Nothing is created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 402,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The workflow was edited since it was attached. Sync it first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Start a batch",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update` and `task:create` and `cosmos:execute`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Run the project’s workflow on every file in a folder. Each file gets a task (named after the file) and its own run, which starts with the project’s field values, then the task’s overrides, then the file. Tasks are created at once and the runs are started in the background, so this returns `202` with the batch; poll it or the project’s tasks for progress. A run that can’t start fails only its own task, which can run again. Send an `Idempotency-Key` header to make a retried request return the same batch.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/batches/{batchId}": {
      "get": {
        "operationId": "get-a-batch",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "batchId",
            "required": true,
            "in": "path",
            "description": "Batch id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you. Or `Batch not found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a batch",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One batch and its progress: how many runs started, how many couldn’t, and where its outputs are filed.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/batches/preview": {
      "post": {
        "operationId": "preview-a-batch",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchScopeDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchPreviewDto"
                }
              }
            }
          },
          "400": {
            "description": "`That folder isn’t in this project`, or the folder holds too many files and folders to scan.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Preview a batch",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update` and `task:create` and `cosmos:execute`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What running the project’s workflow on a folder would do: the files it takes (in path order, flagging the ones that already ran), the files it skips and why, the credits the balance must cover to start, and anything that stops it from starting (`blocked`). Creates nothing.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/custom-fields": {
      "put": {
        "operationId": "replace-custom-fields",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaceCustomFieldsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFieldsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, an `id` is not a field of this project, or a `select` field has no options.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Replace custom fields",
        "tags": [
          "Fields"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Send every custom field of the project, in order. Keep a field’s `id` to keep it and its values; a field without an `id` is new; a field left out is removed, with its values on the project and its tasks.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/field-values": {
      "patch": {
        "operationId": "set-project-field-values",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFieldValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFieldsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A key is not a field of the project, a custom field’s value has the wrong type, a value is over 20 KB, or the key is the per-file input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set project field values",
        "tags": [
          "Fields"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Set the project’s values — the defaults every run on the project starts with. Keys you leave out keep their value; `null` clears one. The input that takes one file per task can’t be set here.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/fields": {
      "get": {
        "operationId": "get-project-fields",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFieldsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get project fields",
        "tags": [
          "Fields"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The attached workflow (with the run inputs and steps the project was built from), every field — workflow inputs in run order, then custom fields — the project’s values, and what is still missing before it is ready to run.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/files/stats": {
      "get": {
        "operationId": "get-project-file-totals",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Totals.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFilesStatsDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such project, or it is hidden from you (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get project file totals",
        "tags": [
          "Files"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "How many files and sub-folders the project folder holds, and their total size. To list, upload or download the files themselves, use the Assets API with `projectId`.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/language-links": {
      "put": {
        "operationId": "set-language-mapping",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetLanguageLinksDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFieldsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The workflow is not attached, a key is not one of its language fields, a field is mapped to both languages, or one task with all languages is asked for a target field that takes one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set language mapping",
        "tags": [
          "Workflow"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Choose which language fields of a workflow’s steps the run’s languages fill: the source language in every field of `source`, the target language(s) in every field of `target` (`key`s from its `languageFields`). The languages themselves are the project’s (`sourceLanguage`, `targetLanguages`), changeable for one run. Fields not mapped keep the workflow’s own value. `oneTaskPerLanguage` decides whether a run in several target languages makes a task per language or one task with all of them.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/linked-folders": {
      "get": {
        "operationId": "list-linked-directories",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LinkedFolderDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List linked directories",
        "tags": [
          "Files"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The Assets directories and single files linked into the project. A directory comes with how many files it holds (at any depth) and how many have not run in the project yet; a file with its Assets row (`file`) and whether it has run. One you can’t open in Assets is listed without its name.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "link-an-assets-directory-or-file",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkFolderDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedFolderDto"
                }
              }
            }
          },
          "400": {
            "description": "No `assetId`; it is inside `Projects` or `Deals` or this project’s own folder; or the project already links 20 directories (200 files).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such project, directory or file for you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "It is already linked to this project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Link an Assets directory or file",
        "tags": [
          "Files"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Link an Assets directory or a single file into the project, live. A directory’s files — and files added to it later — show in the project, and a folder run (`folderId` = the directory) can work on them. A linked file shows on its own, and a run on its directory with `assetIds` = the file can work on it. Nothing is copied and nothing runs by itself. At most 20 directories and 200 files per project.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/linked-folders/{linkId}/files": {
      "get": {
        "operationId": "list-a-linked-directory-s-files",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "linkId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "folderId",
            "required": false,
            "in": "query",
            "description": "A directory inside the linked one to list instead of the linked one itself.",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "name": "keyword",
            "required": false,
            "in": "query",
            "description": "Keep only names containing this.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "schema": {
              "default": 1,
              "type": "number"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "1 to 100.",
            "schema": {
              "default": 25,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedFilesDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The resource does not exist, or you cannot see it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List a linked directory’s files",
        "tags": [
          "Files"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One page of what is in a linked directory now (or `folderId`, a directory inside it): folders first, then files, as the Assets listing returns them, each file with `notRun` while it has not run in this project.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/move": {
      "post": {
        "operationId": "move-a-project",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MoveProjectDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The project in its new place.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The status is not one of your organization’s, or `afterId` is not a project with that status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such project, or it is hidden from you (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Move a project",
        "tags": [
          "Projects"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What a drag on the projects board or grouped list sends: the status the project lands in and the project it lands right after (`afterId`; omit it for the top). Changes status and position together; the order is shared by everyone in the organization. To change only the status, `PATCH` the project instead — it goes to the bottom of the new status.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/processes": {
      "get": {
        "operationId": "list-processes-in-a-project",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "source",
            "required": false,
            "in": "query",
            "description": "Only this kind of process: `translate_video` (Video Dubbing jobs), `translate_photo` (image translation batches), `tp_image` (single image translations), `tp_adapt` (design adaptations), `quality_control` (QC runs), `cosmos` (workflow runs), `playground` (Playground documents), `blog` (blog posts) or `performance_marketing` (Performance Marketing ad experiments). Omit it for every kind.",
            "schema": {
              "type": "string",
              "enum": [
                "translate_video",
                "translate_photo",
                "tp_adapt",
                "tp_image",
                "quality_control",
                "cosmos",
                "playground",
                "blog",
                "performance_marketing"
              ],
              "examples": [
                "translate_video"
              ]
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page number, from 1.",
            "schema": {
              "default": 1,
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "size",
            "required": false,
            "in": "query",
            "description": "Processes per page, from 1 to 100.",
            "schema": {
              "default": 20,
              "type": "number",
              "examples": [
                20
              ]
            }
          },
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal`: only processes you created or are assigned to (an API key acts as the member who created it). `org`: every process you can read. A role restricted to its own work always gets `personal`.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ],
              "examples": [
                "org"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of processes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectProcessesResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such project, or it is hidden from you (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List processes in a project",
        "tags": [
          "Processes"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The galaxy processes filed under a project — Video Dubbing jobs, image translations, adaptations, Quality Control runs, workflow runs and Playground documents — newest first, with a count per kind. Only kinds your organization has and your key can read are included. To file a process, use the `project` move route of its own API, or pass `projectId` when you start it.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/run-outcomes": {
      "put": {
        "operationId": "set-run-outcome-statuses",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetRunOutcomesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFieldsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The project has no workflow, or a value is not one of its statuses.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set run outcome statuses",
        "tags": [
          "Workflow"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Choose the status a task moves to when its run completes, fails or is cancelled — one of the project’s statuses, or `null` for the workflow’s own Processed, Failed or Cancelled. A task in its outcome status moves again when it is run again; one a person moved to any other status of the team’s own stays there.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/step-checklists": {
      "put": {
        "operationId": "set-step-checklists",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetProjectStepChecklistsDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFieldsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The project has no workflow, a key is not a step of the workflow, a checklist has no title or more than 200 characters in it, no items or more than 50, an item over 500 characters, or `blocksApproval` on a step that is not an approval.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set step checklists",
        "tags": [
          "Workflow"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Give steps of the project’s workflow a checklist, by the step’s `nodeId` (from `workflow.steps`). Replaces the whole set. When a task enters the step, the checklist is added to it — once per task and step — with every item assigned to the step’s owners. On an approval step, `blocksApproval: true` holds the approval until every item is done: Approve a step answers 409 until then.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/step-modes": {
      "put": {
        "operationId": "set-step-modes",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetProjectStepModesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFieldsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The project has no workflow, a key is not a step of the workflow, or a value is not `auto` or `manual`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set step modes",
        "tags": [
          "Workflow"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:assign`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Say which steps of the project’s workflow a lead assigns by hand (`manual`); the rest are automatic — a step’s owners if it has any, else (a review step in a deal) the best-matching proofreader for the task’s language pair. Replaces the whole set.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/step-owners": {
      "put": {
        "operationId": "set-step-owners",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetProjectStepOwnersDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFieldsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The project has no workflow, a key is not a step of the workflow, a value is not a list of member ids, an owner is not in your organization, or a step has more than 50 owners.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set step owners",
        "tags": [
          "Workflow"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:assign`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Say who owns each step of the project’s workflow, by the step’s `nodeId` (from `workflow.steps`). Replaces the whole set. Each run a batch starts gets them as its step owners — they are told when their step finishes or waits for approval — and a task sitting in a step is assigned to that step’s owners, replacing the previous step’s. People assigned by hand are never removed.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/tasks/run": {
      "post": {
        "operationId": "run-several-tasks-again",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunTasksDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunTasksResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Run several tasks again",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:update` and `cosmos:execute`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Run chosen tasks of the project again, each exactly as Run a task again with no changes: its last workflow, its own file and languages. Tasks start one after the other, each charged as it starts. A task that can’t start is listed under `skipped` with the reason (its run is still going, it has no file…); once the balance runs out, the rest are skipped.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/workflow": {
      "put": {
        "operationId": "attach-a-workflow",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttachWorkflowDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFieldsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The workflow isn’t published yet, `fanOutKey` is not one of its file inputs, or the project already has 10 workflows.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you. Or no such workflow (`Flow <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Attach a workflow",
        "tags": [
          "Workflow"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update` and `cosmos:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Attach a published Cosmos workflow to the project, or change which input of an attached one takes one file per task. A project can have up to 10 workflows; the first is the default (`makeDefault` moves it), and a run picks one. A ready-made workflow (`isSystem`) is attached as your organization’s own copy of it: made on first use, then reused, and listed with your workflows. Its run inputs become workflow fields beside the other workflows’; values already set for inputs that still exist are kept.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/workflow-languages": {
      "put": {
        "operationId": "set-workflow-languages",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetWorkflowLanguagesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFieldsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The workflow is not attached, only one of source and targets is given, a language is not in the catalog, or a target is the source.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set workflow languages",
        "tags": [
          "Workflow"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Give one attached workflow its own languages — a `sourceLanguage` and one or more `targetLanguages` (BCP-47 codes) — in place of the project’s. Its runs then use them, one task per target language like the project’s, and fields mapped to the workflow’s languages (`workflow` in Set language mapping) take them; fields mapped to the project’s keep the project’s. Send neither to use the project’s languages again: fields mapped to the workflow’s then read as the project’s. No other workflow or project setting changes.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/workflow/changes": {
      "get": {
        "operationId": "preview-workflow-changes",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "flowId",
            "required": false,
            "in": "query",
            "description": "Which attached workflow (see `workflows`). Left out: the default one.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowChangesResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The project has no workflow attached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you. Or the workflow was deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Preview workflow changes",
        "tags": [
          "Workflow"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read` and `cosmos:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What syncing would change after the workflow was edited: fields and steps added, removed or changed between the version the project was built from and the current one.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/workflow/default": {
      "put": {
        "operationId": "set-the-default-workflow",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetDefaultWorkflowDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFieldsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The project has no workflow, or that workflow is not attached to it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set the default workflow",
        "tags": [
          "Workflow"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Make one of the project’s attached workflows the default: the one a run uses unless another is picked.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{id}/workflow/sync": {
      "post": {
        "operationId": "sync-the-workflow",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "flowId",
            "required": false,
            "in": "query",
            "description": "Which attached workflow (see `workflows`). Left out: the default one.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectFieldsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The project has no workflow attached, or the workflow is no longer published.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you. Or the workflow was deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Sync the workflow",
        "tags": [
          "Workflow"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update` and `cosmos:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Rebuild the project’s workflow fields from the workflow’s current version. Values of fields that are gone are cleared; the rest are kept. Runs already started keep the version they started with.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{projectId}/members": {
      "get": {
        "operationId": "list-project-members",
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Members.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectMemberDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such project, or it is hidden from you (`Project not found`), or the person is not a member (`Not a member of this project`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List project members",
        "tags": [
          "Members"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The project leads, then its members, each with their role.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "add-project-members",
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddProjectMembersDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Members after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectMemberDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Someone is not in your organization (`Every member must belong to your organization.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such project, or it is hidden from you (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Add project members",
        "tags": [
          "Members"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:assign`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Add people to the project as leads or members. For a project with `visibility: members`, this is also who can see it.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{projectId}/members/{memberId}": {
      "patch": {
        "operationId": "update-a-project-member",
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "memberId",
            "required": true,
            "in": "path",
            "description": "Organization member id.",
            "schema": {
              "type": "string",
              "examples": [
                "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProjectMemberDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Members after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectMemberDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such project, or the person is not a member.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "This would leave the project without a lead (`A project needs at least one lead. Make someone else a lead first.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a project member",
        "tags": [
          "Members"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:assign`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change a member’s role, whether they watch every task, or their weekly capacity (open tasks a week, shown in the Team view).",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{projectId}/pickable-people": {
      "get": {
        "operationId": "list-who-can-take-work",
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PickablePeopleDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Project not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List who can take work",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Everyone in your organization who can be picked to take this project’s work, with the target languages they work in (their linguist profile and known languages) and how many open tasks they hold — for a picker that filters by language.",
        "x-orbitdocs-order": 10,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{projectId}/schedule": {
      "get": {
        "operationId": "get-the-schedule",
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "from",
            "required": true,
            "in": "query",
            "description": "First day of the window (ISO 8601). Tasks whose dates overlap the window are returned.",
            "schema": {
              "type": "string",
              "examples": [
                "2026-10-01"
              ]
            }
          },
          {
            "name": "to",
            "required": true,
            "in": "query",
            "description": "Last day of the window (ISO 8601), at most 400 days after `from`.",
            "schema": {
              "type": "string",
              "examples": [
                "2026-11-30"
              ]
            }
          },
          {
            "name": "q",
            "required": false,
            "in": "query",
            "description": "Keep only tasks whose title contains this (any case).",
            "schema": {
              "type": "string",
              "examples": [
                "brochure"
              ]
            }
          },
          {
            "name": "assignee",
            "required": false,
            "in": "query",
            "description": "`me`, or a member id: keep only tasks assigned to them.",
            "schema": {
              "type": "string",
              "examples": [
                "me"
              ]
            }
          },
          {
            "name": "file",
            "required": false,
            "in": "query",
            "description": "Keep only the tasks on this Drive file (the file a task runs on).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal`: only tasks you created or are assigned to. Always on for roles restricted to their own work.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ],
              "examples": [
                "org"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectScheduleDto"
                }
              }
            }
          },
          "400": {
            "description": "`from` or `to` is not a date, `to` is before `from`, or the window is longer than 400 days.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get the schedule",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The tasks whose dates overlap a window (`from`–`to`, up to 400 days), earliest first, with the open tasks that have no dates, and the workload of each person on the project: open, overdue, unscheduled and waiting tasks, open checklist items, weekly capacity and what they finished in the last 7 days. `q` and `assignee` narrow the tasks; the workload counts cover the whole project. In Personal view you only see tasks you created or are on.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{projectId}/task-statuses": {
      "get": {
        "operationId": "get-task-statuses",
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Statuses and priorities.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskStatusesResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get task statuses",
        "tags": [
          "Task statuses"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The statuses (in four groups: not started, active, done, closed) and priorities a project’s tasks use.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "operationId": "replace-task-statuses",
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTaskStatusesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The statuses now.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskStatusesResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or no status is left (`A project needs at least one task status.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`TEMPLATE_REMAP_REQUIRED`: a removed status is still used; the body lists `statuses: [{ id, tasks }]`. Send them again with `remap`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Replace task statuses",
        "tags": [
          "Task statuses"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Send the full set of statuses (and optionally priorities). Keep an existing status by sending its `id`; a status without an `id` is new. Removing a status that tasks still use needs `remap`, which moves those tasks to a status you keep.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{projectId}/tasks": {
      "get": {
        "operationId": "list-tasks",
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page, from 1.",
            "schema": {
              "default": 1,
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Tasks per page, 1 to 200.",
            "schema": {
              "default": 50,
              "type": "number",
              "examples": [
                50
              ]
            }
          },
          {
            "name": "q",
            "required": false,
            "in": "query",
            "description": "Keep only tasks whose title contains this (any case).",
            "schema": {
              "type": "string",
              "examples": [
                "brochure"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Comma-separated status ids to keep.",
            "schema": {
              "type": "string",
              "examples": [
                "H9UQxTGsGLyP40zMAvAzV"
              ]
            }
          },
          {
            "name": "assignee",
            "required": false,
            "in": "query",
            "description": "`me`, or a member id: keep only tasks assigned to them. `none`: only tasks nobody is assigned.",
            "schema": {
              "type": "string",
              "examples": [
                "me"
              ]
            }
          },
          {
            "name": "priority",
            "required": false,
            "in": "query",
            "description": "Comma-separated priority ids to keep.",
            "schema": {
              "type": "string",
              "examples": [
                "OnE7lr3sHpKLiBAc9-S0O"
              ]
            }
          },
          {
            "name": "due",
            "required": false,
            "in": "query",
            "description": "`overdue` (due before today, not done), `today`, `week` (due in the next 7 days) or `none` (no due date).",
            "schema": {
              "type": "string",
              "enum": [
                "overdue",
                "today",
                "week",
                "none"
              ],
              "examples": [
                "week"
              ]
            }
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "description": "Sort order.",
            "schema": {
              "default": "status",
              "type": "string",
              "enum": [
                "status",
                "updatedAt",
                "createdAt",
                "endDate",
                "title"
              ],
              "examples": [
                "endDate"
              ]
            }
          },
          {
            "name": "order",
            "required": false,
            "in": "query",
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ],
              "examples": [
                "ASC"
              ]
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "Read one status page by page: pass `status` with a single status id, then each page’s `nextCursor` here for the next. Tasks come in their manual order; `page` is ignored.",
            "schema": {
              "type": "string",
              "examples": [
                "WzEwMjQsIjExMTExMTExLTExMTEtNDExMS04MTExLTExMTExMTExMTExMSJd"
              ]
            }
          },
          {
            "name": "file",
            "required": false,
            "in": "query",
            "description": "Keep only the tasks on this Drive file (the file a task runs on).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal`: only tasks you created or are assigned to. Always on for roles restricted to their own work.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ],
              "examples": [
                "org"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of tasks.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List tasks",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The tasks of a project, a page at a time, in the order of its statuses by default. `countsByStatus` gives the number of tasks per status (ignoring the `status` filter) for board columns. In Personal view you only see tasks you created or are on.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "create-a-task",
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTaskDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new task.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, the status or priority is not one of the project’s, or an assignee is not in your organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create a task",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Add a task to a project, optionally assigning people to it.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{projectId}/tasks/assign": {
      "post": {
        "operationId": "assign-tasks-in-bulk",
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAssignDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkAssignResultDto"
                }
              }
            }
          },
          "400": {
            "description": "No tasks match, more than 2000 do (narrow the filter), a step is not one of the project’s, or the mode is missing its people.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Project not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Assign tasks in bulk",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:assign`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Carry out the plan Preview shows: one person, a split across people (the least busy first), by target language, or offered to the pool. A task on the chosen step now is handed over at once; any other keeps the person for when its run gets there. A person’s choice is never replaced by automation. One notice per person and one audit entry.",
        "x-orbitdocs-order": 12,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{projectId}/tasks/assign/preview": {
      "post": {
        "operationId": "preview-a-bulk-assignment",
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkAssignDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkPlanDto"
                }
              }
            }
          },
          "400": {
            "description": "No tasks match, more than 2000 do (narrow the filter), a step is not one of the project’s, or the mode is missing its people.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Project not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Preview a bulk assignment",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:assign`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Who would get which of the selected tasks (or one step of each), with each person’s current open work, capacity and warnings — nothing is changed. Select by `taskIds` or by a `filter` (\"select all matching\", up to 2000).",
        "x-orbitdocs-order": 11,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{projectId}/tasks/by-file": {
      "get": {
        "operationId": "count-tasks-per-file",
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "assetIds",
            "required": true,
            "in": "query",
            "description": "Comma-separated Drive file ids, at most 200.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal`: count only tasks you created or are assigned to. Always on for roles restricted to their own work.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ],
              "examples": [
                "org"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The files with tasks, and how many.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileTasksResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Count tasks per file",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For each of the given Drive files, how many of the project’s tasks run on it, with the file’s name. Files with no tasks you can see are left out. In Personal view only your tasks count.",
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/{projectId}/workload": {
      "get": {
        "operationId": "get-the-team-s-workload",
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "path",
            "description": "Project id.",
            "schema": {
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "q",
            "required": false,
            "in": "query",
            "description": "Count only tasks whose title contains this (any case).",
            "schema": {
              "type": "string",
              "examples": [
                "brochure"
              ]
            }
          },
          {
            "name": "file",
            "required": false,
            "in": "query",
            "description": "Count only the tasks on this Drive file (the file a task runs on).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
              ]
            }
          },
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal`: only tasks you created or are assigned to. Always on for roles restricted to their own work.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ],
              "examples": [
                "org"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectTeamDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Project not found`: no such project in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get the team’s workload",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Who has what on a project: for each person — its members (leads first) and anyone assigned work in it — and for the tasks nobody has, the tasks in each status (`byStatus`, finished ones included), how many are finished (`done`, in a Done or Closed status), and the open, overdue, undated and waiting tasks, open checklist items, weekly capacity and work finished in the last 7 days. `q` narrows the tasks counted. In Personal view only your own tasks count.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/project/processes/search": {
      "get": {
        "operationId": "find-a-process-in-any-project",
        "parameters": [
          {
            "name": "source",
            "required": false,
            "in": "query",
            "description": "The kind of process to list (as in `GET /v1/project/{id}/processes`). Omit it for the first kind you can read.",
            "schema": {
              "type": "string",
              "enum": [
                "translate_video",
                "translate_photo",
                "tp_adapt",
                "tp_image",
                "quality_control",
                "cosmos",
                "playground",
                "blog",
                "performance_marketing"
              ],
              "examples": [
                "translate_video"
              ]
            }
          },
          {
            "name": "q",
            "required": false,
            "in": "query",
            "description": "Part of the process’s name, in any case.",
            "schema": {
              "type": "string",
              "examples": [
                "teaser"
              ]
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page number, from 1.",
            "schema": {
              "default": 1,
              "type": "number"
            }
          },
          {
            "name": "size",
            "required": false,
            "in": "query",
            "description": "Processes per page, from 1 to 50.",
            "schema": {
              "default": 20,
              "type": "number"
            }
          },
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal`: only processes you created or are assigned to. A role restricted to its own work always gets `personal`.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectProcessSearchResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Find a process in any project",
        "tags": [
          "Processes"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `project:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Your organization’s processes of one kind, in any project or none, newest first — each with the project it is in. Use it to pick a process for a task (`PUT /v1/task/{id}/process`). Only kinds your organization has and you can read are listed in `sources`.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task-pool": {
      "get": {
        "operationId": "list-work-to-claim",
        "parameters": [
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page number (from 1). Send `page` or `size` for one page and its total; send neither for the whole list.",
            "schema": {
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "size",
            "required": false,
            "in": "query",
            "description": "Rows per page (1–100).",
            "schema": {
              "type": "number",
              "examples": [
                10
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PoolListDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List work to claim",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Tasks (or workflow steps) offered to the pool that you may claim: those naming you, and open offers in a target language you work in. Soonest due first. Send `page`/`size` for one page and the total.",
        "x-orbitdocs-order": 13,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task-pool/{id}/claim": {
      "post": {
        "operationId": "claim-a-task-from-the-pool",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaimResultDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "`This task isn’t offered to you.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Task not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Someone else took it, or you already hold the project’s limit of pool tasks.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Claim a task from the pool",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Take a task (or its offered step). Only one person gets it: a second claim gets 409. Counts against the project’s limit of open pool tasks per person.",
        "x-orbitdocs-order": 14,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{id}": {
      "get": {
        "operationId": "get-a-task",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The task.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task, or it (or its project) is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a task",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One task with its people and checklist progress.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "update-a-task",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTaskDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated task.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or the status or priority is not one of the project’s.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task, or it (or its project) is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a task",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change any of the fields you send, including moving it to another status and its planned hours (`plannedMinutes`; null removes the plan).",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{id}/activity": {
      "get": {
        "operationId": "list-task-activity",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "description": "The previous page’s `nextCursor`, for the page after it.",
            "schema": {
              "type": "string",
              "examples": [
                "WyIyMDI2LTEwLTA2IDAyOjExOjQ4LjAxMDEyMyswMCIsIjYxYyJd"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Entries per page.",
            "schema": {
              "minimum": 1,
              "maximum": 100,
              "default": 30,
              "type": "number",
              "examples": [
                30
              ]
            }
          },
          {
            "name": "kind",
            "required": false,
            "in": "query",
            "description": "Only one kind: `project` (the project itself), `tasks`, `checklists`, or `workflow` (workflow, fields, step owners and checklists, batches and runs).",
            "schema": {
              "type": "string",
              "enum": [
                "project",
                "tasks",
                "checklists",
                "workflow"
              ],
              "examples": [
                "tasks"
              ]
            }
          },
          {
            "name": "actor",
            "required": false,
            "in": "query",
            "description": "Only what this user did (their user id).",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityPageDto"
                }
              }
            }
          },
          "400": {
            "description": "The cursor is not one this API returned, or a filter is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List task activity",
        "tags": [
          "Activity"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What happened to one task, newest first: its edits, moves, people, runs and checklists. Same entries and filters as List project activity.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{id}/field-values": {
      "patch": {
        "operationId": "override-field-values-on-a-task",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFieldValuesDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The task’s overrides after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "taskId": {
                      "type": "string",
                      "format": "uuid",
                      "examples": [
                        "8abfec8a-beeb-4122-9544-cee77dc091d5"
                      ]
                    },
                    "values": {
                      "type": "object",
                      "additionalProperties": true,
                      "examples": [
                        {
                          "translate__tmId": "tm-legal-de"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "A key is not a field of the project, a value has the wrong type or is over 20 KB, or the key is the per-file input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task, or it (or its project) is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Override field values on a task",
        "tags": [
          "Fields"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Override the project’s values for one task — a different translation memory for one file, say. A run on the task uses the project’s values, then these. `null` removes an override.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{id}/file": {
      "get": {
        "operationId": "open-a-task-s-file",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskFileViewDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task, or it (or its project) is hidden from you. Also when the task has no file, or its file has left the Drive.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Open a task’s file",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The file a task works on — its name, type and a URL to open it from.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "operationId": "set-a-task-s-file",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetTaskFileDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskFileDto"
                }
              }
            }
          },
          "400": {
            "description": "The asset is not a file in your organization’s Drive.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task, or it (or its project) is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The task’s run is still going.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set a task’s file",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Give a task the file it works on (a task made by hand, say), so the project’s workflow can run on it — or take it off with `null`. Not while its run is going.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{id}/move": {
      "post": {
        "operationId": "move-a-task",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MoveTaskDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The task in its new place.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The status is not one of the project’s, or `afterId` is not a task in that status.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task, or it (or its project) is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Move a task",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "What a drag on the board or the grouped list sends: the status the task lands in and the task it lands right after (`afterId`; omit it for the top). Changes status and position together. To change only the status from a picker, `PATCH` the task instead — it goes to the bottom of the new status.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{id}/process": {
      "get": {
        "operationId": "get-a-task-s-linked-process",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskProcessResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task, or it (or its project) is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a task’s linked process",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The galaxy process a task made by hand tracks, read live: its name, status and project — or `linked: null`.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "operationId": "link-a-process-to-a-task",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetTaskProcessDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskProcessResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Only one of `source` and `processId` was sent, or the task came from a workflow run.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "You can’t read this kind of process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such task or process, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The process is not in the task’s project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Link a process to a task",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Name the galaxy process a task made by hand tracks, for manual tracking — or unlink it with `source` and `processId` `null`. The process must already be in the task’s project: move it there with its own API first. Linking runs nothing.",
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{id}/run": {
      "get": {
        "operationId": "get-a-task-s-run",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskRunResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a task’s run",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The task’s latest Cosmos run as it is now — each step in run order with its state, who is on it, and an approval’s instructions — and the task’s earlier runs. Anyone who can see the task can read it.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "run-a-task-again",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunTaskDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskRunDto"
                }
              }
            }
          },
          "400": {
            "description": "The task has no file, its file was deleted, the project has no per-file workflow, or required fields are missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "`InsufficientCredits`: the balance doesn’t cover the run’s paid steps.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 402,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The task’s run is still going, or the workflow was edited and needs a sync.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Run a task again",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:update` and `cosmos:execute`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Start a new run on a task’s file — after its run failed or couldn’t start, or to redo it — with the workflow you pick (the one it last ran, by default) and any values changed for this run. The new run joins the task’s history; the old ones stay.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{id}/run/deliverables": {
      "post": {
        "operationId": "file-a-run-s-results-again",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FiledDeliverablesDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The task’s latest run hasn’t finished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "File a run’s results again",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "File the task’s finished run’s results in the project’s Deliverables again — for a filing that failed or half-finished. Files already there are skipped; nothing runs or is charged again.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{id}/step-assignment": {
      "get": {
        "operationId": "get-a-task-s-step-assignment",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StepAssignmentDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a task’s step assignment",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The workflow step the task is in, how it is assigned (fixed owners, by hand, or automatically) and who has it.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "operationId": "reassign-a-task-s-step",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReassignStepDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StepAssignmentDto"
                }
              }
            }
          },
          "400": {
            "description": "The member is not in your organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`This task isn’t in a workflow step right now.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Reassign a task’s step",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:assign`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Hand the task’s current step to someone. The pick sticks: automation won’t replace it while the task is in this step.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{id}/step-assignment/auto": {
      "post": {
        "operationId": "assign-a-task-s-step-automatically-again",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StepAssignmentDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`This task isn’t in a workflow step right now.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Assign a task’s step automatically again",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:assign`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Drop the hand pick for the task’s current step and let the step’s mode decide again.",
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{id}/step-assignment/pass": {
      "post": {
        "operationId": "pass-a-task-s-step-on",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StepAssignmentDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "You are not the step’s assignee.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task in your organization, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "`This task isn’t in a workflow step right now.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Pass a task’s step on",
        "tags": [
          "Batches"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For the step’s assignee who can’t take it: the step goes to the next best person (never back to anyone who passed), and the project’s managers are told.",
        "x-orbitdocs-order": 10,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{taskId}/checklists": {
      "get": {
        "operationId": "list-checklists",
        "parameters": [
          {
            "name": "taskId",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Every checklist of the task, after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChecklistDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`: no such task, or it is hidden from you.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List checklists",
        "tags": [
          "Checklists"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `checklist:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Every checklist of a task with its items, in order.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "create-a-checklist",
        "parameters": [
          {
            "name": "taskId",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateChecklistDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Every checklist of the task, after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChecklistDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create a checklist",
        "tags": [
          "Checklists"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `checklist:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Add a named checklist to a task, optionally with its first items. With `blocksApproval`, a workflow approval step on the task waits until every item is ticked.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{taskId}/members": {
      "get": {
        "operationId": "list-task-members",
        "parameters": [
          {
            "name": "taskId",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Members.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskAssigneeDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found` (no such task, or it is hidden from you) or `Not on this task`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List task members",
        "tags": [
          "Task members"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Assignees and watchers of a task. `source: cosmos_step` marks people the workflow added for the step the task is in.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "add-task-members",
        "parameters": [
          {
            "name": "taskId",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddTaskMembersDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Members after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskAssigneeDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Someone is not in your organization (`Every member must belong to your organization.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Add task members",
        "tags": [
          "Task members"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:assign`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Assign people to a task, or add them as watchers. People added here are never removed by workflow automation.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/{taskId}/members/{memberId}": {
      "patch": {
        "operationId": "update-a-task-member",
        "parameters": [
          {
            "name": "taskId",
            "required": true,
            "in": "path",
            "description": "Task id.",
            "schema": {
              "type": "string",
              "examples": [
                "8abfec8a-beeb-4122-9544-cee77dc091d5"
              ]
            }
          },
          {
            "name": "memberId",
            "required": true,
            "in": "path",
            "description": "Organization member id.",
            "schema": {
              "type": "string",
              "examples": [
                "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTaskMemberDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Members after the change.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskAssigneeDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`Task not found` (no such task, or it is hidden from you) or `Not on this task`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a task member",
        "tags": [
          "Task members"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:assign`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Turn assignment or watching on or off for one person.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/mine": {
      "get": {
        "operationId": "list-my-work",
        "parameters": [
          {
            "name": "kind",
            "required": false,
            "in": "query",
            "description": "With `page`/`size`: which list to page — your tasks or your checklist items. The other comes back empty.",
            "schema": {
              "type": "string",
              "enum": [
                "tasks",
                "items"
              ]
            }
          },
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page number (from 1). Send `page` or `size` to get one page of one list plus its counts; send neither for every open item (up to 500 of each).",
            "schema": {
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "size",
            "required": false,
            "in": "query",
            "description": "Rows per page (1–100).",
            "schema": {
              "type": "number",
              "examples": [
                10
              ]
            }
          },
          {
            "name": "today",
            "required": false,
            "in": "query",
            "description": "Your calendar day (YYYY-MM-DD), for the due groups. Defaults to today in `tz`.",
            "schema": {
              "type": "string",
              "examples": [
                "2026-10-31"
              ]
            }
          },
          {
            "name": "tz",
            "required": false,
            "in": "query",
            "description": "Your time zone (IANA), for the due groups of timed due dates. Defaults to UTC.",
            "schema": {
              "type": "string",
              "examples": [
                "Asia/Kolkata"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Your open work.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyWorkResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List my work",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Everything assigned to you across the projects you can see: open tasks (status not done or closed), soonest due first, and open checklist items. Send `page`/`size` (and `kind`) for one page of one list, with both lists’ totals and the due-group counts. An API key acts as the member who created it.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/task/search": {
      "get": {
        "operationId": "search-tasks",
        "parameters": [
          {
            "name": "q",
            "required": true,
            "in": "query",
            "description": "Text the task’s title contains (any case).",
            "schema": {
              "type": "string",
              "examples": [
                "brochure"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "How many tasks, 1 to 50.",
            "schema": {
              "default": 10,
              "type": "number",
              "examples": [
                10
              ]
            }
          },
          {
            "name": "projectId",
            "required": false,
            "in": "query",
            "description": "Only tasks in this project.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6f1c2d3e-4b5a-4c6d-8e7f-9a0b1c2d3e4f"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskSearchHitDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Search tasks",
        "tags": [
          "Tasks"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `task:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Tasks whose title contains `q`, across every project you can see (in Personal view, only your own tasks), or only in `projectId`; most recently changed first. Up to 50. Each hit carries its status (id, name, colour and group) and due date.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys."
      }
    },
    "schemas": {
      "ActivityActorDto": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "Priya Shah"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "priya@acme.com"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "userId",
          "name",
          "email",
          "image"
        ]
      },
      "ActivityEntryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "action": {
            "type": "string",
            "description": "What happened, as a code.",
            "examples": [
              "task.updated"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "project",
              "tasks",
              "checklists",
              "workflow"
            ],
            "examples": [
              "tasks"
            ]
          },
          "summary": {
            "type": [
              "string",
              "null"
            ],
            "description": "What happened, as a sentence.",
            "examples": [
              "Moved the task “Export print PDF” from “To Do” to “In Progress”"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "actor": {
            "description": "Who did it; `null` for automation (a workflow run).",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ActivityActorDto"
              }
            ]
          },
          "taskId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The task it is about, if any."
          },
          "fields": {
            "description": "For an edit: the fields it changed.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "description",
                "endDate"
              ]
            ]
          }
        },
        "required": [
          "id",
          "action",
          "kind",
          "summary",
          "createdAt",
          "actor",
          "taskId",
          "fields"
        ]
      },
      "ActivityPageDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityEntryDto"
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "The cursor for the next (older) page, or `null` at the end."
          },
          "historyDays": {
            "type": [
              "number",
              "null"
            ],
            "description": "How many days of activity are kept: entries older than this are no longer listed. `null` when every entry is kept.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "data",
          "nextCursor",
          "historyDays"
        ]
      },
      "AddProjectMembersDto": {
        "type": "object",
        "properties": {
          "members": {
            "description": "People to add. Someone already in the project keeps their membership; send Update a member to change their role.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectMemberInputDto"
            }
          }
        },
        "required": [
          "members"
        ]
      },
      "AddTaskMembersDto": {
        "type": "object",
        "properties": {
          "members": {
            "description": "People to add.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskMemberInputDto"
            }
          }
        },
        "required": [
          "members"
        ]
      },
      "ApprovalWaitDto": {
        "type": "object",
        "properties": {
          "waitingNow": {
            "type": "number",
            "description": "Tasks waiting at an approval step now.",
            "examples": [
              2
            ]
          },
          "medianHours": {
            "type": [
              "number",
              "null"
            ],
            "examples": [
              6
            ]
          },
          "p90Hours": {
            "type": [
              "number",
              "null"
            ],
            "examples": [
              26
            ]
          }
        },
        "required": [
          "waitingNow",
          "medianHours",
          "p90Hours"
        ]
      },
      "AssignmentRuleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Rule id. Left out on a new rule: one is made.",
            "examples": [
              "b3a1c2d4-0000-4000-8000-000000000001"
            ]
          },
          "nodeId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The workflow step it assigns, by `nodeId` (from `workflows[].steps`); `null` for the task itself.",
            "examples": [
              "n_signoff"
            ]
          },
          "flowId": {
            "type": [
              "string",
              "null"
            ],
            "description": "For the task itself (`nodeId` null): only tasks of this attached workflow; `null` for any. Ignored on a step rule.",
            "examples": [
              "c0ffee00-0000-4000-8000-000000000001"
            ]
          },
          "sourceLanguage": {
            "type": [
              "string",
              "null"
            ],
            "description": "Source language (BCP-47) it applies to; `null` for any.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": [
              "string",
              "null"
            ],
            "description": "Target language (BCP-47) it applies to; `null` for any. `fr` covers `fr-FR`.",
            "examples": [
              "fr-FR"
            ]
          },
          "memberIds": {
            "description": "Org member ids it hands the work to. For `pool`, who may claim it (empty: anyone whose languages cover it).",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "strategy": {
            "type": "string",
            "enum": [
              "fixed",
              "balance",
              "pool"
            ],
            "description": "`fixed`: everyone named takes it. `balance`: the named person with the least open work. `pool`: offered; an eligible person claims it.",
            "examples": [
              "balance"
            ]
          }
        },
        "required": [
          "memberIds",
          "strategy"
        ]
      },
      "AttachWorkflowDto": {
        "type": "object",
        "properties": {
          "flowId": {
            "type": "string",
            "format": "uuid",
            "description": "Workflow to attach: one of your organization’s published workflows, or a ready-made one.",
            "examples": [
              "3c9d7e1a-5b2f-4a6c-8d0e-1f2a3b4c5d6e"
            ]
          },
          "fanOutKey": {
            "type": [
              "string",
              "null"
            ],
            "description": "The run input that takes one file per task when the workflow runs on a folder — the `key` of a file input (a `file` field, or a step’s unwired media `source`). Omit it to use the workflow’s only file input; `null` when no input should vary per file.",
            "examples": [
              "translate__source"
            ]
          },
          "makeDefault": {
            "type": "boolean",
            "description": "Make this the project’s default workflow — the one a run uses unless another is picked. The first workflow attached is always the default.",
            "default": false
          }
        },
        "required": [
          "flowId"
        ]
      },
      "BatchDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "5a4b3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d"
            ]
          },
          "projectId": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "COMPLETED",
              "COMPLETED_WITH_ERRORS",
              "FAILED"
            ],
            "description": "How far starting the runs got: `RUNNING` while runs are being started; then `COMPLETED` (all of them), `COMPLETED_WITH_ERRORS` (some couldn’t start; those tasks can run again) or `FAILED` (none started). Whether the runs themselves finished is `finishedAt`."
          },
          "total": {
            "type": "number",
            "description": "Tasks in the batch.",
            "examples": [
              12
            ]
          },
          "started": {
            "type": "number",
            "description": "Runs started so far.",
            "examples": [
              12
            ]
          },
          "failed": {
            "type": "number",
            "description": "Runs that couldn’t start.",
            "examples": [
              0
            ]
          },
          "sourceFolderId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "sourceFolderName": {
            "type": "string",
            "examples": [
              "Wave 1"
            ]
          },
          "includeSubfolders": {
            "type": "boolean"
          },
          "deliverablesFolderId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Where finished runs file their outputs: `Deliverables/<folder>` in the project folder. Created with the first output."
          },
          "flowId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "flowVersion": {
            "type": [
              "number",
              "null"
            ]
          },
          "startedBy": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When every run of the batch settled. Null while any runs."
          }
        },
        "required": [
          "id",
          "projectId",
          "status",
          "total",
          "started",
          "failed",
          "sourceFolderName",
          "includeSubfolders",
          "createdAt",
          "updatedAt"
        ]
      },
      "BatchFileDto": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "2f3e4d5c-6b7a-4c8d-9e0f-1a2b3c4d5e6f"
            ]
          },
          "path": {
            "type": "string",
            "description": "Path inside the picked folder.",
            "examples": [
              "brochure_spring.pdf"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "brochure_spring.pdf"
            ]
          },
          "size": {
            "type": [
              "number",
              "null"
            ],
            "examples": [
              482133
            ]
          },
          "taskId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The file’s task in this project, if it has one."
          },
          "alreadyRan": {
            "type": "boolean",
            "description": "The file already ran in this project. It only runs again with `rerun`."
          },
          "running": {
            "type": "boolean",
            "description": "The file’s task has a run that is still going (or queued in another batch). It doesn’t start again until that run ends."
          },
          "targetLanguage": {
            "type": [
              "string",
              "null"
            ],
            "description": "The target language of this row when the batch runs each file per language (one row per file and language; `taskId`, `alreadyRan` and `running` are that language’s task). `null` for one task per file.",
            "examples": [
              "de-DE"
            ]
          }
        },
        "required": [
          "assetId",
          "path",
          "name",
          "alreadyRan",
          "running"
        ]
      },
      "BatchFolderDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "8b1e2c3d-4f5a-4b6c-9d7e-0f1a2b3c4d5e"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "Wave 1"
            ]
          },
          "path": {
            "description": "Folder names from the project folder down to this one.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "Brochure DE",
                "Source",
                "Wave 1"
              ]
            ]
          },
          "isProjectRoot": {
            "type": "boolean",
            "description": "Whether this is the project folder itself."
          }
        },
        "required": [
          "id",
          "name",
          "path",
          "isProjectRoot"
        ]
      },
      "BatchPreviewDto": {
        "type": "object",
        "properties": {
          "folder": {
            "$ref": "#/components/schemas/BatchFolderDto"
          },
          "workflow": {
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/BatchWorkflowDto"
              }
            ]
          },
          "files": {
            "description": "Files the workflow can take, in path order — with `targetLanguages`, one row per file and language, the languages in the order asked.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchFileDto"
            }
          },
          "skipped": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchSkipDto"
            }
          },
          "runCount": {
            "type": "number",
            "description": "Runs that will start: the files (per language, with `targetLanguages`) that never ran here and aren’t running now. One task and one run each.",
            "examples": [
              12
            ]
          },
          "rerunCount": {
            "type": "number",
            "description": "Files (per language, with `targetLanguages`) that already ran and aren’t running now; `rerun` adds them.",
            "examples": [
              1
            ]
          },
          "minimumCredits": {
            "type": "number",
            "description": "Credits the balance must cover to start the runs: one per paid step per run (`paidSteps × runCount`, so files × languages with `targetLanguages`). With `rerun`, the ones that already ran count too.",
            "examples": [
              12
            ]
          },
          "missing": {
            "description": "Required fields the project hasn’t filled yet.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "Translation memory"
              ]
            ]
          },
          "blocked": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the batch can’t start as it is, or `null` when it can. Starting returns the same reason as an error.",
            "examples": [
              null
            ]
          },
          "owners": {
            "description": "Who would take each step a person acts on (approvals always; other steps when someone is named for them), per target language, if the runs started now. An approval with mode `none` would go to nobody.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepOwnerPreviewDto"
            }
          }
        },
        "required": [
          "folder",
          "files",
          "skipped",
          "runCount",
          "rerunCount",
          "minimumCredits",
          "missing"
        ]
      },
      "BatchScopeDto": {
        "type": "object",
        "properties": {
          "folderId": {
            "type": "string",
            "format": "uuid",
            "description": "The Drive folder to run on: the project’s own folder, or any folder inside it.",
            "examples": [
              "8b1e2c3d-4f5a-4b6c-9d7e-0f1a2b3c4d5e"
            ]
          },
          "includeSubfolders": {
            "type": "boolean",
            "description": "Also run the files in the folder’s subfolders. By default only the files directly in the folder run.",
            "default": false
          },
          "assetIds": {
            "maxItems": 200,
            "description": "Run only these files (asset ids of files directly in `folderId`) instead of the whole folder. `includeSubfolders` is then ignored; an id that is not a file in the folder is left out.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "2f3e4d5c-6b7a-4c8d-9e0f-1a2b3c4d5e6f"
              ]
            ]
          },
          "flowId": {
            "type": "string",
            "format": "uuid",
            "description": "Which of the project’s attached workflows to run. Left out: the default one."
          },
          "targetLanguages": {
            "maxItems": 50,
            "description": "Target languages for this run only (BCP-47 codes from the language catalog). Left out: the project’s `targetLanguages`. With a workflow that maps the target language and makes one task per language (the default), each file gets one task per language, each with its own run, assignee, status and deliverable; otherwise one task per file carries them all.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "de-DE",
                "fr-FR"
              ]
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language for this run only (a BCP-47 code). Left out: the project’s `sourceLanguage`.",
            "examples": [
              "en-US"
            ]
          }
        },
        "required": [
          "folderId"
        ]
      },
      "BatchSkipDto": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "2f3e4d5c-6b7a-4c8d-9e0f-1a2b3c4d5e6f"
            ]
          },
          "path": {
            "type": "string",
            "examples": [
              "order_form.docx"
            ]
          },
          "reason": {
            "type": "string",
            "enum": [
              "wrong-type",
              "empty",
              "duplicate"
            ],
            "description": "`wrong-type`: the workflow doesn’t take this kind of file. `empty`: the file has no content. `duplicate`: another file here holds the same content, and only that one runs."
          }
        },
        "required": [
          "assetId",
          "path",
          "reason"
        ]
      },
      "BatchSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "5a4b3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d"
            ]
          },
          "folder": {
            "type": "string",
            "examples": [
              "Wave1"
            ]
          },
          "status": {
            "type": "string",
            "examples": [
              "started"
            ]
          },
          "total": {
            "type": "number",
            "examples": [
              20
            ]
          },
          "started": {
            "type": "number",
            "examples": [
              19
            ]
          },
          "failed": {
            "type": "number",
            "examples": [
              1
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "examples": [
              "2026-10-05T19:13:43.134Z"
            ]
          }
        },
        "required": [
          "id",
          "folder",
          "status",
          "total",
          "started",
          "failed",
          "createdAt"
        ]
      },
      "BatchWorkflowDto": {
        "type": "object",
        "properties": {
          "flowId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "examples": [
              "Translate PDF + sign-off"
            ]
          },
          "version": {
            "type": "number",
            "examples": [
              3
            ]
          },
          "perFileKey": {
            "type": "string",
            "description": "The run input each file fills.",
            "examples": [
              "translate__source"
            ]
          },
          "perFileLabel": {
            "type": "string",
            "examples": [
              "Source PDF"
            ]
          },
          "accepts": {
            "description": "File extensions the per-file input takes; `null` when it takes any file.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "examples": [
              [
                ".pdf"
              ]
            ]
          },
          "paidSteps": {
            "type": "number",
            "description": "Steps that charge credits. Every run needs at least one credit per paid step to start; each step charges its own work when it runs.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "flowId",
          "name",
          "version",
          "perFileKey",
          "perFileLabel",
          "paidSteps"
        ]
      },
      "BulkAssignDto": {
        "type": "object",
        "properties": {
          "selection": {
            "$ref": "#/components/schemas/BulkSelectionDto"
          },
          "nodeId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The workflow step to assign, by `nodeId`; `null` or left out for the task itself. A task on that step now is reassigned at once; any other keeps the person for when its run gets there."
          },
          "mode": {
            "type": "string",
            "enum": [
              "one",
              "split",
              "by_language",
              "pool"
            ],
            "description": "`one`: all to one person. `split`: across `memberIds`, the least busy first. `by_language`: by `byLanguage`. `pool`: offered, an eligible person claims each (`memberIds`: who may; empty: anyone covering the language)."
          },
          "memberIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "byLanguage": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "format": "uuid"
            },
            "description": "For `by_language`: target language (BCP-47) → member id.",
            "examples": [
              {
                "fr-FR": "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
              }
            ]
          }
        },
        "required": [
          "selection",
          "mode"
        ]
      },
      "BulkAssignResultDto": {
        "type": "object",
        "properties": {
          "assigned": {
            "type": "number"
          },
          "pooled": {
            "type": "number"
          },
          "unplaced": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkUnplacedDto"
            }
          }
        },
        "required": [
          "assigned",
          "pooled",
          "unplaced"
        ]
      },
      "BulkPlanDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number",
            "description": "Tasks selected."
          },
          "nodeId": {
            "type": [
              "string",
              "null"
            ]
          },
          "stepLabel": {
            "type": [
              "string",
              "null"
            ],
            "description": "The step’s name, or null for the task itself."
          },
          "now": {
            "type": "number",
            "description": "Of the placed tasks, how many are on that step now."
          },
          "people": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkPlanPersonDto"
            }
          },
          "pooled": {
            "type": "number",
            "description": "Tasks offered to the pool."
          },
          "unplaced": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkUnplacedDto"
            }
          },
          "languages": {
            "description": "The selected tasks’ target languages (BCP-47), for choosing someone per language.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "total",
          "nodeId",
          "stepLabel",
          "now",
          "people",
          "pooled",
          "unplaced",
          "languages"
        ]
      },
      "BulkPlanPersonDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "tasks": {
            "type": "number",
            "description": "Tasks this assignment gives them."
          },
          "openBefore": {
            "type": "number",
            "description": "Open tasks they hold already."
          },
          "capacity": {
            "type": [
              "number",
              "null"
            ]
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "memberId",
          "name",
          "tasks",
          "openBefore",
          "capacity",
          "warnings"
        ]
      },
      "BulkSelectionDto": {
        "type": "object",
        "properties": {
          "taskIds": {
            "description": "Task ids (at most 2000). Or give a filter.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "filter": {
            "description": "Every task of the project that matches — \"select all matching\". Used when `taskIds` is left out.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BulkTaskFilterDto"
              }
            ]
          }
        }
      },
      "BulkTaskFilterDto": {
        "type": "object",
        "properties": {
          "status": {
            "description": "Status ids (any of).",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "assignee": {
            "type": "string",
            "description": "`none` (nobody assigned), `me`, or a member id.",
            "examples": [
              "none"
            ]
          },
          "targetLanguages": {
            "description": "Target languages (BCP-47, any of).",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "fr-FR",
                "de-DE"
              ]
            ]
          },
          "stepNodeId": {
            "type": "string",
            "description": "Only tasks whose run is on this workflow step right now.",
            "examples": [
              "n_signoff"
            ]
          },
          "q": {
            "type": "string",
            "description": "Words in the title."
          },
          "batchId": {
            "type": "string",
            "description": "Tasks a folder run made."
          },
          "file": {
            "type": "string",
            "description": "Tasks on this Drive file."
          }
        }
      },
      "BulkUnplacedDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "taskId",
          "title",
          "reason"
        ]
      },
      "ChecklistDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Checklist id.",
            "examples": [
              "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f"
            ]
          },
          "taskId": {
            "type": "string",
            "format": "uuid",
            "description": "Task id.",
            "examples": [
              "8abfec8a-beeb-4122-9544-cee77dc091d5"
            ]
          },
          "title": {
            "type": "string",
            "description": "Title.",
            "examples": [
              "Sign-off checklist"
            ]
          },
          "order": {
            "type": "number",
            "description": "Position among the task’s checklists.",
            "examples": [
              0
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "manual",
              "step",
              "template"
            ],
            "description": "`manual`, `step` (attached by a workflow step) or `template` (from your library).",
            "examples": [
              "manual"
            ]
          },
          "nodeId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Workflow step that attached it.",
            "examples": [
              null
            ]
          },
          "blocksApproval": {
            "type": "boolean",
            "description": "Blocks workflow approval while open.",
            "examples": [
              false
            ]
          },
          "items": {
            "description": "Items, in order.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChecklistItemDto"
            }
          }
        },
        "required": [
          "id",
          "taskId",
          "title",
          "order",
          "source",
          "nodeId",
          "blocksApproval",
          "items"
        ]
      },
      "ChecklistItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Item id.",
            "examples": [
              "f1888af0-9baa-444f-b513-4c5b428071a0"
            ]
          },
          "title": {
            "type": "string",
            "description": "Item text.",
            "examples": [
              "Legal footer checked"
            ]
          },
          "isCompleted": {
            "type": "boolean",
            "description": "Ticked.",
            "examples": [
              false
            ]
          },
          "order": {
            "type": "number",
            "description": "Position, from 0.",
            "examples": [
              0
            ]
          },
          "dueDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Due date.",
            "examples": [
              null
            ]
          },
          "dueHasTime": {
            "type": "boolean",
            "description": "Whether `dueDate` carries a time. When false it is a whole day, stored at midnight UTC.",
            "examples": [
              false
            ]
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was ticked.",
            "examples": [
              null
            ]
          },
          "completedById": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Who ticked it.",
            "examples": [
              null
            ]
          },
          "assignees": {
            "description": "Assignees.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChecklistPersonDto"
            }
          }
        },
        "required": [
          "id",
          "title",
          "isCompleted",
          "order",
          "dueDate",
          "dueHasTime",
          "completedAt",
          "completedById",
          "assignees"
        ]
      },
      "ChecklistPersonDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "Organization member id.",
            "examples": [
              "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name.",
            "examples": [
              "Priya Sharma"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "Profile picture URL.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "memberId",
          "name",
          "image"
        ]
      },
      "ClaimResultDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          }
        },
        "required": [
          "taskId",
          "projectId"
        ]
      },
      "CreateChecklistDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Checklist title.",
            "maxLength": 200,
            "examples": [
              "Sign-off checklist"
            ]
          },
          "items": {
            "description": "Items to start with, in order.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "Brand terms match glossary",
                "Legal footer checked"
              ]
            ]
          },
          "blocksApproval": {
            "type": "boolean",
            "default": false,
            "description": "While any item is open, a workflow approval step on this task can’t be approved.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "title"
        ]
      },
      "CreateChecklistItemDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Item text.",
            "maxLength": 500,
            "examples": [
              "Legal footer checked"
            ]
          },
          "dueDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Due date (ISO 8601).",
            "examples": [
              "2026-10-24T00:00:00.000Z"
            ]
          },
          "dueHasTime": {
            "type": "boolean",
            "description": "Whether `dueDate` carries a time. Left out, a `dueDate` sent with a time of day (anything but midnight UTC) is timed; `false` keeps only its day.",
            "examples": [
              false
            ]
          },
          "assigneeIds": {
            "description": "Members to assign. They must be in your organization.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
              ]
            ]
          }
        },
        "required": [
          "title"
        ]
      },
      "CreateProjectDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Project name, unique in your organization (ignoring case). It is also the name of the project folder in your drive: `Projects/<name>/`.",
            "maxLength": 200,
            "examples": [
              "Brochure DE"
            ]
          },
          "description": {
            "type": "string",
            "description": "What the project is about, as rich text in HTML (paragraphs, headings, lists, links). Plain text is accepted too.",
            "maxLength": 50000,
            "examples": [
              "<p>Spring brochure for Acme GmbH, <strong>16 pages</strong>.</p>"
            ]
          },
          "color": {
            "type": "string",
            "description": "Swatch colour as hex.",
            "examples": [
              "#5b3ad6"
            ]
          },
          "visibility": {
            "type": "string",
            "enum": [
              "org",
              "members"
            ],
            "default": "members",
            "description": "`members`: only the project members (and roles that manage every project) can see it. `org`: everyone with `project:read`.",
            "examples": [
              "members"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language code.",
            "examples": [
              "en"
            ]
          },
          "targetLanguages": {
            "description": "Target language codes.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "de"
              ]
            ]
          },
          "startDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start date (ISO 8601).",
            "examples": [
              "2026-10-06T00:00:00.000Z"
            ]
          },
          "startHasTime": {
            "type": "boolean",
            "description": "Whether `startDate` carries a time. Left out, a `startDate` sent with a time of day (anything but midnight UTC) is timed; `false` keeps only its day.",
            "examples": [
              false
            ]
          },
          "endDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Due date (ISO 8601).",
            "examples": [
              "2026-10-24T00:00:00.000Z"
            ]
          },
          "endHasTime": {
            "type": "boolean",
            "description": "Whether `endDate` carries a time. Left out, a `endDate` sent with a time of day (anything but midnight UTC) is timed; `false` keeps only its day.",
            "examples": [
              false
            ]
          },
          "tags": {
            "description": "Tags, up to 20, each under 32 characters.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "acme",
                "print"
              ]
            ]
          },
          "status": {
            "type": "string",
            "description": "A status id from your organization's project statuses (Get project statuses). Defaults to the first one.",
            "examples": [
              "QvCQT30CEfb8OaDJQKI5g"
            ]
          },
          "priority": {
            "type": "string",
            "description": "A priority id from your organization's project priorities. Omit it for none.",
            "examples": [
              "zpmxhp5m67LHTa6xuPRza"
            ]
          },
          "leadIds": {
            "description": "Members to add as project leads. You are always added as a lead.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
              ]
            ]
          },
          "memberIds": {
            "description": "Members to add as project members.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              []
            ]
          },
          "taskStatusPresetId": {
            "type": "string",
            "description": "A task status preset to copy for this project's tasks (List task status presets). Defaults to the built-in preset.",
            "examples": [
              "cc0bcadc-d8a0-4047-9d6a-729572027ea7"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "TRANSLATION",
              "LOCALIZATION",
              "TRANSCRIPTION",
              "SUBTITLING",
              "VOICEOVER",
              "REVIEW"
            ],
            "description": "Optional project type.",
            "examples": [
              "TRANSLATION"
            ]
          },
          "fk_dealId": {
            "type": [
              "object",
              "null"
            ],
            "description": "Deal this project belongs to (a deal in the same organization). `null` on update unlinks it.",
            "examples": [
              "0f1e2d3c-4b5a-4968-8776-655443322110"
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "CreateTaskDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Task title.",
            "maxLength": 255,
            "examples": [
              "Translate box copy"
            ]
          },
          "description": {
            "type": "string",
            "description": "Task description (rich text as HTML).",
            "examples": [
              "<p>Keep product names in English.</p>"
            ]
          },
          "status": {
            "type": "string",
            "description": "A status id from the project's task statuses (Get task statuses). Defaults to the first one.",
            "examples": [
              "H9UQxTGsGLyP40zMAvAzV"
            ]
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "description": "A priority id from the project's task priorities.",
            "examples": [
              "OnE7lr3sHpKLiBAc9-S0O"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language code.",
            "examples": [
              "en"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language code.",
            "examples": [
              "de"
            ]
          },
          "startDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start date (ISO 8601).",
            "examples": [
              "2026-10-06T00:00:00.000Z"
            ]
          },
          "startHasTime": {
            "type": "boolean",
            "description": "Whether `startDate` carries a time. Left out, a `startDate` sent with a time of day (anything but midnight UTC) is timed; `false` keeps only its day.",
            "examples": [
              false
            ]
          },
          "endDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Due date (ISO 8601).",
            "examples": [
              "2026-10-24T00:00:00.000Z"
            ]
          },
          "endHasTime": {
            "type": "boolean",
            "description": "Whether `endDate` carries a time. Left out, a `endDate` sent with a time of day (anything but midnight UTC) is timed; `false` keeps only its day.",
            "examples": [
              false
            ]
          },
          "tags": {
            "description": "Tags.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "print"
              ]
            ]
          },
          "plannedMinutes": {
            "type": [
              "number",
              "null"
            ],
            "description": "Hours planned for the task, in minutes (0 to 100,000); null removes the plan. Shown against the time logged on it.",
            "examples": [
              240
            ]
          },
          "assigneeIds": {
            "description": "Members to assign. They must be in your organization.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
              ]
            ]
          }
        },
        "required": [
          "title"
        ]
      },
      "CreditsDto": {
        "type": "object",
        "properties": {
          "spent": {
            "description": "Credits spent (charged, less refunds).",
            "allOf": [
              {
                "$ref": "#/components/schemas/MetricDto"
              }
            ]
          },
          "byBucket": {
            "description": "Credits spent per bucket.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                30,
                45
              ]
            ]
          },
          "byFeature": {
            "description": "Spend by step or feature, most first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FeatureSpendDto"
            }
          },
          "refunded": {
            "type": "number",
            "description": "Credits refunded for failures in the period.",
            "examples": [
              10
            ]
          },
          "perCompletedRun": {
            "type": [
              "number",
              "null"
            ],
            "description": "Spend per completed run.",
            "examples": [
              6.5
            ]
          }
        },
        "required": [
          "spent",
          "byBucket",
          "byFeature",
          "refunded",
          "perCompletedRun"
        ]
      },
      "CustomFieldInputDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Field id. Keep it to keep the field (and its values); omit it for a new field.",
            "examples": [
              "6d2f1e0a-4b3c-4d5e-8f9a-0b1c2d3e4f5a"
            ]
          },
          "name": {
            "type": "string",
            "description": "Field name.",
            "examples": [
              "Client PO"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "text",
              "textarea",
              "number",
              "date",
              "select",
              "checkbox",
              "url"
            ],
            "examples": [
              "text"
            ]
          },
          "options": {
            "description": "Choices of a `select` field.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldOptionDto"
            }
          },
          "required": {
            "type": "boolean",
            "description": "Whether the project counts as ready only once it is filled.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "name",
          "type"
        ]
      },
      "CustomFieldOptionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Option id. Omit it for a new option.",
            "examples": [
              "opt-1"
            ]
          },
          "label": {
            "type": "string",
            "description": "Option label.",
            "examples": [
              "Rush"
            ]
          },
          "color": {
            "type": [
              "string",
              "null"
            ],
            "description": "Colour as hex.",
            "examples": [
              "#e34948"
            ]
          }
        },
        "required": [
          "label"
        ]
      },
      "DueHealthDto": {
        "type": "object",
        "properties": {
          "onTrack": {
            "type": "number",
            "description": "Open, due more than 2 days from now.",
            "examples": [
              5
            ]
          },
          "atRisk": {
            "type": "number",
            "description": "Open, due within 2 days.",
            "examples": [
              2
            ]
          },
          "overdue": {
            "type": "number",
            "description": "Open, past due.",
            "examples": [
              1
            ]
          },
          "noDueDate": {
            "type": "number",
            "description": "Open, no due date.",
            "examples": [
              7
            ]
          }
        },
        "required": [
          "onTrack",
          "atRisk",
          "overdue",
          "noDueDate"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Error body returned for every 4xx and 5xx response.",
        "required": [
          "statusCode",
          "message"
        ],
        "properties": {
          "statusCode": {
            "type": "integer",
            "description": "HTTP status code, repeated in the body.",
            "examples": [
              404
            ]
          },
          "message": {
            "description": "What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "examples": [
              "Booking not found"
            ]
          },
          "error": {
            "type": "string",
            "description": "Short name of the status.",
            "examples": [
              "Not Found"
            ]
          }
        }
      },
      "FeatureSpendDto": {
        "type": "object",
        "properties": {
          "feature": {
            "type": "string",
            "examples": [
              "playground"
            ]
          },
          "operation": {
            "type": "string",
            "examples": [
              "translate_pdf"
            ]
          },
          "credits": {
            "type": "number",
            "examples": [
              120
            ]
          }
        },
        "required": [
          "feature",
          "operation",
          "credits"
        ]
      },
      "FiledDeliverablesDto": {
        "type": "object",
        "properties": {
          "filed": {
            "type": "number",
            "description": "How many of the run’s results are in Deliverables now.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "filed"
        ]
      },
      "FilesDto": {
        "type": "object",
        "properties": {
          "added": {
            "description": "Files added per bucket.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                2,
                0
              ]
            ]
          },
          "deliverables": {
            "description": "Deliverables filed per bucket.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                0,
                3
              ]
            ]
          },
          "byType": {
            "description": "Files added in the period, by type.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FileTypeCountDto"
            }
          }
        },
        "required": [
          "added",
          "deliverables",
          "byType"
        ]
      },
      "FileTasksEntryDto": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "format": "uuid",
            "description": "The Drive file.",
            "examples": [
              "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Its name; null when the file was deleted.",
            "examples": [
              "settings-strings.json"
            ]
          },
          "tasks": {
            "type": "number",
            "description": "The project’s tasks on it that you can see.",
            "examples": [
              3
            ]
          }
        },
        "required": [
          "assetId",
          "name",
          "tasks"
        ]
      },
      "FileTasksResponseDto": {
        "type": "object",
        "properties": {
          "files": {
            "description": "Each asked file that has tasks in the project.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FileTasksEntryDto"
            }
          }
        },
        "required": [
          "files"
        ]
      },
      "FileTypeCountDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "image",
              "video",
              "audio",
              "pdf",
              "document",
              "other"
            ],
            "examples": [
              "pdf"
            ]
          },
          "count": {
            "type": "number",
            "examples": [
              14
            ]
          }
        },
        "required": [
          "type",
          "count"
        ]
      },
      "FlowDto": {
        "type": "object",
        "properties": {
          "cumulative": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlowSeriesDto"
            }
          },
          "timeInStatus": {
            "description": "Time in each open status (not Done or Closed), for stays that ran in the period, slowest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeInStatusDto"
            }
          },
          "approvals": {
            "$ref": "#/components/schemas/ApprovalWaitDto"
          }
        },
        "required": [
          "cumulative",
          "timeInStatus",
          "approvals"
        ]
      },
      "FlowSeriesDto": {
        "type": "object",
        "properties": {
          "statusId": {
            "type": "string",
            "examples": [
              "H9UQxTGsGLyP40zMAvAzV"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "To do"
            ]
          },
          "color": {
            "type": "string",
            "examples": [
              "#6b7280"
            ]
          },
          "counts": {
            "description": "Tasks in this status at each bucket’s end.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                2,
                3
              ]
            ]
          }
        },
        "required": [
          "statusId",
          "name",
          "color",
          "counts"
        ]
      },
      "ForecastDto": {
        "type": "object",
        "properties": {
          "perWeek": {
            "type": "number",
            "description": "Tasks completed per week, over the last 4 weeks.",
            "examples": [
              6.5
            ]
          },
          "remaining": {
            "type": "number",
            "description": "Open tasks left.",
            "examples": [
              18
            ]
          },
          "finishDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the open tasks would be done at that pace. Null when nothing was completed in the last 4 weeks, or nothing is left.",
            "examples": [
              "2026-11-02T00:00:00.000Z"
            ]
          },
          "daysLate": {
            "type": [
              "number",
              "null"
            ],
            "description": "Days after the project’s due date it would finish (negative: before it). Null without a due date or a forecast.",
            "examples": [
              9
            ]
          }
        },
        "required": [
          "perWeek",
          "remaining",
          "finishDate",
          "daysLate"
        ]
      },
      "HeadlineDto": {
        "type": "object",
        "properties": {
          "openTasks": {
            "description": "Open tasks now (not in a Done or Closed status).",
            "allOf": [
              {
                "$ref": "#/components/schemas/MetricDto"
              }
            ]
          },
          "completed": {
            "description": "Tasks that reached a Done status in the period.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MetricDto"
              }
            ]
          },
          "overdue": {
            "description": "Open tasks past their due date, now.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MetricDto"
              }
            ]
          },
          "onTimeRate": {
            "description": "Of the tasks completed with a due date, the share done by it (0–1).",
            "allOf": [
              {
                "$ref": "#/components/schemas/MetricDto"
              }
            ]
          },
          "cycleTimeHours": {
            "description": "Median hours from a task’s creation to its completion.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MetricDto"
              }
            ]
          },
          "runsCompleted": {
            "description": "Workflow runs that completed.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MetricDto"
              }
            ]
          },
          "runSuccessRate": {
            "description": "Completed runs out of those that completed or failed (0–1).",
            "allOf": [
              {
                "$ref": "#/components/schemas/MetricDto"
              }
            ]
          },
          "filesAdded": {
            "description": "Files added to the project folder.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MetricDto"
              }
            ]
          },
          "deliverables": {
            "description": "Finished outputs filed under Deliverables.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MetricDto"
              }
            ]
          }
        },
        "required": [
          "openTasks",
          "completed",
          "overdue",
          "onTimeRate",
          "cycleTimeHours",
          "runsCompleted",
          "runSuccessRate",
          "filesAdded",
          "deliverables"
        ]
      },
      "LanguageFieldDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Run-value key of the field.",
            "examples": [
              "n_tr__targetLanguage"
            ]
          },
          "nodeId": {
            "type": "string",
            "examples": [
              "n_tr"
            ]
          },
          "stepLabel": {
            "type": "string",
            "examples": [
              "Translate strings"
            ]
          },
          "fieldLabel": {
            "type": "string",
            "examples": [
              "Target language"
            ]
          },
          "multiple": {
            "type": "boolean",
            "description": "Whether the field takes several languages."
          },
          "role": {
            "type": "string",
            "enum": [
              "source",
              "target"
            ],
            "description": "Which of the workflow’s own languages the field takes when mapped to them: `source` for a field named source…, else `target`."
          }
        },
        "required": [
          "key",
          "nodeId",
          "stepLabel",
          "fieldLabel",
          "multiple",
          "role"
        ]
      },
      "LanguageLinkDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "n_tr__sourceLanguage"
              ]
            ]
          },
          "target": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "n_tr__targetLanguage"
              ]
            ]
          },
          "workflow": {
            "description": "Fields the workflow’s own languages fill (the project’s while it has none).",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              []
            ]
          },
          "languages": {
            "description": "The workflow’s own languages, which its runs use; null: the project’s.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/WorkflowLanguagesDto"
              }
            ]
          },
          "oneTaskPerLanguage": {
            "type": "boolean",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "source",
          "target",
          "workflow",
          "languages",
          "oneTaskPerLanguage"
        ]
      },
      "LinkedFilesDto": {
        "type": "object",
        "properties": {
          "link": {
            "type": "object",
            "description": "The link: its id and the linked directory.",
            "examples": [
              {
                "id": "uuid",
                "folderId": "uuid"
              }
            ]
          },
          "trail": {
            "description": "The directories from the linked one down to the one listed: `{ id, name }`.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "count": {
            "type": "number"
          },
          "rows": {
            "description": "Rows as the Assets listing returns them. Each file also has `notRun`: true while it has not run in this project.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "link",
          "trail",
          "count",
          "rows"
        ]
      },
      "LinkedFolderDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The link id."
          },
          "kind": {
            "type": "string",
            "enum": [
              "FOLDER",
              "FILE"
            ],
            "description": "What is linked."
          },
          "assetId": {
            "type": "string",
            "format": "uuid",
            "description": "The linked Assets directory or file."
          },
          "folderId": {
            "type": "string",
            "format": "uuid",
            "deprecated": true,
            "description": "The same as `assetId`, kept for older clients."
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Its name. Null when you can’t open it."
          },
          "path": {
            "description": "The directories above it, from the drive root.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "available": {
            "type": "boolean",
            "description": "You can open it: it is not in the trash and not inside a project or deal hidden from you."
          },
          "trashed": {
            "type": "boolean",
            "description": "The directory (or one above it) is in the trash."
          },
          "files": {
            "type": "number",
            "description": "Files in it, at any depth (1 for a linked file)."
          },
          "notRun": {
            "type": "number",
            "description": "Of those, files not run in this project yet."
          },
          "file": {
            "type": [
              "object",
              "null"
            ],
            "description": "A linked file you can open, as the Assets listing returns it (with its URL). Null for a directory, or a file you can’t open."
          },
          "linkedAt": {
            "type": "string",
            "format": "date-time"
          },
          "linkedBy": {
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/LinkedFolderPersonDto"
              }
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "assetId",
          "folderId",
          "name",
          "path",
          "available",
          "trashed",
          "files",
          "notRun",
          "linkedAt",
          "linkedBy"
        ]
      },
      "LinkedFolderPersonDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "memberId",
          "name"
        ]
      },
      "LinkFolderDto": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "format": "uuid",
            "description": "The Assets directory or file to link. It must be in your organization, one you can open in Assets, and not inside `Projects` or `Deals`. One of `assetId` / `folderId` is required."
          },
          "folderId": {
            "type": "string",
            "format": "uuid",
            "deprecated": true,
            "description": "The same as `assetId`, kept for older clients."
          }
        }
      },
      "MetricDto": {
        "type": "object",
        "properties": {
          "current": {
            "type": [
              "number",
              "null"
            ],
            "examples": [
              12
            ]
          },
          "previous": {
            "type": [
              "number",
              "null"
            ],
            "description": "The same length of time just before. Null for all time.",
            "examples": [
              9
            ]
          }
        },
        "required": [
          "current",
          "previous"
        ]
      },
      "MoveProjectDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status to move the project into. Omit it to reorder inside the current status.",
            "examples": [
              "QvCQT30CEfb8OaDJQKI5g"
            ]
          },
          "afterId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The project it lands right after, in the target status. `null` or omitted puts it first.",
            "examples": [
              "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
            ]
          }
        }
      },
      "MoveTaskDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status to move the task into. Omit it to reorder inside the current status.",
            "examples": [
              "H9UQxTGsGLyP40zMAvAzV"
            ]
          },
          "afterId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The task it lands right after, in the target status. `null` or omitted puts it first.",
            "examples": [
              "8abfec8a-beeb-4122-9544-cee77dc091d5"
            ]
          }
        }
      },
      "MyRunDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "7c6b5a4f-3e2d-4c1b-9a0f-8e7d6c5b4a3f"
            ]
          },
          "title": {
            "type": "string",
            "description": "Task title.",
            "examples": [
              "catalogue_2026.pdf"
            ]
          },
          "sourceLanguage": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "de-DE"
            ]
          },
          "projectId": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
            ]
          },
          "projectName": {
            "type": "string",
            "examples": [
              "Acme Brochures"
            ]
          },
          "projectColor": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "#3b82f6"
            ]
          },
          "executionId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The run. Null when the run never started.",
            "examples": [
              "9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "PAUSED",
              "FAILED"
            ],
            "description": "`PAUSED`: a step waits for a person. `FAILED`: the run failed, or could not start (`errorCode` `START_FAILED`).",
            "examples": [
              "PAUSED"
            ]
          },
          "errorCode": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "START_FAILED"
            ],
            "description": "`START_FAILED`: the run could not start. Run the task again.",
            "examples": [
              null
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the run failed, for a failure.",
            "examples": [
              null
            ]
          },
          "at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the run reached this state.",
            "examples": [
              "2026-10-06T08:00:00.000Z"
            ]
          },
          "reason": {
            "type": "string",
            "enum": [
              "assigned",
              "lead"
            ],
            "description": "Why it is yours: `assigned` to the task (step owners are, on entering their step), or you `lead` the project.",
            "examples": [
              "assigned"
            ]
          },
          "gates": {
            "description": "The approval steps waiting, to approve or reject in place. Empty for a failure, or for a review that happens in a galaxy’s own page.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MyRunGateDto"
            }
          }
        },
        "required": [
          "taskId",
          "title",
          "sourceLanguage",
          "targetLanguage",
          "projectId",
          "projectName",
          "projectColor",
          "executionId",
          "state",
          "errorCode",
          "error",
          "at",
          "reason",
          "gates"
        ]
      },
      "MyRunGateDto": {
        "type": "object",
        "properties": {
          "nodeId": {
            "type": "string",
            "description": "The approval step’s node id — pass it to approve or reject.",
            "examples": [
              "signoff"
            ]
          },
          "label": {
            "type": "string",
            "description": "The step’s name in the project’s workflow.",
            "examples": [
              "Client sign-off"
            ]
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the approver should check, if the step says.",
            "examples": [
              "Check the cover against the brand kit."
            ]
          }
        },
        "required": [
          "nodeId",
          "label",
          "instructions"
        ]
      },
      "MyRunsDto": {
        "type": "object",
        "properties": {
          "approvals": {
            "description": "Runs waiting for an approval from you: on tasks assigned to you, and in projects you lead. Oldest wait first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MyRunDto"
            }
          },
          "failures": {
            "description": "Failed runs in projects you lead, whose task the workflow still owns. Newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MyRunDto"
            }
          },
          "approvalsTotal": {
            "type": "number",
            "description": "Paged requests only: approvals waiting in all."
          },
          "page": {
            "type": "number",
            "description": "Paged requests only."
          },
          "size": {
            "type": "number",
            "description": "Paged requests only."
          }
        },
        "required": [
          "approvals",
          "failures"
        ]
      },
      "MyWorkDueCountsDto": {
        "type": "object",
        "properties": {
          "overdue": {
            "type": "number"
          },
          "today": {
            "type": "number"
          },
          "week": {
            "type": "number",
            "description": "Due within the next 7 days."
          },
          "later": {
            "type": "number"
          },
          "none": {
            "type": "number",
            "description": "No due date."
          }
        },
        "required": [
          "overdue",
          "today",
          "week",
          "later",
          "none"
        ]
      },
      "MyWorkItemDto": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "task",
              "checklist_item"
            ],
            "description": "What this row is.",
            "examples": [
              "task"
            ]
          },
          "taskId": {
            "type": "string",
            "format": "uuid",
            "description": "Task id (for a checklist item, the task it belongs to).",
            "examples": [
              "8abfec8a-beeb-4122-9544-cee77dc091d5"
            ]
          },
          "itemId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Checklist item id, for `checklist_item`.",
            "examples": [
              null
            ]
          },
          "title": {
            "type": "string",
            "description": "Task title or checklist item text.",
            "examples": [
              "Translate box copy"
            ]
          },
          "taskTitle": {
            "type": [
              "string",
              "null"
            ],
            "description": "For a checklist item: the task title.",
            "examples": [
              null
            ]
          },
          "projectId": {
            "type": "string",
            "format": "uuid",
            "description": "Project id.",
            "examples": [
              "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
            ]
          },
          "projectName": {
            "type": "string",
            "description": "Project name.",
            "examples": [
              "Brochure DE"
            ]
          },
          "projectColor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Project colour.",
            "examples": [
              "#5b3ad6"
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Task status id.",
            "examples": [
              "H9UQxTGsGLyP40zMAvAzV"
            ]
          },
          "statusName": {
            "type": [
              "string",
              "null"
            ],
            "description": "Task status name.",
            "examples": [
              "IN PROGRESS"
            ]
          },
          "statusColor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Task status colour.",
            "examples": [
              "#8b5cf6"
            ]
          },
          "dueDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Due date.",
            "examples": [
              null
            ]
          },
          "dueHasTime": {
            "type": "boolean",
            "description": "Whether `dueDate` carries a time. When false it is a whole day, stored at midnight UTC.",
            "examples": [
              false
            ]
          },
          "sourceLanguage": {
            "type": [
              "object",
              "null"
            ],
            "description": "The task’s source language (BCP-47), shown with the target as a pair. For a checklist item, its task’s.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": [
              "object",
              "null"
            ],
            "description": "The task’s target language (BCP-47), to tell same-named tasks apart. For a checklist item, its task’s.",
            "examples": [
              "hi-IN"
            ]
          }
        },
        "required": [
          "kind",
          "taskId",
          "itemId",
          "title",
          "taskTitle",
          "projectId",
          "projectName",
          "projectColor",
          "status",
          "statusName",
          "statusColor",
          "dueDate",
          "dueHasTime"
        ]
      },
      "MyWorkResponseDto": {
        "type": "object",
        "properties": {
          "tasks": {
            "description": "Open tasks assigned to you, soonest due first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MyWorkItemDto"
            }
          },
          "checklistItems": {
            "description": "Open checklist items assigned to you.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MyWorkItemDto"
            }
          },
          "totals": {
            "description": "Paged requests only: how many of each list in all.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MyWorkTotalsDto"
              }
            ]
          },
          "dueCounts": {
            "description": "Paged requests only: the paged list’s items per due group, across every page.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MyWorkDueCountsDto"
              }
            ]
          },
          "page": {
            "type": "number",
            "description": "Paged requests only."
          },
          "size": {
            "type": "number",
            "description": "Paged requests only."
          }
        },
        "required": [
          "tasks",
          "checklistItems"
        ]
      },
      "MyWorkTotalsDto": {
        "type": "object",
        "properties": {
          "tasks": {
            "type": "number",
            "description": "Open tasks assigned to you.",
            "examples": [
              8
            ]
          },
          "items": {
            "type": "number",
            "description": "Open checklist items assigned to you."
          }
        },
        "required": [
          "tasks",
          "items"
        ]
      },
      "OverdueTaskDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "8abfec8a-beeb-4122-9544-cee77dc091d5"
            ]
          },
          "title": {
            "type": "string",
            "examples": [
              "Proof headline"
            ]
          },
          "dueDate": {
            "type": "string",
            "format": "date-time",
            "examples": [
              "2026-10-01T00:00:00.000Z"
            ]
          },
          "dueHasTime": {
            "type": "boolean",
            "description": "Whether `dueDate` carries a time (otherwise a whole day).",
            "examples": [
              false
            ]
          },
          "daysOverdue": {
            "type": "number",
            "description": "Whole days past its due date.",
            "examples": [
              5
            ]
          },
          "assignees": {
            "description": "Who it is assigned to.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "Priya Shah"
              ]
            ]
          }
        },
        "required": [
          "taskId",
          "title",
          "dueDate",
          "dueHasTime",
          "daysOverdue",
          "assignees"
        ]
      },
      "PeriodDto": {
        "type": "object",
        "properties": {
          "period": {
            "type": "string",
            "enum": [
              "7d",
              "30d",
              "90d",
              "all"
            ],
            "examples": [
              "30d"
            ]
          },
          "from": {
            "type": "string",
            "format": "date-time",
            "examples": [
              "2026-09-07T00:00:00.000Z"
            ]
          },
          "to": {
            "type": "string",
            "format": "date-time",
            "examples": [
              "2026-10-06T09:00:00.000Z"
            ]
          },
          "unit": {
            "type": "string",
            "enum": [
              "day",
              "week"
            ],
            "description": "How the time series are bucketed: by day, or by week past 92 days.",
            "examples": [
              "day"
            ]
          },
          "buckets": {
            "description": "Each bucket’s first day (`YYYY-MM-DD`), in order; every series follows it.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "2026-10-05",
                "2026-10-06"
              ]
            ]
          }
        },
        "required": [
          "period",
          "from",
          "to",
          "unit",
          "buckets"
        ]
      },
      "PersonStatsDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "Priya Shah"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "priya@acme.com"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              null
            ]
          },
          "open": {
            "type": "number",
            "description": "Open tasks assigned now.",
            "examples": [
              4
            ]
          },
          "overdue": {
            "type": "number",
            "description": "Of those, past due.",
            "examples": [
              1
            ]
          },
          "completed": {
            "type": "number",
            "description": "Assigned tasks completed in the period.",
            "examples": [
              6
            ]
          },
          "checklistDone": {
            "type": "number",
            "description": "Checklist items they ticked in the period.",
            "examples": [
              9
            ]
          },
          "checklistOpen": {
            "type": "number",
            "description": "Checklist items assigned to them and still open.",
            "examples": [
              2
            ]
          },
          "actions": {
            "type": "number",
            "description": "Changes they made in the project in the period.",
            "examples": [
              31
            ]
          }
        },
        "required": [
          "memberId",
          "name",
          "email",
          "image",
          "open",
          "overdue",
          "completed",
          "checklistDone",
          "checklistOpen",
          "actions"
        ]
      },
      "PickablePeopleDto": {
        "type": "object",
        "properties": {
          "people": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PickablePersonDto"
            }
          }
        },
        "required": [
          "people"
        ]
      },
      "PickablePersonDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string"
          },
          "targetLanguages": {
            "description": "Target languages they work in (linguist profile and known languages), BCP-47.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sourceLanguages": {
            "description": "Languages they translate from (linguist profile and known languages), BCP-47.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "open": {
            "type": "number",
            "description": "Open tasks they hold across the org."
          }
        },
        "required": [
          "memberId",
          "targetLanguages",
          "sourceLanguages",
          "open"
        ]
      },
      "PoolListDto": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PoolTaskDto"
            }
          },
          "total": {
            "type": "number",
            "description": "Paged requests only: tasks offered to you in all."
          },
          "page": {
            "type": "number",
            "description": "Paged requests only."
          },
          "size": {
            "type": "number",
            "description": "Paged requests only."
          }
        },
        "required": [
          "items"
        ]
      },
      "PoolTaskDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "projectName": {
            "type": "string"
          },
          "sourceLanguage": {
            "type": [
              "string",
              "null"
            ]
          },
          "targetLanguage": {
            "type": [
              "string",
              "null"
            ]
          },
          "stepLabel": {
            "type": [
              "string",
              "null"
            ],
            "description": "The step offered, or null for the task itself."
          },
          "endDate": {
            "type": [
              "string",
              "null"
            ]
          },
          "pooledAt": {
            "type": "string"
          }
        },
        "required": [
          "taskId",
          "title",
          "projectId",
          "projectName",
          "sourceLanguage",
          "targetLanguage",
          "stepLabel",
          "endDate",
          "pooledAt"
        ]
      },
      "PortfolioPageDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PortfolioProjectDto"
            }
          },
          "total": {
            "type": "number"
          },
          "page": {
            "type": "number"
          },
          "limit": {
            "type": "number"
          },
          "visibility": {
            "$ref": "#/components/schemas/PortfolioVisibilityDto"
          }
        },
        "required": [
          "data",
          "total",
          "page",
          "limit",
          "visibility"
        ]
      },
      "PortfolioPersonDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "memberId",
          "name",
          "image"
        ]
      },
      "PortfolioProjectDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "description": "Status id."
          },
          "endDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "endHasTime": {
            "type": "boolean"
          },
          "health": {
            "type": "string",
            "enum": [
              "done",
              "overdue",
              "at_risk",
              "on_track"
            ]
          },
          "progress": {
            "type": [
              "number",
              "null"
            ],
            "description": "Done or Closed tasks / all tasks, 0 to 1. Null with none."
          },
          "tasks": {
            "$ref": "#/components/schemas/PortfolioTaskCountsDto"
          },
          "runs": {
            "$ref": "#/components/schemas/PortfolioRunCountsDto"
          },
          "minutes": {
            "type": [
              "number",
              "null"
            ],
            "description": "Minutes logged. Null when time is hidden from you."
          },
          "approvedMinutes": {
            "type": [
              "number",
              "null"
            ]
          },
          "plannedMinutes": {
            "type": [
              "number",
              "null"
            ],
            "description": "Planned minutes of its tasks. Null when time is hidden."
          },
          "cost": {
            "type": [
              "number",
              "null"
            ],
            "description": "Approved hours × hourly rates. Only with `member_rate:read`."
          },
          "lastActivityAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "leads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PortfolioPersonDto"
            }
          }
        },
        "required": [
          "id",
          "name",
          "color",
          "status",
          "endDate",
          "endHasTime",
          "health",
          "progress",
          "tasks",
          "runs",
          "minutes",
          "approvedMinutes",
          "plannedMinutes",
          "cost",
          "lastActivityAt",
          "leads"
        ]
      },
      "PortfolioProjectTotalsDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number"
          },
          "notStarted": {
            "type": "number"
          },
          "active": {
            "type": "number"
          },
          "done": {
            "type": "number"
          },
          "closed": {
            "type": "number"
          },
          "overdue": {
            "type": "number",
            "description": "Active projects (an ACTIVE status) past their due date — of the `active` ones."
          },
          "atRisk": {
            "type": "number",
            "description": "Active projects at risk — of the `active` ones."
          }
        },
        "required": [
          "total",
          "notStarted",
          "active",
          "done",
          "closed",
          "overdue",
          "atRisk"
        ]
      },
      "PortfolioRunCountsDto": {
        "type": "object",
        "properties": {
          "running": {
            "type": "number"
          },
          "failed": {
            "type": "number",
            "description": "Failed runs the workflow still owns (nobody took over)."
          },
          "awaitingApproval": {
            "type": "number"
          }
        },
        "required": [
          "running",
          "failed",
          "awaitingApproval"
        ]
      },
      "PortfolioStatusCountsDto": {
        "type": "object",
        "properties": {
          "counts": {
            "description": "Projects per status group under every filter but the status one (for the status menu).",
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectListCountsDto"
              }
            ]
          },
          "countsByStatus": {
            "type": "object",
            "description": "Projects per status id under every filter but the status one (for the status menu).",
            "additionalProperties": {
              "type": "integer"
            }
          }
        },
        "required": [
          "counts",
          "countsByStatus"
        ]
      },
      "PortfolioSummaryDto": {
        "type": "object",
        "properties": {
          "projects": {
            "$ref": "#/components/schemas/PortfolioProjectTotalsDto"
          },
          "tasks": {
            "$ref": "#/components/schemas/PortfolioTaskTotalsDto"
          },
          "runs": {
            "$ref": "#/components/schemas/PortfolioRunCountsDto"
          },
          "time": {
            "description": "Null when time is hidden from you.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/PortfolioTimeDto"
              }
            ]
          },
          "trend": {
            "$ref": "#/components/schemas/PortfolioTrendDto"
          },
          "statusCounts": {
            "$ref": "#/components/schemas/PortfolioStatusCountsDto"
          },
          "visibility": {
            "$ref": "#/components/schemas/PortfolioVisibilityDto"
          }
        },
        "required": [
          "projects",
          "tasks",
          "runs",
          "time",
          "trend",
          "statusCounts",
          "visibility"
        ]
      },
      "PortfolioTaskCountsDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number"
          },
          "done": {
            "type": "number",
            "description": "In a Done or Closed status."
          },
          "open": {
            "type": "number"
          },
          "overdue": {
            "type": "number",
            "description": "Open and past their due date."
          },
          "dueThisWeek": {
            "type": "number",
            "description": "Open and due in the next 7 days."
          }
        },
        "required": [
          "total",
          "done",
          "open",
          "overdue",
          "dueThisWeek"
        ]
      },
      "PortfolioTaskTotalsDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number"
          },
          "done": {
            "type": "number",
            "description": "In a Done or Closed status."
          },
          "open": {
            "type": "number"
          },
          "overdue": {
            "type": "number",
            "description": "Open and past their due date."
          },
          "dueThisWeek": {
            "type": "number",
            "description": "Open and due in the next 7 days."
          },
          "notStarted": {
            "type": "number"
          },
          "active": {
            "type": "number"
          },
          "closed": {
            "type": "number",
            "description": "In a Closed status (counted in `done` too)."
          }
        },
        "required": [
          "total",
          "done",
          "open",
          "overdue",
          "dueThisWeek",
          "notStarted",
          "active",
          "closed"
        ]
      },
      "PortfolioTimeDto": {
        "type": "object",
        "properties": {
          "minutes": {
            "type": "number"
          },
          "approvedMinutes": {
            "type": "number"
          },
          "plannedMinutes": {
            "type": [
              "number",
              "null"
            ]
          },
          "cost": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "minutes",
          "approvedMinutes",
          "plannedMinutes",
          "cost"
        ]
      },
      "PortfolioTrendDto": {
        "type": "object",
        "properties": {
          "weeks": {
            "description": "Each week’s Monday (UTC, `YYYY-MM-DD`), oldest first.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "completed": {
            "description": "Tasks that reached Done.",
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "created": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "overdue": {
            "description": "Tasks open past their due date at the week’s end.",
            "type": "array",
            "items": {
              "type": "number"
            }
          }
        },
        "required": [
          "weeks",
          "completed",
          "created",
          "overdue"
        ]
      },
      "PortfolioVisibilityDto": {
        "type": "object",
        "properties": {
          "time": {
            "type": "boolean",
            "description": "Whether time figures are filled (people with timesheets)."
          },
          "cost": {
            "type": "boolean",
            "description": "Whether cost is filled (`member_rate:read`)."
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "EUR"
            ]
          }
        },
        "required": [
          "time",
          "cost",
          "currency"
        ]
      },
      "PortfolioWordsDto": {
        "type": "object",
        "properties": {
          "period": {
            "type": "string",
            "enum": [
              "7d",
              "30d",
              "90d",
              "all"
            ]
          },
          "from": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start of the period; null for all time."
          },
          "to": {
            "type": "string"
          },
          "wordsReviewed": {
            "type": "number",
            "description": "Each segment once per linguist, at its length after their last edit."
          },
          "wordsEdited": {
            "type": "number",
            "description": "Words added + removed."
          },
          "projects": {
            "type": "number",
            "description": "Projects in view (the filters)."
          },
          "projectsWithProofreading": {
            "type": "number",
            "description": "Of those, projects with proofreading."
          },
          "averagePerProject": {
            "type": "number",
            "description": "Words reviewed ÷ projects with proofreading."
          },
          "languages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PortfolioWordsPairDto"
            }
          },
          "topProjects": {
            "description": "The 5 projects with the most words reviewed.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PortfolioWordsProjectDto"
            }
          }
        },
        "required": [
          "period",
          "from",
          "to",
          "wordsReviewed",
          "wordsEdited",
          "projects",
          "projectsWithProofreading",
          "averagePerProject",
          "languages",
          "topProjects"
        ]
      },
      "PortfolioWordsPairDto": {
        "type": "object",
        "properties": {
          "sourceLanguage": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "de-DE"
            ]
          },
          "wordsReviewed": {
            "type": "number",
            "examples": [
              12400
            ]
          },
          "wordsEdited": {
            "type": "number",
            "examples": [
              860
            ]
          },
          "projects": {
            "type": "number",
            "description": "Projects with proofreading in this pair."
          },
          "averagePerProject": {
            "type": "number",
            "description": "Words reviewed ÷ those projects."
          }
        },
        "required": [
          "sourceLanguage",
          "targetLanguage",
          "wordsReviewed",
          "wordsEdited",
          "projects",
          "averagePerProject"
        ]
      },
      "PortfolioWordsProjectDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "wordsReviewed": {
            "type": "number"
          },
          "wordsEdited": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "name",
          "color",
          "wordsReviewed",
          "wordsEdited"
        ]
      },
      "ProgressDto": {
        "type": "object",
        "properties": {
          "created": {
            "description": "Tasks created up to each bucket’s end (cumulative).",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                3,
                5
              ]
            ]
          },
          "completed": {
            "description": "Tasks in a Done status at each bucket’s end.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                1,
                2
              ]
            ]
          },
          "byStatus": {
            "description": "Tasks per status now, in board order.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatusCountDto"
            }
          },
          "dueHealth": {
            "$ref": "#/components/schemas/DueHealthDto"
          },
          "projectDue": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "The project’s due date.",
            "examples": [
              null
            ]
          },
          "forecast": {
            "description": "When the open tasks would be done at the recent pace.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ForecastDto"
              }
            ]
          },
          "overdueTasks": {
            "description": "The 5 most overdue open tasks, most overdue first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OverdueTaskDto"
            }
          }
        },
        "required": [
          "created",
          "completed",
          "byStatus",
          "dueHealth",
          "projectDue",
          "forecast",
          "overdueTasks"
        ]
      },
      "ProjectAnalyticsDto": {
        "type": "object",
        "properties": {
          "period": {
            "$ref": "#/components/schemas/PeriodDto"
          },
          "headline": {
            "$ref": "#/components/schemas/HeadlineDto"
          },
          "progress": {
            "$ref": "#/components/schemas/ProgressDto"
          },
          "flow": {
            "$ref": "#/components/schemas/FlowDto"
          },
          "runs": {
            "description": "Null when the project has no workflow and never ran one.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/RunsDto"
              }
            ]
          },
          "credits": {
            "description": "Null unless you may see credit usage (`credits:read`).",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/CreditsDto"
              }
            ]
          },
          "people": {
            "description": "Everyone with work in the project, busiest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PersonStatsDto"
            }
          },
          "languages": {
            "description": "Tasks per source → target language, most first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectAnalyticsLanguagePairDto"
            }
          },
          "files": {
            "$ref": "#/components/schemas/FilesDto"
          },
          "historyDays": {
            "type": [
              "number",
              "null"
            ],
            "description": "How many days of changes are kept: `people[].actions` counts only changes made in the last this many days. `null` when every change is kept.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "period",
          "headline",
          "progress",
          "flow",
          "runs",
          "credits",
          "people",
          "languages",
          "files",
          "historyDays"
        ]
      },
      "ProjectAnalyticsLanguagePairDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "en"
            ]
          },
          "target": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "de"
            ]
          },
          "tasks": {
            "type": "number",
            "examples": [
              12
            ]
          },
          "completed": {
            "type": "number",
            "examples": [
              8
            ]
          }
        },
        "required": [
          "source",
          "target",
          "tasks",
          "completed"
        ]
      },
      "ProjectFieldDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Where the value is stored: a run-input key for a workflow field, `custom:<id>` for a custom one.",
            "examples": [
              "translate__targetLanguage"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "workflow",
              "custom"
            ]
          },
          "label": {
            "type": "string",
            "examples": [
              "Target language"
            ]
          },
          "type": {
            "type": "string",
            "description": "Input kind: a workflow field’s Cosmos kind (`language`, `tm`, `file`, …) or a custom field’s type.",
            "examples": [
              "language"
            ]
          },
          "group": {
            "type": "string",
            "description": "Group shown above it: the workflow step, or “Project fields”.",
            "examples": [
              "Translate PDF"
            ]
          },
          "required": {
            "type": "boolean",
            "examples": [
              true
            ]
          },
          "perFile": {
            "type": "boolean",
            "description": "True for the input that takes one file per task: it is never set on the project.",
            "examples": [
              false
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Custom field id."
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Choices of a custom `select` field."
          }
        },
        "required": [
          "key",
          "source",
          "label",
          "type",
          "group",
          "required",
          "perFile"
        ]
      },
      "ProjectFieldsResponseDto": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
            ]
          },
          "workflow": {
            "description": "The default workflow (the first of `workflows`), or null for a project without one.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectWorkflowDto"
              }
            ]
          },
          "workflows": {
            "description": "Every attached workflow, the default first. A run picks one; step owners, modes and checklists are set per step (`nodeId`), across all of them.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectWorkflowDto"
            }
          },
          "runOutcomes": {
            "description": "Where a task goes when its run ends: a status id per outcome. Unset means Processed, Failed or Cancelled.",
            "allOf": [
              {
                "$ref": "#/components/schemas/RunOutcomesDto"
              }
            ]
          },
          "assignmentRules": {
            "description": "Who takes work nobody named by hand, in order. Set with Set assignment rules.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssignmentRuleDto"
            }
          },
          "poolLimit": {
            "type": [
              "number",
              "null"
            ],
            "description": "Open pool tasks one person may hold in this project at once; `null`: the default (10).",
            "examples": [
              null
            ]
          },
          "fields": {
            "description": "Workflow fields in run order, then custom fields in their order.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectFieldDto"
            }
          },
          "values": {
            "type": "object",
            "additionalProperties": true,
            "description": "The project’s values, by field `key`.",
            "examples": [
              {
                "translate__targetLanguage": "de"
              }
            ]
          },
          "missing": {
            "description": "Required fields with no value yet — of the default workflow and the custom fields (the per-file input is never listed).",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "translate__tmId"
              ]
            ]
          },
          "ready": {
            "type": "boolean",
            "description": "True when a workflow is attached and no required field is missing.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "projectId",
          "workflow",
          "workflows",
          "runOutcomes",
          "assignmentRules",
          "poolLimit",
          "fields",
          "values",
          "missing",
          "ready"
        ]
      },
      "ProjectFilesStatsDto": {
        "type": "object",
        "properties": {
          "files": {
            "type": "number",
            "description": "Files inside the project folder.",
            "examples": [
              148
            ]
          },
          "folders": {
            "type": "number",
            "description": "Sub-folders inside it.",
            "examples": [
              6
            ]
          },
          "bytes": {
            "type": "number",
            "description": "Total size in bytes.",
            "examples": [
              2576980378
            ]
          }
        },
        "required": [
          "files",
          "folders",
          "bytes"
        ]
      },
      "ProjectListCountsDto": {
        "type": "object",
        "properties": {
          "all": {
            "type": "number",
            "description": "All projects you can see.",
            "examples": [
              24
            ]
          },
          "NOT_STARTED": {
            "type": "number",
            "description": "In a NOT_STARTED status.",
            "examples": [
              2
            ]
          },
          "ACTIVE": {
            "type": "number",
            "description": "In an ACTIVE status.",
            "examples": [
              9
            ]
          },
          "DONE": {
            "type": "number",
            "description": "In a DONE status.",
            "examples": [
              12
            ]
          },
          "CLOSED": {
            "type": "number",
            "description": "In a CLOSED status.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "all",
          "NOT_STARTED",
          "ACTIVE",
          "DONE",
          "CLOSED"
        ]
      },
      "ProjectListResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "This page.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectResponseDto"
            }
          },
          "total": {
            "type": "number",
            "description": "Projects matching the filters.",
            "examples": [
              24
            ]
          },
          "page": {
            "type": "number",
            "description": "Page returned.",
            "examples": [
              1
            ]
          },
          "limit": {
            "type": "number",
            "description": "Page size used.",
            "examples": [
              20
            ]
          },
          "counts": {
            "description": "Counts per status group, ignoring the status filters (for status tabs).",
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectListCountsDto"
              }
            ]
          },
          "countsByStatus": {
            "type": "object",
            "description": "Projects per status id, ignoring the status filters (for a status filter menu).",
            "additionalProperties": {
              "type": "integer"
            },
            "examples": [
              {
                "H9UQxTGsGLyP40zMAvAzV": 3,
                "OnE7lr3sHpKLiBAc9-S0O": 1
              }
            ]
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "With `status` set: the cursor for its next page, or `null` on the last page. `null` otherwise.",
            "examples": [
              "WzIwNDgsIjIyMjIyMjIyLTIyMjItNDIyMi04MjIyLTIyMjIyMjIyMjIyMiJd"
            ]
          }
        },
        "required": [
          "data",
          "total",
          "page",
          "limit",
          "counts",
          "countsByStatus",
          "nextCursor"
        ]
      },
      "ProjectMemberDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "Organization member id.",
            "examples": [
              "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name.",
            "examples": [
              "Priya Sharma"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email address.",
            "examples": [
              "priya@acme.com"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "Profile picture URL.",
            "examples": [
              null
            ]
          },
          "role": {
            "type": "string",
            "enum": [
              "lead",
              "member"
            ],
            "description": "`lead` is accountable for the project; `member` works on it.",
            "examples": [
              "lead"
            ]
          },
          "isWatcher": {
            "type": "boolean",
            "description": "Whether they get updates about every task.",
            "examples": [
              true
            ]
          },
          "weeklyCapacity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Open tasks they can carry in a week on this project, or null when not set. Returned by List project members.",
            "examples": [
              6
            ]
          }
        },
        "required": [
          "memberId",
          "name",
          "email",
          "image",
          "role",
          "isWatcher"
        ]
      },
      "ProjectMemberInputDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "Organization member id.",
            "examples": [
              "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
            ]
          },
          "role": {
            "type": "string",
            "enum": [
              "lead",
              "member"
            ],
            "default": "member",
            "description": "`lead` is accountable for the project; `member` works on it.",
            "examples": [
              "member"
            ]
          },
          "isWatcher": {
            "type": "boolean",
            "description": "Whether they get updates about every task. Defaults to true for leads, false for members.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "memberId"
        ]
      },
      "ProjectPersonDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "Organization member id.",
            "examples": [
              "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name.",
            "examples": [
              "Priya Sharma"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email address.",
            "examples": [
              "priya@acme.com"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "Profile picture URL.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "memberId",
          "name",
          "email",
          "image"
        ]
      },
      "ProjectProcessCountDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "translate_video",
              "translate_photo",
              "tp_adapt",
              "tp_image",
              "quality_control",
              "cosmos",
              "playground",
              "blog",
              "performance_marketing"
            ],
            "description": "Kind of process.",
            "examples": [
              "translate_video"
            ]
          },
          "count": {
            "type": "integer",
            "description": "Processes of this kind in the project that you can see.",
            "examples": [
              4
            ]
          }
        },
        "required": [
          "source",
          "count"
        ]
      },
      "ProjectProcessesResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "Processes on this page, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectProcessRowDto"
            }
          },
          "counts": {
            "description": "One entry per kind of process you can read, zeros included. Kinds your organization does not have, or your key cannot read, are left out.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectProcessCountDto"
            }
          },
          "total": {
            "type": "integer",
            "description": "Processes matching `source` (or of every kind), across all pages.",
            "examples": [
              7
            ]
          },
          "page": {
            "type": "integer",
            "description": "Page returned.",
            "examples": [
              1
            ]
          },
          "size": {
            "type": "integer",
            "description": "Page size used.",
            "examples": [
              20
            ]
          }
        },
        "required": [
          "data",
          "counts",
          "total",
          "page",
          "size"
        ]
      },
      "ProjectProcessLinkDto": {
        "type": "object",
        "properties": {
          "decisionId": {
            "type": "string",
            "description": "`quality_control` only: the decision the run produced.",
            "examples": [
              "0d1e2f3a-4b5c-4d6e-8f70-8192a3b4c5d6"
            ]
          },
          "versionId": {
            "type": "string",
            "description": "`tp_image` only: the newest translation version.",
            "examples": [
              "8e9f0a1b-2c3d-4e5f-a617-28394a5b6c7d"
            ]
          }
        }
      },
      "ProjectProcessOwnerDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name of the member who created the process.",
            "examples": [
              "Priya Sharma"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of the member's profile picture.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "name",
          "image"
        ]
      },
      "ProjectProcessParentDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The workflow run (a Cosmos execution).",
            "examples": [
              "6682e2c4-297b-4338-825f-3c43b2e5d2ca"
            ]
          },
          "name": {
            "type": "string",
            "description": "The run’s name.",
            "examples": [
              "settings-strings.json"
            ]
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "ProjectProcessRowDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "translate_video",
              "translate_photo",
              "tp_adapt",
              "tp_image",
              "quality_control",
              "cosmos",
              "playground",
              "blog",
              "performance_marketing"
            ],
            "description": "Kind of process, which tells you which API owns it.",
            "examples": [
              "translate_video"
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the process in its own API, for example the `jobId` of a Video Dubbing job.",
            "examples": [
              "9b1f6c2e-3d4a-4e5f-8a7b-1c2d3e4f5a6b"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the process.",
            "examples": [
              "Spring launch teaser"
            ]
          },
          "subtitle": {
            "type": [
              "string",
              "null"
            ],
            "description": "A short detail that tells processes apart, such as its languages, type or workflow.",
            "examples": [
              "English (United States) → Hindi (India)"
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "The process status in its own API's words.",
            "examples": [
              "succeeded"
            ]
          },
          "statusTone": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "success",
              "failed",
              "cancelled",
              "other"
            ],
            "description": "The status mapped to one set of words for every kind of process.",
            "examples": [
              "success"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the process was created.",
            "examples": [
              "2026-09-21T14:03:12.000Z"
            ]
          },
          "owner": {
            "description": "The member who created the process, if known.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectProcessOwnerDto"
              }
            ]
          },
          "link": {
            "description": "Extra IDs some kinds need to open the process. `null` for the others.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectProcessLinkDto"
              }
            ]
          },
          "partOf": {
            "description": "The workflow run whose step made this job (the run is its own row). `null` for a job started on its own, and for runs.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectProcessParentDto"
              }
            ]
          }
        },
        "required": [
          "source",
          "id",
          "name",
          "subtitle",
          "status",
          "statusTone",
          "createdAt",
          "owner",
          "link"
        ]
      },
      "ProjectProcessSearchResponseDto": {
        "type": "object",
        "properties": {
          "sources": {
            "type": "array",
            "description": "Every kind of process you can read: your organization has it and your role can read it.",
            "items": {
              "type": "string",
              "enum": [
                "translate_video",
                "translate_photo",
                "tp_adapt",
                "tp_image",
                "quality_control",
                "cosmos",
                "playground",
                "blog",
                "performance_marketing"
              ]
            }
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "translate_video",
              "translate_photo",
              "tp_adapt",
              "tp_image",
              "quality_control",
              "cosmos",
              "playground",
              "blog",
              "performance_marketing"
            ],
            "description": "The kind listed; `null` when you can read none."
          },
          "data": {
            "description": "Processes in any project or none, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectProcessSearchRowDto"
            }
          },
          "page": {
            "type": "integer",
            "examples": [
              1
            ]
          },
          "size": {
            "type": "integer",
            "examples": [
              20
            ]
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether another page follows."
          }
        },
        "required": [
          "sources",
          "source",
          "data",
          "page",
          "size",
          "hasMore"
        ]
      },
      "ProjectProcessSearchRowDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "translate_video",
              "translate_photo",
              "tp_adapt",
              "tp_image",
              "quality_control",
              "cosmos",
              "playground",
              "blog",
              "performance_marketing"
            ],
            "description": "Kind of process, which tells you which API owns it.",
            "examples": [
              "translate_video"
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the process in its own API, for example the `jobId` of a Video Dubbing job.",
            "examples": [
              "9b1f6c2e-3d4a-4e5f-8a7b-1c2d3e4f5a6b"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the process.",
            "examples": [
              "Spring launch teaser"
            ]
          },
          "subtitle": {
            "type": [
              "string",
              "null"
            ],
            "description": "A short detail that tells processes apart, such as its languages, type or workflow.",
            "examples": [
              "English (United States) → Hindi (India)"
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "The process status in its own API's words.",
            "examples": [
              "succeeded"
            ]
          },
          "statusTone": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "success",
              "failed",
              "cancelled",
              "other"
            ],
            "description": "The status mapped to one set of words for every kind of process.",
            "examples": [
              "success"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the process was created.",
            "examples": [
              "2026-09-21T14:03:12.000Z"
            ]
          },
          "owner": {
            "description": "The member who created the process, if known.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectProcessOwnerDto"
              }
            ]
          },
          "link": {
            "description": "Extra IDs some kinds need to open the process. `null` for the others.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectProcessLinkDto"
              }
            ]
          },
          "partOf": {
            "description": "The workflow run whose step made this job (the run is its own row). `null` for a job started on its own, and for runs.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectProcessParentDto"
              }
            ]
          },
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The project the process is filed in; `null` for none."
          },
          "projectName": {
            "type": [
              "string",
              "null"
            ],
            "description": "That project’s name; `null` when it is in none, or in a project hidden from you.",
            "examples": [
              "Spring launch"
            ]
          }
        },
        "required": [
          "source",
          "id",
          "name",
          "subtitle",
          "status",
          "statusTone",
          "createdAt",
          "owner",
          "link",
          "projectId",
          "projectName"
        ]
      },
      "ProjectProgressDto": {
        "type": "object",
        "properties": {
          "tasks": {
            "type": "number",
            "description": "Tasks in the project you can see.",
            "examples": [
              36
            ]
          },
          "completedTasks": {
            "type": "number",
            "description": "Of those, tasks whose status is in DONE or CLOSED.",
            "examples": [
              21
            ]
          },
          "processes": {
            "type": "number",
            "description": "Galaxy processes filed in the project.",
            "examples": [
              14
            ]
          }
        },
        "required": [
          "tasks",
          "completedTasks",
          "processes"
        ]
      },
      "ProjectResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Project id.",
            "examples": [
              "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
            ]
          },
          "name": {
            "type": "string",
            "description": "Project name.",
            "examples": [
              "Brochure DE"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description.",
            "examples": [
              "Spring brochure for Acme GmbH."
            ]
          },
          "color": {
            "type": [
              "string",
              "null"
            ],
            "description": "Swatch colour.",
            "examples": [
              "#5b3ad6"
            ]
          },
          "visibility": {
            "type": "string",
            "enum": [
              "org",
              "members"
            ],
            "description": "Who can see the project.",
            "examples": [
              "members"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "manual",
              "cosmos"
            ],
            "description": "`cosmos` once a workflow is attached.",
            "examples": [
              "manual"
            ]
          },
          "status": {
            "type": "string",
            "description": "Status id.",
            "examples": [
              "QvCQT30CEfb8OaDJQKI5g"
            ]
          },
          "order": {
            "type": "number",
            "description": "Manual position inside its status (ascending). Set by `POST /v1/project/{id}/move`.",
            "examples": [
              2048
            ]
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "description": "Priority id.",
            "examples": [
              null
            ]
          },
          "sourceLanguage": {
            "type": [
              "string",
              "null"
            ],
            "description": "Source language.",
            "examples": [
              "en"
            ]
          },
          "targetLanguages": {
            "description": "Target languages.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "de"
              ]
            ]
          },
          "startDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Start date.",
            "examples": [
              null
            ]
          },
          "startHasTime": {
            "type": "boolean",
            "description": "Whether `startDate` carries a time. When false it is a whole day, stored at midnight UTC.",
            "examples": [
              false
            ]
          },
          "endDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Due date.",
            "examples": [
              "2026-10-24T00:00:00.000Z"
            ]
          },
          "endHasTime": {
            "type": "boolean",
            "description": "Whether `endDate` carries a time. When false it is a whole day, stored at midnight UTC.",
            "examples": [
              false
            ]
          },
          "tags": {
            "description": "Tags.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "acme"
              ]
            ]
          },
          "requiredExpertise": {
            "description": "Expertise the work needs (linguist expertise catalog ids).",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "legal"
              ]
            ]
          },
          "driveFolderId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The project's folder in your drive (`Projects/<name>/`). List it with List assets and `projectId`.",
            "examples": [
              "83c14b50-7006-4284-bd0f-965b0e4a2ad9"
            ]
          },
          "dealId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "The deal this project is delivered under, if any."
          },
          "owner": {
            "description": "Who created the project.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectPersonDto"
              }
            ]
          },
          "members": {
            "description": "Leads and members.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProjectMemberDto"
            }
          },
          "progress": {
            "description": "Counts.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectProgressDto"
              }
            ]
          },
          "starred": {
            "type": "boolean",
            "description": "Whether you starred the project.",
            "examples": [
              false
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Created at.",
            "examples": [
              "2026-10-05T15:52:37.956Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Last changed at.",
            "examples": [
              "2026-10-05T15:52:37.956Z"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "color",
          "visibility",
          "mode",
          "status",
          "order",
          "priority",
          "sourceLanguage",
          "targetLanguages",
          "startDate",
          "startHasTime",
          "endDate",
          "endHasTime",
          "tags",
          "requiredExpertise",
          "driveFolderId",
          "dealId",
          "owner",
          "members",
          "progress",
          "starred",
          "createdAt",
          "updatedAt"
        ]
      },
      "ProjectScheduleDto": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "Start of the window.",
            "examples": [
              "2026-10-01T00:00:00.000Z"
            ]
          },
          "to": {
            "type": "string",
            "description": "End of the window (inclusive day).",
            "examples": [
              "2026-11-30T00:00:00.000Z"
            ]
          },
          "tasks": {
            "description": "Tasks whose dates overlap the window: from the start (or the due date when there is no start) to the due date (or the start). Earliest first, at most 1,000.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskResponseDto"
            }
          },
          "truncated": {
            "type": "boolean",
            "description": "True when more than 1,000 tasks overlap the window.",
            "examples": [
              false
            ]
          },
          "unscheduled": {
            "$ref": "#/components/schemas/ScheduleUnscheduledDto"
          },
          "people": {
            "description": "Workload per person: the project’s members and anyone assigned open work, leads first. Counts ignore `q`, `assignee` and the window.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SchedulePersonDto"
            }
          },
          "unassigned": {
            "description": "Open tasks nobody is assigned.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ScheduleLoadDto"
              }
            ]
          }
        },
        "required": [
          "from",
          "to",
          "tasks",
          "truncated",
          "unscheduled",
          "people",
          "unassigned"
        ]
      },
      "ProjectTeamDto": {
        "type": "object",
        "properties": {
          "people": {
            "description": "Everyone on the project, and anyone assigned work in it, leads first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TeamPersonDto"
            }
          },
          "unassigned": {
            "$ref": "#/components/schemas/TeamUnassignedDto"
          }
        },
        "required": [
          "people",
          "unassigned"
        ]
      },
      "ProjectWorkflowDto": {
        "type": "object",
        "properties": {
          "flowId": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "3c9d7e1a-5b2f-4a6c-8d0e-1f2a3b4c5d6e"
            ]
          },
          "flowName": {
            "type": "string",
            "examples": [
              "Translate PDF + QC"
            ]
          },
          "version": {
            "type": "number",
            "description": "Workflow version the project’s fields were built from.",
            "examples": [
              3
            ]
          },
          "currentVersion": {
            "type": [
              "number",
              "null"
            ],
            "description": "The workflow’s current version, or null if it was deleted. Above `version` means it was edited since: see Preview workflow changes.",
            "examples": [
              4
            ]
          },
          "outdated": {
            "type": "boolean",
            "description": "True when the workflow was edited after the project last synced it.",
            "examples": [
              true
            ]
          },
          "fanOutKey": {
            "type": [
              "string",
              "null"
            ],
            "description": "The run input that takes one file per task.",
            "examples": [
              "translate__source"
            ]
          },
          "locked": {
            "type": "boolean",
            "description": "True once this workflow has runs filed in the project: it can be synced, but not swapped or detached.",
            "examples": [
              false
            ]
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowStepDto"
            }
          },
          "inputSchema": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The workflow’s run inputs as of `version` — the shape of a workflow’s `inputSchema` (see Get a workflow)."
          },
          "shareGroups": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Inputs joined by `share` edges, as of `version`."
          },
          "nodes": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "The workflow’s steps (graph nodes) as of `version`."
          },
          "order": {
            "description": "Every node’s `id` in the order a run reaches them.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "attachedAt": {
            "type": "string",
            "format": "date-time"
          },
          "isDefault": {
            "type": "boolean",
            "description": "Whether this is the project’s default workflow — the one a run uses unless another is picked.",
            "examples": [
              true
            ]
          },
          "missing": {
            "description": "This workflow’s required inputs with no project value yet (the per-file input is never listed).",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "translate__tmId"
              ]
            ]
          },
          "stepOwners": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            },
            "description": "Who owns each step, by the step’s `nodeId`: member ids. A batch’s runs get them as step owners, and a task in a step is assigned to that step’s owners. Set with Set step owners.",
            "examples": [
              {
                "translate": [
                  "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
                ]
              }
            ]
          },
          "stepModes": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "enum": [
                "manual"
              ]
            },
            "description": "Steps a lead assigns by hand, by the step’s `nodeId`. Any other step is automatic: its owners if it has any, else (a review step in a deal) the best-matching proofreader. Set with Set step modes.",
            "examples": [
              {
                "signoff": "manual"
              }
            ]
          },
          "stepChecklists": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "required": [
                "title",
                "items",
                "blocksApproval"
              ],
              "properties": {
                "title": {
                  "type": "string",
                  "maxLength": 200,
                  "examples": [
                    "Client QA"
                  ]
                },
                "items": {
                  "type": "array",
                  "maxItems": 50,
                  "items": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "examples": [
                    [
                      "Fonts match the brand kit",
                      "No overflowing text"
                    ]
                  ]
                },
                "blocksApproval": {
                  "type": "boolean",
                  "description": "Only on an approval step: the step can’t be approved until every item is done.",
                  "examples": [
                    true
                  ]
                }
              }
            },
            "description": "A checklist per step, by the step’s `nodeId`. Attached to a task when it enters the step, every item assigned to the step’s owners; with `blocksApproval`, the approval step waits until it is done. Set with Set step checklists.",
            "examples": [
              {
                "signoff": {
                  "title": "Client QA",
                  "items": [
                    "Fonts match the brand kit"
                  ],
                  "blocksApproval": true
                }
              }
            ]
          },
          "languageFields": {
            "description": "Every language field of the workflow’s steps, asked at run time or set by the builder, in run order — what a task’s languages can be linked to.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LanguageFieldDto"
            }
          },
          "languageLink": {
            "description": "The fields each language fills when a task runs: its source in `source`, its target(s) in `target`. Set with Set language mapping.",
            "allOf": [
              {
                "$ref": "#/components/schemas/LanguageLinkDto"
              }
            ]
          },
          "suggestedLanguageLink": {
            "description": "A link to offer (`null` where unsure). Never applied until saved.",
            "allOf": [
              {
                "$ref": "#/components/schemas/LanguageLinkDto"
              }
            ]
          }
        },
        "required": [
          "flowId",
          "flowName",
          "version",
          "currentVersion",
          "outdated",
          "fanOutKey",
          "locked",
          "steps",
          "inputSchema",
          "shareGroups",
          "nodes",
          "order",
          "attachedAt",
          "isDefault",
          "missing",
          "stepOwners",
          "stepModes",
          "stepChecklists",
          "languageFields",
          "languageLink",
          "suggestedLanguageLink"
        ]
      },
      "ReasonCountDto": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "examples": [
              "The PDF is password-protected."
            ]
          },
          "count": {
            "type": "number",
            "examples": [
              2
            ]
          }
        },
        "required": [
          "reason",
          "count"
        ]
      },
      "ReassignStepDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "description": "The member who takes the task’s current step.",
            "format": "uuid"
          }
        },
        "required": [
          "memberId"
        ]
      },
      "ReorderChecklistItemsDto": {
        "type": "object",
        "properties": {
          "itemIds": {
            "description": "Every item id of the checklist, in the new order.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "f1888af0-9baa-444f-b513-4c5b428071a0"
              ]
            ]
          }
        },
        "required": [
          "itemIds"
        ]
      },
      "ReplaceCustomFieldsDto": {
        "type": "object",
        "properties": {
          "fields": {
            "description": "Every custom field of the project, in order (at most 50). A field left out is removed, with its values.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldInputDto"
            }
          }
        },
        "required": [
          "fields"
        ]
      },
      "RerunsDto": {
        "type": "object",
        "properties": {
          "once": {
            "type": "number",
            "description": "Files that ran once.",
            "examples": [
              40
            ]
          },
          "twice": {
            "type": "number",
            "description": "Files that ran twice.",
            "examples": [
              3
            ]
          },
          "more": {
            "type": "number",
            "description": "Files that ran three times or more.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "once",
          "twice",
          "more"
        ]
      },
      "RunOutcomesDto": {
        "type": "object",
        "properties": {
          "completed": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "st-client-review"
            ]
          },
          "failed": {
            "type": [
              "string",
              "null"
            ]
          },
          "cancelled": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "RunsDto": {
        "type": "object",
        "properties": {
          "completed": {
            "description": "Runs that completed, per bucket.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                4,
                6
              ]
            ]
          },
          "failed": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                1,
                0
              ]
            ]
          },
          "cancelled": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                0,
                1
              ]
            ]
          },
          "medianMinutes": {
            "type": [
              "number",
              "null"
            ],
            "description": "Median minutes a completed run took.",
            "examples": [
              12.5
            ]
          },
          "p90Minutes": {
            "type": [
              "number",
              "null"
            ],
            "examples": [
              40
            ]
          },
          "failuresByStep": {
            "description": "Failed runs by the step that failed, most first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepCountDto"
            }
          },
          "topErrors": {
            "description": "The most common failure reasons (up to 5).",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReasonCountDto"
            }
          },
          "reruns": {
            "description": "How many times each task’s file ran.",
            "allOf": [
              {
                "$ref": "#/components/schemas/RerunsDto"
              }
            ]
          },
          "batches": {
            "description": "The 10 latest batches.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchSummaryDto"
            }
          }
        },
        "required": [
          "completed",
          "failed",
          "cancelled",
          "medianMinutes",
          "p90Minutes",
          "failuresByStep",
          "topErrors",
          "reruns",
          "batches"
        ]
      },
      "RunsSummaryDto": {
        "type": "object",
        "properties": {
          "awaitingApproval": {
            "type": "number",
            "description": "Tasks whose run waits at an approval step, across the projects you can see.",
            "examples": [
              3
            ]
          },
          "awaitingMe": {
            "type": "number",
            "description": "Of those, the ones waiting for you (as in `approvals`).",
            "examples": [
              1
            ]
          },
          "running": {
            "type": "number",
            "description": "Tasks whose run is queued or running.",
            "examples": [
              12
            ]
          },
          "failed": {
            "type": "number",
            "description": "Tasks whose run failed or couldn’t start, while the workflow still owns the task.",
            "examples": [
              2
            ]
          },
          "processedThisWeek": {
            "type": "number",
            "description": "Runs that completed in the last 7 days.",
            "examples": [
              48
            ]
          },
          "overdue": {
            "type": "number",
            "description": "Open tasks past their due date (not in a Done or Closed status).",
            "examples": [
              4
            ]
          }
        },
        "required": [
          "awaitingApproval",
          "awaitingMe",
          "running",
          "failed",
          "processedThisWeek",
          "overdue"
        ]
      },
      "RunTaskDto": {
        "type": "object",
        "properties": {
          "flowId": {
            "type": "string",
            "format": "uuid",
            "description": "Which of the project’s attached workflows to run. Left out: the one the task last ran, else the default."
          },
          "values": {
            "type": "object",
            "additionalProperties": true,
            "description": "Values for this run only, on top of the project’s fields (and each task’s overrides), by field `key`: a run input (`<nodeId>__<fieldKey>`) or a step setting the workflow’s builder fixed (keyed the same way). Not saved on the project. The per-file input can’t be set here.",
            "examples": [
              {
                "n_4f2a9c1d__targetLanguage": "de-DE"
              }
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language for this run; it becomes the task’s. Left out: the task’s own.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language for this run; it becomes the task’s. Left out: the task’s own.",
            "examples": [
              "de-DE"
            ]
          }
        }
      },
      "RunTasksDto": {
        "type": "object",
        "properties": {
          "taskIds": {
            "maxItems": 200,
            "description": "Tasks of the project to run again, each exactly as Run again with no changes: its last workflow, its own file and languages.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "7c6b5a4f-3e2d-4c1b-9a0f-8e7d6c5b4a3f"
              ]
            ]
          }
        },
        "required": [
          "taskIds"
        ]
      },
      "RunTasksResultDto": {
        "type": "object",
        "properties": {
          "started": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskRunDto"
            }
          },
          "skipped": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RunTasksSkipDto"
            }
          }
        },
        "required": [
          "started",
          "skipped"
        ]
      },
      "RunTasksSkipDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "7c6b5a4f-3e2d-4c1b-9a0f-8e7d6c5b4a3f"
            ]
          },
          "title": {
            "type": "string",
            "examples": [
              "brochure.pdf"
            ]
          },
          "reason": {
            "type": "string",
            "description": "Why it didn’t start, in plain words.",
            "examples": [
              "Its run is still going."
            ]
          }
        },
        "required": [
          "taskId",
          "title",
          "reason"
        ]
      },
      "ScheduleChecklistLoadDto": {
        "type": "object",
        "properties": {
          "open": {
            "type": "number",
            "description": "Open checklist items assigned to them.",
            "examples": [
              4
            ]
          },
          "overdue": {
            "type": "number",
            "description": "Of those, due before today.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "open",
          "overdue"
        ]
      },
      "ScheduleLoadDto": {
        "type": "object",
        "properties": {
          "open": {
            "type": "number",
            "description": "Open tasks they are assigned.",
            "examples": [
              7
            ]
          },
          "overdue": {
            "type": "number",
            "description": "Of those, due before today.",
            "examples": [
              1
            ]
          },
          "unscheduled": {
            "type": "number",
            "description": "Of those, with neither a start nor a due date.",
            "examples": [
              2
            ]
          },
          "awaitingAction": {
            "type": "number",
            "description": "Of those, with a workflow run stopped at an approval or another step waiting for a person.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "open",
          "overdue",
          "unscheduled",
          "awaitingAction"
        ]
      },
      "SchedulePersonDto": {
        "type": "object",
        "properties": {
          "open": {
            "type": "number",
            "description": "Open tasks they are assigned.",
            "examples": [
              7
            ]
          },
          "overdue": {
            "type": "number",
            "description": "Of those, due before today.",
            "examples": [
              1
            ]
          },
          "unscheduled": {
            "type": "number",
            "description": "Of those, with neither a start nor a due date.",
            "examples": [
              2
            ]
          },
          "awaitingAction": {
            "type": "number",
            "description": "Of those, with a workflow run stopped at an approval or another step waiting for a person.",
            "examples": [
              1
            ]
          },
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "Organization member id.",
            "examples": [
              "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "Priya Shah"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "priya@acme.com"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              null
            ]
          },
          "role": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "lead",
              "member"
            ],
            "description": "Their role on the project, or null for someone assigned work without being a member.",
            "examples": [
              "member"
            ]
          },
          "weeklyCapacity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Open tasks they can carry in a week on this project, or null when not set.",
            "examples": [
              6
            ]
          },
          "checklist": {
            "$ref": "#/components/schemas/ScheduleChecklistLoadDto"
          },
          "doneLast7Days": {
            "type": "number",
            "description": "Tasks they are assigned that reached a done status in the last 7 days.",
            "examples": [
              3
            ]
          }
        },
        "required": [
          "open",
          "overdue",
          "unscheduled",
          "awaitingAction",
          "memberId",
          "name",
          "email",
          "image",
          "role",
          "weeklyCapacity",
          "checklist",
          "doneLast7Days"
        ]
      },
      "ScheduleUnscheduledDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number",
            "description": "Open tasks (not done or closed) with neither a start nor a due date.",
            "examples": [
              12
            ]
          },
          "data": {
            "description": "The first 50 of them, in their manual order.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskResponseDto"
            }
          }
        },
        "required": [
          "total",
          "data"
        ]
      },
      "SetAssignmentRulesDto": {
        "type": "object",
        "properties": {
          "rules": {
            "description": "The rules, in order — the first that matches a step and language pair decides. Replaces the whole list.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssignmentRuleDto"
            }
          },
          "poolLimit": {
            "type": [
              "number",
              "null"
            ],
            "description": "Open pool tasks one person may hold in this project at once (1–500); `null` for the default (10). Left out: unchanged.",
            "examples": [
              10
            ]
          }
        },
        "required": [
          "rules"
        ]
      },
      "SetDefaultWorkflowDto": {
        "type": "object",
        "properties": {
          "flowId": {
            "type": "string",
            "format": "uuid",
            "description": "One of the project’s attached workflows.",
            "examples": [
              "3c9d7e1a-5b2f-4a6c-8d0e-1f2a3b4c5d6e"
            ]
          }
        },
        "required": [
          "flowId"
        ]
      },
      "SetLanguageLinksDto": {
        "type": "object",
        "properties": {
          "flowId": {
            "type": "string",
            "format": "uuid",
            "description": "The attached workflow the mapping is for.",
            "examples": [
              "8f0c1d2e-3b4a-4c5d-9e6f-7a8b9c0d1e2f"
            ]
          },
          "source": {
            "description": "Language fields the source language fills: `key`s from the workflow’s `languageFields`. Empty: none.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "n_tr__sourceLanguage",
                "n_qc__sourceLanguage"
              ]
            ]
          },
          "target": {
            "description": "Language fields the target language fills. Empty: none — a run can’t then make one task per target language.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "n_tr__targetLanguage"
              ]
            ]
          },
          "workflow": {
            "description": "Language fields the workflow’s own languages fill (see Set workflow languages): a source field (`role: source`) its source language, any other its target language(s). While the workflow uses the project’s languages, these read as the project’s. Left out: kept as saved.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "n_tr__targetLanguage"
              ]
            ]
          },
          "oneTaskPerLanguage": {
            "type": "boolean",
            "description": "A run in several target languages makes one task per language (true, the default), or one task with all of them (false — only when every target field takes several languages).",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "flowId",
          "source",
          "target"
        ]
      },
      "SetProjectStepChecklistsDto": {
        "type": "object",
        "properties": {
          "checklists": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "required": [
                "title",
                "items",
                "blocksApproval"
              ],
              "properties": {
                "title": {
                  "type": "string",
                  "maxLength": 200,
                  "examples": [
                    "Client QA"
                  ]
                },
                "items": {
                  "type": "array",
                  "maxItems": 50,
                  "items": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "examples": [
                    [
                      "Fonts match the brand kit",
                      "No overflowing text"
                    ]
                  ]
                },
                "blocksApproval": {
                  "type": "boolean",
                  "description": "Only on an approval step: the step can’t be approved until every item is done.",
                  "examples": [
                    true
                  ]
                }
              }
            },
            "description": "A checklist per step, by the step’s `nodeId` (from the workflow’s `steps`). Replaces the whole set; a step left out has none. A title of up to 200 characters, 1 to 50 items of up to 500, and `blocksApproval`, allowed only on approval steps.",
            "examples": [
              {
                "signoff": {
                  "title": "Client QA",
                  "items": [
                    "Fonts match the brand kit",
                    "No overflowing text"
                  ],
                  "blocksApproval": true
                }
              }
            ]
          }
        },
        "required": [
          "checklists"
        ]
      },
      "SetProjectStepModesDto": {
        "type": "object",
        "properties": {
          "modes": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "enum": [
                "auto",
                "manual"
              ]
            },
            "description": "How each step is assigned, by the step’s `nodeId`: `manual` (a lead assigns it) or `auto`. Replaces the whole set; a step left out is `auto`.",
            "examples": [
              {
                "signoff": "manual"
              }
            ]
          }
        },
        "required": [
          "modes"
        ]
      },
      "SetProjectStepOwnersDto": {
        "type": "object",
        "properties": {
          "owners": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            },
            "description": "Every step’s owners, by the step’s `nodeId` (from the workflow’s `steps`): member ids of your organization. Replaces the whole set; a step left out, or given `[]`, has no owners. At most 50 per step.",
            "examples": [
              {
                "translate": [
                  "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
                ]
              }
            ]
          }
        },
        "required": [
          "owners"
        ]
      },
      "SetRunOutcomesDto": {
        "type": "object",
        "properties": {
          "completed": {
            "type": [
              "string",
              "null"
            ],
            "description": "Status a task moves to when its run completes: one of the project’s status ids. `null` for the workflow’s own Processed. Left out: unchanged.",
            "examples": [
              "st-client-review"
            ]
          },
          "failed": {
            "type": [
              "string",
              "null"
            ],
            "description": "Status a task moves to when its run fails. `null` for the workflow’s own Failed.",
            "examples": [
              null
            ]
          },
          "cancelled": {
            "type": [
              "string",
              "null"
            ],
            "description": "Status a task moves to when its run is cancelled. `null` for the workflow’s own Cancelled.",
            "examples": [
              null
            ]
          }
        }
      },
      "SetTaskFileDto": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "A file in your Drive (an asset id); `null` takes it off."
          }
        },
        "required": [
          "assetId"
        ]
      },
      "SetTaskProcessDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "translate_video",
              "translate_photo",
              "tp_adapt",
              "tp_image",
              "quality_control",
              "cosmos",
              "playground",
              "blog",
              "performance_marketing"
            ],
            "description": "Kind of process (as in `GET /v1/project/processes/search`); `null` with `processId` `null` unlinks."
          },
          "processId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The process; it must already be in the task’s project."
          }
        }
      },
      "SetWorkflowLanguagesDto": {
        "type": "object",
        "properties": {
          "flowId": {
            "type": "string",
            "format": "uuid",
            "description": "The attached workflow whose languages these are.",
            "examples": [
              "8f0c1d2e-3b4a-4c5d-9e6f-7a8b9c0d1e2f"
            ]
          },
          "sourceLanguage": {
            "type": [
              "string",
              "null"
            ],
            "description": "The workflow’s own source language (a BCP-47 code from the language catalog). Empty, with no `targetLanguages`: the workflow uses the project’s languages again.",
            "examples": [
              "en-US"
            ]
          },
          "targetLanguages": {
            "description": "The workflow’s own target languages (BCP-47 codes). A run makes one task per language, as with the project’s.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "fr-FR",
                "de-DE"
              ]
            ]
          }
        },
        "required": [
          "flowId"
        ]
      },
      "StartBatchDto": {
        "type": "object",
        "properties": {
          "folderId": {
            "type": "string",
            "format": "uuid",
            "description": "The Drive folder to run on: the project’s own folder, or any folder inside it.",
            "examples": [
              "8b1e2c3d-4f5a-4b6c-9d7e-0f1a2b3c4d5e"
            ]
          },
          "includeSubfolders": {
            "type": "boolean",
            "description": "Also run the files in the folder’s subfolders. By default only the files directly in the folder run.",
            "default": false
          },
          "assetIds": {
            "maxItems": 200,
            "description": "Run only these files (asset ids of files directly in `folderId`) instead of the whole folder. `includeSubfolders` is then ignored; an id that is not a file in the folder is left out.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "2f3e4d5c-6b7a-4c8d-9e0f-1a2b3c4d5e6f"
              ]
            ]
          },
          "flowId": {
            "type": "string",
            "format": "uuid",
            "description": "Which of the project’s attached workflows to run. Left out: the default one."
          },
          "targetLanguages": {
            "maxItems": 50,
            "description": "Target languages for this run only (BCP-47 codes from the language catalog). Left out: the project’s `targetLanguages`. With a workflow that maps the target language and makes one task per language (the default), each file gets one task per language, each with its own run, assignee, status and deliverable; otherwise one task per file carries them all.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "de-DE",
                "fr-FR"
              ]
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language for this run only (a BCP-47 code). Left out: the project’s `sourceLanguage`.",
            "examples": [
              "en-US"
            ]
          },
          "rerun": {
            "type": "boolean",
            "description": "Run files that already ran in this project again. Each gets a new run on its existing task. By default they are left out.",
            "default": false
          },
          "values": {
            "type": "object",
            "additionalProperties": true,
            "description": "Values for this run only, on top of the project’s fields (and each task’s overrides), by field `key`: a run input (`<nodeId>__<fieldKey>`) or a step setting the workflow’s builder fixed (keyed the same way). Not saved on the project. The per-file input can’t be set here.",
            "examples": [
              {
                "n_4f2a9c1d__targetLanguage": "de-DE"
              }
            ]
          }
        },
        "required": [
          "folderId"
        ]
      },
      "StatusCountDto": {
        "type": "object",
        "properties": {
          "statusId": {
            "type": "string",
            "examples": [
              "OnE7lr3sHpKLiBAc9-S0O"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "In progress"
            ]
          },
          "color": {
            "type": "string",
            "examples": [
              "#f59e0b"
            ]
          },
          "group": {
            "type": "string",
            "enum": [
              "NOT_STARTED",
              "ACTIVE",
              "DONE",
              "CLOSED"
            ],
            "examples": [
              "ACTIVE"
            ]
          },
          "count": {
            "type": "number",
            "examples": [
              4
            ]
          }
        },
        "required": [
          "statusId",
          "name",
          "color",
          "group",
          "count"
        ]
      },
      "StepAssigneeDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid"
          },
          "manual": {
            "type": "boolean",
            "description": "Picked by hand (automation never replaces them)."
          }
        },
        "required": [
          "memberId",
          "manual"
        ]
      },
      "StepAssignmentDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string",
            "format": "uuid"
          },
          "nodeId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The workflow step the task is in, or null."
          },
          "stepLabel": {
            "type": [
              "string",
              "null"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "fixed",
              "manual",
              "rule",
              "pool",
              "auto",
              "none"
            ],
            "description": "`fixed`: the task or the project names the step’s owners. `manual`: a lead assigns it. `rule`: one of the project’s assignment rules picked them. `pool`: offered to the pool; an eligible linguist claims it. `auto`: a review step in a deal goes to the best-matching proofreader. `none`: nothing assigns it."
          },
          "assignees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StepAssigneeDto"
            }
          },
          "passed": {
            "description": "Members who passed this step on.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "mine": {
            "type": "boolean",
            "description": "You have this step (and may pass it on)."
          }
        },
        "required": [
          "taskId",
          "nodeId",
          "stepLabel",
          "mode",
          "assignees",
          "passed",
          "mine"
        ]
      },
      "StepCountDto": {
        "type": "object",
        "properties": {
          "nodeId": {
            "type": "string",
            "examples": [
              "translate"
            ]
          },
          "label": {
            "type": "string",
            "examples": [
              "PDF Translation"
            ]
          },
          "count": {
            "type": "number",
            "examples": [
              3
            ]
          }
        },
        "required": [
          "nodeId",
          "label",
          "count"
        ]
      },
      "StepOwnerPreviewDto": {
        "type": "object",
        "properties": {
          "nodeId": {
            "type": "string",
            "description": "The workflow step.",
            "examples": [
              "n_signoff"
            ]
          },
          "label": {
            "type": "string",
            "description": "Its name.",
            "examples": [
              "Linguist sign-off"
            ]
          },
          "targetLanguage": {
            "type": [
              "string",
              "null"
            ],
            "description": "The target language (BCP-47) this answer is for.",
            "examples": [
              "fr-FR"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "fixed",
              "manual",
              "rule",
              "pool",
              "auto",
              "none"
            ],
            "description": "`fixed` named owners, `rule` the project’s rules, `pool` offered to claim, `manual` a lead assigns it, `auto` matched (deal proofreader or preferred linguist), `none` nobody.",
            "examples": [
              "rule"
            ]
          },
          "ownerIds": {
            "description": "Org member ids who would take it.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
              ]
            ]
          },
          "fellBack": {
            "type": "boolean",
            "description": "Nobody matched, so the project’s managers would take it.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "nodeId",
          "label",
          "targetLanguage",
          "mode",
          "ownerIds",
          "fellBack"
        ]
      },
      "TaskAssigneeDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "Organization member id.",
            "examples": [
              "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name.",
            "examples": [
              "Priya Sharma"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email.",
            "examples": [
              "priya@acme.com"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "Profile picture URL.",
            "examples": [
              null
            ]
          },
          "isAssignee": {
            "type": "boolean",
            "description": "Assigned to work on the task.",
            "examples": [
              true
            ]
          },
          "isWatcher": {
            "type": "boolean",
            "description": "Gets updates about the task.",
            "examples": [
              true
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "manual",
              "cosmos_step",
              "pool"
            ],
            "description": "`manual`: added by a person. `cosmos_step`: added because they own the workflow step the task is in; swapped automatically as the task moves on.",
            "examples": [
              "manual"
            ]
          },
          "nodeId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The workflow step that added them, for `cosmos_step`.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "memberId",
          "name",
          "email",
          "image",
          "isAssignee",
          "isWatcher",
          "source",
          "nodeId"
        ]
      },
      "TaskChecklistProgressDto": {
        "type": "object",
        "properties": {
          "done": {
            "type": "number",
            "description": "Items done.",
            "examples": [
              3
            ]
          },
          "total": {
            "type": "number",
            "description": "Items in all checklists.",
            "examples": [
              5
            ]
          }
        },
        "required": [
          "done",
          "total"
        ]
      },
      "TaskFileDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string"
          },
          "assetId": {
            "type": [
              "string",
              "null"
            ]
          },
          "fileName": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "taskId",
          "assetId",
          "fileName"
        ]
      },
      "TaskFileViewDto": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "mimeType": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where to open the file from; null if storage can’t say."
          }
        },
        "required": [
          "assetId",
          "name",
          "mimeType",
          "url"
        ]
      },
      "TaskLinkedProcessRefDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "Kind of process (`translate_video`, `cosmos`, … as in `GET /v1/project/{id}/processes`).",
            "examples": [
              "translate_video"
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The process’s id."
          }
        },
        "required": [
          "source",
          "id"
        ]
      },
      "TaskListResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "This page.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskResponseDto"
            }
          },
          "total": {
            "type": "number",
            "description": "Tasks matching the filters.",
            "examples": [
              36
            ]
          },
          "page": {
            "type": "number",
            "description": "Page returned.",
            "examples": [
              1
            ]
          },
          "limit": {
            "type": "number",
            "description": "Page size used.",
            "examples": [
              50
            ]
          },
          "countsByStatus": {
            "type": "object",
            "description": "Tasks per status id, ignoring the status filter (for board columns and status tabs).",
            "additionalProperties": {
              "type": "integer"
            },
            "examples": [
              {
                "H9UQxTGsGLyP40zMAvAzV": 15,
                "OnE7lr3sHpKLiBAc9-S0O": 6
              }
            ]
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "With `status` set to a single status id: the cursor for its next page, or `null` on the last page. `null` otherwise.",
            "examples": [
              "WzIwNDgsIjIyMjIyMjIyLTIyMjItNDIyMi04MjIyLTIyMjIyMjIyMjIyMiJd"
            ]
          }
        },
        "required": [
          "data",
          "total",
          "page",
          "limit",
          "countsByStatus",
          "nextCursor"
        ]
      },
      "TaskMemberInputDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "Organization member id.",
            "examples": [
              "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
            ]
          },
          "isAssignee": {
            "type": "boolean",
            "default": true,
            "description": "Assigned to work on the task.",
            "examples": [
              true
            ]
          },
          "isWatcher": {
            "type": "boolean",
            "default": true,
            "description": "Gets updates about the task.",
            "examples": [
              true
            ]
          },
          "teamId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The team they were added through, if any.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "memberId"
        ]
      },
      "TaskPersonDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "Organization member id.",
            "examples": [
              "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Display name.",
            "examples": [
              "Priya Sharma"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email.",
            "examples": [
              "priya@acme.com"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "Profile picture URL.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "memberId",
          "name",
          "email",
          "image"
        ]
      },
      "TaskProcessResponseDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string",
            "format": "uuid"
          },
          "linked": {
            "description": "What the task tracks; `null` for nothing.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskProcessViewDto"
              }
            ]
          }
        },
        "required": [
          "taskId",
          "linked"
        ]
      },
      "TaskProcessViewDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "available": {
            "type": "boolean",
            "description": "False when the process was deleted."
          },
          "readable": {
            "type": "boolean",
            "description": "False when you can’t read this kind of process; `process` is null then."
          },
          "process": {
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectProcessSearchRowDto"
              }
            ]
          }
        },
        "required": [
          "source",
          "id",
          "available",
          "readable",
          "process"
        ]
      },
      "TaskResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Task id.",
            "examples": [
              "8abfec8a-beeb-4122-9544-cee77dc091d5"
            ]
          },
          "projectId": {
            "type": "string",
            "format": "uuid",
            "description": "Project id.",
            "examples": [
              "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
            ]
          },
          "title": {
            "type": "string",
            "description": "Title.",
            "examples": [
              "Translate box copy"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description (HTML).",
            "examples": [
              null
            ]
          },
          "status": {
            "type": "string",
            "description": "Status id.",
            "examples": [
              "H9UQxTGsGLyP40zMAvAzV"
            ]
          },
          "order": {
            "type": "number",
            "description": "Manual position inside its status (ascending). Set by `POST /v1/task/{id}/move`.",
            "examples": [
              2048
            ]
          },
          "fieldValues": {
            "type": "object",
            "additionalProperties": true,
            "description": "This task’s overrides of its project’s field values, by field `key`. Set with Override field values on a task.",
            "examples": [
              {}
            ]
          },
          "assetId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The Drive file this task works on: from the folder run that made it, or given with Set a task’s file."
          },
          "assetName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The file’s name (on a single task; null in lists)."
          },
          "pool": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "since": {
                "type": "string",
                "format": "date-time"
              },
              "nodeId": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "description": "Offered to the pool: since when, and the step offered (`nodeId`; null for the task itself). Null when not offered."
          },
          "batchId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The batch that created (or last re-ran) this task."
          },
          "executionId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The task’s latest Cosmos run (`GET /v1/cosmos/executions/{id}`). Running the task again starts a new one; earlier runs are kept."
          },
          "linkedProcess": {
            "description": "The galaxy process a task made by hand tracks (`GET /v1/task/{id}/process` reads it), or `null`.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskLinkedProcessRefDto"
              }
            ]
          },
          "run": {
            "description": "The state of the task’s latest run, or `null` when it has none.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskRunStateDto"
              }
            ]
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "description": "Priority id.",
            "examples": [
              null
            ]
          },
          "sourceLanguage": {
            "type": [
              "string",
              "null"
            ],
            "description": "Source language.",
            "examples": [
              "en"
            ]
          },
          "targetLanguage": {
            "type": [
              "string",
              "null"
            ],
            "description": "Target language.",
            "examples": [
              "de"
            ]
          },
          "targetLanguages": {
            "description": "Every target language, for a task that runs in several at once (its workflow makes one task with all of them). `null` otherwise: see `targetLanguage`.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "examples": [
              null
            ]
          },
          "startDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Start date.",
            "examples": [
              null
            ]
          },
          "startHasTime": {
            "type": "boolean",
            "description": "Whether `startDate` carries a time. When false it is a whole day, stored at midnight UTC.",
            "examples": [
              false
            ]
          },
          "endDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Due date.",
            "examples": [
              "2026-10-24T00:00:00.000Z"
            ]
          },
          "endHasTime": {
            "type": "boolean",
            "description": "Whether `endDate` carries a time. When false it is a whole day, stored at midnight UTC.",
            "examples": [
              false
            ]
          },
          "tags": {
            "description": "Tags.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              []
            ]
          },
          "plannedMinutes": {
            "type": [
              "number",
              "null"
            ],
            "description": "Hours planned for the task, in minutes (null: no plan).",
            "examples": [
              240
            ]
          },
          "creator": {
            "description": "Who created it.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskPersonDto"
              }
            ]
          },
          "members": {
            "description": "Assignees and watchers.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskAssigneeDto"
            }
          },
          "checklist": {
            "description": "Checklist progress.",
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskChecklistProgressDto"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Created at.",
            "examples": [
              "2026-10-05T15:52:37.956Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Last changed at.",
            "examples": [
              "2026-10-05T15:52:37.956Z"
            ]
          }
        },
        "required": [
          "id",
          "projectId",
          "title",
          "description",
          "status",
          "order",
          "fieldValues",
          "assetId",
          "batchId",
          "executionId",
          "linkedProcess",
          "run",
          "priority",
          "sourceLanguage",
          "targetLanguage",
          "targetLanguages",
          "startDate",
          "startHasTime",
          "endDate",
          "endHasTime",
          "tags",
          "plannedMinutes",
          "creator",
          "members",
          "checklist",
          "createdAt",
          "updatedAt"
        ]
      },
      "TaskRunDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "7c6b5a4f-3e2d-4c1b-9a0f-8e7d6c5b4a3f"
            ]
          },
          "executionId": {
            "type": "string",
            "format": "uuid",
            "description": "The new run. Its progress is at `GET /v1/cosmos/executions/{id}`.",
            "examples": [
              "9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b"
            ]
          }
        },
        "required": [
          "taskId",
          "executionId"
        ]
      },
      "TaskRunHistoryDto": {
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid"
          },
          "flowName": {
            "type": "string",
            "examples": [
              "Translate PDF + QC"
            ]
          },
          "status": {
            "type": "string",
            "examples": [
              "COMPLETED"
            ]
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "executionId",
          "flowName",
          "status",
          "startedAt",
          "finishedAt"
        ]
      },
      "TaskRunResponseDto": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "7c6b5a4f-3e2d-4c1b-9a0f-8e7d6c5b4a3f"
            ]
          },
          "run": {
            "description": "The task’s latest run, or null when it never ran.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskRunViewDto"
              }
            ]
          },
          "history": {
            "description": "The task’s runs, newest first (at most 20).",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskRunHistoryDto"
            }
          }
        },
        "required": [
          "taskId",
          "run",
          "history"
        ]
      },
      "TaskRunStateDto": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "PAUSED",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "`SCHEDULED`: waiting for its batch to start it. `RUNNING`, `PAUSED` (an approval step is waiting), `COMPLETED`, `FAILED`, `TERMINATED`: the run’s own status."
          },
          "errorCode": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "START_FAILED"
            ],
            "description": "`START_FAILED` (with `FAILED`): the run couldn’t start; run the task again."
          },
          "executionId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it failed or couldn’t start."
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "description": "When this state was recorded."
          },
          "flowId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The workflow the run is of (a project can have several)."
          },
          "step": {
            "description": "The step the run is on while it runs — shown beside the task’s In progress status. Null once it ends.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskRunStepDto"
              }
            ]
          }
        },
        "required": [
          "state",
          "errorCode",
          "executionId",
          "error",
          "at",
          "flowId",
          "step"
        ]
      },
      "TaskRunStepDto": {
        "type": "object",
        "properties": {
          "nodeId": {
            "type": "string",
            "examples": [
              "n_4f2a9c1d"
            ]
          },
          "label": {
            "type": "string",
            "examples": [
              "Client review"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "galaxy",
              "approval"
            ]
          },
          "awaitingApproval": {
            "type": "boolean",
            "description": "An approval step waiting for someone’s decision."
          },
          "since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the run reached this step."
          }
        },
        "required": [
          "nodeId",
          "label",
          "kind",
          "awaitingApproval",
          "since"
        ]
      },
      "TaskRunStepViewDto": {
        "type": "object",
        "properties": {
          "nodeId": {
            "type": "string",
            "examples": [
              "n_4f2a9c1d"
            ]
          },
          "label": {
            "type": "string",
            "examples": [
              "Translate document"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "galaxy",
              "approval",
              "delay",
              "switch"
            ],
            "description": "`galaxy` steps do the work; `approval` waits for a person; `delay` waits a set time; `switch` picks a branch."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "running",
              "awaiting_action",
              "succeeded",
              "failed",
              "skipped",
              "cancelled"
            ],
            "description": "`awaiting_action`: an approval waiting for someone. `skipped`: on a branch the run didn’t take."
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ],
            "description": "An approval’s instructions to whoever decides it."
          },
          "owners": {
            "description": "Members responsible for this step of the run.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "link": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where the step’s own page is in the app, when it has one."
          },
          "languages": {
            "description": "The target languages (BCP-47) of the document or video this step made; null for a step that made none.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "canAddLanguages": {
            "type": "boolean",
            "description": "A dubbing step: more languages can be added to its video (on its own page)."
          }
        },
        "required": [
          "nodeId",
          "label",
          "kind",
          "status",
          "error",
          "instructions",
          "owners",
          "link"
        ]
      },
      "TaskRunViewDto": {
        "type": "object",
        "properties": {
          "executionId": {
            "type": "string",
            "format": "uuid"
          },
          "flowId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "flowName": {
            "type": "string",
            "examples": [
              "Translate PDF + QC"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "brochure.pdf"
            ]
          },
          "status": {
            "type": "string",
            "description": "The run’s own status: `RUNNING`, `PAUSED` (an approval is waiting), `COMPLETED`, `FAILED` or `TERMINATED`.",
            "examples": [
              "RUNNING"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "finishedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "live": {
            "type": "boolean",
            "description": "Whether the run is still going."
          },
          "steps": {
            "description": "In run order.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskRunStepViewDto"
            }
          },
          "values": {
            "type": "object",
            "additionalProperties": true,
            "description": "The values the run used, keyed like run inputs (`<nodeId>__<fieldKey>`) — its inputs and its own step settings — so a run again can start from them."
          }
        },
        "required": [
          "executionId",
          "flowId",
          "flowName",
          "name",
          "status",
          "error",
          "startedAt",
          "finishedAt",
          "live",
          "steps",
          "values"
        ]
      },
      "TaskSearchHitDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "8abfec8a-beeb-4122-9544-cee77dc091d5"
            ]
          },
          "title": {
            "type": "string",
            "examples": [
              "Translate brochure cover to DE"
            ]
          },
          "projectId": {
            "type": "string",
            "format": "uuid",
            "examples": [
              "6f1c2d3e-4b5a-4c6d-8e7f-9a0b1c2d3e4f"
            ]
          },
          "projectName": {
            "type": "string",
            "examples": [
              "Acme Brochures"
            ]
          },
          "projectColor": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "#3b82f6"
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "The task’s status id, from the project’s statuses.",
            "examples": [
              "todo"
            ]
          },
          "statusName": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "To do"
            ]
          },
          "statusColor": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "#6b7280"
            ]
          },
          "statusGroup": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "NOT_STARTED",
              "ACTIVE",
              "DONE",
              "CLOSED"
            ],
            "description": "The group the status belongs to.",
            "examples": [
              "NOT_STARTED"
            ]
          },
          "dueDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Due date. A whole day sits at UTC midnight unless `dueHasTime`.",
            "examples": [
              "2026-10-24T15:30:00.000Z"
            ]
          },
          "dueHasTime": {
            "type": "boolean",
            "description": "`dueDate` carries a time of day.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "id",
          "title",
          "projectId",
          "projectName",
          "projectColor",
          "status",
          "statusName",
          "statusColor",
          "statusGroup",
          "dueDate",
          "dueHasTime"
        ]
      },
      "TaskStatusEntryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Status id. Omit it for a new status.",
            "examples": [
              "H9UQxTGsGLyP40zMAvAzV"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name.",
            "examples": [
              "Client review"
            ]
          },
          "color": {
            "type": "string",
            "description": "Colour as hex.",
            "examples": [
              "#8b5cf6"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "cosmos_step",
              "cosmos_system",
              "manual"
            ],
            "description": "Set on read. `cosmos_step` and `cosmos_system` statuses come from the project’s workflow: tasks move through them as their runs progress, and only their name and colour can change. Ignored when sent."
          },
          "nodeId": {
            "type": "string",
            "description": "Set on read, for a `cosmos_step` status: the workflow step it stands for. Ignored when sent."
          }
        },
        "required": [
          "name",
          "color"
        ]
      },
      "TaskStatusesResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The project’s task template id.",
            "examples": [
              "cc0bcadc-d8a0-4047-9d6a-729572027ea7"
            ]
          },
          "status": {
            "description": "Statuses by group, in board order.",
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskStatusGroupsDto"
              }
            ]
          },
          "priority": {
            "description": "Priorities, highest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskStatusEntryDto"
            }
          }
        },
        "required": [
          "id",
          "status",
          "priority"
        ]
      },
      "TaskStatusGroupsDto": {
        "type": "object",
        "properties": {
          "NOT_STARTED": {
            "description": "Not started.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskStatusEntryDto"
            }
          },
          "ACTIVE": {
            "description": "In progress.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskStatusEntryDto"
            }
          },
          "DONE": {
            "description": "Done.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskStatusEntryDto"
            }
          },
          "CLOSED": {
            "description": "Closed (cancelled).",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskStatusEntryDto"
            }
          }
        },
        "required": [
          "NOT_STARTED",
          "ACTIVE",
          "DONE",
          "CLOSED"
        ]
      },
      "TeamPersonDto": {
        "type": "object",
        "properties": {
          "open": {
            "type": "number",
            "description": "Open tasks they are assigned.",
            "examples": [
              7
            ]
          },
          "overdue": {
            "type": "number",
            "description": "Of those, due before today.",
            "examples": [
              1
            ]
          },
          "unscheduled": {
            "type": "number",
            "description": "Of those, with neither a start nor a due date.",
            "examples": [
              2
            ]
          },
          "awaitingAction": {
            "type": "number",
            "description": "Of those, with a workflow run stopped at an approval or another step waiting for a person.",
            "examples": [
              1
            ]
          },
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "Organization member id.",
            "examples": [
              "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "Priya Shah"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              "priya@acme.com"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "examples": [
              null
            ]
          },
          "role": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "lead",
              "member"
            ],
            "description": "Their role on the project, or null for someone assigned work without being a member.",
            "examples": [
              "member"
            ]
          },
          "weeklyCapacity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Open tasks they can carry in a week on this project, or null when not set.",
            "examples": [
              6
            ]
          },
          "checklist": {
            "$ref": "#/components/schemas/ScheduleChecklistLoadDto"
          },
          "doneLast7Days": {
            "type": "number",
            "description": "Tasks they are assigned that reached a done status in the last 7 days.",
            "examples": [
              3
            ]
          },
          "byStatus": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            },
            "description": "Tasks in each status, by status id (finished ones included).",
            "examples": [
              {
                "H9UQxTGsGLyP40zMAvAzV": 4,
                "cos:sys:processed": 9
              }
            ]
          },
          "done": {
            "type": "number",
            "description": "Of their tasks, those in a Done or Closed status.",
            "examples": [
              9
            ]
          },
          "thisWeek": {
            "type": "number",
            "description": "Open tasks whose dates fall in the current week (Monday to Sunday) — what a weekly capacity is measured against.",
            "examples": [
              4
            ]
          }
        },
        "required": [
          "open",
          "overdue",
          "unscheduled",
          "awaitingAction",
          "memberId",
          "name",
          "email",
          "image",
          "role",
          "weeklyCapacity",
          "checklist",
          "doneLast7Days",
          "byStatus",
          "done",
          "thisWeek"
        ]
      },
      "TeamUnassignedDto": {
        "type": "object",
        "properties": {
          "open": {
            "type": "number",
            "description": "Open tasks they are assigned.",
            "examples": [
              7
            ]
          },
          "overdue": {
            "type": "number",
            "description": "Of those, due before today.",
            "examples": [
              1
            ]
          },
          "unscheduled": {
            "type": "number",
            "description": "Of those, with neither a start nor a due date.",
            "examples": [
              2
            ]
          },
          "awaitingAction": {
            "type": "number",
            "description": "Of those, with a workflow run stopped at an approval or another step waiting for a person.",
            "examples": [
              1
            ]
          },
          "byStatus": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            },
            "description": "Tasks in each status, by status id (finished ones included).",
            "examples": [
              {
                "H9UQxTGsGLyP40zMAvAzV": 4,
                "cos:sys:processed": 9
              }
            ]
          },
          "done": {
            "type": "number",
            "description": "Of the tasks nobody has, those in a Done or Closed status.",
            "examples": [
              2
            ]
          },
          "thisWeek": {
            "type": "number",
            "description": "Open tasks whose dates fall in the current week (Monday to Sunday) — what a weekly capacity is measured against.",
            "examples": [
              4
            ]
          }
        },
        "required": [
          "open",
          "overdue",
          "unscheduled",
          "awaitingAction",
          "byStatus",
          "done",
          "thisWeek"
        ]
      },
      "TimeInStatusDto": {
        "type": "object",
        "properties": {
          "statusId": {
            "type": "string",
            "examples": [
              "cos:step:signoff"
            ]
          },
          "name": {
            "type": "string",
            "examples": [
              "Client sign-off"
            ]
          },
          "color": {
            "type": "string",
            "examples": [
              "#f59e0b"
            ]
          },
          "medianHours": {
            "type": [
              "number",
              "null"
            ],
            "examples": [
              5.5
            ]
          },
          "p90Hours": {
            "type": [
              "number",
              "null"
            ],
            "description": "The slowest 10% take at least this long.",
            "examples": [
              30
            ]
          },
          "stays": {
            "type": "number",
            "description": "Stays measured (including ones still going).",
            "examples": [
              12
            ]
          }
        },
        "required": [
          "statusId",
          "name",
          "color",
          "medianHours",
          "p90Hours",
          "stays"
        ]
      },
      "UpdateChecklistDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "New title.",
            "examples": [
              "Delivery"
            ]
          },
          "blocksApproval": {
            "type": "boolean",
            "description": "Block workflow approval while open.",
            "examples": [
              true
            ]
          },
          "order": {
            "type": "number",
            "description": "Position among the task’s checklists, from 0.",
            "examples": [
              1
            ]
          }
        }
      },
      "UpdateChecklistItemDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Item text.",
            "examples": [
              "Legal footer checked"
            ]
          },
          "isCompleted": {
            "type": "boolean",
            "description": "Tick or untick the item.",
            "examples": [
              true
            ]
          },
          "dueDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Due date (ISO 8601). `null` clears it.",
            "examples": [
              null
            ]
          },
          "dueHasTime": {
            "type": "boolean",
            "description": "Whether `dueDate` carries a time. Left out, a `dueDate` sent with a time of day (anything but midnight UTC) is timed; `false` keeps only its day.",
            "examples": [
              false
            ]
          },
          "assigneeIds": {
            "description": "Replace the assignees with these members. `[]` clears them.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "4ba70b2f-d541-4f46-8b41-d1bdf23ccd51"
              ]
            ]
          }
        }
      },
      "UpdateFieldValuesDto": {
        "type": "object",
        "properties": {
          "values": {
            "type": "object",
            "additionalProperties": true,
            "description": "Values to set, by field `key`: a workflow field’s run-input key, a step setting the workflow’s builder fixed (keyed the same way, `<nodeId>__<fieldKey>`), or `custom:<fieldId>`. `null` clears a value. Keys you leave out keep their value.",
            "examples": [
              {
                "translate__targetLanguage": "de",
                "custom:6d2f1e0a-4b3c-4d5e-8f9a-0b1c2d3e4f5a": "PO-44812"
              }
            ]
          }
        },
        "required": [
          "values"
        ]
      },
      "UpdateProjectDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Project name, unique in your organization (ignoring case). It is also the name of the project folder in your drive: `Projects/<name>/`.",
            "maxLength": 200,
            "examples": [
              "Brochure DE"
            ]
          },
          "description": {
            "type": "string",
            "description": "What the project is about, as rich text in HTML (paragraphs, headings, lists, links). Plain text is accepted too.",
            "maxLength": 50000,
            "examples": [
              "<p>Spring brochure for Acme GmbH, <strong>16 pages</strong>.</p>"
            ]
          },
          "color": {
            "type": "string",
            "description": "Swatch colour as hex.",
            "examples": [
              "#5b3ad6"
            ]
          },
          "visibility": {
            "type": "string",
            "enum": [
              "org",
              "members"
            ],
            "default": "members",
            "description": "`members`: only the project members (and roles that manage every project) can see it. `org`: everyone with `project:read`.",
            "examples": [
              "members"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language code.",
            "examples": [
              "en"
            ]
          },
          "targetLanguages": {
            "description": "Target language codes.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "de"
              ]
            ]
          },
          "startDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start date (ISO 8601).",
            "examples": [
              "2026-10-06T00:00:00.000Z"
            ]
          },
          "startHasTime": {
            "type": "boolean",
            "description": "Whether `startDate` carries a time. Left out, a `startDate` sent with a time of day (anything but midnight UTC) is timed; `false` keeps only its day.",
            "examples": [
              false
            ]
          },
          "endDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Due date (ISO 8601).",
            "examples": [
              "2026-10-24T00:00:00.000Z"
            ]
          },
          "endHasTime": {
            "type": "boolean",
            "description": "Whether `endDate` carries a time. Left out, a `endDate` sent with a time of day (anything but midnight UTC) is timed; `false` keeps only its day.",
            "examples": [
              false
            ]
          },
          "tags": {
            "description": "Tags, up to 20, each under 32 characters.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "acme",
                "print"
              ]
            ]
          },
          "status": {
            "type": "string",
            "description": "A status id from your organization's project statuses (Get project statuses). Defaults to the first one.",
            "examples": [
              "QvCQT30CEfb8OaDJQKI5g"
            ]
          },
          "priority": {
            "type": "string",
            "description": "A priority id from your organization's project priorities. Omit it for none.",
            "examples": [
              "zpmxhp5m67LHTa6xuPRza"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "TRANSLATION",
              "LOCALIZATION",
              "TRANSCRIPTION",
              "SUBTITLING",
              "VOICEOVER",
              "REVIEW"
            ],
            "description": "Optional project type.",
            "examples": [
              "TRANSLATION"
            ]
          },
          "fk_dealId": {
            "type": [
              "object",
              "null"
            ],
            "description": "Deal this project belongs to (a deal in the same organization). `null` on update unlinks it.",
            "examples": [
              "0f1e2d3c-4b5a-4968-8776-655443322110"
            ]
          },
          "rating": {
            "type": [
              "number",
              "null"
            ],
            "description": "Project rating, 1 to 5. `null` clears it.",
            "examples": [
              5
            ]
          },
          "requiredExpertise": {
            "description": "Expertise the work needs (linguist expertise catalog ids). Narrows which preferred linguists are auto-assigned. `[]` clears it.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "legal",
                "clinical_trials"
              ]
            ]
          }
        }
      },
      "UpdateProjectMemberDto": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "lead",
              "member"
            ],
            "description": "New role.",
            "examples": [
              "lead"
            ]
          },
          "isWatcher": {
            "type": "boolean",
            "description": "Whether they get updates about every task.",
            "examples": [
              true
            ]
          },
          "weeklyCapacity": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 1,
            "maximum": 100,
            "description": "Open tasks they can carry in a week on this project (1–100); `null` clears it. The Team view marks weeks past it.",
            "examples": [
              6
            ]
          }
        }
      },
      "UpdateTaskDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Task title.",
            "maxLength": 255,
            "examples": [
              "Translate box copy"
            ]
          },
          "description": {
            "type": "string",
            "description": "Task description (rich text as HTML).",
            "examples": [
              "<p>Keep product names in English.</p>"
            ]
          },
          "status": {
            "type": "string",
            "description": "A status id from the project's task statuses (Get task statuses). Defaults to the first one.",
            "examples": [
              "H9UQxTGsGLyP40zMAvAzV"
            ]
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "description": "A priority id from the project's task priorities.",
            "examples": [
              "OnE7lr3sHpKLiBAc9-S0O"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language code.",
            "examples": [
              "en"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language code.",
            "examples": [
              "de"
            ]
          },
          "startDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Start date (ISO 8601).",
            "examples": [
              "2026-10-06T00:00:00.000Z"
            ]
          },
          "startHasTime": {
            "type": "boolean",
            "description": "Whether `startDate` carries a time. Left out, a `startDate` sent with a time of day (anything but midnight UTC) is timed; `false` keeps only its day.",
            "examples": [
              false
            ]
          },
          "endDate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Due date (ISO 8601).",
            "examples": [
              "2026-10-24T00:00:00.000Z"
            ]
          },
          "endHasTime": {
            "type": "boolean",
            "description": "Whether `endDate` carries a time. Left out, a `endDate` sent with a time of day (anything but midnight UTC) is timed; `false` keeps only its day.",
            "examples": [
              false
            ]
          },
          "tags": {
            "description": "Tags.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "print"
              ]
            ]
          },
          "plannedMinutes": {
            "type": [
              "number",
              "null"
            ],
            "description": "Hours planned for the task, in minutes (0 to 100,000); null removes the plan. Shown against the time logged on it.",
            "examples": [
              240
            ]
          }
        }
      },
      "UpdateTaskMemberDto": {
        "type": "object",
        "properties": {
          "isAssignee": {
            "type": "boolean",
            "description": "Assigned to work on the task.",
            "examples": [
              false
            ]
          },
          "isWatcher": {
            "type": "boolean",
            "description": "Gets updates about the task.",
            "examples": [
              true
            ]
          }
        }
      },
      "UpdateTaskStatusesDto": {
        "type": "object",
        "properties": {
          "status": {
            "description": "The full set of statuses, by group.",
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskStatusGroupsDto"
              }
            ]
          },
          "priority": {
            "description": "The full set of priorities. Omit to keep them.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskStatusEntryDto"
            }
          },
          "remap": {
            "type": "object",
            "description": "For statuses you removed that tasks still use: `{ \"<removed id>\": \"<kept id>\" }`. Without it, removing a status in use returns 409.",
            "additionalProperties": {
              "type": "string"
            },
            "examples": [
              {
                "H9UQxTGsGLyP40zMAvAzV": "OnE7lr3sHpKLiBAc9-S0O"
              }
            ]
          }
        },
        "required": [
          "status"
        ]
      },
      "WorkflowChangeDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "examples": [
              "qc__regions"
            ]
          },
          "label": {
            "type": "string",
            "examples": [
              "Regions"
            ]
          },
          "group": {
            "type": "string",
            "examples": [
              "QC Evaluate"
            ]
          }
        },
        "required": [
          "key",
          "label",
          "group"
        ]
      },
      "WorkflowChangesResponseDto": {
        "type": "object",
        "properties": {
          "fromVersion": {
            "type": "number",
            "examples": [
              3
            ]
          },
          "toVersion": {
            "type": [
              "number",
              "null"
            ],
            "examples": [
              4
            ]
          },
          "added": {
            "description": "New fields.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowChangeDto"
            }
          },
          "removed": {
            "description": "Fields that are gone. Their values are cleared on sync.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowChangeDto"
            }
          },
          "changed": {
            "description": "Fields whose label, kind or required flag changed.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowChangeDto"
            }
          },
          "stepsAdded": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowStepDto"
            }
          },
          "stepsRemoved": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowStepDto"
            }
          }
        },
        "required": [
          "fromVersion",
          "toVersion",
          "added",
          "removed",
          "changed",
          "stepsAdded",
          "stepsRemoved"
        ]
      },
      "WorkflowLanguagesDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "examples": [
              "en-US"
            ]
          },
          "targets": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "fr-FR",
                "de-DE"
              ]
            ]
          }
        },
        "required": [
          "source",
          "targets"
        ]
      },
      "WorkflowStepDto": {
        "type": "object",
        "properties": {
          "nodeId": {
            "type": "string",
            "examples": [
              "translate"
            ]
          },
          "label": {
            "type": "string",
            "examples": [
              "Translate PDF"
            ]
          },
          "nodeTypeKey": {
            "type": "string",
            "examples": [
              "translate_photo.document"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "galaxy",
              "approval"
            ],
            "description": "`galaxy` steps do work; `approval` steps wait for a person."
          }
        },
        "required": [
          "nodeId",
          "label",
          "nodeTypeKey",
          "kind"
        ]
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
