{
  "openapi": "3.1.0",
  "info": {
    "title": "API V1",
    "version": "v1"
  },
  "paths": {
    "/api/v1/epics": {
      "get": {
        "summary": "Listar epics",
        "tags": [
          "Epics"
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProjectModule"
                      }
                    },
                    "epics": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProjectModule"
                      }
                    },
                    "links": {
                      "$ref": "#/components/schemas/PaginationLinks"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/PaginationMeta"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "unauthorized"
          }
        }
      },
      "post": {
        "summary": "Criar epic",
        "tags": [
          "Epics"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Project module created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ProjectModule"
                    },
                    "epic": {
                      "$ref": "#/components/schemas/ProjectModule"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "project_module": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "nullable": true
                      },
                      "project_id": {
                        "type": "integer"
                      },
                      "description": {
                        "type": "string",
                        "nullable": true
                      }
                    }
                  }
                },
                "required": [
                  "project_module"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/epics/{id}": {
      "get": {
        "summary": "Exibir epic",
        "tags": [
          "Epics"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID do épico",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ProjectModule"
                    },
                    "epic": {
                      "$ref": "#/components/schemas/ProjectModule"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        }
      },
      "patch": {
        "summary": "Atualizar epic",
        "tags": [
          "Epics"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID do épico",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Project updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ProjectModule"
                    },
                    "epic": {
                      "$ref": "#/components/schemas/ProjectModule"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "project_module": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "nullable": true
                      },
                      "project_id": {
                        "type": "integer"
                      },
                      "description": {
                        "type": "string",
                        "nullable": true
                      }
                    }
                  }
                },
                "required": [
                  "project_module"
                ]
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Excluir epic",
        "tags": [
          "Epics"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID do épico",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        }
      }
    },
    "/api/v1/projects": {
      "get": {
        "summary": "Listar projetos",
        "tags": [
          "Projects"
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Project"
                      }
                    },
                    "links": {
                      "type": "object",
                      "items": {
                        "$ref": "#/components/schemas/PaginationLinks"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "items": {
                        "$ref": "#/components/schemas/PaginationMeta"
                      }
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized"
          }
        }
      },
      "post": {
        "summary": "Criar projeto",
        "tags": [
          "Projects"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Project created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Project"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "project": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "example": "Novo nome do projeto"
                      },
                      "color": {
                        "type": "string",
                        "example": "#FF5733"
                      },
                      "client_name": {
                        "type": "string",
                        "example": "Novo nome do cliente"
                      },
                      "has_kanban": {
                        "type": "boolean",
                        "example": true
                      },
                      "number_of_hours_per_sprint": {
                        "type": "integer",
                        "example": 80,
                        "nullable": true
                      },
                      "cost_cents": {
                        "type": "integer",
                        "example": 500000
                      }
                    }
                  }
                },
                "required": [
                  "project"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/projects/{id}": {
      "get": {
        "summary": "Exibir projeto",
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID do projeto",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Project"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        }
      },
      "patch": {
        "summary": "Atualizar projeto",
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID do projeto",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Project updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Project"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "project": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "example": "Novo nome do projeto"
                      },
                      "color": {
                        "type": "string",
                        "example": "#FF5733"
                      },
                      "client_name": {
                        "type": "string",
                        "example": "Novo nome do cliente"
                      },
                      "has_kanban": {
                        "type": "boolean",
                        "example": true
                      },
                      "number_of_hours_per_sprint": {
                        "type": "integer",
                        "example": 80,
                        "nullable": true
                      },
                      "cost_cents": {
                        "type": "integer",
                        "example": 500000
                      }
                    }
                  }
                },
                "required": [
                  "project"
                ]
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Arquivar projeto",
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID do projeto",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful"
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        }
      }
    },
    "/api/v1/sprints": {
      "get": {
        "summary": "Listar sprints",
        "tags": [
          "Sprints"
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Sprint"
                      }
                    },
                    "links": {
                      "$ref": "#/components/schemas/PaginationLinks"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/PaginationMeta"
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized"
          }
        }
      }
    },
    "/api/v1/sprints/{id}": {
      "get": {
        "summary": "Exibir sprint",
        "tags": [
          "Sprints"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID da sprint",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Sprint"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        }
      }
    },
    "/api/v1/statuses": {
      "get": {
        "summary": "Listar colunas de status do Kanban",
        "tags": [
          "Statuses"
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "color": {
                            "type": "string",
                            "nullable": true
                          },
                          "status_type": {
                            "type": "string"
                          },
                          "position": {
                            "type": "integer",
                            "nullable": true
                          },
                          "github_status_type": {
                            "type": "string"
                          },
                          "average_score": {
                            "type": "integer",
                            "nullable": true
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "title",
                          "status_type",
                          "github_status_type"
                        ]
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized"
          }
        }
      }
    },
    "/api/v1/tags": {
      "get": {
        "summary": "Listar tags",
        "tags": [
          "Tags"
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Tag"
                      }
                    },
                    "links": {
                      "$ref": "#/components/schemas/PaginationLinks"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/PaginationMeta"
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized"
          }
        }
      },
      "post": {
        "summary": "Criar tag",
        "tags": [
          "Tags"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Tag created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Tag"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tag": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "example": "Urgente"
                      },
                      "color": {
                        "type": "string",
                        "example": "#FF5733"
                      }
                    }
                  }
                },
                "required": [
                  "tag"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/tags/{id}": {
      "get": {
        "summary": "Exibir tag",
        "tags": [
          "Tags"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID da tag",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Tag"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        }
      },
      "patch": {
        "summary": "Atualizar tag",
        "tags": [
          "Tags"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID da tag",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tag updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Tag"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tag": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "example": "Atualizada"
                      },
                      "color": {
                        "type": "string",
                        "example": "#000000"
                      }
                    }
                  }
                },
                "required": [
                  "tag"
                ]
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Remover tag",
        "tags": [
          "Tags"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID da tag",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tag deleted successfully"
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        }
      }
    },
    "/api/v1/tasks/{task_id}/attachments": {
      "post": {
        "summary": "Anexar arquivo a uma tarefa",
        "tags": [
          "Tasks"
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "description": "ID da tarefa",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "task not found"
          },
          "422": {
            "description": "invalid upload or storage limit exceeded"
          },
          "500": {
            "description": "internal server error"
          },
          "401": {
            "description": "unauthorized"
          }
        },
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "Arquivo a ser anexado"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/v1/tasks": {
      "get": {
        "summary": "Listar tarefas",
        "tags": [
          "Tasks"
        ],
        "parameters": [
          {
            "name": "project_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "description": "Filtrar por IDs de projetos"
          },
          {
            "name": "project_names",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Filtrar por nomes de projetos"
          },
          {
            "name": "assignee_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "description": "Filtrar por IDs de responsáveis"
          },
          {
            "name": "assignee_names",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Filtrar por nomes de responsáveis"
          },
          {
            "name": "user_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "description": "Filtrar por IDs de usuários (sinônimo de assignee_ids)"
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "Filtrar por nome da tarefa",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sprint_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "description": "Filtrar por IDs de sprints"
          },
          {
            "name": "status_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "description": "Filtrar por IDs de status (colunas do Kanban)"
          },
          {
            "name": "sprint_names",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Filtrar por nomes de sprints"
          },
          {
            "name": "epic_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "description": "Filtrar por IDs de epics (sinônimo de project_module_ids)"
          },
          {
            "name": "epic_names",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Filtrar por nomes de epics (sinônimo de project_module_names)"
          },
          {
            "name": "tag_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "description": "Filtrar por IDs de tags"
          },
          {
            "name": "tag_names",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Filtrar por nomes de tags"
          },
          {
            "name": "client_names",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Filtrar por nomes de clientes"
          },
          {
            "name": "time",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Filtrar por período de tempo (ex: ['2024-01-01..2024-12-31'])"
          },
          {
            "name": "hide_completed",
            "in": "query",
            "required": false,
            "description": "Ocultar tarefas concluídas (use 'true')",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hide_completed_in_ai_mode",
            "in": "query",
            "required": false,
            "description": "Ocultar tarefas concluídas no modo AI (apenas tarefas com execução AI)",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "ai_mode_status",
            "in": "query",
            "required": false,
            "description": "Filtrar por status do modo AI (ai_mode_todo, ai_mode_in_progress, ai_mode_done)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with_time_logs",
            "in": "query",
            "required": false,
            "description": "Incluir os time logs e duração total de cada tarefa",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "with_comments",
            "in": "query",
            "required": false,
            "description": "Incluir os comentários de cada tarefa",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/Task"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "comments": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/CommentApi"
                                }
                              }
                            },
                            "required": [
                              "comments"
                            ]
                          }
                        ],
                        "$ref": "#/components/schemas/Task"
                      }
                    },
                    "links": {
                      "type": "object",
                      "items": {
                        "$ref": "#/components/schemas/PaginationLinks"
                      }
                    },
                    "meta": {
                      "type": "object",
                      "items": {
                        "$ref": "#/components/schemas/PaginationMeta"
                      }
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized"
          }
        }
      },
      "post": {
        "summary": "Criar tarefa",
        "tags": [
          "Tasks"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Task created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Task"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "fields": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "details",
                    "fields"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "task": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "nullable": true,
                        "example": "Implementar autenticação"
                      },
                      "project_id": {
                        "type": "integer",
                        "example": 1
                      },
                      "created_by_id": {
                        "type": "integer",
                        "example": 1,
                        "description": "ID do usuário criador (obrigatório)"
                      },
                      "description": {
                        "type": "string",
                        "nullable": true,
                        "example": "Implementar sistema de autenticação com JWT"
                      },
                      "status_id": {
                        "type": "integer",
                        "example": 1,
                        "description": "ID do status (obrigatório)"
                      },
                      "sprint_id": {
                        "type": "integer",
                        "nullable": true,
                        "example": 1
                      },
                      "project_module_id": {
                        "type": "integer",
                        "nullable": true,
                        "example": 1
                      },
                      "priority": {
                        "type": "string",
                        "nullable": true,
                        "example": "Alta"
                      },
                      "estimate": {
                        "type": "integer",
                        "nullable": true,
                        "example": 8
                      },
                      "assignee_ids": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        },
                        "nullable": true,
                        "example": [
                          1,
                          2
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "task"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/tasks/{id}": {
      "get": {
        "summary": "Exibir tarefa",
        "tags": [
          "Tasks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID da tarefa",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with_time_logs",
            "in": "query",
            "required": false,
            "description": "Incluir os time logs da tarefa",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "with_comments",
            "in": "query",
            "required": false,
            "description": "Incluir os comentários da tarefa",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful with comments",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Task",
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Task"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "comments": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/CommentApi"
                              }
                            }
                          },
                          "required": [
                            "comments"
                          ]
                        }
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        }
      },
      "patch": {
        "summary": "Atualizar tarefa",
        "tags": [
          "Tasks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID da tarefa",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Project updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Task"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "task": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "nullable": true,
                        "example": "Implementar autenticação"
                      },
                      "project_id": {
                        "type": "integer",
                        "example": 1
                      },
                      "created_by_id": {
                        "type": "integer",
                        "example": 1,
                        "description": "ID do usuário criador (obrigatório)"
                      },
                      "description": {
                        "type": "string",
                        "nullable": true,
                        "example": "Implementar sistema de autenticação com JWT"
                      },
                      "status_id": {
                        "type": "integer",
                        "example": 1,
                        "description": "ID do status (obrigatório)"
                      },
                      "sprint_id": {
                        "type": "integer",
                        "nullable": true,
                        "example": 1
                      },
                      "project_module_id": {
                        "type": "integer",
                        "nullable": true,
                        "example": 1
                      },
                      "priority": {
                        "type": "string",
                        "nullable": true,
                        "example": "Alta"
                      },
                      "estimate": {
                        "type": "integer",
                        "nullable": true,
                        "example": 8
                      },
                      "assignee_ids": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        },
                        "nullable": true,
                        "example": [
                          1,
                          2
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "task"
                ]
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Excluir tarefa",
        "tags": [
          "Tasks"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID da tarefa",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        }
      }
    },
    "/api/v1/time_logs": {
      "get": {
        "summary": "Listar registros de tempo",
        "tags": [
          "TimeLogs"
        ],
        "parameters": [
          {
            "name": "project_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "description": "Filtrar por IDs de projetos"
          },
          {
            "name": "user_ids",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "description": "Filtrar por IDs de usuários"
          },
          {
            "name": "start_period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Data inicial para filtro por período"
          },
          {
            "name": "end_period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Data final para filtro por período"
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TimeLogApi"
                      }
                    },
                    "links": {
                      "$ref": "#/components/schemas/PaginationLinks"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/PaginationMeta"
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized"
          }
        }
      },
      "post": {
        "summary": "Criar registro de tempo",
        "tags": [
          "TimeLogs"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "TimeLog created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TimeLogApi"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "fields": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "error",
                    "message",
                    "details",
                    "fields"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "time_log": {
                    "type": "object",
                    "properties": {
                      "user_id": {
                        "type": "integer",
                        "example": 1
                      },
                      "task_id": {
                        "type": "integer",
                        "nullable": true,
                        "example": 1
                      },
                      "project_id": {
                        "type": "integer",
                        "nullable": true,
                        "example": 1
                      },
                      "name": {
                        "type": "string",
                        "nullable": true,
                        "example": "Investigacao tecnica"
                      },
                      "start_time": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2026-03-18T10:00:00Z"
                      },
                      "end_time": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true,
                        "example": "2026-03-18T11:00:00Z"
                      }
                    },
                    "required": [
                      "user_id",
                      "start_time"
                    ]
                  }
                },
                "required": [
                  "time_log"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/time_logs/{id}": {
      "get": {
        "summary": "Exibir registro de tempo",
        "tags": [
          "TimeLogs"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TimeLogApi"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        }
      },
      "patch": {
        "summary": "Atualizar registro de tempo",
        "tags": [
          "TimeLogs"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TimeLog updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TimeLogApi"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Validation failed"
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "time_log": {
                    "type": "object",
                    "properties": {
                      "user_id": {
                        "type": "integer",
                        "nullable": true
                      },
                      "task_id": {
                        "type": "integer",
                        "nullable": true
                      },
                      "project_id": {
                        "type": "integer",
                        "nullable": true
                      },
                      "name": {
                        "type": "string",
                        "nullable": true
                      },
                      "start_time": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                      },
                      "end_time": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true
                      }
                    }
                  }
                },
                "required": [
                  "time_log"
                ]
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Remover registro de tempo",
        "tags": [
          "TimeLogs"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "TimeLog destroyed successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "message": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        }
      }
    },
    "/api/v1/users": {
      "get": {
        "summary": "Listar usuários",
        "tags": [
          "Users"
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Assignee"
                      }
                    },
                    "links": {
                      "$ref": "#/components/schemas/PaginationLinks"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/PaginationMeta"
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized"
          }
        }
      },
      "post": {
        "summary": "Criar usuário (convite)",
        "tags": [
          "Users"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Invitation created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Invitation"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "unauthorized"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string",
                        "example": "maria@example.com"
                      },
                      "role": {
                        "type": "string",
                        "example": "member"
                      },
                      "project_ids": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        },
                        "nullable": true,
                        "example": [
                          1,
                          2
                        ]
                      }
                    }
                  }
                },
                "required": [
                  "user"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/users/{id}": {
      "get": {
        "summary": "Exibir usuário",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID do usuário",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Assignee"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        }
      },
      "patch": {
        "summary": "Atualizar usuário",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID do usuário",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "User updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Assignee"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "user": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "example": "Maria Atualizada"
                      },
                      "email": {
                        "type": "string",
                        "example": "maria2@example.com"
                      },
                      "password": {
                        "type": "string",
                        "nullable": true,
                        "example": "123456"
                      },
                      "role": {
                        "type": "string",
                        "example": "member"
                      },
                      "capacity": {
                        "type": "integer",
                        "nullable": true,
                        "example": 10
                      },
                      "cost_cents": {
                        "type": "integer",
                        "nullable": true,
                        "example": 150000
                      },
                      "sprint_goal_participation": {
                        "type": "boolean",
                        "nullable": true,
                        "example": true
                      }
                    }
                  }
                },
                "required": [
                  "user"
                ]
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Remover usuário",
        "tags": [
          "Users"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID do usuário",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "User deleted successfully"
          },
          "404": {
            "description": "not found"
          },
          "401": {
            "description": "unauthorized"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://app.synkrony.ai"
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "API token no formato Bearer. Exemplo: Bearer YOUR_API_TOKEN"
      }
    },
    "schemas": {
      "Assignee": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "job_title": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string"
          },
          "cost_cents": {
            "type": "number",
            "nullable": true
          },
          "capacity": {
            "type": "number",
            "nullable": true
          },
          "removed_at": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "type": "string"
          },
          "agent_type": {
            "type": "string",
            "nullable": true
          },
          "authentication_setup_completed": {
            "type": "boolean"
          },
          "sprint_goal_participation": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "profile_picture_url": {
            "type": "string",
            "nullable": true
          },
          "short_name": {
            "type": "string"
          },
          "avatar_color_id": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "name",
          "email",
          "role",
          "authentication_setup_completed",
          "sprint_goal_participation",
          "status",
          "short_name",
          "avatar_color_id",
          "status",
          "short_name",
          "avatar_color_id"
        ]
      },
      "CommentApi": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "content": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "mentioned_user_ids": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "nullable": true
          },
          "kanbino_comment_type": {
            "type": "string"
          },
          "task_execution_id": {
            "type": "number",
            "nullable": true
          },
          "user_id": {
            "type": "number"
          },
          "user_name": {
            "type": "string",
            "nullable": true
          },
          "is_system_message": {
            "type": "boolean"
          },
          "type": {
            "type": "string"
          },
          "timestamp": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "content",
          "created_at",
          "updated_at",
          "kanbino_comment_type",
          "user_id",
          "is_system_message",
          "type",
          "timestamp",
          "user_id",
          "is_system_message",
          "type",
          "timestamp"
        ]
      },
      "Invitation": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "identifier": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "project_ids": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "nullable": true
          }
        },
        "required": [
          "email",
          "identifier",
          "role"
        ]
      },
      "ProjectModule": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "project_id": {
            "type": "number"
          },
          "progress": {
            "type": "number",
            "nullable": true
          },
          "order": {
            "type": "number",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "start": {
            "type": "string",
            "nullable": true
          },
          "end": {
            "type": "string",
            "nullable": true
          },
          "dependencies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "custom_class": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "project_id",
          "custom_class",
          "custom_class"
        ]
      },
      "Project": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "color": {
            "type": "string"
          },
          "client_name": {
            "type": "string"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "has_kanban": {
            "type": "boolean"
          },
          "cost_cents": {
            "type": "number"
          },
          "start_period": {
            "type": "string",
            "nullable": true
          },
          "end_period": {
            "type": "string",
            "nullable": true
          },
          "number_of_hours_per_sprint": {
            "type": "number",
            "nullable": true
          },
          "number_of_sprints": {
            "type": "number",
            "nullable": true
          },
          "discarded_at": {
            "type": "string",
            "nullable": true
          },
          "repository_url": {
            "type": "string",
            "nullable": true
          },
          "auto_correct_ci_enabled": {
            "type": "boolean"
          },
          "auto_review_enabled": {
            "type": "boolean"
          },
          "review_trigger_tag": {
            "type": "string",
            "nullable": true
          },
          "review_post_label_changes_requested": {
            "type": "string",
            "nullable": true
          },
          "review_post_label_approved": {
            "type": "string",
            "nullable": true
          },
          "review_custom_prompt": {
            "type": "string",
            "nullable": true
          },
          "external_project_links": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "provider": {
                  "type": "string",
                  "nullable": true
                },
                "external_project_id": {
                  "type": "string"
                },
                "external_project_name": {
                  "type": "string",
                  "nullable": true
                },
                "external_project_key": {
                  "type": "string",
                  "nullable": true
                }
              },
              "required": [
                "external_project_id"
              ]
            }
          }
        },
        "required": [
          "id",
          "name",
          "color",
          "client_name",
          "has_kanban",
          "cost_cents",
          "auto_correct_ci_enabled",
          "auto_review_enabled",
          "external_project_links",
          "external_project_links"
        ]
      },
      "Sprint": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "start_date": {
            "type": "string",
            "nullable": true
          },
          "end_date": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id"
        ]
      },
      "Tag": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "color": {
            "type": "string"
          },
          "bgColor": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "color",
          "bgColor",
          "label",
          "bgColor",
          "label"
        ]
      },
      "TaskProject": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "client_name": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "repository_url": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "Task": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "priority": {
            "type": "string",
            "nullable": true
          },
          "created_at": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "status_id": {
            "type": "number"
          },
          "sprint_id": {
            "type": "number",
            "nullable": true
          },
          "position": {
            "type": "number"
          },
          "created_by_id": {
            "type": "number"
          },
          "total_time_seconds": {
            "type": "number"
          },
          "slug": {
            "type": "string"
          },
          "github_repo": {
            "type": "string",
            "nullable": true
          },
          "pull_request_number": {
            "type": "number",
            "nullable": true
          },
          "pull_request_url": {
            "type": "string",
            "nullable": true
          },
          "pull_request_status": {
            "type": "string",
            "nullable": true
          },
          "pull_request_is_draft": {
            "type": "boolean"
          },
          "base_branch": {
            "type": "string"
          },
          "claude_execution_mode": {
            "type": "string",
            "enum": [
              "z_ai",
              "anthropic"
            ]
          },
          "estimate": {
            "type": "number",
            "nullable": true
          },
          "user_time_seconds": {
            "type": "number",
            "nullable": true
          },
          "pull_request_created_at": {
            "type": "string",
            "nullable": true
          },
          "task_execution_status": {
            "type": "string",
            "nullable": true
          },
          "task_execution_error_info": {
            "type": "object",
            "nullable": true
          },
          "task_execution_updated_at": {
            "type": "string",
            "nullable": true
          },
          "task_execution_id": {
            "type": "number",
            "nullable": true
          },
          "has_sentry_link": {
            "type": "boolean"
          },
          "status_type": {
            "type": "string"
          },
          "has_discord_link": {
            "type": "boolean"
          },
          "sentry_issues": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tag"
            }
          },
          "assignees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Assignee"
            }
          },
          "checklist_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChecklistItem"
            }
          },
          "custom_field_values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldValue"
            }
          },
          "project": {
            "$ref": "#/components/schemas/TaskProject",
            "nullable": true
          },
          "project_module": {
            "$ref": "#/components/schemas/ProjectModule",
            "nullable": true
          },
          "epic": {
            "$ref": "#/components/schemas/ProjectModule",
            "nullable": true
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "created_at",
          "updated_at",
          "status_id",
          "position",
          "created_by_id",
          "total_time_seconds",
          "slug",
          "pull_request_is_draft",
          "base_branch",
          "claude_execution_mode",
          "has_sentry_link",
          "status_type",
          "has_discord_link",
          "has_sentry_link",
          "status_type",
          "has_discord_link",
          "tags",
          "assignees",
          "checklist_items",
          "custom_field_values",
          "tags",
          "assignees",
          "checklist_items",
          "custom_field_values",
          "project",
          "project_module",
          "epic",
          "project",
          "project_module",
          "epic"
        ]
      },
      "TimeLogApi": {
        "type": "object",
        "properties": {
          "owner_id": {
            "type": "number"
          },
          "owner_type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "task": {
            "type": "string"
          },
          "project_id": {
            "type": "number",
            "nullable": true
          },
          "date": {
            "type": "string"
          },
          "duration": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string"
          },
          "start_time": {
            "type": "string"
          },
          "end_time": {
            "type": "string",
            "nullable": true
          },
          "sprint_id": {
            "type": "number",
            "nullable": true
          },
          "assignee": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "nullable": true
              },
              "name": {
                "type": "string",
                "nullable": true
              },
              "colorId": {
                "type": "number",
                "nullable": true
              },
              "profilePictureUrl": {
                "type": "string",
                "nullable": true
              }
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number"
                },
                "label": {
                  "type": "string"
                },
                "color": {
                  "type": "string",
                  "nullable": true
                },
                "bgColor": {
                  "type": "string",
                  "nullable": true
                }
              },
              "required": [
                "id",
                "label"
              ]
            }
          }
        },
        "required": [
          "owner_id",
          "owner_type",
          "id",
          "task",
          "assignee",
          "date",
          "type",
          "start_time",
          "tags",
          "id",
          "task",
          "assignee",
          "date",
          "type",
          "start_time",
          "tags"
        ]
      },
      "ChecklistItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "completed": {
            "type": "boolean"
          },
          "position": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "description",
          "completed",
          "position"
        ]
      },
      "Attachment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "filename": {
            "type": "string"
          },
          "byte_size": {
            "type": "integer"
          },
          "content_type": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "url": {
            "type": "string"
          },
          "blob_signed_id": {
            "type": "string"
          },
          "signed_id": {
            "type": "string"
          },
          "uploaded_by": {
            "type": "integer",
            "nullable": true,
            "description": "ID do usuário para uploads feitos pela interface web; nulo para uploads via API"
          },
          "uploaded_via": {
            "type": "string",
            "enum": [
              "api",
              "web"
            ],
            "nullable": true,
            "description": "Origem do upload"
          }
        },
        "required": [
          "id",
          "filename",
          "byte_size",
          "content_type",
          "created_at",
          "url",
          "blob_signed_id",
          "signed_id"
        ]
      },
      "PaginationLinks": {
        "type": "object",
        "properties": {
          "first": {
            "type": "string"
          },
          "last": {
            "type": "string"
          },
          "prev": {
            "type": "string",
            "nullable": true
          },
          "next": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "first",
          "last"
        ]
      },
      "PaginationMeta": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "page": {
            "type": "integer"
          },
          "limit": {
            "type": "integer"
          },
          "pages": {
            "type": "integer"
          }
        },
        "required": [
          "count",
          "page",
          "limit",
          "pages"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}