{
  "components": {
    "schemas": {
      "AddBranchTagDto": {
        "properties": {
          "tag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BranchTagInputDto"
              }
            ],
            "description": "Assign an existing tag by text, or create and assign a new tag by also providing a fixed colour and symbol."
          }
        },
        "required": [
          "tag"
        ],
        "type": "object"
      },
      "AddCrosslinkDto": {
        "properties": {
          "branchId": {
            "type": "string"
          },
          "crosslinkId": {
            "description": "Id of the entity to cross-link the path entity with.",
            "type": "string"
          }
        },
        "required": [
          "crosslinkId"
        ],
        "type": "object"
      },
      "AddLinkDto": {
        "properties": {
          "branchId": {
            "type": "string"
          },
          "destinationId": {
            "type": "string"
          }
        },
        "required": [
          "destinationId"
        ],
        "type": "object"
      },
      "AddRequiredReviewerDto": {
        "properties": {},
        "type": "object"
      },
      "AddRequiredReviewerGroupDto": {
        "properties": {},
        "type": "object"
      },
      "AdminAuditLogEntryDto": {
        "properties": {
          "action": {
            "enum": [
              "category.create",
              "category.rename",
              "category.config_update",
              "category.delete",
              "category.reorder",
              "field.add",
              "field.update",
              "field.default_formula_reapply",
              "field.remove",
              "field.reorder",
              "view.create",
              "view.rename",
              "view.update",
              "view.delete",
              "view.reorder",
              "baseline.create",
              "baseline.rename",
              "project.ai_model_update",
              "review_policy.update",
              "google.oauth_acknowledged",
              "google.project_approved",
              "google.project_revoked",
              "template.create",
              "template.rename",
              "template.update",
              "template.delete",
              "template.reorder",
              "automation.create",
              "automation.update",
              "automation.delete",
              "automation.reorder",
              "automation.claim",
              "flow_md.update",
              "skill.create",
              "skill.update",
              "skill.delete",
              "skill.reorder",
              "skill_folder.create",
              "skill_folder.update",
              "skill_folder.delete",
              "skill_folder.reorder",
              "agent.create",
              "agent.archive",
              "user.access_granted",
              "user.role_change",
              "user.project_access_update",
              "user.access_removed"
            ],
            "type": "string"
          },
          "actorAgentId": {
            "nullable": true,
            "type": "string"
          },
          "actorEmail": {
            "nullable": true,
            "type": "string"
          },
          "actorUserId": {
            "nullable": true,
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "detail": {
            "additionalProperties": true,
            "nullable": true,
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "resourceId": {
            "nullable": true,
            "type": "string"
          },
          "resourceName": {
            "nullable": true,
            "type": "string"
          },
          "resourceType": {
            "enum": [
              "data_model",
              "view",
              "baseline",
              "project",
              "template",
              "automation",
              "flow_md",
              "skill",
              "user",
              "review_policy",
              "integration",
              "agent"
            ],
            "type": "string"
          },
          "revertible": {
            "type": "boolean"
          },
          "summary": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "action",
          "resourceType",
          "summary",
          "createdAt",
          "revertible"
        ],
        "type": "object"
      },
      "AdminAuditLogPageDto": {
        "properties": {
          "entries": {
            "items": {
              "$ref": "#/components/schemas/AdminAuditLogEntryDto"
            },
            "type": "array"
          },
          "limit": {
            "type": "number"
          },
          "moreAvailable": {
            "type": "boolean"
          },
          "nextCursor": {
            "type": "string"
          },
          "offset": {
            "type": "number"
          },
          "total": {
            "type": "number"
          }
        },
        "required": [
          "entries",
          "limit"
        ],
        "type": "object"
      },
      "AgentAutomationTriggerDto": {
        "properties": {
          "authors": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "branch": {
            "description": "A manual trigger that the branch menu offers.",
            "type": "boolean"
          },
          "branchId": {
            "type": "string"
          },
          "branchIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "cronExpression": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "paths": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source": {
            "description": "An automation trigger source: manual, schedule, branch, endpoint, github, github_merged, gitlab, gitlab_merged, bitbucket, onshape, teamcenter, import, slack, project_activity, or a custom webhook name.",
            "type": "string"
          },
          "timeZone": {
            "type": "string"
          },
          "types": {
            "description": "A manual trigger that the context menus of these item types (category ids) offer.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "source",
          "id"
        ],
        "type": "object"
      },
      "AgentAutomationTriggerInputDto": {
        "properties": {
          "authors": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "branch": {
            "description": "A manual trigger that the branch menu offers.",
            "type": "boolean"
          },
          "branchId": {
            "type": "string"
          },
          "branchIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "cronExpression": {
            "type": "string"
          },
          "id": {
            "description": "The id of a stored trigger to keep; omitted for a new one, which keeps the id of the stored trigger at its position.",
            "type": "string"
          },
          "paths": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source": {
            "description": "An automation trigger source: manual, schedule, branch, endpoint, github, github_merged, gitlab, gitlab_merged, bitbucket, onshape, teamcenter, import, slack, project_activity, or a custom webhook name.",
            "type": "string"
          },
          "timeZone": {
            "type": "string"
          },
          "types": {
            "description": "A manual trigger that the context menus of these item types (category ids) offer.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "source"
        ],
        "type": "object"
      },
      "AgentChatListDto": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AgentChatSummaryDto"
            },
            "type": "array"
          },
          "moreAvailable": {
            "type": "boolean"
          },
          "nextCursor": {
            "type": "string"
          },
          "total": {
            "type": "number"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "AgentChatResponseDto": {
        "properties": {
          "ai_model": {
            "nullable": true,
            "type": "string"
          },
          "archived": {
            "type": "boolean"
          },
          "auto_accept": {
            "type": "boolean"
          },
          "branch_id": {
            "nullable": true,
            "type": "string"
          },
          "branches": {
            "default": [],
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "config_id": {
            "nullable": true,
            "type": "string"
          },
          "context_usage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AiContextUsageDto"
              }
            ],
            "nullable": true,
            "type": "object"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "error": {
            "nullable": true,
            "type": "string"
          },
          "error_details": {
            "nullable": true,
            "type": "string"
          },
          "error_envelope": {
            "nullable": true,
            "oneOf": [
              {
                "properties": {
                  "code": {
                    "enum": [
                      "AI_PROVIDER_KEY_MISSING"
                    ],
                    "type": "string"
                  },
                  "model": {
                    "type": "string"
                  },
                  "provider": {
                    "enum": [
                      "openai",
                      "anthropic",
                      "xai"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "provider",
                  "model"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "code": {
                    "enum": [
                      "AI_CREDITS_EXHAUSTED"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "code"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "code": {
                    "enum": [
                      "AI_OWN_ENDPOINT_MISSING"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "code"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "code": {
                    "enum": [
                      "AI_OWN_ENDPOINT_REJECTED"
                    ],
                    "type": "string"
                  },
                  "status": {
                    "nullable": true,
                    "type": "number"
                  }
                },
                "required": [
                  "code",
                  "status"
                ],
                "type": "object"
              }
            ]
          },
          "forked_from_chat_id": {
            "description": "The chat this side chat was started from.",
            "nullable": true,
            "type": "string"
          },
          "forked_from_message_id": {
            "description": "The message of the source chat that the copy ends on.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "integration_grade": {
            "nullable": true,
            "type": "string"
          },
          "integration_response": {
            "nullable": true,
            "type": "string"
          },
          "is_main_chat": {
            "type": "boolean"
          },
          "last_user_message_at": {
            "format": "date-time",
            "type": "string"
          },
          "main_chat_id": {
            "nullable": true,
            "type": "string"
          },
          "messageOffset": {
            "type": "number"
          },
          "messages": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "opening_submission": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AgentOpeningSubmissionDto"
              }
            ],
            "nullable": true,
            "type": "object"
          },
          "parent_agent_id": {
            "nullable": true,
            "type": "string"
          },
          "persistent_agent_id": {
            "nullable": true,
            "type": "string"
          },
          "plan_headline": {
            "nullable": true,
            "type": "string"
          },
          "plan_items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AgentPlanItemDto"
            },
            "type": "array"
          },
          "project_id": {
            "nullable": true,
            "type": "string"
          },
          "root_agent_id": {
            "nullable": true,
            "type": "string"
          },
          "shared_with": {
            "default": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source_entity_id": {
            "description": "The item whose comment thread mentioned the agent and started this side chat.",
            "nullable": true,
            "type": "string"
          },
          "spawn_depth": {
            "type": "number"
          },
          "spawn_tool_call_id": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "sudo_enabled": {
            "default": false,
            "type": "boolean"
          },
          "sudo_mode": {
            "default": false,
            "type": "boolean"
          },
          "title": {
            "nullable": true,
            "type": "string"
          },
          "totalMessageCount": {
            "type": "number"
          },
          "trigger_info": {
            "nullable": true,
            "type": "object"
          },
          "trigger_type": {
            "enum": [
              "branch",
              "endpoint",
              "import",
              "schedule",
              "slack",
              "github",
              "github_merged",
              "gitlab",
              "gitlab_merged",
              "bitbucket",
              "onshape",
              "teamcenter",
              "project_activity",
              "webhook",
              "assistant",
              "agent_task",
              "entity_edit",
              "manual",
              "impact_analysis",
              "what_if_analysis",
              "subagent",
              "agent_correspondence"
            ],
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "visibility": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "messages",
          "status",
          "title",
          "error",
          "error_details",
          "error_envelope",
          "branch_id",
          "project_id",
          "config_id",
          "persistent_agent_id",
          "main_chat_id",
          "is_main_chat",
          "parent_agent_id",
          "root_agent_id",
          "spawn_depth",
          "spawn_tool_call_id",
          "visibility",
          "created_by",
          "shared_with",
          "created_at",
          "updated_at",
          "trigger_type",
          "trigger_info",
          "plan_items",
          "plan_headline",
          "ai_model",
          "auto_accept",
          "context_usage",
          "archived",
          "last_user_message_at"
        ],
        "type": "object"
      },
      "AgentChatSummaryDto": {
        "properties": {
          "ai_model": {
            "nullable": true,
            "type": "string"
          },
          "archived": {
            "type": "boolean"
          },
          "branch_id": {
            "nullable": true,
            "type": "string"
          },
          "config_id": {
            "nullable": true,
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "error": {
            "nullable": true,
            "type": "string"
          },
          "error_details": {
            "nullable": true,
            "type": "string"
          },
          "forked_from_chat_id": {
            "description": "The chat this side chat was started from.",
            "nullable": true,
            "type": "string"
          },
          "forked_from_message_id": {
            "description": "The message of the source chat that the copy ends on.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_main_chat": {
            "type": "boolean"
          },
          "last_user_message_at": {
            "format": "date-time",
            "type": "string"
          },
          "main_chat_id": {
            "nullable": true,
            "type": "string"
          },
          "parent_agent_id": {
            "nullable": true,
            "type": "string"
          },
          "persistent_agent_id": {
            "nullable": true,
            "type": "string"
          },
          "plan_headline": {
            "nullable": true,
            "type": "string"
          },
          "plan_items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AgentPlanItemDto"
            },
            "type": "array"
          },
          "project_id": {
            "nullable": true,
            "type": "string"
          },
          "root_agent_id": {
            "nullable": true,
            "type": "string"
          },
          "shared_with": {
            "default": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source_entity_id": {
            "description": "The item whose comment thread mentioned the agent and started this side chat.",
            "nullable": true,
            "type": "string"
          },
          "spawn_depth": {
            "type": "number"
          },
          "spawn_tool_call_id": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "nullable": true,
            "type": "string"
          },
          "trigger_info": {
            "nullable": true,
            "type": "object"
          },
          "trigger_type": {
            "enum": [
              "branch",
              "endpoint",
              "import",
              "schedule",
              "slack",
              "github",
              "github_merged",
              "gitlab",
              "gitlab_merged",
              "bitbucket",
              "onshape",
              "teamcenter",
              "project_activity",
              "webhook",
              "assistant",
              "agent_task",
              "entity_edit",
              "manual",
              "impact_analysis",
              "what_if_analysis",
              "subagent",
              "agent_correspondence"
            ],
            "nullable": true,
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "visibility": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "title",
          "error",
          "error_details",
          "branch_id",
          "project_id",
          "config_id",
          "persistent_agent_id",
          "main_chat_id",
          "is_main_chat",
          "visibility",
          "created_by",
          "shared_with",
          "created_at",
          "updated_at",
          "trigger_type",
          "trigger_info",
          "plan_items",
          "plan_headline",
          "ai_model",
          "parent_agent_id",
          "root_agent_id",
          "spawn_depth",
          "spawn_tool_call_id",
          "archived",
          "last_user_message_at"
        ],
        "type": "object"
      },
      "AgentDefinitionDto": {
        "properties": {
          "avatarColor": {
            "enum": [
              "primary",
              "red",
              "amber",
              "lime",
              "emerald",
              "sky",
              "blue",
              "indigo",
              "violet",
              "fuchsia",
              "gray",
              "black"
            ],
            "type": "string"
          },
          "avatarRatio": {
            "enum": [
              "1:1",
              "1:2",
              "2:1",
              "2:3",
              "1:3",
              "3:1"
            ],
            "type": "string"
          },
          "avatarShape": {
            "enum": [
              "square",
              "squircle",
              "circle",
              "pill",
              "diamond",
              "triangle",
              "pentagon",
              "hexagon",
              "octagon",
              "shield",
              "scallop",
              "blob",
              "drop",
              "star"
            ],
            "type": "string"
          },
          "botUserId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "ownerUserId": {
            "description": "The person this agent belongs to, or null for the project's. A personal agent is listed to its owner alone.",
            "nullable": true,
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "role": {
            "nullable": true,
            "type": "string"
          },
          "suggestOnly": {
            "type": "boolean"
          },
          "triggers": {
            "items": {
              "$ref": "#/components/schemas/AgentTriggerDto"
            },
            "type": "array"
          },
          "updatedAt": {
            "type": "string"
          },
          "updatedBy": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "projectId",
          "name",
          "description",
          "role",
          "botUserId",
          "ownerUserId",
          "enabled",
          "suggestOnly",
          "avatarColor",
          "avatarShape",
          "avatarRatio",
          "createdBy",
          "updatedBy",
          "createdAt",
          "updatedAt",
          "triggers"
        ],
        "type": "object"
      },
      "AgentHandTriggerDto": {
        "properties": {
          "agentId": {
            "type": "string"
          },
          "agentName": {
            "type": "string"
          },
          "branch": {
            "description": "Offered by the branch menu.",
            "type": "boolean"
          },
          "triggerId": {
            "type": "string"
          },
          "types": {
            "description": "Offered by the context menus of these item types.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "agentId",
          "agentName",
          "triggerId",
          "branch",
          "types"
        ],
        "type": "object"
      },
      "AgentListItemDto": {
        "properties": {
          "avatarColor": {
            "enum": [
              "primary",
              "red",
              "amber",
              "lime",
              "emerald",
              "sky",
              "blue",
              "indigo",
              "violet",
              "fuchsia",
              "gray",
              "black"
            ],
            "type": "string"
          },
          "avatarRatio": {
            "enum": [
              "1:1",
              "1:2",
              "2:1",
              "2:3",
              "1:3",
              "3:1"
            ],
            "type": "string"
          },
          "avatarShape": {
            "enum": [
              "square",
              "squircle",
              "circle",
              "pill",
              "diamond",
              "triangle",
              "pentagon",
              "hexagon",
              "octagon",
              "shield",
              "scallop",
              "blob",
              "drop",
              "star"
            ],
            "type": "string"
          },
          "botUserId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "description": {
            "nullable": true,
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "ownerUserId": {
            "description": "The person this agent belongs to, or null for the project's. A personal agent is listed to its owner alone.",
            "nullable": true,
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "role": {
            "nullable": true,
            "type": "string"
          },
          "suggestOnly": {
            "type": "boolean"
          },
          "updatedAt": {
            "type": "string"
          },
          "updatedBy": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "projectId",
          "name",
          "description",
          "role",
          "botUserId",
          "ownerUserId",
          "enabled",
          "suggestOnly",
          "avatarColor",
          "avatarShape",
          "avatarRatio",
          "createdBy",
          "updatedBy",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "AgentOpeningSubmissionDto": {
        "properties": {
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/OpeningAttachmentDto"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "status": {
            "enum": [
              "uploading",
              "accepted",
              "canceled"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "prompt",
          "attachments"
        ],
        "type": "object"
      },
      "AgentPlanItemDto": {
        "properties": {
          "conclusion": {
            "enum": [
              "pass",
              "fail",
              "warning",
              "skipped"
            ],
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "in_progress",
              "done"
            ],
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "status"
        ],
        "type": "object"
      },
      "AgentTriggerDto": {
        "properties": {
          "configuredAt": {
            "type": "string"
          },
          "configuredBy": {
            "description": "Who last wrote this entry.",
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "trigger": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AgentTriggerSettingsDto"
              }
            ],
            "description": "The first of `triggers`."
          },
          "triggers": {
            "items": {
              "$ref": "#/components/schemas/AgentAutomationTriggerDto"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "enabled",
          "prompt",
          "trigger",
          "triggers",
          "configuredBy",
          "configuredAt"
        ],
        "type": "object"
      },
      "AgentTriggerFiredDto": {
        "properties": {
          "chatId": {
            "description": "The side chat the firing started.",
            "type": "string"
          }
        },
        "required": [
          "chatId"
        ],
        "type": "object"
      },
      "AgentTriggerInputDto": {
        "properties": {
          "enabled": {
            "description": "Off: no trigger of it fires.",
            "type": "boolean"
          },
          "id": {
            "description": "The id of a stored entry to keep; omitted for a new one.",
            "type": "string"
          },
          "name": {
            "description": "Shown in the agent’s automation list.",
            "type": "string"
          },
          "prompt": {
            "description": "What the agent is told when the automation fires.",
            "type": "string"
          },
          "trigger": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AgentTriggerSettingsDto"
              }
            ],
            "description": "The first trigger, as clients from before several triggers write it. It replaces the first trigger and keeps the others."
          },
          "triggers": {
            "description": "Every trigger, in order. At most one is manual.",
            "items": {
              "$ref": "#/components/schemas/AgentAutomationTriggerInputDto"
            },
            "type": "array"
          }
        },
        "required": [
          "prompt"
        ],
        "type": "object"
      },
      "AgentTriggerSettingsDto": {
        "properties": {
          "authors": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "branch": {
            "description": "A manual trigger that the branch menu offers.",
            "type": "boolean"
          },
          "branchId": {
            "type": "string"
          },
          "branchIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "cronExpression": {
            "type": "string"
          },
          "paths": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source": {
            "description": "An automation trigger source: manual, schedule, branch, endpoint, github, github_merged, gitlab, gitlab_merged, bitbucket, onshape, teamcenter, import, slack, project_activity, or a custom webhook name.",
            "type": "string"
          },
          "timeZone": {
            "type": "string"
          },
          "types": {
            "description": "A manual trigger that the context menus of these item types (category ids) offer.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "source"
        ],
        "type": "object"
      },
      "AiContextUsageDto": {
        "properties": {
          "budgetTokens": {
            "description": "Effective input budget for this deployment.",
            "type": "number"
          },
          "droppedCount": {
            "description": "History turns being withheld from the model (0 = none).",
            "type": "number"
          },
          "usedTokens": {
            "description": "Estimated tokens the conversation occupies. Approximate, and may exceed budgetTokens.",
            "type": "number"
          }
        },
        "required": [
          "usedTokens",
          "budgetTokens",
          "droppedCount"
        ],
        "type": "object"
      },
      "ArchitectureLayoutDto": {
        "properties": {
          "schema": {
            "additionalProperties": true,
            "type": "object"
          },
          "store": {
            "additionalProperties": true,
            "type": "object"
          }
        },
        "required": [
          "store",
          "schema"
        ],
        "type": "object"
      },
      "ArchitectureLayoutResponseDto": {
        "properties": {
          "snapshot": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ArchitectureLayoutDto"
              }
            ],
            "nullable": true,
            "type": "object"
          }
        },
        "required": [
          "snapshot"
        ],
        "type": "object"
      },
      "AutomationDto": {
        "properties": {
          "advisory": {
            "description": "Branch checks: report the verdict without blocking the merge. Defaults to false.",
            "type": "boolean"
          },
          "allowAdminTools": {
            "type": "boolean"
          },
          "branchPerRun": {
            "description": "Whether every run opens its own branch. Defaults to false: runs on the same target branch collect their changes on one branch until it is merged or closed.",
            "type": "boolean"
          },
          "confirmBeforeExecute": {
            "type": "boolean"
          },
          "enabled": {
            "description": "Whether the automation runs at all, in either mode: off, no trigger, schedule or hand launch starts a run. Defaults to true.",
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "invalidateOn": {
            "description": "Branch-review automations: comment events after which the last result is out of date, beyond a data change (a check reruns, an agent run is offered for re-running): comment_set_changed, comment_resolution_changed, comment_text_changed. Absent declares none. An Agent-mode automation cannot declare comment_set_changed: its own comments would mark its run out of date.",
            "items": {
              "enum": [
                "comment_set_changed",
                "comment_resolution_changed",
                "comment_text_changed"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "mode": {
            "enum": [
              "agent",
              "script"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "runNotifications": {
            "description": "Whether finished runs notify the person a run executes as. `findings` (the default) notifies when a run fails, changes an item, or raises, updates or resolves a finding. `off` never notifies. A hand-launched run always reports back.",
            "enum": [
              "off",
              "findings"
            ],
            "type": "string"
          },
          "runsAs": {
            "$ref": "#/components/schemas/AutomationRunsAsDto"
          },
          "scope": {
            "description": "Which list the record is in: the project's or your personal one. Always answered. A record written with `scope=personal` must say `\"personal\"` here too.",
            "enum": [
              "project",
              "personal"
            ],
            "type": "string"
          },
          "script": {
            "type": "string"
          },
          "scriptCategoryReferenceMode": {
            "description": "Category references used by script tools. Omit for legacy stable IDs.",
            "enum": [
              "display-name",
              "stable-id"
            ],
            "type": "string"
          },
          "scriptTimeoutSeconds": {
            "type": "number"
          },
          "suggestOnly": {
            "description": "Whether runs only suggest: they read everything, raise findings and comment on the items they concern, but change no item, field, link or branch. Defaults to false.",
            "type": "boolean"
          },
          "trigger": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AutomationTriggerDto"
              }
            ],
            "description": "The first of `triggers`, or null when there is none. Kept for clients written before an automation could have several triggers.",
            "nullable": true,
            "type": "object"
          },
          "triggers": {
            "description": "Every trigger, in order. The automation runs when any of them fires. Empty for an automation that is only run by hand. Always answered.",
            "items": {
              "$ref": "#/components/schemas/AutomationTriggerDto"
            },
            "type": "array"
          },
          "url": {
            "description": "Link to the automation in Flow, where a person reviews it and turns it on or off.",
            "type": "string"
          },
          "writeBranchId": {
            "description": "The branch every run writes on (`master` for Base), whatever its trigger names; a change-request review trigger still works on the change request under review. Base or a variant takes the writes directly only while it allows edits to live, and an unprotected change request always does; otherwise runs use a change request under it. Absent: triggered runs use a change request (see `branchPerRun`) and hand-launched runs write where they are launched.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "AutomationRunStatusItemDto": {
        "properties": {
          "agent_id": {
            "type": "string"
          },
          "automation_id": {
            "nullable": true,
            "type": "string"
          },
          "automation_name": {
            "nullable": true,
            "type": "string"
          },
          "branches": {
            "default": [],
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "conclusion": {
            "enum": [
              "pass",
              "fail",
              "warning",
              "skipped"
            ],
            "nullable": true,
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "error": {
            "nullable": true,
            "type": "string"
          },
          "integration_grade": {
            "nullable": true,
            "type": "string"
          },
          "integration_response": {
            "nullable": true,
            "type": "string"
          },
          "project_id": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "enum": [
              "running",
              "completed",
              "failed"
            ],
            "type": "string"
          },
          "steps": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AgentPlanItemDto"
            },
            "type": "array"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "required": [
          "agent_id",
          "status",
          "automation_id",
          "automation_name",
          "integration_response",
          "integration_grade",
          "branches",
          "project_id",
          "error",
          "conclusion",
          "steps",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "AutomationRunStatusResponseDto": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AutomationRunStatusItemDto"
            },
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "AutomationRunsAsDto": {
        "properties": {
          "isAdmin": {
            "type": "boolean"
          },
          "kind": {
            "enum": [
              "user",
              "author_unknown",
              "author_unavailable"
            ],
            "type": "string"
          },
          "userId": {
            "type": "string"
          }
        },
        "required": [
          "kind"
        ],
        "type": "object"
      },
      "AutomationTriggerDto": {
        "properties": {
          "authors": {
            "description": "GitHub/GitLab triggers: only fire for these authors. Empty or absent fires for everyone.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "branch": {
            "description": "Manual triggers: whether the automation can be run from a branch.",
            "type": "boolean"
          },
          "branchId": {
            "description": "Schedule triggers: the branch each run starts from.",
            "type": "string"
          },
          "branchIds": {
            "description": "Schedule triggers: run once per listed branch on every occurrence. Takes precedence over `branchId`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "cronExpression": {
            "description": "Schedule triggers: a five-field cron expression.",
            "example": "0 9 * * 1-5",
            "type": "string"
          },
          "id": {
            "description": "The trigger's id within its automation. Always answered. On a write, omit it for a new trigger; a trigger sent without one keeps the id of the trigger at the same position.",
            "type": "string"
          },
          "paths": {
            "description": "GitHub/GitLab triggers: only fire for changes under these paths. Empty or absent fires for every change.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source": {
            "description": "When the automation runs: a built-in source (branch, endpoint, import, schedule, slack, github, github_merged, gitlab, gitlab_merged, bitbucket, onshape, teamcenter, project_activity), 'manual', or the name of a custom webhook trigger.",
            "example": "schedule",
            "type": "string"
          },
          "timeZone": {
            "description": "Schedule triggers: the IANA timezone the cron expression is read in. Defaults to UTC.",
            "example": "America/Los_Angeles",
            "type": "string"
          },
          "types": {
            "description": "Manual triggers: the category ids of the items it can be run from.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "source"
        ],
        "type": "object"
      },
      "AutomationsResponseDto": {
        "properties": {
          "automations": {
            "items": {
              "$ref": "#/components/schemas/AutomationDto"
            },
            "type": "array"
          }
        },
        "required": [
          "automations"
        ],
        "type": "object"
      },
      "BatchAddLinkItemDto": {
        "properties": {
          "destinationId": {
            "type": "string"
          },
          "sourceId": {
            "type": "string"
          }
        },
        "required": [
          "sourceId",
          "destinationId"
        ],
        "type": "object"
      },
      "BatchAddLinksDto": {
        "properties": {
          "branchId": {
            "description": "Branch ID; applies to the entire batch",
            "type": "string"
          },
          "links": {
            "items": {
              "$ref": "#/components/schemas/BatchAddLinkItemDto"
            },
            "type": "array"
          }
        },
        "required": [
          "links"
        ],
        "type": "object"
      },
      "BatchCreateEntitiesDto": {
        "properties": {
          "branchId": {
            "description": "Branch ID; applies to the entire batch",
            "type": "string"
          },
          "entities": {
            "items": {
              "$ref": "#/components/schemas/BatchCreateEntityItemDto"
            },
            "type": "array"
          }
        },
        "required": [
          "entities"
        ],
        "type": "object"
      },
      "BatchCreateEntityItemDto": {
        "properties": {
          "entityType": {
            "description": "Entity type (e.g. \"task\", \"bug\")",
            "type": "string"
          },
          "id": {
            "description": "Entity ID (UUID). Auto-generated if omitted.",
            "type": "string"
          },
          "name": {
            "description": "Entity name",
            "type": "string"
          }
        },
        "required": [
          "entityType",
          "name"
        ],
        "type": "object"
      },
      "BatchDeleteEntitiesDto": {
        "properties": {
          "branchId": {
            "description": "Branch ID; applies to the entire batch",
            "type": "string"
          },
          "entityIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "entityIds"
        ],
        "type": "object"
      },
      "BatchFileUploadResponseDto": {
        "properties": {
          "files": {
            "items": {
              "$ref": "#/components/schemas/FileUploadResponseDto"
            },
            "type": "array"
          }
        },
        "required": [
          "files"
        ],
        "type": "object"
      },
      "BatchFileUrlsRequestDto": {
        "properties": {
          "ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ids"
        ],
        "type": "object"
      },
      "BatchFileUrlsResponseDto": {
        "properties": {
          "urls": {
            "additionalProperties": {
              "properties": {
                "expires_in": {
                  "type": "number"
                },
                "original_name": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "object"
          }
        },
        "required": [
          "urls"
        ],
        "type": "object"
      },
      "BatchMarkdownToRichTextDto": {
        "properties": {
          "markdown": {
            "description": "Markdown strings to convert. Order is preserved in the response.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "markdown"
        ],
        "type": "object"
      },
      "BatchRemoveLinkItemDto": {
        "properties": {
          "destinationId": {
            "type": "string"
          },
          "sourceId": {
            "type": "string"
          }
        },
        "required": [
          "sourceId",
          "destinationId"
        ],
        "type": "object"
      },
      "BatchRemoveLinksDto": {
        "properties": {
          "branchId": {
            "description": "Branch ID; applies to the entire batch",
            "type": "string"
          },
          "links": {
            "items": {
              "$ref": "#/components/schemas/BatchRemoveLinkItemDto"
            },
            "type": "array"
          }
        },
        "required": [
          "links"
        ],
        "type": "object"
      },
      "BatchReorderChildrenDto": {
        "properties": {
          "branchId": {
            "description": "Branch ID; applies to the entire batch",
            "type": "string"
          },
          "ops": {
            "items": {
              "$ref": "#/components/schemas/BatchReorderChildrenItemDto"
            },
            "type": "array"
          }
        },
        "required": [
          "ops"
        ],
        "type": "object"
      },
      "BatchReorderChildrenItemDto": {
        "properties": {
          "childIds": {
            "description": "Ordered downstream child IDs",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "parentId": {
            "description": "Parent entity ID whose children are reordered",
            "type": "string"
          }
        },
        "required": [
          "parentId",
          "childIds"
        ],
        "type": "object"
      },
      "BatchRequestUploadDto": {
        "properties": {
          "files": {
            "items": {
              "$ref": "#/components/schemas/CreateFileDto"
            },
            "type": "array"
          }
        },
        "required": [
          "files"
        ],
        "type": "object"
      },
      "BatchRestoreEntitiesDto": {
        "properties": {
          "branchId": {
            "description": "Branch ID; applies to the entire batch",
            "type": "string"
          },
          "entityIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "entityIds"
        ],
        "type": "object"
      },
      "BatchSetValueItemDto": {
        "properties": {
          "entityId": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "value": {
            "type": "object"
          }
        },
        "required": [
          "entityId",
          "key",
          "value"
        ],
        "type": "object"
      },
      "BatchSetValuesDto": {
        "properties": {
          "branchId": {
            "description": "Branch ID; applies to the entire batch",
            "type": "string"
          },
          "updates": {
            "items": {
              "$ref": "#/components/schemas/BatchSetValueItemDto"
            },
            "type": "array"
          }
        },
        "required": [
          "updates"
        ],
        "type": "object"
      },
      "BranchChangedPayloadDto": {
        "properties": {
          "diff_count": {
            "description": "Item diffs this event covers (cascades excluded).",
            "type": "number"
          },
          "entity_count": {
            "type": "number"
          },
          "entity_ids": {
            "description": "Touched entity ids, at most 100; see truncated.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "first_seq_id": {
            "description": "Origin seq of the first diff this event covers: the position the write entered the log, stable across rebases.",
            "type": "string"
          },
          "last_seq_id": {
            "description": "Origin seq of the last diff this event covers.",
            "type": "string"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "required": [
          "diff_count",
          "entity_count",
          "entity_ids",
          "truncated",
          "first_seq_id",
          "last_seq_id"
        ],
        "type": "object"
      },
      "BranchCheckItemDto": {
        "properties": {
          "advisory": {
            "type": "boolean"
          },
          "automation_id": {
            "type": "string"
          },
          "error": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "output": {
            "nullable": true,
            "type": "string"
          },
          "ran_at": {
            "nullable": true,
            "type": "string"
          },
          "run_id": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "enum": [
              "passed",
              "failed",
              "warning",
              "stale",
              "not_run"
            ],
            "type": "string"
          }
        },
        "required": [
          "automation_id",
          "name",
          "status",
          "output",
          "error",
          "run_id",
          "ran_at",
          "advisory"
        ],
        "type": "object"
      },
      "BranchChecksResponseDto": {
        "properties": {
          "checks": {
            "items": {
              "$ref": "#/components/schemas/BranchCheckItemDto"
            },
            "type": "array"
          }
        },
        "required": [
          "checks"
        ],
        "type": "object"
      },
      "BranchCreatedDto": {
        "properties": {
          "id": {
            "type": "string"
          },
          "number": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "number"
        ],
        "type": "object"
      },
      "BranchExtractionBranchDto": {
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "parent_id": {
            "format": "uuid",
            "nullable": true,
            "type": "string"
          },
          "parent_seq_id": {
            "description": "Bigint-safe fork sequence.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "parent_id",
          "parent_seq_id"
        ],
        "type": "object"
      },
      "BranchExtractionPlanCountsDto": {
        "properties": {
          "additionally_affected": {
            "type": "number"
          },
          "diffs": {
            "description": "Bigint-safe ordered source row count.",
            "type": "string"
          },
          "required": {
            "type": "number"
          },
          "selected": {
            "type": "number"
          }
        },
        "required": [
          "selected",
          "required",
          "additionally_affected",
          "diffs"
        ],
        "type": "object"
      },
      "BranchExtractionPlanMembershipDto": {
        "properties": {
          "entity_id": {
            "type": "string"
          },
          "reason_entity_id": {
            "nullable": true,
            "type": "string"
          },
          "role": {
            "enum": [
              "selected",
              "required",
              "additionally_affected"
            ],
            "type": "string"
          }
        },
        "required": [
          "entity_id",
          "role",
          "reason_entity_id"
        ],
        "type": "object"
      },
      "BranchExtractionPlanResponseDto": {
        "properties": {
          "counts": {
            "$ref": "#/components/schemas/BranchExtractionPlanCountsDto"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "entities": {
            "items": {
              "$ref": "#/components/schemas/BranchExtractionPlanMembershipDto"
            },
            "type": "array"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "project_id": {
            "type": "string"
          },
          "proposed_destination_name": {
            "type": "string"
          },
          "selector": {
            "enum": [
              "entities",
              "non_variant"
            ],
            "type": "string"
          },
          "source_branch_id": {
            "type": "string"
          },
          "source_snapshot_seq_id": {
            "description": "Frozen global diff watermark.",
            "type": "string"
          },
          "status": {
            "enum": [
              "ready",
              "stale",
              "expired",
              "consumed"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "project_id",
          "source_branch_id",
          "selector",
          "status",
          "proposed_destination_name",
          "counts",
          "entities",
          "source_snapshot_seq_id",
          "created_at",
          "expires_at"
        ],
        "type": "object"
      },
      "BranchExtractionResponseDto": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "destination": {
            "$ref": "#/components/schemas/BranchExtractionBranchDto"
          },
          "diff_count": {
            "type": "number"
          },
          "entity_count": {
            "type": "number"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "reverted_at": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/BranchExtractionBranchDto"
          },
          "status": {
            "enum": [
              "completed",
              "reverted"
            ],
            "type": "string"
          },
          "undo": {
            "$ref": "#/components/schemas/BranchExtractionUndoEligibilityDto"
          }
        },
        "required": [
          "id",
          "status",
          "source",
          "destination",
          "entity_count",
          "diff_count",
          "created_at",
          "reverted_at",
          "undo"
        ],
        "type": "object"
      },
      "BranchExtractionUndoEligibilityDto": {
        "properties": {
          "eligible": {
            "type": "boolean"
          },
          "reason": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "eligible",
          "reason"
        ],
        "type": "object"
      },
      "BranchLabelDto": {
        "properties": {
          "color": {
            "example": "#dbeafe",
            "type": "string"
          },
          "symbol": {
            "description": "Stored symbol. New tags use a fixed Lucide icon name, but reads can include legacy symbols.",
            "maxLength": 32,
            "type": "string"
          },
          "text": {
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "text",
          "color",
          "symbol"
        ],
        "type": "object"
      },
      "BranchMergeJobResponseDto": {
        "properties": {
          "attempts": {
            "type": "number"
          },
          "branch_id": {
            "type": "string"
          },
          "completed_at": {
            "type": "string"
          },
          "enqueued_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_error": {
            "type": "string"
          },
          "last_error_reference": {
            "type": "string"
          },
          "progress_percent": {
            "type": "number"
          },
          "project_id": {
            "type": "string"
          },
          "replayed_diff_count": {
            "type": "number"
          },
          "started_at": {
            "type": "string"
          },
          "status": {
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed"
            ],
            "type": "string"
          },
          "total_diff_count": {
            "type": "number"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "branch_id",
          "project_id",
          "status",
          "attempts",
          "replayed_diff_count",
          "total_diff_count",
          "progress_percent",
          "enqueued_at",
          "updated_at"
        ],
        "type": "object"
      },
      "BranchNameSuggestionDto": {
        "properties": {
          "name": {
            "type": "string"
          },
          "number": {
            "type": "number"
          },
          "reservation": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "name",
          "number",
          "reservation"
        ],
        "type": "object"
      },
      "BranchRebasedPayloadDto": {
        "properties": {
          "branch_name": {
            "type": "string"
          },
          "parent_branch_id": {
            "description": "The branch the branch re-anchored onto; null means Base.",
            "nullable": true,
            "type": "string"
          },
          "parent_seq_id": {
            "description": "The fork point the branch moved to (its parent_seq_id after the rebase).",
            "nullable": true,
            "type": "string"
          },
          "rebase_event_id": {
            "description": "ID of the rebase-history row; stable across reads.",
            "type": "string"
          }
        },
        "required": [
          "rebase_event_id",
          "branch_name",
          "parent_branch_id",
          "parent_seq_id"
        ],
        "type": "object"
      },
      "BranchResponseDto": {
        "properties": {
          "auto_merge_requested_at": {
            "nullable": true,
            "type": "string"
          },
          "auto_merge_requested_by_id": {
            "nullable": true,
            "type": "string"
          },
          "baseline_id": {
            "nullable": true,
            "type": "string"
          },
          "branch_extraction_enabled": {
            "type": "boolean"
          },
          "change_request_diff_summary": {
            "$ref": "#/components/schemas/ChangeRequestDiffSummaryDto"
          },
          "change_request_title": {
            "nullable": true,
            "type": "string"
          },
          "comment_count": {
            "type": "number"
          },
          "created_at": {
            "type": "string"
          },
          "created_by_id": {
            "nullable": true,
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "designated_reviewer_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "editor_group_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "has_children": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "is_deleted": {
            "type": "boolean"
          },
          "is_iteration": {
            "type": "boolean"
          },
          "is_protected": {
            "type": "boolean"
          },
          "is_variant": {
            "type": "boolean"
          },
          "labels": {
            "items": {
              "$ref": "#/components/schemas/BranchLabelDto"
            },
            "type": "array"
          },
          "last_rebased_at": {
            "nullable": true,
            "type": "string"
          },
          "last_touched_at": {
            "nullable": true,
            "type": "string"
          },
          "live_edits_allowed": {
            "type": "boolean"
          },
          "merged_at": {
            "nullable": true,
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "number": {
            "type": "number"
          },
          "owner_id": {
            "nullable": true,
            "type": "string"
          },
          "parent": {
            "nullable": true,
            "type": "string"
          },
          "parent_name": {
            "nullable": true,
            "type": "string"
          },
          "ready_for_review": {
            "type": "boolean"
          },
          "require_review": {
            "type": "boolean"
          },
          "required_reviewer_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "restore_eligible": {
            "type": "boolean"
          },
          "reviews": {
            "items": {
              "$ref": "#/components/schemas/BranchReviewResponseDto"
            },
            "type": "array"
          },
          "updated_at": {
            "type": "string"
          },
          "updated_by_id": {
            "nullable": true,
            "type": "string"
          },
          "upstream_branch_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "number",
          "is_iteration",
          "description",
          "is_variant",
          "parent_name",
          "created_at",
          "updated_at",
          "is_protected",
          "live_edits_allowed",
          "require_review",
          "ready_for_review",
          "owner_id",
          "created_by_id",
          "updated_by_id",
          "last_touched_at",
          "last_rebased_at",
          "required_reviewer_ids",
          "editor_group_ids",
          "labels",
          "upstream_branch_ids",
          "merged_at",
          "is_deleted",
          "has_children"
        ],
        "type": "object"
      },
      "BranchRestorePreviewDto": {
        "properties": {
          "chain": {
            "items": {
              "$ref": "#/components/schemas/RestoreChainMemberDto"
            },
            "type": "array"
          }
        },
        "required": [
          "chain"
        ],
        "type": "object"
      },
      "BranchReviewPayloadDto": {
        "properties": {
          "baseline_id": {
            "description": "The baseline a merge produced.",
            "type": "string"
          },
          "branch_name": {
            "type": "string"
          },
          "comment_id": {
            "description": "The review comment attached to the decision.",
            "type": "string"
          },
          "review_event_id": {
            "description": "ID of the review-history row; stable across reads.",
            "type": "string"
          },
          "subject_user_group_id": {
            "type": "string"
          },
          "subject_user_group_name": {
            "type": "string"
          },
          "subject_user_id": {
            "description": "The user the event is about when it is not the actor (a dismissed approval, a removed reviewer, a new owner).",
            "type": "string"
          },
          "target_branch_id": {
            "description": "The branch’s merge target as the event recorded it, else its current parent; null means Base.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "review_event_id",
          "branch_name",
          "target_branch_id"
        ],
        "type": "object"
      },
      "BranchReviewResponseDto": {
        "properties": {
          "branch_id": {
            "type": "string"
          },
          "comment_id": {
            "nullable": true,
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "dismissed_at": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "enum": [
              "Approved",
              "Rejected"
            ],
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "branch_id",
          "user_id",
          "status",
          "comment_id",
          "created_at",
          "updated_at",
          "dismissed_at"
        ],
        "type": "object"
      },
      "BranchReviewStatusItemDto": {
        "properties": {
          "agent_id": {
            "nullable": true,
            "type": "string"
          },
          "automation_id": {
            "type": "string"
          },
          "automation_name": {
            "type": "string"
          },
          "has_changes_since_run": {
            "type": "boolean"
          },
          "last_run_at": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "automation_id",
          "automation_name",
          "agent_id",
          "last_run_at",
          "has_changes_since_run"
        ],
        "type": "object"
      },
      "BranchReviewStatusResponseDto": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/BranchReviewStatusItemDto"
            },
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "BranchTagInputDto": {
        "properties": {
          "color": {
            "description": "Required only when creating a new project tag; omitted when assigning an existing tag by text.",
            "enum": [
              "#f5f5f4",
              "#fee2e2",
              "#ffedd5",
              "#fef3c7",
              "#fef9c3",
              "#ecfccb",
              "#dcfce7",
              "#d1fae5",
              "#ccfbf1",
              "#cffafe",
              "#e0f2fe",
              "#dbeafe",
              "#e0e7ff",
              "#ede9fe",
              "#f3e8ff",
              "#fae8ff",
              "#fce7f3",
              "#ffe4e6"
            ],
            "example": "#dbeafe",
            "type": "string"
          },
          "symbol": {
            "description": "Required only when creating a new project tag. Use an empty string for no icon.",
            "enum": [
              "",
              "CircleSmallIcon",
              "CircleIcon",
              "CircleDotIcon",
              "CircleCheckIcon",
              "CircleXIcon",
              "CircleAlertIcon",
              "CircleQuestionMarkIcon",
              "CircleMinusIcon",
              "CircleDashedIcon",
              "CheckIcon",
              "XIcon",
              "AlertTriangleIcon",
              "InfoIcon",
              "BanIcon",
              "FlameIcon",
              "ZapIcon",
              "StarIcon",
              "HeartIcon",
              "ThumbsUpIcon",
              "ThumbsDownIcon",
              "ArrowUpIcon",
              "ArrowDownIcon",
              "FlagIcon",
              "FlagTriangleLeftIcon",
              "BookmarkIcon",
              "BookmarkCheckIcon",
              "DiamondIcon",
              "HexagonIcon",
              "PlayIcon",
              "PauseIcon",
              "ClockIcon",
              "LockIcon",
              "EyeIcon",
              "ShieldCheckIcon",
              "ShieldAlertIcon",
              "TagIcon",
              "TicketIcon",
              "ClipboardCheckIcon",
              "FileTextIcon",
              "UserIcon"
            ],
            "type": "string"
          },
          "text": {
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "BranchTagMutationResponseDto": {
        "properties": {
          "affected_branches": {
            "description": "Number of branches updated, including Base when applicable.",
            "type": "number"
          }
        },
        "required": [
          "affected_branches"
        ],
        "type": "object"
      },
      "BulkInviteDetailedDto": {
        "properties": {
          "customer": {
            "type": "string"
          },
          "suppress_notification": {
            "default": false,
            "type": "boolean"
          },
          "users": {
            "items": {
              "$ref": "#/components/schemas/BulkInviteUserEntryDto"
            },
            "maxItems": 200,
            "type": "array"
          }
        },
        "required": [
          "customer",
          "users"
        ],
        "type": "object"
      },
      "BulkInviteFailureDto": {
        "properties": {
          "email": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "email",
          "message"
        ],
        "type": "object"
      },
      "BulkInviteResultDto": {
        "properties": {
          "failed": {
            "items": {
              "$ref": "#/components/schemas/BulkInviteFailureDto"
            },
            "type": "array"
          },
          "invited": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "invited",
          "failed"
        ],
        "type": "object"
      },
      "BulkInviteUserDto": {
        "properties": {
          "all_projects": {
            "default": true,
            "type": "boolean"
          },
          "customer": {
            "type": "string"
          },
          "emails": {
            "items": {
              "type": "string"
            },
            "maxItems": 200,
            "type": "array"
          },
          "project_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Role"
              }
            ],
            "default": "editor"
          },
          "suppress_notification": {
            "default": false,
            "type": "boolean"
          }
        },
        "required": [
          "customer",
          "emails"
        ],
        "type": "object"
      },
      "BulkInviteUserEntryDto": {
        "properties": {
          "all_projects": {
            "default": true,
            "type": "boolean"
          },
          "email": {
            "type": "string"
          },
          "family_name": {
            "type": "string"
          },
          "given_name": {
            "type": "string"
          },
          "project_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Role"
              }
            ],
            "default": "editor"
          }
        },
        "required": [
          "email"
        ],
        "type": "object"
      },
      "BulkRemoveUserFailureDto": {
        "properties": {
          "message": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "message"
        ],
        "type": "object"
      },
      "BulkRemoveUsersDto": {
        "properties": {
          "user_ids": {
            "items": {
              "type": "string"
            },
            "maxItems": 200,
            "type": "array"
          }
        },
        "required": [
          "user_ids"
        ],
        "type": "object"
      },
      "BulkRemoveUsersResultDto": {
        "properties": {
          "failed": {
            "items": {
              "$ref": "#/components/schemas/BulkRemoveUserFailureDto"
            },
            "type": "array"
          },
          "removed": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "removed",
          "failed"
        ],
        "type": "object"
      },
      "ChangeRequestDiffSummaryDto": {
        "properties": {
          "added": {
            "type": "number"
          },
          "pending": {
            "type": "number"
          },
          "removed": {
            "type": "number"
          },
          "updated": {
            "type": "number"
          }
        },
        "required": [
          "added",
          "updated",
          "removed",
          "pending"
        ],
        "type": "object"
      },
      "ChunkAnalysisDto": {
        "properties": {
          "entities": {
            "items": {
              "$ref": "#/components/schemas/PageEntityDto"
            },
            "type": "array"
          },
          "notes": {
            "items": {
              "$ref": "#/components/schemas/PageNoteDto"
            },
            "type": "array"
          },
          "relationships": {
            "items": {
              "$ref": "#/components/schemas/PageRelationshipDto"
            },
            "type": "array"
          }
        },
        "required": [
          "entities",
          "relationships",
          "notes"
        ],
        "type": "object"
      },
      "CommitReqifImportDto": {
        "properties": {
          "base_branch_id": {
            "description": "Base branch to fork the import branch from. Omit or \"master\" for the base branch.",
            "type": "string"
          },
          "branch_name": {
            "description": "Name for the branch the import lands on.",
            "type": "string"
          },
          "clauses": {
            "description": "The mapping clauses the wizard configured, in precedence order (the first clause matching an object wins). Each clause names the target Flow category, the ReqIF value that becomes the Source ID, the Flow field the object is matched against, the per-attribute field mappings, the enum-option mappings, and an optional disambiguation filter. ReqIF types with no clause are skipped.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "link_direction_by_type": {
            "description": "Per-ReqIF-link-type direction choice. Absent link types default to downstream.",
            "type": "object"
          },
          "parent_id": {
            "description": "Optional Flow parent entity to nest imported roots under.",
            "type": "string"
          }
        },
        "required": [
          "clauses",
          "branch_name"
        ],
        "type": "object"
      },
      "CreateAgentChatDto": {
        "properties": {
          "ai_model": {
            "description": "Model to answer this chat with, instead of the project's.",
            "nullable": true,
            "type": "string"
          },
          "auto_accept": {
            "description": "Auto-accept mode: the agent makes changes without first presenting a plan for approval. Otherwise (the default) it proposes a plan and waits. Kept on the chat and applies to every later turn.",
            "type": "boolean"
          },
          "branch_id": {
            "description": "The branch the agent works on; omitted means Base. Where the updated variant view is on for the caller, Base and variant branches take no direct edits: the agent's first change opens a change request off the branch and the chat moves onto it.",
            "nullable": true,
            "type": "string"
          },
          "main_chat_id": {
            "description": "Create a side chat under this persistent main chat. Its transcript and execution state stay separate.",
            "type": "string"
          },
          "messages": {
            "description": "The opening turn. Each message is `{ \"role\": \"user\", \"content\": \"…\" }`; given, the agent starts answering as soon as the chat exists. Omitted, the chat is created idle and POST /ai/agents/{id}/messages starts it.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "opening_submission": {
            "$ref": "#/components/schemas/CreateOpeningSubmissionDto"
          },
          "persistent_agent_id": {
            "description": "The persistent agent to activate, independently of any automation.",
            "type": "string"
          },
          "project_id": {
            "type": "string"
          },
          "sender_branch_id": {
            "description": "The sender's page branch at send time (master for Base). Records message provenance and admits that branch for this turn without moving the chat.",
            "type": "string"
          },
          "sudo_mode": {
            "description": "Super user mode: while on, the agent's request for super user mode in a turn a project admin starts is approved at once instead of waiting for that admin to confirm it. Only a project admin may turn it on. Kept on the chat for every later turn.",
            "type": "boolean"
          },
          "title": {
            "type": "string"
          },
          "trigger_info": {
            "description": "The caller's own labels for the chat, kept on it as sent. `api_key_id` is always the calling key, whatever the body says.",
            "type": "object"
          },
          "visibility": {
            "default": "private",
            "enum": [
              "private",
              "shared"
            ],
            "type": "string"
          },
          "wait": {
            "default": false,
            "description": "Hold the request open until the opening turn has finished and return the complete transcript. Off, the response comes back as soon as the chat exists with `status: \"streaming\"`; poll GET /ai/trigger/runs or GET /ai/agents/{id} for the outcome, exactly as for an automation run.",
            "type": "boolean"
          }
        },
        "required": [
          "project_id"
        ],
        "type": "object"
      },
      "CreateAgentDefinitionDto": {
        "properties": {
          "avatarColor": {
            "enum": [
              "primary",
              "red",
              "amber",
              "lime",
              "emerald",
              "sky",
              "blue",
              "indigo",
              "violet",
              "fuchsia",
              "gray",
              "black"
            ],
            "type": "string"
          },
          "avatarRatio": {
            "enum": [
              "1:1",
              "1:2",
              "2:1",
              "2:3",
              "1:3",
              "3:1"
            ],
            "type": "string"
          },
          "avatarShape": {
            "enum": [
              "square",
              "squircle",
              "circle",
              "pill",
              "diamond",
              "triangle",
              "pentagon",
              "hexagon",
              "octagon",
              "shield",
              "scallop",
              "blob",
              "drop",
              "star"
            ],
            "type": "string"
          },
          "description": {
            "description": "What the agent is for, in markdown, shown to people; the brief the agent follows on every turn. Blank clears it.",
            "nullable": true,
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "description": "A one-line role shown under the name, such as \"Thermal reviewer\". Blank clears it.",
            "nullable": true,
            "type": "string"
          },
          "scope": {
            "description": "Whose agent this is: `project` (the default) for one every member sees and project admins manage, `personal` for the caller's own, which exists for nobody else. Ownership is set at creation and never changes.",
            "enum": [
              "project",
              "personal"
            ],
            "type": "string"
          },
          "suggestOnly": {
            "type": "boolean"
          },
          "triggers": {
            "description": "The agent's automations, written whole: each one a name, an enabled switch, automation triggers and the prompt a firing hands the agent. Firing one starts a side chat with the agent, as the agent, with that prompt.",
            "items": {
              "$ref": "#/components/schemas/AgentTriggerInputDto"
            },
            "type": "array"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CreateAutomationDto": {
        "properties": {
          "advisory": {
            "description": "Branch checks: report the verdict without blocking the merge. Defaults to false.",
            "type": "boolean"
          },
          "allowAdminTools": {
            "description": "Let runs keep the admin-only data-model, saved-view and template tools, honored only while the user it runs as is a project admin. Can't be turned on with an API key; turn it on in Flow.",
            "type": "boolean"
          },
          "branchPerRun": {
            "description": "Whether every run opens its own branch. Defaults to false: runs on the same target branch collect their changes on one branch until it is merged or closed.",
            "type": "boolean"
          },
          "confirmBeforeExecute": {
            "description": "Branch-review triggers: whether the agent presents a plan for approval before writing. Defaults to true.",
            "type": "boolean"
          },
          "enabled": {
            "description": "Whether the automation runs at all, in either mode: off, no trigger, schedule or hand launch starts a run. Defaults to true.",
            "type": "boolean"
          },
          "invalidateOn": {
            "description": "Branch-review automations: the comment events after which the last result is out of date, beyond a data change (a check reruns, an agent run is offered for re-running): comment_set_changed, comment_resolution_changed, comment_text_changed. Omit to declare none on create; on update, omit to keep the current declaration and send [] to clear it. An Agent-mode automation cannot declare comment_set_changed: its own comments would mark its run out of date.",
            "items": {
              "enum": [
                "comment_set_changed",
                "comment_resolution_changed",
                "comment_text_changed"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "mode": {
            "description": "What runs: `agent` (the default) follows `prompt`; `script` runs `script` and needs the automation scripts beta.",
            "enum": [
              "agent",
              "script"
            ],
            "type": "string"
          },
          "name": {
            "example": "Nightly orphan check",
            "type": "string"
          },
          "prompt": {
            "description": "The instructions an agent automation follows. Required in agent mode.",
            "type": "string"
          },
          "runNotifications": {
            "description": "Whether finished runs notify the person a run executes as. `findings` (the default) notifies when a run fails, changes an item, or raises, updates or resolves a finding. `off` never notifies. A hand-launched run always reports back.",
            "enum": [
              "off",
              "findings"
            ],
            "type": "string"
          },
          "scope": {
            "description": "Which list this write is to. Required, as `\"personal\"`, when the request has `scope=personal`; optional for the project's list. Must agree with the `scope` query.",
            "enum": [
              "project",
              "personal"
            ],
            "type": "string"
          },
          "script": {
            "description": "The python a script automation runs. Required in script mode.",
            "type": "string"
          },
          "scriptCategoryReferenceMode": {
            "description": "Category references used by script tools. Omit for legacy stable IDs.",
            "enum": [
              "display-name",
              "stable-id"
            ],
            "type": "string"
          },
          "scriptTimeoutSeconds": {
            "description": "Script automations: how many seconds one run may take before it is stopped. Omit for the workspace default; the workspace cap bounds it (the error names the cap). A run always holds one executor slot within its project's share, however long it may run.",
            "type": "number"
          },
          "suggestOnly": {
            "description": "Whether runs only suggest: they read everything, raise findings and comment on the items they concern, but change no item, field, link or branch. Defaults to false.",
            "type": "boolean"
          },
          "trigger": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AutomationTriggerDto"
              }
            ],
            "description": "The first trigger. Without `triggers`, it replaces only the first trigger and keeps the others; null removes the trigger of an automation that has at most one. With `triggers`, it must be equal to the first entry.",
            "nullable": true,
            "type": "object"
          },
          "triggers": {
            "description": "Every trigger, in order; replaces the whole list. The automation runs when any of them fires. Send [] for an automation that is only run by hand. A script with a branch trigger runs as a read-only branch check when its branch is reviewed; its other triggers run it as an ordinary script.",
            "items": {
              "$ref": "#/components/schemas/AutomationTriggerDto"
            },
            "maxItems": 20,
            "type": "array"
          },
          "writeBranchId": {
            "description": "The branch every run writes on (`master` for Base), whatever its trigger names; a change-request review trigger still works on the change request under review. Base or a variant takes the writes directly only while it allows edits to live, and an unprotected change request always does; otherwise runs use a change request under it. Absent: triggered runs use a change request (see `branchPerRun`) and hand-launched runs write where they are launched.",
            "nullable": true,
            "type": "object"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CreateBranchDto": {
        "properties": {
          "branch_number": {
            "minimum": 1,
            "type": "number"
          },
          "branch_number_reservation": {
            "format": "uuid",
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "is_variant": {
            "type": "boolean"
          },
          "labels": {
            "description": "Branch tags to assign when the branch is created. Existing project tag names reuse their fixed casing, colour, and symbol.",
            "items": {
              "$ref": "#/components/schemas/BranchTagInputDto"
            },
            "maxItems": 20,
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "parent_id": {
            "type": "string"
          },
          "ready_for_review": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "CreateBranchExtractionPlanDto": {
        "properties": {
          "entity_ids": {
            "items": {
              "type": "string"
            },
            "maxItems": 500,
            "minItems": 1,
            "type": "array"
          },
          "selector": {
            "enum": [
              "non_variant"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "CreateDiagramDto": {
        "properties": {
          "annotations": {
            "description": "Freestanding text annotations (titles, section labels)",
            "items": {
              "$ref": "#/components/schemas/DiagramAnnotationItemDto"
            },
            "type": "array"
          },
          "branchId": {
            "description": "Branch to write to. Omit or pass \"master\" for the base branch.",
            "type": "string"
          },
          "connections": {
            "description": "Directed arrows between entity/node IDs",
            "items": {
              "$ref": "#/components/schemas/DiagramConnectionItemDto"
            },
            "type": "array"
          },
          "direction": {
            "description": "Which way the structured input is auto-arranged: \"horizontal\" (left to right, the default) or \"vertical\" (top to bottom). Ignored for a raw `snapshot`.",
            "enum": [
              "horizontal",
              "vertical"
            ],
            "type": "string"
          },
          "entities": {
            "description": "Flow platform entities to render as data-shape cards (entity relationship diagrams). For generic shapes use `nodes` instead.",
            "items": {
              "$ref": "#/components/schemas/DiagramEntityItemDto"
            },
            "type": "array"
          },
          "hostEntityId": {
            "description": "Entity to link the diagram to. The diagram appears in this entity's Diagrams section, and rich-text embeds ({\"type\": \"tldraw\", ...} nodes) only resolve diagrams linked to the entity that owns the field — pass this whenever the diagram should be visible from an existing entity.",
            "type": "string"
          },
          "id": {
            "description": "Diagram entity ID (UUID). Auto-generated if omitted. If an existing diagram entity has this ID, its name and snapshot are replaced (upsert); if a non-diagram entity has this ID the request fails with 409.",
            "type": "string"
          },
          "name": {
            "description": "Diagram title",
            "type": "string"
          },
          "nodes": {
            "description": "Standalone geometric nodes not backed by Flow entities (state machines, flowcharts). Provide x/y on every node for a controlled layout.",
            "items": {
              "$ref": "#/components/schemas/DiagramNodeItemDto"
            },
            "type": "array"
          },
          "snapshot": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DiagramSnapshotDto"
              }
            ],
            "description": "Pre-built tldraw snapshot to persist verbatim — exactly the `snapshot` object returned by POST /convert/drawio-to-tldraw. Mutually exclusive with entities/nodes/connections/annotations."
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CreateEntityDto": {
        "properties": {
          "branchId": {
            "type": "string"
          },
          "entityType": {
            "description": "Entity type (e.g. \"task\", \"bug\")",
            "type": "string"
          },
          "id": {
            "description": "Entity ID (UUID). Auto-generated if omitted.",
            "type": "string"
          },
          "name": {
            "description": "Entity name",
            "type": "string"
          }
        },
        "required": [
          "entityType",
          "name"
        ],
        "type": "object"
      },
      "CreateFileDto": {
        "properties": {
          "mime_type": {
            "type": "string"
          },
          "original_name": {
            "type": "string"
          },
          "size": {
            "type": "number"
          }
        },
        "required": [
          "original_name",
          "size",
          "mime_type"
        ],
        "type": "object"
      },
      "CreateOpeningSubmissionDto": {
        "properties": {
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/OpeningAttachmentInputDto"
            },
            "type": "array"
          },
          "context": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "prompt",
          "attachments"
        ],
        "type": "object"
      },
      "CreateProjectDto": {
        "properties": {
          "copyAgents": {
            "description": "Copy the source project persistent agents. Defaults to true. Only used when copyFromProjectId is set; ignored otherwise.",
            "type": "boolean"
          },
          "copyAutomations": {
            "description": "Copy the source project automations. Defaults to true.",
            "type": "boolean"
          },
          "copyDataModel": {
            "description": "Copy the source project data model (categories, fields, tag options). Defaults to true.",
            "type": "boolean"
          },
          "copyFromProjectId": {
            "description": "When provided, copies structure from the specified project into the new one. Which parts are copied is controlled by the copy* flags below (all default to true, so omitting them copies everything, as before). Takes precedence over seedFromTemplate.",
            "type": "string"
          },
          "copyItems": {
            "description": "Copy the live items on the source project main branch (type, field values, formulas, links between copied items). Requires copyDataModel. Refused when the source has more than 50,000 items. Defaults to false. The response returns once the project exists; the items are copied by a job afterwards (poll GET /project/:id/item-copy), and copied automations are added when it finishes.",
            "type": "boolean"
          },
          "copySkills": {
            "description": "Copy the source project skills (and skill folders). Defaults to true.",
            "type": "boolean"
          },
          "copyViews": {
            "description": "Copy the source project saved views. Requires copyDataModel. Defaults to true.",
            "type": "boolean"
          },
          "name": {
            "description": "Display name for the new project",
            "type": "string"
          },
          "seedFromTemplate": {
            "description": "Seed the new project from the workspace default-template project (data model, saved views, and dashboards). Ignored when copyFromProjectId is set. Defaults to false — an omitted flag yields a blank project.",
            "type": "boolean"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CreateReqifImportUploadDto": {
        "properties": {
          "file_name": {
            "description": "Original archive filename (.reqif or .reqifz).",
            "type": "string"
          },
          "mime_type": {
            "description": "Archive MIME type.",
            "type": "string"
          },
          "size": {
            "description": "Archive size in bytes.",
            "type": "number"
          }
        },
        "required": [
          "file_name",
          "size",
          "mime_type"
        ],
        "type": "object"
      },
      "CreateSharedAccessGrantDto": {
        "properties": {
          "access_level": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SharedAccessLevel"
              }
            ],
            "default": "viewer",
            "description": "Capability for this shared scope. Existing share behavior is viewer."
          },
          "branch_id": {
            "description": "Branch the grant unlocks. Use \"master\" for the base branch.",
            "type": "string"
          },
          "branch_scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SharedBranchScope"
              }
            ],
            "default": "branch",
            "description": "How far the grant reaches from branch_id: that branch alone, it plus every branch descended from it, or every branch in the project."
          },
          "expires_at": {
            "description": "ISO8601 expiry. Omit for a permanent grant.",
            "nullable": true,
            "type": "string"
          },
          "project_id": {
            "description": "Project the grant is scoped to",
            "type": "string"
          },
          "starting_entity_id": {
            "description": "Entity the view should anchor to for the recipient",
            "type": "string"
          },
          "upstream_context_path": {
            "description": "Entity ids on the path above starting_entity_id in the shared view, top first. Each is shared individually (the item alone, nothing it links to) together with this grant.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "user_group_id": {
            "description": "User group receiving the grant",
            "type": "string"
          },
          "user_id": {
            "description": "External user receiving the grant",
            "type": "string"
          },
          "view_id": {
            "description": "CustomView.id from the project-scoped custom-views-2 registry",
            "type": "string"
          }
        },
        "required": [
          "project_id",
          "branch_id",
          "view_id",
          "starting_entity_id"
        ],
        "type": "object"
      },
      "CreateSharedSavedViewDto": {
        "properties": {
          "columns": {
            "description": "Table columns, in order. Replaces every column; [] leaves the view on the default columns. Stored as `state.columns`.",
            "items": {
              "$ref": "#/components/schemas/SavedViewColumnDto"
            },
            "type": "array"
          },
          "filters": {
            "allOf": [
              {
                "properties": {
                  "nodes": {
                    "items": {
                      "anyOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "description": "Any string unique within the expression; Flow assigns one when omitted.",
                              "minLength": 1,
                              "type": "string"
                            },
                            "kind": {
                              "enum": [
                                "group"
                              ],
                              "type": "string"
                            },
                            "nodes": {
                              "description": "The same leaves as the top level; groups may nest.",
                              "items": {},
                              "type": "array"
                            },
                            "operator": {
                              "enum": [
                                "and",
                                "or"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "operator",
                            "nodes"
                          ],
                          "type": "object"
                        },
                        {
                          "anyOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "description": "Value-agnostic presence check; supply no value operand.",
                                  "enum": [
                                    "isPopulated",
                                    "isEmpty"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "tag",
                                    "stage",
                                    "verificationResult",
                                    "text",
                                    "richText",
                                    "number",
                                    "date",
                                    "user"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "type": {
                                  "enum": [
                                    "tag",
                                    "stage",
                                    "verificationResult"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation",
                                "tags"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "equals",
                                    "notEquals",
                                    "contains",
                                    "notContains",
                                    "startsWith",
                                    "endsWith"
                                  ],
                                  "type": "string"
                                },
                                "text": {
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "text",
                                    "richText"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation",
                                "text"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "equals",
                                    "notEquals",
                                    "greaterThan",
                                    "greaterThanOrEqual",
                                    "lessThan",
                                    "lessThanOrEqual",
                                    "between"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "number"
                                  ],
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string"
                                },
                                "valueTo": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation",
                                "value"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "date": {
                                  "nullable": true,
                                  "type": "string"
                                },
                                "dateTo": {
                                  "nullable": true,
                                  "type": "string"
                                },
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "on",
                                    "before",
                                    "after",
                                    "between"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "date"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation",
                                "date"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "date": {
                                  "nullable": true,
                                  "type": "string"
                                },
                                "dateTo": {
                                  "nullable": true,
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "on",
                                    "before",
                                    "after",
                                    "between",
                                    "within",
                                    "notWithin"
                                  ],
                                  "type": "string"
                                },
                                "range": {
                                  "description": "For within / notWithin: the rolling window ending now — the last 24 hours, 7, 30 or 90 days.",
                                  "enum": [
                                    "day",
                                    "week",
                                    "month",
                                    "quarter"
                                  ],
                                  "nullable": true,
                                  "type": "string"
                                },
                                "timestamp": {
                                  "description": "Which lifecycle instant to compare: when the item was created, or when it last changed (any field or link edit visible on this branch).",
                                  "enum": [
                                    "createdAt",
                                    "updatedAt"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "timestamp"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "timestamp",
                                "operation",
                                "date"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "isTrue",
                                    "isFalse"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "toggle"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "user"
                                  ],
                                  "type": "string"
                                },
                                "userIds": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation",
                                "userIds"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "type"
                                  ],
                                  "type": "string"
                                },
                                "typeIds": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                }
                              },
                              "required": [
                                "type",
                                "operation",
                                "typeIds"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "fieldType": {
                                  "enum": [
                                    "jira",
                                    "teamcenter",
                                    "linear",
                                    "googleDoc",
                                    "googleSheet",
                                    "aodocsDoc",
                                    "file",
                                    "cadFile"
                                  ],
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "isPopulated",
                                    "isEmpty"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "presence"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "fieldType",
                                "operation"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "changedInBranch"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "operation"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "isPopulated",
                                    "isEmpty"
                                  ],
                                  "type": "string"
                                },
                                "resolved": {
                                  "enum": [
                                    "open",
                                    "resolved"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "hasComments"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "operation"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "resolved": {
                                  "enum": [
                                    "open",
                                    "resolved"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "commentBy"
                                  ],
                                  "type": "string"
                                },
                                "userIds": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                }
                              },
                              "required": [
                                "type",
                                "operation",
                                "userIds"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "contains",
                                    "notContains"
                                  ],
                                  "type": "string"
                                },
                                "resolved": {
                                  "enum": [
                                    "open",
                                    "resolved"
                                  ],
                                  "type": "string"
                                },
                                "text": {
                                  "maxLength": 1000,
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "commentText"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "operation",
                                "text"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "nullable": true,
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "resolved": {
                                  "enum": [
                                    "open",
                                    "resolved"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "commentField"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "operation",
                                "fieldId"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "matches"
                                  ],
                                  "type": "string"
                                },
                                "text": {
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "search"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "operation",
                                "text"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "direction": {
                                  "description": "Which links count: `upstream` (inbound), `downstream` (outbound), `up+downstream`, or `cross-link`. Omit to count a link of any kind — inbound, outbound and cross-link alike — which is also what the view toolbar does with no direction set.",
                                  "enum": [
                                    "upstream",
                                    "downstream",
                                    "up+downstream",
                                    "cross-link"
                                  ],
                                  "type": "string"
                                },
                                "entityId": {
                                  "default": null,
                                  "nullable": true,
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "targetKind": {
                                  "description": "Whether the target is one entity (`entityId`) or any entity of a type (`typeId`). Inferred from which id is given when omitted.",
                                  "enum": [
                                    "entity",
                                    "type"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "linkedTo"
                                  ],
                                  "type": "string"
                                },
                                "typeId": {
                                  "default": null,
                                  "description": "Entity-type reference for \"linked to any entity of this type\"; use the category form required by the calling tool.",
                                  "nullable": true,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "operation"
                              ],
                              "type": "object"
                            }
                          ]
                        }
                      ]
                    },
                    "type": "array"
                  },
                  "operator": {
                    "enum": [
                      "and",
                      "or"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "operator",
                  "nodes"
                ],
                "type": "object"
              }
            ],
            "description": "Conditions every item the view shows must meet, joined by `operator`; a `group` node joins its own `nodes` with its own operator. Each leaf's `type` is the FIELD'S DATA TYPE (`tag`, `stage`, `verificationResult`, `text`, `richText`, `number`, `date`, `toggle`, `user`, `presence`) with `fieldId` a field key from the categories endpoint (or `<typeId>::<key>`), or a structural condition (`type`, `linkedTo`, `timestamp`, `changedInBranch`, the comment conditions). Tag, stage and verification values are option NAMES; user values are user ids; type ids are data type ids. Unknown fields, options, types or operations answer 400 and nothing is saved. Example — Status is Triage: {\"operator\":\"and\",\"nodes\":[{\"type\":\"tag\",\"fieldId\":\"status\",\"operation\":\"overlaps\",\"tags\":[\"Triage\"]}]}. Stored as `state.filters`."
          },
          "icon": {
            "$ref": "#/components/schemas/SavedViewIconDto"
          },
          "id": {
            "description": "Id for the new view: letters, digits, `.`, `_` and `-`, starting with a letter or digit. Supply one so a retry of an unknown outcome can be checked by reading it; omitted, Flow picks one.",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "relationships": {
            "description": "Nesting rules, in order: under each `parentType`, show items of `childType`. Replaces every rule; send [] to remove them all. Stored as `state.relationships`.",
            "items": {
              "$ref": "#/components/schemas/SavedViewRelationshipDto"
            },
            "type": "array"
          },
          "rootType": {
            "description": "Data type id of the items the view starts from (its \"Start type\"). Stored as `state.rootType`.",
            "type": "string"
          },
          "sort": {
            "description": "Ordered sort keys, the first most significant. Replaces the whole sort; send [] for the natural order. Stored as `state.sort`.",
            "items": {
              "$ref": "#/components/schemas/SavedViewSortDto"
            },
            "type": "array"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CreateSubscriptionDto": {
        "properties": {
          "branch_id": {
            "type": "string"
          },
          "entity_id": {
            "type": "string"
          },
          "project_id": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        },
        "required": [
          "entity_id",
          "branch_id",
          "project_id"
        ],
        "type": "object"
      },
      "CreateUserGroupDto": {
        "properties": {
          "external_provider": {
            "type": "string"
          },
          "external_role": {
            "type": "string"
          },
          "member_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CustomerAddTagOptionsDto": {
        "properties": {
          "tags": {
            "description": "Option names to ensure on an existing plain tag field. Existing names are treated idempotently; only new names append new tag options, and omitted options are preserved.",
            "example": [
              {
                "name": "Medium"
              },
              {
                "name": "Urgent"
              }
            ],
            "items": {
              "$ref": "#/components/schemas/CustomerTagInputDto"
            },
            "type": "array"
          }
        },
        "required": [
          "tags"
        ],
        "type": "object"
      },
      "CustomerCategoryResponseDto": {
        "properties": {
          "builtin": {
            "type": "boolean"
          },
          "categoryType": {
            "enum": [
              "folder",
              "item"
            ],
            "type": "string"
          },
          "fields": {
            "items": {
              "$ref": "#/components/schemas/CustomerFieldResponseDto"
            },
            "type": "array"
          },
          "humanIdPrefix": {
            "type": "string"
          },
          "humanIdPrefixLocked": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "categoryType",
          "builtin",
          "fields",
          "humanIdPrefix",
          "humanIdPrefixLocked"
        ],
        "type": "object"
      },
      "CustomerChangedEntityDto": {
        "properties": {
          "change_type": {
            "enum": [
              "CREATED",
              "UPDATED"
            ],
            "type": "string"
          },
          "entity_id": {
            "type": "string"
          }
        },
        "required": [
          "entity_id",
          "change_type"
        ],
        "type": "object"
      },
      "CustomerCommentResponseDto": {
        "properties": {
          "author_id": {
            "description": "ID of the user who authored the comment.",
            "type": "string"
          },
          "branch_id": {
            "description": "Branch the comment was posted on; absent for the main line.",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "entity_id": {
            "description": "ID this comment directly attaches to: an item or branch ID for a conversation starter, or a comment ID for a reply (normally the original comment that started the conversation). Use this value as entityId when fetching, editing or deleting this comment. For older nested replies it may identify another reply, not the conversation starter.",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "resolved": {
            "description": "Whether the comment thread has been resolved.",
            "type": "boolean"
          },
          "text": {
            "description": "Plain-text body of the comment.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "entity_id",
          "author_id",
          "text",
          "resolved",
          "created_at"
        ],
        "type": "object"
      },
      "CustomerCreateCategoryDto": {
        "properties": {
          "categoryType": {
            "enum": [
              "folder",
              "item"
            ],
            "type": "string"
          },
          "fields": {
            "items": {
              "$ref": "#/components/schemas/CustomerFieldInputDto"
            },
            "type": "array"
          },
          "humanIdPrefix": {
            "maxLength": 32,
            "nullable": true,
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "categoryType"
        ],
        "type": "object"
      },
      "CustomerCreateCommentDto": {
        "properties": {
          "branch_id": {
            "description": "Branch to post on, for any comment or reply. Pass the branch ID explicitly when discussing items or the branch there; it is not inherited from the original comment. Omit (or pass \"master\") to post on Base.",
            "type": "string"
          },
          "text": {
            "description": "Plain-text body of the comment.",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "CustomerDefaultFormulaChangedReasonDto": {
        "properties": {
          "field_name": {
            "type": "string"
          },
          "type": {
            "enum": [
              "default_formula_changed"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "field_name"
        ],
        "type": "object"
      },
      "CustomerDefaultFormulaReappliedReasonDto": {
        "properties": {
          "field_name": {
            "type": "string"
          },
          "type": {
            "enum": [
              "default_formula_reapplied"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "field_name"
        ],
        "type": "object"
      },
      "CustomerEntityChildReorderedChangeDto": {
        "properties": {
          "child_entity_id": {
            "type": "string"
          },
          "parent_entity_id": {
            "type": "string"
          },
          "type": {
            "enum": [
              "child_reordered"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "parent_entity_id",
          "child_entity_id"
        ],
        "type": "object"
      },
      "CustomerEntityCreatedChangeDto": {
        "properties": {
          "entity_id": {
            "type": "string"
          },
          "entity_type": {
            "type": "string"
          },
          "type": {
            "enum": [
              "entity_created"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "entity_id",
          "entity_type"
        ],
        "type": "object"
      },
      "CustomerEntityCrosslinkAddedChangeDto": {
        "properties": {
          "entity_ids": {
            "description": "The two peer entity IDs for this unordered cross-link.",
            "items": {
              "type": "string"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": "array"
          },
          "type": {
            "enum": [
              "crosslink_added"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "entity_ids"
        ],
        "type": "object"
      },
      "CustomerEntityCrosslinkRemovedChangeDto": {
        "properties": {
          "entity_ids": {
            "description": "The two peer entity IDs for this unordered cross-link.",
            "items": {
              "type": "string"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": "array"
          },
          "type": {
            "enum": [
              "crosslink_removed"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "entity_ids"
        ],
        "type": "object"
      },
      "CustomerEntityDeletedChangeDto": {
        "properties": {
          "entity_id": {
            "type": "string"
          },
          "type": {
            "enum": [
              "entity_deleted"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "entity_id"
        ],
        "type": "object"
      },
      "CustomerEntityFieldFilterDto": {
        "properties": {
          "category_id": {
            "description": "Category ID. This condition only matches entities of this category, including empty-field conditions.",
            "type": "string"
          },
          "field_key": {
            "description": "Stored field key from the data model, or a built-in key such as name, description, owner, or reviewers.",
            "type": "string"
          },
          "kind": {
            "enum": [
              "field"
            ],
            "type": "string"
          },
          "operation": {
            "description": "Must be valid for the field type. Text uses case-insensitive comparisons; tag/stage values are exact option names; user values are IDs. Boolean fields accept isTrue/isFalse. Presence conditions have no operands.",
            "enum": [
              "equals",
              "notEquals",
              "contains",
              "notContains",
              "startsWith",
              "endsWith",
              "greaterThan",
              "greaterThanOrEqual",
              "lessThan",
              "lessThanOrEqual",
              "between",
              "on",
              "before",
              "after",
              "overlaps",
              "excludes",
              "isTrue",
              "isFalse",
              "isEmpty",
              "isPopulated"
            ],
            "type": "string"
          },
          "value": {
            "description": "Text, finite number, or ISO calendar date (YYYY-MM-DD). Required for scalar comparisons.",
            "oneOf": [
              {
                "maxLength": 2000,
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          },
          "value_to": {
            "description": "Inclusive upper bound. Required only for between.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          },
          "values": {
            "description": "Required for overlaps/excludes on tags, stages, verification results, or users.",
            "items": {
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "kind",
          "category_id",
          "field_key",
          "operation"
        ],
        "type": "object"
      },
      "CustomerEntityFilterGroupDto": {
        "properties": {
          "conditions": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CustomerEntityTypeFilterDto"
                },
                {
                  "$ref": "#/components/schemas/CustomerEntityFieldFilterDto"
                },
                {
                  "$ref": "#/components/schemas/CustomerEntityFilterGroupDto"
                }
              ]
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          },
          "kind": {
            "enum": [
              "group"
            ],
            "type": "string"
          },
          "operator": {
            "enum": [
              "and",
              "or"
            ],
            "type": "string"
          }
        },
        "required": [
          "kind",
          "operator",
          "conditions"
        ],
        "type": "object"
      },
      "CustomerEntityFilterPageDto": {
        "properties": {
          "entity_ids": {
            "description": "Matching live entity IDs. Fetch entity records using the batch entity read endpoint.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "next_cursor": {
            "description": "Continue until null, even when entity_ids is empty. Each request examines at most the server scan budget before returning progress.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "entity_ids",
          "next_cursor"
        ],
        "type": "object"
      },
      "CustomerEntityFilterQueryDto": {
        "properties": {
          "branch_id": {
            "description": "Branch to read; omit or use master for Base.",
            "minLength": 1,
            "type": "string"
          },
          "cursor": {
            "description": "Opaque next_cursor from the same query. These are live pages, not a frozen snapshot; restart if the filter or data model changes.",
            "type": "string"
          },
          "filter": {
            "description": "At most 50 total nodes and 5 group levels. Unknown properties, categories, fields, options, or invalid operands receive 400; no condition is silently dropped.",
            "discriminator": {
              "mapping": {
                "field": "#/components/schemas/CustomerEntityFieldFilterDto",
                "group": "#/components/schemas/CustomerEntityFilterGroupDto",
                "type": "#/components/schemas/CustomerEntityTypeFilterDto"
              },
              "propertyName": "kind"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerEntityTypeFilterDto"
              },
              {
                "$ref": "#/components/schemas/CustomerEntityFieldFilterDto"
              },
              {
                "$ref": "#/components/schemas/CustomerEntityFilterGroupDto"
              }
            ]
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "number"
          },
          "timezone": {
            "default": "UTC",
            "description": "IANA timezone for calendar-date boundaries. Date-only stored values retain their calendar dates.",
            "type": "string"
          }
        },
        "required": [
          "filter"
        ],
        "type": "object"
      },
      "CustomerEntityFormulaChangedChangeDto": {
        "properties": {
          "entity_id": {
            "type": "string"
          },
          "field_key": {
            "type": "string"
          },
          "formula": {
            "nullable": true,
            "type": "string"
          },
          "type": {
            "enum": [
              "formula_changed"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "entity_id",
          "field_key",
          "formula"
        ],
        "type": "object"
      },
      "CustomerEntityHistoryActorDto": {
        "properties": {
          "id": {
            "description": "User or agent ID. Omitted for system and unknown actors.",
            "type": "string"
          },
          "type": {
            "enum": [
              "user",
              "agent",
              "system",
              "unknown"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "CustomerEntityHistoryEntryDto": {
        "properties": {
          "actor": {
            "$ref": "#/components/schemas/CustomerEntityHistoryActorDto"
          },
          "branch_id": {
            "description": "Branch that authored this event; \"master\" means Base.",
            "type": "string"
          },
          "change": {
            "discriminator": {
              "mapping": {
                "child_reordered": "#/components/schemas/CustomerEntityChildReorderedChangeDto",
                "crosslink_added": "#/components/schemas/CustomerEntityCrosslinkAddedChangeDto",
                "crosslink_removed": "#/components/schemas/CustomerEntityCrosslinkRemovedChangeDto",
                "entity_created": "#/components/schemas/CustomerEntityCreatedChangeDto",
                "entity_deleted": "#/components/schemas/CustomerEntityDeletedChangeDto",
                "entity_restored": "#/components/schemas/CustomerEntityRestoredChangeDto",
                "formula_changed": "#/components/schemas/CustomerEntityFormulaChangedChangeDto",
                "link_added": "#/components/schemas/CustomerEntityLinkAddedChangeDto",
                "link_removed": "#/components/schemas/CustomerEntityLinkRemovedChangeDto",
                "migration_note": "#/components/schemas/CustomerEntityMigrationNoteChangeDto",
                "value_changed": "#/components/schemas/CustomerEntityValueChangedChangeDto"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerEntityCreatedChangeDto"
              },
              {
                "$ref": "#/components/schemas/CustomerEntityValueChangedChangeDto"
              },
              {
                "$ref": "#/components/schemas/CustomerEntityFormulaChangedChangeDto"
              },
              {
                "$ref": "#/components/schemas/CustomerEntityLinkAddedChangeDto"
              },
              {
                "$ref": "#/components/schemas/CustomerEntityLinkRemovedChangeDto"
              },
              {
                "$ref": "#/components/schemas/CustomerEntityCrosslinkAddedChangeDto"
              },
              {
                "$ref": "#/components/schemas/CustomerEntityCrosslinkRemovedChangeDto"
              },
              {
                "$ref": "#/components/schemas/CustomerEntityDeletedChangeDto"
              },
              {
                "$ref": "#/components/schemas/CustomerEntityRestoredChangeDto"
              },
              {
                "$ref": "#/components/schemas/CustomerEntityChildReorderedChangeDto"
              },
              {
                "$ref": "#/components/schemas/CustomerEntityMigrationNoteChangeDto"
              }
            ]
          },
          "id": {
            "description": "Stable event ID for deduplication.",
            "type": "string"
          },
          "reason": {
            "discriminator": {
              "mapping": {
                "default_formula_changed": "#/components/schemas/CustomerDefaultFormulaChangedReasonDto",
                "default_formula_reapplied": "#/components/schemas/CustomerDefaultFormulaReappliedReasonDto",
                "field_type_changed": "#/components/schemas/CustomerFieldTypeChangedReasonDto",
                "formula_recomputed": "#/components/schemas/CustomerFormulaRecomputedReasonDto",
                "root_link_backfill": "#/components/schemas/CustomerRootLinkBackfillReasonDto"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerRootLinkBackfillReasonDto"
              },
              {
                "$ref": "#/components/schemas/CustomerFormulaRecomputedReasonDto"
              },
              {
                "$ref": "#/components/schemas/CustomerFieldTypeChangedReasonDto"
              },
              {
                "$ref": "#/components/schemas/CustomerDefaultFormulaChangedReasonDto"
              },
              {
                "$ref": "#/components/schemas/CustomerDefaultFormulaReappliedReasonDto"
              }
            ]
          },
          "timestamp": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "timestamp",
          "branch_id",
          "actor",
          "change"
        ],
        "type": "object"
      },
      "CustomerEntityHistoryPageDto": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CustomerEntityHistoryEntryDto"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items",
          "next_cursor"
        ],
        "type": "object"
      },
      "CustomerEntityHistoryQueryDto": {
        "properties": {
          "branch_id": {
            "description": "Branch whose history should be read. Omit or pass \"master\" for Base.",
            "type": "string"
          },
          "cursor": {
            "description": "Opaque cursor returned by the preceding page. It is valid only for the same project, branch, and entity ID set.",
            "type": "string"
          },
          "entity_ids": {
            "description": "Entity IDs whose history should be included in this page.",
            "items": {
              "type": "string"
            },
            "maxItems": 500,
            "minItems": 1,
            "type": "array"
          },
          "limit": {
            "default": 100,
            "maximum": 100,
            "minimum": 1,
            "type": "number"
          }
        },
        "required": [
          "entity_ids"
        ],
        "type": "object"
      },
      "CustomerEntityLinkAddedChangeDto": {
        "properties": {
          "child_entity_id": {
            "type": "string"
          },
          "parent_entity_id": {
            "type": "string"
          },
          "type": {
            "enum": [
              "link_added"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "parent_entity_id",
          "child_entity_id"
        ],
        "type": "object"
      },
      "CustomerEntityLinkRemovedChangeDto": {
        "properties": {
          "child_entity_id": {
            "type": "string"
          },
          "parent_entity_id": {
            "type": "string"
          },
          "type": {
            "enum": [
              "link_removed"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "parent_entity_id",
          "child_entity_id"
        ],
        "type": "object"
      },
      "CustomerEntityMigrationNoteChangeDto": {
        "properties": {
          "action": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "source_entity_id": {
            "type": "string"
          },
          "source_name": {
            "type": "string"
          },
          "type": {
            "enum": [
              "migration_note"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "CustomerEntityRestoredChangeDto": {
        "properties": {
          "entity_id": {
            "type": "string"
          },
          "type": {
            "enum": [
              "entity_restored"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "entity_id"
        ],
        "type": "object"
      },
      "CustomerEntityTypeFilterDto": {
        "properties": {
          "kind": {
            "enum": [
              "type"
            ],
            "type": "string"
          },
          "operation": {
            "enum": [
              "overlaps",
              "excludes"
            ],
            "type": "string"
          },
          "values": {
            "description": "Category IDs from the project data model.",
            "items": {
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "kind",
          "operation",
          "values"
        ],
        "type": "object"
      },
      "CustomerEntityValueChangedChangeDto": {
        "properties": {
          "entity_id": {
            "type": "string"
          },
          "field_key": {
            "type": "string"
          },
          "type": {
            "enum": [
              "value_changed"
            ],
            "type": "string"
          },
          "value": {
            "nullable": true,
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "items": {},
                "type": "array"
              }
            ]
          }
        },
        "required": [
          "type",
          "entity_id",
          "field_key",
          "value"
        ],
        "type": "object"
      },
      "CustomerFieldInputDto": {
        "properties": {
          "key": {
            "type": "string"
          },
          "multi": {
            "description": "Whether a tag field accepts multiple simultaneous values. Only meaningful for tag fields.",
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "tags": {
            "description": "Plain tag options for this field. On normal category update this is the full replacement list; with addOnly it is treated as options to ensure exist.",
            "items": {
              "$ref": "#/components/schemas/CustomerTagInputDto"
            },
            "type": "array"
          },
          "type": {
            "enum": [
              "text",
              "richText",
              "number",
              "tag",
              "date",
              "toggle",
              "user",
              "verificationResult",
              "diagram",
              "jira",
              "teamcenter",
              "linear",
              "googleDoc",
              "googleSheet",
              "aodocsDoc",
              "cadFile",
              "file",
              "stage"
            ],
            "type": "string"
          }
        },
        "required": [
          "key",
          "name",
          "type"
        ],
        "type": "object"
      },
      "CustomerFieldResponseDto": {
        "properties": {
          "key": {
            "type": "string"
          },
          "multi": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/CustomerTagResponseDto"
            },
            "type": "array"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "name",
          "type"
        ],
        "type": "object"
      },
      "CustomerFieldTypeChangedReasonDto": {
        "properties": {
          "field_name": {
            "type": "string"
          },
          "next_type": {
            "type": "string"
          },
          "previous_type": {
            "type": "string"
          },
          "type": {
            "enum": [
              "field_type_changed"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "field_name",
          "previous_type",
          "next_type"
        ],
        "type": "object"
      },
      "CustomerFormulaRecomputedReasonDto": {
        "properties": {
          "source_entity_id": {
            "type": "string"
          },
          "source_field_key": {
            "type": "string"
          },
          "type": {
            "enum": [
              "formula_recomputed"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "CustomerRootLinkBackfillReasonDto": {
        "properties": {
          "type": {
            "description": "Records an existing top-level placement during the root-link backfill; not an authored change.",
            "enum": [
              "root_link_backfill"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "CustomerTagInputDto": {
        "properties": {
          "name": {
            "description": "Display name of the tag option. Customer API writes refer to plain tag options by name; Flow stores and preserves the internal option id.",
            "example": "Medium",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CustomerTagResponseDto": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CustomerUpdateCategoryDto": {
        "properties": {
          "addOnly": {
            "default": false,
            "description": "When true, fields becomes an additive \"ensure this schema exists\" list: omitted fields are preserved, existing fields keep their current name/type/settings, and only missing fields or missing plain-tag options are added. If an existing field key is sent with a different type, the request is rejected instead of converting the field. Without addOnly, fields keeps its normal replacement semantics.",
            "example": true,
            "type": "boolean"
          },
          "categoryType": {
            "enum": [
              "folder",
              "item"
            ],
            "type": "string"
          },
          "fields": {
            "description": "Custom fields for this category. By default, sending this list replaces the customer-managed field list, so omitted fields are removed. Set addOnly=true to preserve existing fields and only add missing fields/tag options.",
            "items": {
              "$ref": "#/components/schemas/CustomerFieldInputDto"
            },
            "type": "array"
          },
          "humanIdPrefix": {
            "maxLength": 32,
            "nullable": true,
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CustomerUpdateCommentDto": {
        "properties": {
          "resolved": {
            "description": "Mark the comment thread as resolved (true) or reopen it (false).",
            "type": "boolean"
          },
          "text": {
            "description": "New plain-text body for the comment.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "DeletedBranchListRowDto": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "cursor": {
            "description": "Pass as `before` to fetch the page after this row. Opaque; valid only as handed out.",
            "type": "string"
          },
          "deleted_at": {
            "description": "When the branch was archived: the merge time for a merged branch, the delete time for a discarded one.",
            "type": "string"
          },
          "deleted_by_id": {
            "description": "Who deleted a discarded branch. Null for a merged branch: the merge does not record its actor on the row.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "labels": {
            "items": {
              "$ref": "#/components/schemas/BranchLabelDto"
            },
            "type": "array"
          },
          "merged_at": {
            "description": "Set when a merge archived the branch; null when it was discarded through the delete endpoint.",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "number": {
            "description": "Project-scoped branch number.",
            "type": "number"
          },
          "owner_id": {
            "nullable": true,
            "type": "string"
          },
          "parent_id": {
            "nullable": true,
            "type": "string"
          },
          "parent_name": {
            "description": "Name of the parent branch; null when the parent is Base.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "number",
          "name",
          "parent_id",
          "parent_name",
          "merged_at",
          "deleted_at",
          "deleted_by_id",
          "owner_id",
          "created_at",
          "labels",
          "cursor"
        ],
        "type": "object"
      },
      "DeletedEntitiesPageDto": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DeletedEntityDto"
            },
            "type": "array"
          },
          "next_cursor": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "items",
          "next_cursor"
        ],
        "type": "object"
      },
      "DeletedEntityDto": {
        "properties": {
          "ai_agent_id": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "cursor": {
            "type": "string"
          },
          "deleted_at": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "owner_id": {
            "type": "string"
          },
          "unique_entity_number": {
            "type": "number"
          },
          "user_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "deleted_at",
          "cursor"
        ],
        "type": "object"
      },
      "DiagramAnnotationItemDto": {
        "properties": {
          "color": {
            "description": "Text color — defaults to \"black\"",
            "type": "string"
          },
          "id": {
            "description": "Unique ID (used only for de-duplication)",
            "type": "string"
          },
          "size": {
            "description": "Font size style — defaults to \"l\"",
            "enum": [
              "s",
              "m",
              "l",
              "xl"
            ],
            "type": "string"
          },
          "text": {
            "description": "Annotation text",
            "type": "string"
          },
          "x": {
            "description": "Canvas x position — auto-placed above the diagram if omitted",
            "type": "number"
          },
          "y": {
            "description": "Canvas y position — auto-placed above the diagram if omitted",
            "type": "number"
          }
        },
        "required": [
          "id",
          "text"
        ],
        "type": "object"
      },
      "DiagramConnectionInterfaceDto": {
        "properties": {
          "id": {
            "description": "Platform entity ID of the interface",
            "type": "string"
          },
          "name": {
            "description": "Display name shown in the pill on the wire",
            "type": "string"
          },
          "type": {
            "description": "Entity type label (e.g. \"Interface\")",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "type"
        ],
        "type": "object"
      },
      "DiagramConnectionItemDto": {
        "properties": {
          "color": {
            "description": "Arrow color (e.g. \"black\", \"blue\") — defaults to \"black\"",
            "type": "string"
          },
          "dash": {
            "description": "Arrow dash style — defaults to \"draw\"",
            "enum": [
              "draw",
              "solid",
              "dashed",
              "dotted"
            ],
            "type": "string"
          },
          "from": {
            "description": "Source entity or node ID",
            "type": "string"
          },
          "fromPort": {
            "description": "Source terminal ID from GET /project/{projectId}/diagram-symbols; omit for automatic routing",
            "type": "string"
          },
          "interface": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DiagramConnectionInterfaceDto"
              }
            ],
            "description": "Flow entity carried ON this wire, drawn as a pill on the line between `from` and `to` instead of a node of its own. It must not also appear in `entities`/`nodes` or on another connection."
          },
          "kind": {
            "description": "Arrow routing style: \"elbow\" (default) uses right-angle corners, \"arc\" a smooth curve",
            "enum": [
              "arc",
              "elbow"
            ],
            "type": "string"
          },
          "label": {
            "description": "Short label shown at the midpoint of the arrow",
            "type": "string"
          },
          "to": {
            "description": "Target entity or node ID",
            "type": "string"
          },
          "toPort": {
            "description": "Target terminal ID from GET /project/{projectId}/diagram-symbols; omit for automatic routing",
            "type": "string"
          }
        },
        "required": [
          "from",
          "to"
        ],
        "type": "object"
      },
      "DiagramEntityItemDto": {
        "properties": {
          "childColumns": {
            "description": "When this entity is a container (other items name it as their parentId), the fixed number of columns to arrange its children into (≥ 1). Omit to have its children auto-arranged by their connections.",
            "type": "number"
          },
          "geo": {
            "description": "Visual treatment: card, pill, or a symbol ID from GET /project/{projectId}/diagram-symbols. Symbols cannot contain children. 'pill' renders a compact single-row oval (the clean affordance for interfaces and other entities mounted on a connection); omit or 'card' for the default header + body card.",
            "enum": [
              "card",
              "pill",
              "iso1219:pump",
              "iso1219:valve-2-2",
              "iso1219:valve-3-2",
              "iso1219:check-valve",
              "iso1219:heat-exchanger",
              "iso1219:fan",
              "iso1219:reservoir",
              "iso1219:orifice",
              "iso1219:sensor-temperature",
              "iso1219:sensor-pressure",
              "iso1219:sensor-level",
              "iso1219:sensor-flow",
              "iso1219:junction-t",
              "iso1219:junction-cross",
              "iec60617:resistor",
              "iec60617:capacitor",
              "iec60617:inductor",
              "iec60617:diode",
              "iec60617:battery",
              "iec60617:dc-source",
              "iec60617:ac-source",
              "iec60617:earth",
              "iec60617:motor",
              "iec60617:generator",
              "iec60617:switch-no",
              "iec60617:switch-nc",
              "iec60617:relay-coil",
              "iec60617:contactor",
              "iec60617:fuse",
              "iec60617:circuit-breaker",
              "iec60617:transformer",
              "isa51:field-instrument",
              "isa51:panel-instrument",
              "isa51:auxiliary-panel-instrument",
              "isa51:pressure-indicator",
              "isa51:pressure-transmitter",
              "isa51:pressure-controller",
              "isa51:temperature-indicator",
              "isa51:temperature-transmitter",
              "isa51:temperature-controller",
              "isa51:flow-indicator",
              "isa51:flow-transmitter",
              "isa51:flow-controller",
              "isa51:level-indicator",
              "isa51:level-transmitter",
              "isa51:level-controller"
            ],
            "type": "string"
          },
          "id": {
            "description": "Platform entity ID of the Flow entity to render",
            "type": "string"
          },
          "name": {
            "description": "Display name shown on the card",
            "type": "string"
          },
          "parentId": {
            "description": "Id of another entity/node in this payload that should contain this card. When set, the card is nested inside that container and auto-arranged inside it. Omit for a top-level card.",
            "type": "string"
          },
          "shownFieldKeys": {
            "description": "Field keys displayed below the symbol or on the card",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "shownFields": {
            "description": "Field keys the card shows as rows under its name (a pill shows them as value chips, all but the description). The card gets one line per field and a longer value wraps into the room it has; keys the type does not have draw nothing.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": {
            "description": "Entity type label (e.g. \"Requirement\")",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "type"
        ],
        "type": "object"
      },
      "DiagramNodeItemDto": {
        "properties": {
          "childColumns": {
            "description": "When this node is a container, the fixed number of columns to arrange its children into (≥ 1). Omit to have its children auto-arranged by their connections.",
            "type": "number"
          },
          "color": {
            "description": "tldraw color style (e.g. \"black\", \"blue\", \"red\", \"green\", \"orange\", \"violet\") — defaults to \"black\"",
            "type": "string"
          },
          "dash": {
            "description": "Border dash style — defaults to \"draw\"",
            "enum": [
              "draw",
              "solid",
              "dashed",
              "dotted"
            ],
            "type": "string"
          },
          "fill": {
            "description": "Fill style — defaults to \"none\"",
            "enum": [
              "none",
              "semi",
              "solid",
              "pattern"
            ],
            "type": "string"
          },
          "h": {
            "description": "Height override in pixels (≥ 1); defaults to the shape's own size",
            "type": "number"
          },
          "id": {
            "description": "Unique ID for this node — referenced by connections",
            "type": "string"
          },
          "name": {
            "description": "Label displayed inside the shape",
            "type": "string"
          },
          "parentId": {
            "description": "Id of another node/entity in this payload that should contain this node. When set, x/y are ignored and the node is auto-arranged inside the container.",
            "type": "string"
          },
          "shape": {
            "description": "Shape — defaults to \"rectangle\". Any geo of the editor's shape picker; \"frame\", \"swimlane-horizontal\" and \"swimlane-vertical\" draw a container titled with `name`, which other items join via parentId. Symbol IDs from GET /project/{projectId}/diagram-symbols preserve authored aspect ratio and cannot contain children.",
            "enum": [
              "cloud",
              "rectangle",
              "ellipse",
              "triangle",
              "diamond",
              "pentagon",
              "hexagon",
              "octagon",
              "star",
              "rhombus",
              "rhombus-2",
              "oval",
              "trapezoid",
              "arrow-right",
              "arrow-left",
              "arrow-up",
              "arrow-down",
              "x-box",
              "check-box",
              "heart",
              "monitor",
              "mobile",
              "user",
              "cylinder",
              "chevron",
              "frame",
              "swimlane-horizontal",
              "swimlane-vertical",
              "iso1219:pump",
              "iso1219:valve-2-2",
              "iso1219:valve-3-2",
              "iso1219:check-valve",
              "iso1219:heat-exchanger",
              "iso1219:fan",
              "iso1219:reservoir",
              "iso1219:orifice",
              "iso1219:sensor-temperature",
              "iso1219:sensor-pressure",
              "iso1219:sensor-level",
              "iso1219:sensor-flow",
              "iso1219:junction-t",
              "iso1219:junction-cross",
              "iec60617:resistor",
              "iec60617:capacitor",
              "iec60617:inductor",
              "iec60617:diode",
              "iec60617:battery",
              "iec60617:dc-source",
              "iec60617:ac-source",
              "iec60617:earth",
              "iec60617:motor",
              "iec60617:generator",
              "iec60617:switch-no",
              "iec60617:switch-nc",
              "iec60617:relay-coil",
              "iec60617:contactor",
              "iec60617:fuse",
              "iec60617:circuit-breaker",
              "iec60617:transformer",
              "isa51:field-instrument",
              "isa51:panel-instrument",
              "isa51:auxiliary-panel-instrument",
              "isa51:pressure-indicator",
              "isa51:pressure-transmitter",
              "isa51:pressure-controller",
              "isa51:temperature-indicator",
              "isa51:temperature-transmitter",
              "isa51:temperature-controller",
              "isa51:flow-indicator",
              "isa51:flow-transmitter",
              "isa51:flow-controller",
              "isa51:level-indicator",
              "isa51:level-transmitter",
              "isa51:level-controller"
            ],
            "type": "string"
          },
          "size": {
            "description": "Size style controlling font/stroke scale — defaults to \"m\"",
            "enum": [
              "s",
              "m",
              "l",
              "xl"
            ],
            "type": "string"
          },
          "w": {
            "description": "Width override in pixels (≥ 1); defaults to the shape's own size",
            "type": "number"
          },
          "x": {
            "description": "Canvas x position. Omit to auto-arrange the node along its connections; a node given x and y is pinned there instead.",
            "type": "number"
          },
          "y": {
            "description": "Canvas y position. Omit to auto-arrange the node; see x.",
            "type": "number"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "DiagramSnapshotDto": {
        "properties": {
          "schema": {
            "description": "Serialized tldraw schema (versioning metadata)",
            "type": "object"
          },
          "store": {
            "description": "tldraw store records keyed by record ID",
            "type": "object"
          }
        },
        "required": [
          "store",
          "schema"
        ],
        "type": "object"
      },
      "DiagramSymbolDto": {
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "labelSlot": {
            "enum": [
              "below",
              "inside"
            ],
            "type": "string"
          },
          "ports": {
            "items": {
              "$ref": "#/components/schemas/DiagramSymbolPortDto"
            },
            "type": "array"
          },
          "size": {
            "$ref": "#/components/schemas/DiagramSymbolSizeDto"
          }
        },
        "required": [
          "id",
          "label",
          "size",
          "labelSlot",
          "ports"
        ],
        "type": "object"
      },
      "DiagramSymbolLibraryDto": {
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "symbols": {
            "items": {
              "$ref": "#/components/schemas/DiagramSymbolDto"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "label",
          "symbols"
        ],
        "type": "object"
      },
      "DiagramSymbolPortDto": {
        "properties": {
          "at": {
            "description": "Normalized [x, y] position in the unrotated symbol box",
            "items": {
              "type": "number"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "side": {
            "enum": [
              "n",
              "e",
              "s",
              "w"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "at",
          "side"
        ],
        "type": "object"
      },
      "DiagramSymbolSizeDto": {
        "properties": {
          "h": {
            "type": "number"
          },
          "w": {
            "type": "number"
          }
        },
        "required": [
          "w",
          "h"
        ],
        "type": "object"
      },
      "DiagramSymbolsResponseDto": {
        "properties": {
          "libraries": {
            "items": {
              "$ref": "#/components/schemas/DiagramSymbolLibraryDto"
            },
            "type": "array"
          }
        },
        "required": [
          "libraries"
        ],
        "type": "object"
      },
      "DrawioToTldrawDto": {
        "properties": {
          "xml": {
            "description": "Diagram XML in either supported format — the endpoint detects which:\n- draw.io: a raw <mxGraphModel>, an <mxfile> wrapper with an inline <mxGraphModel>, or an <mxfile> whose <diagram> body is the draw.io compressed form (base64 + raw-deflate + URI-encoded XML).\n- Flow: a <diagram> document as produced by /convert/tldraw-to-xml.",
            "type": "string"
          }
        },
        "required": [
          "xml"
        ],
        "type": "object"
      },
      "EntityCrosslinksResponseDto": {
        "properties": {
          "crosslinks": {
            "description": "Ids of entities cross-linked to this one that are not deleted on the requested branch. Unordered — cross-links are peer relationships and carry no sort key.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "entityId": {
            "type": "string"
          }
        },
        "required": [
          "entityId",
          "crosslinks"
        ],
        "type": "object"
      },
      "EntityLinksDto": {
        "properties": {
          "crosslinks": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "inbound": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "inboundOrder": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "inboundTypes": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "outbound": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "outboundOrder": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "outboundTypes": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "rootPlaced": {
            "type": "boolean"
          }
        },
        "required": [
          "inbound",
          "outbound",
          "crosslinks",
          "inboundOrder"
        ],
        "type": "object"
      },
      "EntityListResponseDto": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/EntityStateResponseDto"
            },
            "type": "array"
          },
          "moreAvailable": {
            "description": "Whether more pages may exist (keyset mode only). Keep paginating while true.",
            "type": "boolean"
          },
          "nextPageStart": {
            "description": "Cursor to pass as `starting_after` for the next page (keyset mode only). Opaque; compare only for equality.",
            "type": "string"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "EntityStateResponseDto": {
        "properties": {
          "branchesChangedIn": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "branchesCreatedIn": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "defaultSortKey": {
            "type": "string"
          },
          "deleted": {
            "type": "boolean"
          },
          "formulaTemplates": {
            "type": "object"
          },
          "formulas": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "links": {
            "$ref": "#/components/schemas/EntityLinksDto"
          },
          "type": {
            "type": "string"
          },
          "uniqueEntityNumber": {
            "type": "number"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "values": {
            "type": "object"
          }
        },
        "required": [
          "id",
          "values",
          "formulas",
          "formulaTemplates",
          "links"
        ],
        "type": "object"
      },
      "ExecuteBranchExtractionDto": {
        "properties": {
          "destination_name": {
            "type": "string"
          },
          "plan_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "plan_id"
        ],
        "type": "object"
      },
      "FileRecordResponseDto": {
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "mime_type": {
            "type": "string"
          },
          "original_name": {
            "type": "string"
          },
          "size": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "original_name",
          "size",
          "mime_type",
          "created_by",
          "created_at"
        ],
        "type": "object"
      },
      "FileUploadResponseDto": {
        "properties": {
          "id": {
            "type": "string"
          },
          "mime_type": {
            "type": "string"
          },
          "original_name": {
            "type": "string"
          },
          "size": {
            "type": "number"
          },
          "upload_headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Headers the client MUST send on the PUT to upload_url. Empty for S3; { \"x-ms-blob-type\": \"BlockBlob\" } for Azure Blob. Apply them all.",
            "type": "object"
          },
          "upload_url": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "upload_url",
          "upload_headers",
          "original_name",
          "size",
          "mime_type"
        ],
        "type": "object"
      },
      "FileUrlResponseDto": {
        "properties": {
          "expires_in": {
            "type": "number"
          },
          "id": {
            "type": "string"
          },
          "mime_type": {
            "description": "Stored content type. The preview picks its renderer from this rather than guessing at the filename extension.",
            "type": "string"
          },
          "original_name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "url",
          "expires_in",
          "original_name",
          "mime_type"
        ],
        "type": "object"
      },
      "FireAgentTriggerDto": {
        "properties": {
          "branchId": {
            "description": "The branch the agent works on: a branch's id, or Base's.",
            "type": "string"
          },
          "entityIds": {
            "description": "The items the agent is launched on, if any: ids of items in the project.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "FlowMdResponseDto": {
        "properties": {
          "content": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "content"
        ],
        "type": "object"
      },
      "ImportCandidateEntityDto": {
        "properties": {
          "details": {
            "description": "Everything the pages said this is — a requirement's statement, a design value's quantity.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "mentions": {
            "items": {
              "$ref": "#/components/schemas/ImportProvenanceDto"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "types": {
            "description": "Every type the run called this name, in the source's words.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "name",
          "types",
          "details",
          "mentions"
        ],
        "type": "object"
      },
      "ImportCandidateRelationshipDto": {
        "properties": {
          "evidence": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "from": {
            "type": "string"
          },
          "implied": {
            "description": "True when every sighting read it off layout, not words.",
            "type": "boolean"
          },
          "mentions": {
            "items": {
              "$ref": "#/components/schemas/ImportProvenanceDto"
            },
            "type": "array"
          },
          "to": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "from",
          "to",
          "type",
          "implied",
          "evidence",
          "mentions"
        ],
        "type": "object"
      },
      "ImportChunkResultDto": {
        "properties": {
          "analysis": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ChunkAnalysisDto"
              }
            ],
            "nullable": true,
            "type": "object"
          },
          "chunkId": {
            "type": "string"
          },
          "error": {
            "nullable": true,
            "type": "string"
          },
          "fileId": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "inputTokens": {
            "type": "number"
          },
          "kind": {
            "enum": [
              "pdf_page",
              "image"
            ],
            "type": "string"
          },
          "outputTokens": {
            "type": "number"
          },
          "page": {
            "nullable": true,
            "type": "number"
          },
          "status": {
            "enum": [
              "pending",
              "running",
              "done",
              "failed"
            ],
            "type": "string"
          }
        },
        "required": [
          "chunkId",
          "fileId",
          "filename",
          "kind",
          "page",
          "status",
          "analysis",
          "inputTokens",
          "outputTokens",
          "error"
        ],
        "type": "object"
      },
      "ImportProvenanceDto": {
        "properties": {
          "boxes": {
            "items": {
              "$ref": "#/components/schemas/PageBoxDto"
            },
            "type": "array"
          },
          "chunkId": {
            "type": "string"
          },
          "fileId": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "page": {
            "description": "1-based page for a PDF chunk, null for a whole image.",
            "nullable": true,
            "type": "number"
          }
        },
        "required": [
          "chunkId",
          "fileId",
          "filename",
          "page",
          "boxes"
        ],
        "type": "object"
      },
      "ImportRunDetailDto": {
        "properties": {
          "chunks": {
            "items": {
              "$ref": "#/components/schemas/ImportChunkResultDto"
            },
            "type": "array"
          },
          "progress": {
            "$ref": "#/components/schemas/ImportRunProgressDto"
          }
        },
        "required": [
          "progress",
          "chunks"
        ],
        "type": "object"
      },
      "ImportRunFileProgressDto": {
        "properties": {
          "chunksDone": {
            "type": "number"
          },
          "chunksFailed": {
            "type": "number"
          },
          "chunksTotal": {
            "type": "number"
          },
          "fileId": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "pdf_page",
              "image"
            ],
            "type": "string"
          }
        },
        "required": [
          "fileId",
          "filename",
          "kind",
          "chunksTotal",
          "chunksDone",
          "chunksFailed"
        ],
        "type": "object"
      },
      "ImportRunListDto": {
        "properties": {
          "runs": {
            "items": {
              "$ref": "#/components/schemas/ImportRunProgressDto"
            },
            "type": "array"
          }
        },
        "required": [
          "runs"
        ],
        "type": "object"
      },
      "ImportRunNoteDto": {
        "properties": {
          "mention": {
            "$ref": "#/components/schemas/ImportProvenanceDto"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "text",
          "mention"
        ],
        "type": "object"
      },
      "ImportRunOutputDto": {
        "properties": {
          "entities": {
            "items": {
              "$ref": "#/components/schemas/ImportCandidateEntityDto"
            },
            "type": "array"
          },
          "notes": {
            "items": {
              "$ref": "#/components/schemas/ImportRunNoteDto"
            },
            "type": "array"
          },
          "relationships": {
            "items": {
              "$ref": "#/components/schemas/ImportCandidateRelationshipDto"
            },
            "type": "array"
          },
          "runId": {
            "type": "string"
          },
          "status": {
            "enum": [
              "waiting",
              "queued",
              "running",
              "succeeded",
              "failed",
              "cancelled"
            ],
            "type": "string"
          }
        },
        "required": [
          "runId",
          "status",
          "entities",
          "relationships",
          "notes"
        ],
        "type": "object"
      },
      "ImportRunProgressDto": {
        "properties": {
          "chunksDone": {
            "type": "number"
          },
          "chunksFailed": {
            "type": "number"
          },
          "chunksRunning": {
            "type": "number"
          },
          "chunksTotal": {
            "description": "Null until planning has opened every file.",
            "nullable": true,
            "type": "number"
          },
          "completedAt": {
            "nullable": true,
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "entityCount": {
            "type": "number"
          },
          "error": {
            "nullable": true,
            "type": "string"
          },
          "fileIds": {
            "description": "Files the run was asked for, known before anything is opened.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "files": {
            "items": {
              "$ref": "#/components/schemas/ImportRunFileProgressDto"
            },
            "type": "array"
          },
          "inputTokens": {
            "type": "number"
          },
          "noteCount": {
            "type": "number"
          },
          "outputTokens": {
            "type": "number"
          },
          "paused": {
            "description": "Reading stopped a few pages past what its agent chat has taken, until that chat runs a turn again.",
            "type": "boolean"
          },
          "phase": {
            "enum": [
              "queued",
              "planning",
              "reading",
              "done"
            ],
            "type": "string"
          },
          "relationshipCount": {
            "type": "number"
          },
          "runId": {
            "type": "string"
          },
          "status": {
            "enum": [
              "waiting",
              "queued",
              "running",
              "succeeded",
              "failed",
              "cancelled"
            ],
            "type": "string"
          }
        },
        "required": [
          "runId",
          "status",
          "phase",
          "fileIds",
          "chunksTotal",
          "chunksDone",
          "chunksRunning",
          "chunksFailed",
          "paused",
          "entityCount",
          "relationshipCount",
          "noteCount",
          "inputTokens",
          "outputTokens",
          "files",
          "error",
          "createdAt",
          "completedAt"
        ],
        "type": "object"
      },
      "ItemReviewerDto": {
        "properties": {
          "group_id": {
            "type": "string"
          },
          "is_available": {
            "type": "boolean"
          },
          "is_designated": {
            "type": "boolean"
          },
          "is_optional": {
            "type": "boolean"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/ItemReviewerSourceDto"
            },
            "type": "array"
          },
          "sources_truncated": {
            "type": "boolean"
          },
          "user_id": {
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "is_designated"
        ],
        "type": "object"
      },
      "ItemReviewerGroupDto": {
        "properties": {
          "available_member_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "group_id": {
            "type": "string"
          },
          "is_optional": {
            "type": "boolean"
          },
          "member_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/ItemReviewerSourceDto"
            },
            "type": "array"
          },
          "sources_truncated": {
            "type": "boolean"
          }
        },
        "required": [
          "group_id",
          "member_ids",
          "available_member_ids"
        ],
        "type": "object"
      },
      "ItemReviewerSourceDto": {
        "properties": {
          "entity_id": {
            "type": "string"
          },
          "entity_name": {
            "type": "string"
          }
        },
        "required": [
          "entity_id",
          "entity_name"
        ],
        "type": "object"
      },
      "MarkdownToRichTextDto": {
        "properties": {
          "markdown": {
            "description": "Markdown string to convert to rich text JSON",
            "type": "string"
          }
        },
        "required": [
          "markdown"
        ],
        "type": "object"
      },
      "MergeBranchDto": {
        "properties": {
          "bypass_review": {
            "default": false,
            "description": "Force merge. The organization review policy (Settings → Reviews) decides who may use it: nobody when merge override is off, project admins (the default), or project admins plus the owner of the branch's direct parent (never for merges into Base). Overrides known review, branch-check, stage-policy, and merge-conflict blockers once; editor-group blockers are overridden only for project admins. Structural and incomplete-scan protections are preserved. Requires review_bypass_reason.",
            "type": "boolean"
          },
          "expected_rebase_ids": {
            "description": "The ids of the live sub-branches the merge-rebase preview said this merge would rebase onto the merge target. When present, the merge refuses with 409 if the set of live sub-branches differs at merge time, so a sub-branch is never rebased unseen. Omit to rebase whatever live sub-branches exist then.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "review_bypass_reason": {
            "description": "Required when bypass_review is true. The justification and execution-time blocker snapshot are preserved as an immutable review event on the merge baseline.",
            "maxLength": 1000,
            "type": "string"
          }
        },
        "type": "object"
      },
      "MergeReadinessBlockerDto": {
        "properties": {
          "items": {
            "description": "Ids of the items this blocker names.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "kind": {
            "enum": [
              "not_ready_for_review",
              "variant",
              "editor_groups",
              "merge_in_progress",
              "no_changes",
              "checks",
              "designated_reviewers",
              "required_reviewers",
              "review_policy_items",
              "min_approvals",
              "item_checks",
              "stage_gates",
              "conflicts"
            ],
            "type": "string"
          },
          "message": {
            "description": "Why this gate blocks the merge.",
            "type": "string"
          },
          "people": {
            "description": "Ids of the users whose action clears this blocker.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "kind",
          "message"
        ],
        "type": "object"
      },
      "MergeReadinessResponseDto": {
        "properties": {
          "blockers": {
            "items": {
              "$ref": "#/components/schemas/MergeReadinessBlockerDto"
            },
            "type": "array"
          },
          "ready": {
            "description": "True only when no gate blocks the merge and every gate could be judged.",
            "type": "boolean"
          },
          "unknown": {
            "items": {
              "$ref": "#/components/schemas/MergeReadinessUnknownDto"
            },
            "type": "array"
          }
        },
        "required": [
          "ready",
          "blockers",
          "unknown"
        ],
        "type": "object"
      },
      "MergeReadinessUnknownDto": {
        "properties": {
          "kind": {
            "enum": [
              "no_changes",
              "reviewers",
              "item_checks",
              "stage_gates",
              "conflicts"
            ],
            "type": "string"
          },
          "reason": {
            "description": "Why this gate cannot be judged yet, for example a scan that is still running or too large.",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "reason"
        ],
        "type": "object"
      },
      "NotificationFeedItemDto": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "event_type": {
            "enum": [
              "UserInvited",
              "ReviewAssigned",
              "ReviewSubmitted",
              "ReviewStale",
              "RequirementBroken",
              "CommentMention",
              "EntityChanged",
              "CommentReply",
              "CommentResolved",
              "BranchReadyForReview",
              "BranchMerged",
              "BranchOwnerChanged",
              "ShareViewOpened",
              "ViewShared",
              "AutomationRunFinished",
              "AgentChatFinished",
              "AgentChatNeedsInput",
              "AutomationActivity",
              "AutomationItemsChanged",
              "WatcherFindingRaised",
              "AutomationNotification"
            ],
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "payload": {
            "additionalProperties": true,
            "type": "object"
          },
          "read": {
            "description": "False when any row of the thread is unread",
            "type": "boolean"
          },
          "update_count": {
            "description": "Rows in the thread this row heads; 1 for a notification of its own",
            "type": "number"
          }
        },
        "required": [
          "id",
          "event_type",
          "payload",
          "created_at",
          "read",
          "update_count"
        ],
        "type": "object"
      },
      "NotificationFeedPageDto": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/NotificationFeedItemDto"
            },
            "type": "array"
          },
          "total": {
            "description": "Total matching threads across all pages",
            "type": "number"
          }
        },
        "required": [
          "items",
          "total"
        ],
        "type": "object"
      },
      "NotificationPreferenceDto": {
        "properties": {
          "email_enabled": {
            "type": "boolean"
          },
          "event_type": {
            "enum": [
              "UserInvited",
              "ReviewAssigned",
              "ReviewSubmitted",
              "ReviewStale",
              "RequirementBroken",
              "CommentMention",
              "EntityChanged",
              "CommentReply",
              "CommentResolved",
              "BranchReadyForReview",
              "BranchMerged",
              "BranchOwnerChanged",
              "ShareViewOpened",
              "ViewShared",
              "AutomationRunFinished",
              "AgentChatFinished",
              "AgentChatNeedsInput",
              "AutomationActivity",
              "AutomationItemsChanged",
              "WatcherFindingRaised",
              "AutomationNotification"
            ],
            "type": "string"
          },
          "in_app_enabled": {
            "type": "boolean"
          },
          "slack_enabled": {
            "type": "boolean"
          },
          "toast_enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "event_type",
          "email_enabled",
          "in_app_enabled",
          "slack_enabled",
          "toast_enabled"
        ],
        "type": "object"
      },
      "NotificationThreadDto": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/NotificationFeedItemDto"
            },
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "type": "object"
      },
      "OpeningAttachmentDto": {
        "properties": {
          "file_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_modified": {
            "type": "number"
          },
          "mime_type": {
            "type": "string"
          },
          "original_name": {
            "type": "string"
          },
          "size": {
            "type": "number"
          },
          "uploaded": {
            "type": "boolean"
          }
        },
        "required": [
          "original_name",
          "size",
          "mime_type",
          "id",
          "last_modified",
          "uploaded"
        ],
        "type": "object"
      },
      "OpeningAttachmentInputDto": {
        "properties": {
          "id": {
            "type": "string"
          },
          "last_modified": {
            "type": "number"
          },
          "mime_type": {
            "type": "string"
          },
          "original_name": {
            "type": "string"
          },
          "size": {
            "type": "number"
          }
        },
        "required": [
          "original_name",
          "size",
          "mime_type",
          "id",
          "last_modified"
        ],
        "type": "object"
      },
      "PageBoxDto": {
        "properties": {
          "height": {
            "description": "Height as a fraction of page height.",
            "type": "number"
          },
          "width": {
            "description": "Width as a fraction of page width.",
            "type": "number"
          },
          "x": {
            "description": "Left edge as a fraction of page width.",
            "type": "number"
          },
          "y": {
            "description": "Top edge as a fraction of page height.",
            "type": "number"
          }
        },
        "required": [
          "x",
          "y",
          "width",
          "height"
        ],
        "type": "object"
      },
      "PageEntityDto": {
        "properties": {
          "boxes": {
            "items": {
              "$ref": "#/components/schemas/PageBoxDto"
            },
            "type": "array"
          },
          "detail": {
            "description": "What the page says this is — a requirement's statement.",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "detail",
          "boxes"
        ],
        "type": "object"
      },
      "PageNoteDto": {
        "properties": {
          "boxes": {
            "description": "Where the difficulty arises.",
            "items": {
              "$ref": "#/components/schemas/PageBoxDto"
            },
            "type": "array"
          },
          "text": {
            "description": "What this page raises but cannot settle.",
            "type": "string"
          }
        },
        "required": [
          "text",
          "boxes"
        ],
        "type": "object"
      },
      "PageProvenanceDto": {
        "properties": {
          "boxes": {
            "description": "Where that evidence sits.",
            "items": {
              "$ref": "#/components/schemas/PageBoxDto"
            },
            "type": "array"
          },
          "text": {
            "description": "The words or visual feature evidencing the link.",
            "type": "string"
          }
        },
        "required": [
          "text",
          "boxes"
        ],
        "type": "object"
      },
      "PageRelationshipDto": {
        "properties": {
          "from": {
            "type": "string"
          },
          "implied": {
            "description": "False when the page states the relationship outright.",
            "type": "boolean"
          },
          "provenance": {
            "$ref": "#/components/schemas/PageProvenanceDto"
          },
          "to": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "from",
          "to",
          "type",
          "provenance",
          "implied"
        ],
        "type": "object"
      },
      "PaginatedBranchesDto": {
        "properties": {
          "branches": {
            "items": {
              "$ref": "#/components/schemas/BranchResponseDto"
            },
            "type": "array"
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": "number"
          }
        },
        "required": [
          "branches",
          "total",
          "has_more"
        ],
        "type": "object"
      },
      "ParseReqifDto": {
        "properties": {
          "mapping": {
            "description": "Optional import mapping that renames reqif types/fields to flow names and configures per-field behaviour (extract_string, multiple_choice, convert_to, enum tag renames). Omit to use the reqif names verbatim (equivalent to the file-derived default schema).",
            "type": "object"
          },
          "reqif": {
            "description": "The ReqIF document XML to parse. Either the raw contents of a .reqif file or the body of its CORE-CONTENT — the parser reads DATATYPES, SPEC-TYPES, SPEC-OBJECTS, SPECIFICATIONS and SPEC-RELATIONS.",
            "type": "string"
          }
        },
        "required": [
          "reqif"
        ],
        "type": "object"
      },
      "PdfPageImageRequestDto": {
        "properties": {
          "fileId": {
            "description": "Id of the uploaded PDF.",
            "type": "string"
          },
          "page": {
            "description": "Physical page number, 1-based.",
            "type": "number"
          }
        },
        "required": [
          "fileId",
          "page"
        ],
        "type": "object"
      },
      "PdfPageImageResponseDto": {
        "properties": {
          "heightPx": {
            "description": "Rendered height in pixels.",
            "type": "number"
          },
          "page": {
            "type": "number"
          },
          "pageCount": {
            "description": "Pages in the document, so a viewer can page through it without a second round trip to learn where it ends.",
            "type": "number"
          },
          "pngBase64": {
            "description": "The rendered page as base64 PNG. Inlined rather than served as a URL so the browser needs no separately authenticated image request.",
            "type": "string"
          },
          "widthPx": {
            "description": "Rendered width in pixels.",
            "type": "number"
          }
        },
        "required": [
          "page",
          "widthPx",
          "heightPx",
          "pageCount",
          "pngBase64"
        ],
        "type": "object"
      },
      "PreviewReqifImportDto": {
        "properties": {
          "base_branch_id": {
            "description": "The branch the import would start from, which decides whether a row creates or updates an item. Omit or \"master\" for the base branch.",
            "type": "string"
          },
          "clause_id": {
            "description": "The clause whose rows to return. Omit to return no rows.",
            "type": "string"
          },
          "clauses": {
            "description": "The mapping clauses to preview, in precedence order, as the commit takes them.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "include_counts": {
            "description": "Also count, for every clause, the rows that would create and update items.",
            "type": "boolean"
          },
          "limit": {
            "default": 50,
            "description": "Rows to return.",
            "maximum": 100,
            "type": "number"
          },
          "offset": {
            "default": 0,
            "description": "Rows of the clause to skip, in document order.",
            "type": "number"
          }
        },
        "required": [
          "clauses"
        ],
        "type": "object"
      },
      "ProfilePictureUrlDto": {
        "properties": {
          "expires_in": {
            "type": "number"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "url",
          "expires_in"
        ],
        "type": "object"
      },
      "ProjectAccessProjectDto": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "slug"
        ],
        "type": "object"
      },
      "ProjectAccessSummaryDto": {
        "properties": {
          "all_projects": {
            "type": "boolean"
          },
          "project_count": {
            "type": "number"
          },
          "projects": {
            "items": {
              "$ref": "#/components/schemas/ProjectAccessProjectDto"
            },
            "type": "array"
          },
          "total_project_count": {
            "type": "number"
          }
        },
        "required": [
          "all_projects",
          "project_count",
          "total_project_count",
          "projects"
        ],
        "type": "object"
      },
      "ProjectEventActorDto": {
        "properties": {
          "id": {
            "description": "User or agent ID. Omitted for system actors.",
            "type": "string"
          },
          "type": {
            "enum": [
              "user",
              "agent",
              "system"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "ProjectEventDto": {
        "properties": {
          "actor": {
            "$ref": "#/components/schemas/ProjectEventActorDto"
          },
          "app_url": {
            "description": "Absolute URL of the event’s subject in Flow: the branch’s table for branch.changed, its review otherwise.",
            "type": "string"
          },
          "branch_id": {
            "description": "Branch the event belongs to; \"master\" means Base.",
            "type": "string"
          },
          "event_type": {
            "enum": [
              "branch.changed",
              "branch.rebased",
              "branch.created",
              "branch.ready_for_review",
              "branch.draft",
              "branch.approved",
              "branch.rejected",
              "branch.review_cleared",
              "branch.reviewer_removed",
              "branch.owner_changed",
              "branch.editor_groups_changed",
              "branch.approval_dismissed",
              "branch.admin_bypass",
              "branch.closed",
              "branch.reopened",
              "branch.merged",
              "branch.extracted",
              "branch.extraction_undone"
            ],
            "type": "string"
          },
          "occurred_at": {
            "description": "The recorded time of the event. Informational: delivery order follows next_cursor, and occurred_at can be out of order across pages (historical imports carry past timestamps), so order by delivery, not by this field.",
            "format": "date-time",
            "type": "string"
          },
          "payload": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BranchChangedPayloadDto"
              },
              {
                "$ref": "#/components/schemas/BranchReviewPayloadDto"
              },
              {
                "$ref": "#/components/schemas/BranchRebasedPayloadDto"
              }
            ]
          },
          "project_id": {
            "type": "string"
          }
        },
        "required": [
          "event_type",
          "occurred_at",
          "project_id",
          "branch_id",
          "actor",
          "app_url",
          "payload"
        ],
        "type": "object"
      },
      "ProjectEventPageDto": {
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/ProjectEventDto"
            },
            "type": "array"
          },
          "more_available": {
            "description": "True when this page filled the requested limit and more settled events wait beyond it.",
            "type": "boolean"
          },
          "next_cursor": {
            "description": "Position from which the next read continues. Pass it back as cursor. It is a checkpoint, not merely the last delivered event: when the page is short it is the stream’s settled floor, so nothing at or below it can appear later.",
            "type": "string"
          }
        },
        "required": [
          "events",
          "next_cursor",
          "more_available"
        ],
        "type": "object"
      },
      "ProjectResponseDto": {
        "properties": {
          "ai_model": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "created_at",
          "ai_model"
        ],
        "type": "object"
      },
      "QueuedMessageDeliveryDto": {
        "properties": {
          "delivery": {
            "description": "How the waiting message reaches the chat. `live`: the running turn reads it at its next step, so the agent sees it before finishing its current work; this needs the running turn to be yours (same person and role), otherwise the message waits like the default. `eventually`: it waits for the running turn to end and runs as the next turn, which every send does unless set otherwise.",
            "enum": [
              "live",
              "eventually"
            ],
            "type": "string"
          }
        },
        "required": [
          "delivery"
        ],
        "type": "object"
      },
      "RebaseOntoBranchDto": {
        "properties": {
          "name": {
            "description": "Name for the new branch. Defaults to \"<source name> (rebased)\".",
            "type": "string"
          },
          "newParentId": {
            "description": "Branch id to replay this branch onto. null (or \"master\") = the project Base.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "newParentId"
        ],
        "type": "object"
      },
      "RebaseOntoMissingItemDto": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "description": "The item's name on the source branch.",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "RebaseOntoResultDto": {
        "properties": {
          "id": {
            "type": "string"
          },
          "missing_item_count": {
            "description": "How many such items there are in total.",
            "type": "number"
          },
          "missing_items": {
            "description": "Items this branch changes or links to that the new base does not have, so those changes do not appear on the new branch. Lists at most 50, in the order the branch first changed them.",
            "items": {
              "$ref": "#/components/schemas/RebaseOntoMissingItemDto"
            },
            "type": "array"
          },
          "number": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "number",
          "missing_items",
          "missing_item_count"
        ],
        "type": "object"
      },
      "RemoveLinkDto": {
        "properties": {
          "branchId": {
            "type": "string"
          },
          "destinationId": {
            "type": "string"
          }
        },
        "required": [
          "destinationId"
        ],
        "type": "object"
      },
      "RenameBranchTagDto": {
        "properties": {
          "current_text": {
            "maxLength": 64,
            "type": "string"
          },
          "new_text": {
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "current_text",
          "new_text"
        ],
        "type": "object"
      },
      "ReorderChildrenDto": {
        "properties": {
          "branchId": {
            "type": "string"
          },
          "childIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "childIds"
        ],
        "type": "object"
      },
      "ReplaceCrosslinksDto": {
        "properties": {
          "branchId": {
            "type": "string"
          },
          "crosslinkIds": {
            "description": "The complete set of entities this entity should be cross-linked to. Peers not listed are unlinked; pass an empty array to clear every cross-link.",
            "items": {
              "type": "string"
            },
            "maxItems": 1000,
            "type": "array"
          }
        },
        "required": [
          "crosslinkIds"
        ],
        "type": "object"
      },
      "ReqifImportJobResponseDto": {
        "properties": {
          "branch_id": {
            "description": "The branch the import lands on, once reserved.",
            "type": "string"
          },
          "branch_name": {
            "type": "string"
          },
          "completed_at": {
            "format": "date-time",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "items_done": {
            "description": "Completed work in the current phase.",
            "type": "number"
          },
          "items_total": {
            "description": "Total work in the current phase; absent when it has no measure.",
            "type": "number"
          },
          "last_error": {
            "description": "Reader-safe description of the last handled failure. With status \"failed\" it is the terminal one; with \"queued\" the job is being retried after it.",
            "type": "string"
          },
          "last_error_reference": {
            "description": "Support reference for `last_error`.",
            "type": "string"
          },
          "phase": {
            "description": "Where the job is in its plan. A failed job keeps the phase the failure interrupted; `status` says it failed.",
            "type": "string"
          },
          "schema": {
            "description": "File-derived schema for the mapping wizard (once parsed).",
            "nullable": true,
            "type": "object"
          },
          "status": {
            "description": "Who holds the job: the user (waiting), the queue (queued), a worker (running), or nobody again (succeeded, failed).",
            "enum": [
              "waiting",
              "queued",
              "running",
              "succeeded",
              "failed",
              "cancelled"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "status",
          "phase",
          "created_at",
          "items_done"
        ],
        "type": "object"
      },
      "ReqifImportPreviewCountDto": {
        "properties": {
          "clause_id": {
            "type": "string"
          },
          "created": {
            "type": "number"
          },
          "updated": {
            "type": "number"
          }
        },
        "required": [
          "clause_id",
          "created",
          "updated"
        ],
        "type": "object"
      },
      "ReqifImportPreviewResponseDto": {
        "properties": {
          "counts": {
            "description": "Per-clause counts, when requested.",
            "items": {
              "$ref": "#/components/schemas/ReqifImportPreviewCountDto"
            },
            "type": "array"
          },
          "counts_complete": {
            "description": "False when the counts stopped short of the whole document, so they are lower bounds.",
            "type": "boolean"
          },
          "has_more": {
            "description": "Whether the clause has rows past this page.",
            "type": "boolean"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/ReqifImportPreviewRowDto"
            },
            "type": "array"
          }
        },
        "required": [
          "rows",
          "has_more"
        ],
        "type": "object"
      },
      "ReqifImportPreviewRowDto": {
        "properties": {
          "id_value": {
            "description": "The value the row is identified by (its Source ID).",
            "type": "string"
          },
          "identifier": {
            "description": "The ReqIF object identifier.",
            "type": "string"
          },
          "outcome": {
            "description": "Whether the commit would create a new item or update an existing one.",
            "enum": [
              "created",
              "updated"
            ],
            "type": "string"
          },
          "values": {
            "description": "The Flow field values the commit would write, by field key, in stored form.",
            "type": "object"
          }
        },
        "required": [
          "identifier",
          "outcome",
          "id_value",
          "values"
        ],
        "type": "object"
      },
      "ReqifImportUploadResponseDto": {
        "properties": {
          "job_id": {
            "type": "string"
          },
          "upload_headers": {
            "description": "HTTP headers the client must send with the PUT.",
            "type": "object"
          },
          "upload_url": {
            "description": "Presigned URL to PUT the archive bytes to.",
            "type": "string"
          }
        },
        "required": [
          "job_id",
          "upload_url",
          "upload_headers"
        ],
        "type": "object"
      },
      "RestoreBranchDto": {
        "properties": {
          "expected_chain_ids": {
            "description": "The ids of the chain a restore preview showed, in its order. When present, the restore refuses with 409 if the chain it would restore now differs, so what was confirmed is what happens. Omit to restore whatever the chain is now.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "expected_rebase_ids": {
            "description": "The ids of the chain members the preview said would be rebased as part of the restore. When present alongside expected_chain_ids, the restore refuses with 409 if a different set would be rebased now, so a rebase is never performed unseen.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "RestoreChainMemberDto": {
        "properties": {
          "deleted_at": {
            "description": "When the branch was archived: the merge time for a merged branch, the delete time for a discarded one.",
            "type": "string"
          },
          "deleted_by_id": {
            "description": "Who deleted a discarded branch. Null for a merged branch: the merge does not record its actor on the row.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "merged_at": {
            "description": "Set when a merge archived the branch; null when it was discarded through the delete endpoint.",
            "nullable": true,
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "number": {
            "description": "Project-scoped branch number.",
            "type": "number"
          },
          "parent_id": {
            "nullable": true,
            "type": "string"
          },
          "parent_name": {
            "description": "Name of the parent branch; null when the parent is Base.",
            "nullable": true,
            "type": "string"
          },
          "rebase": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RestoreRebaseStepDto"
              }
            ],
            "description": "Set when restoring this branch rebases it onto its parent's current history because the parent was rebased after the branch was deleted; null when its fork pointer is intact.",
            "nullable": true,
            "type": "object"
          }
        },
        "required": [
          "id",
          "number",
          "name",
          "parent_id",
          "parent_name",
          "merged_at",
          "deleted_at",
          "deleted_by_id",
          "rebase"
        ],
        "type": "object"
      },
      "RestoreRebaseStepDto": {
        "properties": {
          "description": {
            "description": "The step in words, naming both branches by number, as the restore will perform it.",
            "type": "string"
          },
          "parent_id": {
            "description": "The parent whose current history the branch is rebased onto.",
            "type": "string"
          },
          "parent_name": {
            "type": "string"
          },
          "parent_number": {
            "type": "number"
          },
          "parent_rebased_at": {
            "description": "When the parent was rebased: after this branch was deleted, which is why the branch was not carried along then.",
            "type": "string"
          }
        },
        "required": [
          "parent_id",
          "parent_name",
          "parent_number",
          "parent_rebased_at",
          "description"
        ],
        "type": "object"
      },
      "ReuploadFileDto": {
        "properties": {
          "size": {
            "description": "Size in bytes of the replacement content. Overwrites the stored size, which was declared when the record was first minted.",
            "type": "number"
          }
        },
        "required": [
          "size"
        ],
        "type": "object"
      },
      "RevertBaselineDto": {
        "properties": {
          "entity_id": {
            "description": "Narrow the revert to one item the baseline changed. The proposed branch then undoes only that item's part of the merge — its fields, its links at either end, and its child order. Omit to revert the whole baseline. The id must be one the baseline actually changed; any other id is rejected.",
            "maxLength": 255,
            "type": "string"
          },
          "request_id": {
            "description": "A caller-chosen id for this revert. Retrying with the same id returns the branch an earlier attempt created instead of creating another, and GET baseline/:baselineId/revert/:requestId reports whether that attempt is still running. Use it when the request may outlive your connection.",
            "format": "uuid",
            "type": "string"
          }
        },
        "type": "object"
      },
      "RevertEntityToPointDto": {
        "properties": {
          "change_from_seq_id": {
            "description": "Revert only the change between this sequence id (exclusive) and seq_id, keeping later edits to anything that change did not touch. Omit to revert the item to its state at seq_id.",
            "type": "string"
          },
          "entity_id": {
            "maxLength": 255,
            "type": "string"
          },
          "in_place": {
            "description": "Write the revert straight onto this branch instead of proposing a new branch to review.",
            "type": "boolean"
          },
          "seq_id": {
            "description": "Sequence id of one of the item's history entries on this branch. The item is reverted to its state right after that change. 0 reverts it to before it existed.",
            "type": "string"
          }
        },
        "required": [
          "entity_id",
          "seq_id"
        ],
        "type": "object"
      },
      "RevertEntityToPointResponseDto": {
        "properties": {
          "branch_id": {
            "description": "The branch now carrying the revert: the new branch, or this branch's id ('master' for Base) when reverted in place.",
            "type": "string"
          },
          "created": {
            "description": "True when a new branch was created.",
            "type": "boolean"
          }
        },
        "required": [
          "branch_id",
          "created"
        ],
        "type": "object"
      },
      "ReviewPolicyBlockerDto": {
        "properties": {
          "entity_id": {
            "type": "string"
          },
          "entity_name": {
            "type": "string"
          },
          "occurrence_count": {
            "type": "number"
          },
          "pending_reviewer_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "entity_id",
          "entity_name",
          "pending_reviewer_ids",
          "occurrence_count"
        ],
        "type": "object"
      },
      "ReviewPolicyResponseDto": {
        "properties": {
          "allow_auto_merge": {
            "description": "Whether a branch can be set to merge automatically, as the person who set it, once every merge requirement passes.",
            "type": "boolean"
          },
          "allow_merge_override": {
            "description": "Whether anyone may force a merge past the review requirements with an audited reason.",
            "type": "boolean"
          },
          "changed_item_review_enabled": {
            "description": "Whether \"Every changed item has been reviewed by its <fields>\" is switched on.",
            "type": "boolean"
          },
          "changed_item_review_fields": {
            "description": "Display names of user fields, matched on every item type. A changed item is satisfied once one person those fields name on it has approved.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "merge_override_role": {
            "enum": [
              "admins",
              "admins_and_parent_branch_owners"
            ],
            "type": "string"
          },
          "min_approvals": {
            "description": "Distinct approvals a branch needs before it can merge, the author included. Kept while the rule is off.",
            "type": "number"
          },
          "min_approvals_enabled": {
            "description": "Whether \"Require approval from at least n people\" is switched on.",
            "type": "boolean"
          }
        },
        "required": [
          "min_approvals_enabled",
          "min_approvals",
          "changed_item_review_enabled",
          "changed_item_review_fields",
          "allow_merge_override",
          "merge_override_role",
          "allow_auto_merge"
        ],
        "type": "object"
      },
      "RichTextToMarkdownDto": {
        "properties": {
          "richText": {
            "description": "Rich text JSON array to convert to markdown",
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "richText"
        ],
        "type": "object"
      },
      "Role": {
        "enum": [
          "admin",
          "editor",
          "read_only",
          "external"
        ],
        "type": "string"
      },
      "SavedViewColumnDto": {
        "properties": {
          "categories": {
            "description": "Field columns only: the data type ids the column applies to. Omitted or empty, it applies to every type that carries the field. A `link` column takes none.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "key": {
            "description": "Field key of the column: a key from the categories endpoint (`name`, `description`, `owner`, `reviewers`, `unique_entity_number` or a custom field key), `<typeId>::<key>` to pin one type's field, or a reserved key: `__createdAt` (Created), `__updatedAt` (Updated), `__entityType` (Type), `__hierarchyDepth` or `__itemLink`. Give exactly one of `key` and `link`.",
            "type": "string"
          },
          "link": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SavedViewLinkColumnDto"
              }
            ],
            "description": "A linked-items column instead of a field column."
          },
          "pinned": {
            "description": "Keep the column pinned on the left of the table.",
            "type": "boolean"
          },
          "wrap": {
            "description": "Wrap cell text onto several lines.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "SavedViewIconDto": {
        "properties": {
          "colour": {
            "description": "Icon color, as data types use.",
            "type": "string"
          },
          "icon": {
            "description": "Icon name, as data types use.",
            "type": "string"
          }
        },
        "required": [
          "icon",
          "colour"
        ],
        "type": "object"
      },
      "SavedViewLinkColumnDto": {
        "properties": {
          "direction": {
            "description": "Which links the column follows from the row: `downstream` (the row links to the item), `upstream` (the item links to the row), `up+downstream` or `cross-link`.",
            "enum": [
              "up+downstream",
              "cross-link",
              "upstream",
              "downstream"
            ],
            "type": "string"
          },
          "entityType": {
            "description": "Data type id of the linked items the column lists.",
            "type": "string"
          }
        },
        "required": [
          "entityType",
          "direction"
        ],
        "type": "object"
      },
      "SavedViewRelationshipDto": {
        "properties": {
          "childType": {
            "description": "Data type id of the items shown under each parent.",
            "type": "string"
          },
          "direction": {
            "description": "Which links the view follows from parent to child: `downstream` (the parent links to the child), `upstream` (the child links to the parent) or `both`. Defaults to `both`.",
            "enum": [
              "upstream",
              "downstream",
              "both"
            ],
            "type": "string"
          },
          "parentType": {
            "description": "Data type id of the parent.",
            "type": "string"
          }
        },
        "required": [
          "parentType",
          "childType"
        ],
        "type": "object"
      },
      "SavedViewSortDto": {
        "properties": {
          "columnId": {
            "description": "A column key as in `columns`: a field key or `<typeId>::<key>` ref; a reserved key (`name`, `__createdAt`, `__updatedAt`, `__entityType`, `__hierarchyDepth`). A linked-items column cannot be sorted by.",
            "type": "string"
          },
          "direction": {
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string"
          }
        },
        "required": [
          "columnId",
          "direction"
        ],
        "type": "object"
      },
      "SearchResultDto": {
        "properties": {
          "entity_id": {
            "type": "string"
          },
          "entity_type": {
            "type": "string"
          },
          "human_id": {
            "nullable": true,
            "type": "string"
          },
          "legacy_human_id": {
            "nullable": true,
            "type": "string"
          },
          "match": {
            "enum": [
              "semantic"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "same_text_count": {
            "type": "number"
          }
        },
        "required": [
          "entity_id",
          "name",
          "entity_type",
          "human_id",
          "legacy_human_id"
        ],
        "type": "object"
      },
      "SendMessageDto": {
        "properties": {
          "auto_accept": {
            "description": "Auto-accept mode: the agent makes changes without first presenting a plan for approval. Otherwise (the default) it proposes a plan and waits. Kept on the chat for this and every later turn; omit to keep the current mode.",
            "type": "boolean"
          },
          "branch_id": {
            "nullable": true,
            "type": "string"
          },
          "messages": {
            "description": "The next turn: one or more `{ \"role\": \"user\", \"content\": \"…\" }` messages. The agent answers in the background; poll the chat for the reply.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "sender_branch_id": {
            "description": "The sender's page branch at send time (master for Base). Records message provenance and admits that branch for this turn without moving the chat.",
            "type": "string"
          }
        },
        "required": [
          "messages"
        ],
        "type": "object"
      },
      "SendMessageResponseDto": {
        "properties": {
          "duplicate": {
            "description": "True when this exact send was already accepted earlier (a retry of a message the chat has already taken), so nothing changed and no new turn starts; `job_id` is the original send. False for a new message.",
            "type": "boolean"
          },
          "job_id": {
            "description": "Identifies this send within the chat.",
            "type": "string"
          },
          "queued": {
            "description": "False: the chat was idle and this message became a turn at once, or the send already happened (see `duplicate`). True: a turn was already running and this message runs after it finishes.",
            "type": "boolean"
          }
        },
        "required": [
          "job_id",
          "queued",
          "duplicate"
        ],
        "type": "object"
      },
      "SetAutoMergeDto": {
        "properties": {
          "enabled": {
            "description": "True to merge the branch automatically, as the caller, once every merge requirement passes; false to cancel a waiting automatic merge.",
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ],
        "type": "object"
      },
      "SetBranchOwnerDto": {
        "properties": {
          "user_id": {
            "description": "User to make the branch owner. Omit to take ownership as the caller; naming another user requires project admin.",
            "format": "uuid",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SetChangeRequestTitleDto": {
        "properties": {
          "title": {
            "type": "string"
          }
        },
        "required": [
          "title"
        ],
        "type": "object"
      },
      "SetEditorGroupsDto": {
        "properties": {},
        "type": "object"
      },
      "SetFormulaDto": {
        "properties": {
          "branchId": {
            "type": "string"
          },
          "formula": {
            "description": "Formula source in the formula DSL (e.g. `self.qty > 4`). Pass `null` to clear an existing formula on the field.",
            "nullable": true,
            "type": "string"
          },
          "key": {
            "description": "Field key to author the formula on — the same key used in the entity's `values`/`formulas` maps (not the field's display name).",
            "type": "string"
          }
        },
        "required": [
          "key",
          "formula"
        ],
        "type": "object"
      },
      "SetLiveEditsAllowedDto": {
        "properties": {},
        "type": "object"
      },
      "SetReadyForReviewDto": {
        "properties": {},
        "type": "object"
      },
      "SetRequireReviewDto": {
        "properties": {},
        "type": "object"
      },
      "SetValueDto": {
        "properties": {
          "branchId": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "value": {
            "type": "object"
          }
        },
        "required": [
          "key",
          "value"
        ],
        "type": "object"
      },
      "ShareViewBatchDto": {
        "properties": {
          "access_level": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SharedAccessLevel"
              }
            ],
            "default": "viewer",
            "description": "Capability granted for this scope. Viewer preserves v1 read-only sharing."
          },
          "branch_id": {
            "description": "Branch the grant unlocks. Use \"master\" for the base branch. Required unless `scopes` is sent.",
            "type": "string"
          },
          "branch_scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SharedBranchScope"
              }
            ],
            "default": "branch",
            "description": "How far the grants reach from branch_id: that branch alone, it plus every branch descended from it, or every branch in the project."
          },
          "expires_at": {
            "description": "ISO8601 expiry. Omit for permanent grants.",
            "nullable": true,
            "type": "string"
          },
          "project_id": {
            "description": "Project the grant is scoped to",
            "type": "string"
          },
          "recipients": {
            "description": "Recipients of the grant. Each entry is an existing user_id, an existing user_group_id, or an email; emails for unknown users trigger an external-role invite.",
            "items": {
              "$ref": "#/components/schemas/ShareViewRecipientDto"
            },
            "type": "array"
          },
          "scopes": {
            "description": "Several destinations shared in one request instead of branch_id / view_id / starting_entity_id (send one form or the other). Every recipient gets a grant for each destination, and one share email for the request.",
            "items": {
              "$ref": "#/components/schemas/ShareViewScopeDto"
            },
            "type": "array"
          },
          "starting_entity_id": {
            "description": "Entity the view should anchor to for the recipient. Required unless `scopes` is sent.",
            "type": "string"
          },
          "suppress_notification": {
            "default": false,
            "type": "boolean"
          },
          "upstream_context_path": {
            "description": "Entity ids on the path above starting_entity_id in the shared view, top first. Each is shared individually (the item alone, nothing it links to) together with this grant.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "view_id": {
            "description": "CustomView.id from the project-scoped custom-views-2 registry. Required unless `scopes` is sent.",
            "type": "string"
          }
        },
        "required": [
          "recipients",
          "project_id"
        ],
        "type": "object"
      },
      "ShareViewBatchResponseDto": {
        "properties": {
          "grants": {
            "description": "Grants created — one per unique recipient.",
            "items": {
              "$ref": "#/components/schemas/SharedAccessGrantResponseDto"
            },
            "type": "array"
          },
          "invited_user_ids": {
            "description": "Subset of recipient user ids whose User row was created by this call (i.e. the email was previously unknown).",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "grants",
          "invited_user_ids"
        ],
        "type": "object"
      },
      "ShareViewRecipientDto": {
        "properties": {
          "email": {
            "description": "Recipient email. Existing users are looked up; unknown emails are invited as Role.external in the same transaction. Mutually exclusive with user_id.",
            "type": "string"
          },
          "user_group_id": {
            "description": "Existing workspace user group receiving the grant. Mutually exclusive with user_id and email.",
            "type": "string"
          },
          "user_id": {
            "description": "Existing workspace user receiving the grant. Mutually exclusive with email.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ShareViewScopeDto": {
        "properties": {
          "branch_id": {
            "description": "Branch the grant unlocks. Use \"master\" for the base branch.",
            "type": "string"
          },
          "starting_entity_id": {
            "description": "Entity the view should anchor to for the recipient",
            "type": "string"
          },
          "upstream_context_path": {
            "description": "Entity ids on the path above starting_entity_id in the shared view, top first. Each is shared individually together with this destination.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "view_id": {
            "description": "CustomView.id from the project-scoped custom-views-2 registry",
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "view_id",
          "starting_entity_id"
        ],
        "type": "object"
      },
      "SharedAccessGrantRecipientType": {
        "enum": [
          "user",
          "user_group"
        ],
        "type": "string"
      },
      "SharedAccessGrantResponseDto": {
        "properties": {
          "access_level": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SharedAccessLevel"
              }
            ]
          },
          "branch_id": {
            "type": "string"
          },
          "branch_name": {
            "nullable": true,
            "type": "string"
          },
          "branch_scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SharedBranchScope"
              }
            ]
          },
          "branch_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SharedGrantBranchState"
              }
            ]
          },
          "context_of_grant_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "created_at": {
            "type": "string"
          },
          "created_by_id": {
            "nullable": true,
            "type": "string"
          },
          "expires_at": {
            "nullable": true,
            "type": "string"
          },
          "first_viewed_at": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "preparing": {
            "type": "boolean"
          },
          "project_id": {
            "type": "string"
          },
          "recipient_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SharedAccessGrantRecipientType"
              }
            ]
          },
          "starting_entity_id": {
            "type": "string"
          },
          "upstream_context_path_entity_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "user_email": {
            "nullable": true,
            "type": "string"
          },
          "user_group_id": {
            "nullable": true,
            "type": "string"
          },
          "user_group_name": {
            "nullable": true,
            "type": "string"
          },
          "user_id": {
            "nullable": true,
            "type": "string"
          },
          "view_id": {
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "id",
          "recipient_type",
          "user_id",
          "user_email",
          "user_group_id",
          "user_group_name",
          "project_id",
          "branch_id",
          "view_id",
          "starting_entity_id",
          "access_level",
          "branch_scope",
          "expires_at",
          "created_at",
          "created_by_id",
          "first_viewed_at",
          "preparing"
        ],
        "type": "object"
      },
      "SharedAccessLevel": {
        "enum": [
          "viewer",
          "writer"
        ],
        "type": "string"
      },
      "SharedBranchScope": {
        "enum": [
          "branch",
          "branch_and_children",
          "all_branches"
        ],
        "type": "string"
      },
      "SharedGrantBranchState": {
        "enum": [
          "open",
          "merged",
          "closed"
        ],
        "type": "string"
      },
      "SharedGrantWriteAccessResponseDto": {
        "properties": {
          "can_write": {
            "type": "boolean"
          }
        },
        "required": [
          "can_write"
        ],
        "type": "object"
      },
      "SharedSavedViewDto": {
        "properties": {
          "icon": {
            "$ref": "#/components/schemas/SavedViewIconDto"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "description": "Display order among the shared views.",
            "type": "number"
          },
          "state": {
            "additionalProperties": true,
            "description": "The view configuration: `rootType`, `relationships`, `columns`, `filters` and `sort` as written here, plus display options edited in Flow.",
            "type": "object"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "SharedSavedViewsResponseDto": {
        "properties": {
          "views": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "required": [
          "views"
        ],
        "type": "object"
      },
      "SidebarNotificationsEnabledResponseDto": {
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ],
        "type": "object"
      },
      "StageGateStatusResponseDto": {
        "properties": {
          "can_block_merge": {
            "type": "boolean"
          },
          "evaluated_entity_count": {
            "type": "number"
          },
          "evaluation_complete": {
            "type": "boolean"
          },
          "item_reviewer_groups": {
            "items": {
              "$ref": "#/components/schemas/ItemReviewerGroupDto"
            },
            "type": "array"
          },
          "item_reviewers": {
            "items": {
              "$ref": "#/components/schemas/ItemReviewerDto"
            },
            "type": "array"
          },
          "not_ready_reason": {
            "enum": [
              "projection_warming"
            ],
            "type": "string"
          },
          "progress_percent": {
            "type": "number"
          },
          "review_policy_blocker_count": {
            "type": "number"
          },
          "review_policy_blockers": {
            "items": {
              "$ref": "#/components/schemas/ReviewPolicyBlockerDto"
            },
            "type": "array"
          },
          "review_policy_blockers_truncated": {
            "type": "boolean"
          },
          "reviewer_groups": {
            "items": {
              "$ref": "#/components/schemas/StageReviewerGroupDto"
            },
            "type": "array"
          },
          "stage_reviewers": {
            "items": {
              "$ref": "#/components/schemas/StageReviewerDto"
            },
            "type": "array"
          },
          "total_entity_count": {
            "type": "number"
          },
          "violations": {
            "items": {
              "$ref": "#/components/schemas/StageGateViolationDto"
            },
            "type": "array"
          },
          "violations_truncated": {
            "type": "boolean"
          }
        },
        "required": [
          "violations",
          "violations_truncated",
          "item_reviewers",
          "stage_reviewers",
          "reviewer_groups",
          "item_reviewer_groups",
          "evaluation_complete",
          "review_policy_blockers",
          "review_policy_blocker_count",
          "review_policy_blockers_truncated",
          "progress_percent",
          "evaluated_entity_count",
          "total_entity_count"
        ],
        "type": "object"
      },
      "StageGateViolationDto": {
        "properties": {
          "approvals_needed": {
            "type": "number"
          },
          "deletes_entity": {
            "type": "boolean"
          },
          "entity_id": {
            "type": "string"
          },
          "entity_name": {
            "type": "string"
          },
          "from_stage": {
            "type": "string"
          },
          "gate_direction": {
            "enum": [
              "in",
              "out"
            ],
            "type": "string"
          },
          "gate_stage": {
            "type": "string"
          },
          "has_reviewer_groups": {
            "type": "boolean"
          },
          "kind": {
            "enum": [
              "multi_step",
              "no_reviewers",
              "missing_approvals",
              "forbidden_transition",
              "locked"
            ],
            "type": "string"
          },
          "pending_reviewer_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "to_stage": {
            "type": "string"
          },
          "unavailable_reviewer_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "entity_id",
          "entity_name",
          "kind",
          "from_stage",
          "to_stage",
          "pending_reviewer_ids",
          "unavailable_reviewer_ids",
          "approvals_needed"
        ],
        "type": "object"
      },
      "StageReviewerDto": {
        "properties": {
          "is_available": {
            "type": "boolean"
          },
          "is_designated": {
            "type": "boolean"
          },
          "is_individual": {
            "type": "boolean"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/StageReviewerSourceDto"
            },
            "type": "array"
          },
          "sources_truncated": {
            "type": "boolean"
          },
          "user_id": {
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "is_designated"
        ],
        "type": "object"
      },
      "StageReviewerGroupDto": {
        "properties": {
          "available_member_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "gate_rigour": {
            "enum": [
              "any",
              "all"
            ],
            "type": "string"
          },
          "group_id": {
            "type": "string"
          },
          "member_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/StageReviewerSourceDto"
            },
            "type": "array"
          },
          "sources_truncated": {
            "type": "boolean"
          }
        },
        "required": [
          "group_id",
          "member_ids",
          "available_member_ids",
          "gate_rigour"
        ],
        "type": "object"
      },
      "StageReviewerSourceDto": {
        "properties": {
          "entity_id": {
            "type": "string"
          },
          "entity_name": {
            "type": "string"
          },
          "from_stage": {
            "type": "string"
          },
          "to_stage": {
            "type": "string"
          }
        },
        "required": [
          "entity_id",
          "entity_name",
          "from_stage",
          "to_stage"
        ],
        "type": "object"
      },
      "StartImportRunDto": {
        "properties": {
          "fileIds": {
            "description": "Ids of the uploaded files to read. PDFs are split page by page, images are read whole; any other file type is refused.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "fileIds"
        ],
        "type": "object"
      },
      "SubmitReviewDto": {
        "properties": {
          "comment": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "status": {
            "enum": [
              "Approved",
              "Rejected"
            ],
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "SubscribersDto": {
        "properties": {
          "user_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "user_ids"
        ],
        "type": "object"
      },
      "SubscriptionStatusDto": {
        "properties": {
          "subscribed": {
            "type": "boolean"
          }
        },
        "required": [
          "subscribed"
        ],
        "type": "object"
      },
      "TldrawSnapshotToXmlDto": {
        "properties": {
          "name": {
            "description": "Optional diagram name used as the root <diagram name=\"...\"> attribute.",
            "type": "string"
          },
          "snapshot": {
            "additionalProperties": true,
            "description": "A tldraw StoreSnapshot JSON object (`{ store, schema }`) as returned by `editor.store.getStoreSnapshot()` or the `/convert/drawio-to-tldraw` endpoint.",
            "type": "object"
          }
        },
        "required": [
          "snapshot"
        ],
        "type": "object"
      },
      "TriggerBranchDto": {
        "properties": {
          "branch_id": {
            "type": "string"
          },
          "checks_only": {
            "type": "boolean"
          },
          "project_id": {
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "TriggerBranchRerunDto": {
        "properties": {
          "automation_id": {
            "type": "string"
          },
          "branch_id": {
            "type": "string"
          },
          "failing_checks_only": {
            "type": "boolean"
          },
          "project_id": {
            "type": "string"
          }
        },
        "required": [
          "branch_id"
        ],
        "type": "object"
      },
      "TriggerGenericDto": {
        "properties": {
          "context": {
            "type": "object"
          },
          "project_id": {
            "type": "string"
          },
          "source": {
            "description": "The automation trigger source to fire. One of the built-in sources (branch, endpoint, import, schedule, slack, github, github_merged, gitlab, gitlab_merged, bitbucket, onshape, teamcenter, project_activity), or the name given to an automation's custom webhook trigger.",
            "type": "string"
          },
          "wait": {
            "default": false,
            "description": "Whether to hold the request open until every matched automation has finished running. Defaults to false: the runs start, the response is 202 with one run id each, and you read results from GET /ai/trigger/runs. Pass true only when the caller genuinely cannot poll — it makes response time the sum of the runs, an agent run has no time bound, and the request dies on the shortest timeout between you and this API (our load balancer cuts an idle connection at 60s), which loses the response while the runs themselves carry on.",
            "type": "boolean"
          }
        },
        "required": [
          "source",
          "context"
        ],
        "type": "object"
      },
      "TriggerGitHubDto": {
        "properties": {
          "action": {
            "type": "string"
          },
          "base_branch": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "diff": {
            "type": "string"
          },
          "head_branch": {
            "type": "string"
          },
          "pr_number": {
            "type": "number"
          },
          "project_id": {
            "type": "string"
          },
          "repo": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "wait": {
            "default": false,
            "description": "Whether to hold the request open until every matched automation has finished running. Defaults to false: the runs start, the response is 202 with one run id each, and you read results from GET /ai/trigger/runs. Pass true only when the caller genuinely cannot poll — it makes response time the sum of the runs, an agent run has no time bound, and the request dies on the shortest timeout between you and this API (our load balancer cuts an idle connection at 60s), which loses the response while the runs themselves carry on.",
            "type": "boolean"
          }
        },
        "required": [
          "repo",
          "pr_number",
          "title",
          "action",
          "diff"
        ],
        "type": "object"
      },
      "TriggerResponseDto": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/TriggerResultItemDto"
            },
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "type": "object"
      },
      "TriggerResultItemDto": {
        "properties": {
          "agent_id": {
            "type": "string"
          },
          "agent_name": {
            "nullable": true,
            "type": "string"
          },
          "automation_id": {
            "type": "string"
          },
          "automation_name": {
            "type": "string"
          },
          "branches": {
            "default": [],
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "error": {
            "nullable": true,
            "type": "string"
          },
          "integration_grade": {
            "nullable": true,
            "type": "string"
          },
          "integration_response": {
            "nullable": true,
            "type": "string"
          },
          "project_id": {
            "type": "string"
          },
          "project_slug": {
            "nullable": true,
            "type": "string"
          },
          "status": {
            "enum": [
              "running",
              "completed",
              "failed"
            ],
            "type": "string"
          }
        },
        "required": [
          "agent_id",
          "status",
          "automation_id",
          "automation_name",
          "integration_response",
          "integration_grade",
          "branches",
          "project_slug",
          "project_id",
          "error"
        ],
        "type": "object"
      },
      "UnreadCountDto": {
        "properties": {
          "count": {
            "description": "Unread count, capped at limit when requested",
            "type": "number"
          }
        },
        "required": [
          "count"
        ],
        "type": "object"
      },
      "UpdateAgentDefinitionDto": {
        "properties": {
          "avatarColor": {
            "enum": [
              "primary",
              "red",
              "amber",
              "lime",
              "emerald",
              "sky",
              "blue",
              "indigo",
              "violet",
              "fuchsia",
              "gray",
              "black"
            ],
            "type": "string"
          },
          "avatarRatio": {
            "enum": [
              "1:1",
              "1:2",
              "2:1",
              "2:3",
              "1:3",
              "3:1"
            ],
            "type": "string"
          },
          "avatarShape": {
            "enum": [
              "square",
              "squircle",
              "circle",
              "pill",
              "diamond",
              "triangle",
              "pentagon",
              "hexagon",
              "octagon",
              "shield",
              "scallop",
              "blob",
              "drop",
              "star"
            ],
            "type": "string"
          },
          "description": {
            "description": "What the agent is for, in markdown, shown to people; the brief the agent follows on every turn. Blank clears it.",
            "nullable": true,
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "description": "A one-line role shown under the name, such as \"Thermal reviewer\". Blank clears it.",
            "nullable": true,
            "type": "string"
          },
          "suggestOnly": {
            "type": "boolean"
          },
          "triggers": {
            "description": "The agent's automations, written whole: each one a name, an enabled switch, automation triggers and the prompt a firing hands the agent. Firing one starts a side chat with the agent, as the agent, with that prompt.",
            "items": {
              "$ref": "#/components/schemas/AgentTriggerInputDto"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "UpdateAutomationDto": {
        "properties": {
          "advisory": {
            "description": "Branch checks: report the verdict without blocking the merge. Defaults to false.",
            "type": "boolean"
          },
          "allowAdminTools": {
            "description": "Let runs keep the admin-only data-model, saved-view and template tools, honored only while the user it runs as is a project admin. Can't be turned on with an API key; turn it on in Flow.",
            "type": "boolean"
          },
          "branchPerRun": {
            "description": "Whether every run opens its own branch. Defaults to false: runs on the same target branch collect their changes on one branch until it is merged or closed.",
            "type": "boolean"
          },
          "confirmBeforeExecute": {
            "description": "Branch-review triggers: whether the agent presents a plan for approval before writing. Defaults to true.",
            "type": "boolean"
          },
          "enabled": {
            "description": "Whether the automation runs at all, in either mode: off, no trigger, schedule or hand launch starts a run. Defaults to true.",
            "type": "boolean"
          },
          "invalidateOn": {
            "description": "Branch-review automations: the comment events after which the last result is out of date, beyond a data change (a check reruns, an agent run is offered for re-running): comment_set_changed, comment_resolution_changed, comment_text_changed. Omit to declare none on create; on update, omit to keep the current declaration and send [] to clear it. An Agent-mode automation cannot declare comment_set_changed: its own comments would mark its run out of date.",
            "items": {
              "enum": [
                "comment_set_changed",
                "comment_resolution_changed",
                "comment_text_changed"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "mode": {
            "description": "What runs: `agent` (the default) follows `prompt`; `script` runs `script` and needs the automation scripts beta.",
            "enum": [
              "agent",
              "script"
            ],
            "type": "string"
          },
          "name": {
            "example": "Nightly orphan check",
            "type": "string"
          },
          "prompt": {
            "description": "The instructions an agent automation follows. Required in agent mode.",
            "type": "string"
          },
          "runAsMe": {
            "description": "Confirms that this automation should run as you from now on. Required when you are not its current writer and the edit changes what it runs, or how and when it runs. Renaming it, disabling it or turning off admin tools never changes whom it runs as. Sent with no other change, it only makes you the writer.",
            "type": "boolean"
          },
          "runNotifications": {
            "description": "Whether finished runs notify the person a run executes as. `findings` (the default) notifies when a run fails, changes an item, or raises, updates or resolves a finding. `off` never notifies. A hand-launched run always reports back.",
            "enum": [
              "off",
              "findings"
            ],
            "type": "string"
          },
          "scope": {
            "description": "Which list this write is to. Required, as `\"personal\"`, when the request has `scope=personal`; optional for the project's list. Must agree with the `scope` query.",
            "enum": [
              "project",
              "personal"
            ],
            "type": "string"
          },
          "script": {
            "description": "The python a script automation runs. Required in script mode.",
            "type": "string"
          },
          "scriptCategoryReferenceMode": {
            "description": "Category references used by script tools. Omit for legacy stable IDs.",
            "enum": [
              "display-name",
              "stable-id"
            ],
            "type": "string"
          },
          "scriptTimeoutSeconds": {
            "description": "Script automations: how many seconds one run may take before it is stopped. Omit for the workspace default; the workspace cap bounds it (the error names the cap). A run always holds one executor slot within its project's share, however long it may run.",
            "type": "number"
          },
          "suggestOnly": {
            "description": "Whether runs only suggest: they read everything, raise findings and comment on the items they concern, but change no item, field, link or branch. Defaults to false.",
            "type": "boolean"
          },
          "trigger": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AutomationTriggerDto"
              }
            ],
            "description": "The first trigger. Without `triggers`, it replaces only the first trigger and keeps the others; null removes the trigger of an automation that has at most one. With `triggers`, it must be equal to the first entry.",
            "nullable": true,
            "type": "object"
          },
          "triggers": {
            "description": "Every trigger, in order; replaces the whole list. The automation runs when any of them fires. Send [] for an automation that is only run by hand. A script with a branch trigger runs as a read-only branch check when its branch is reviewed; its other triggers run it as an ordinary script.",
            "items": {
              "$ref": "#/components/schemas/AutomationTriggerDto"
            },
            "maxItems": 20,
            "type": "array"
          },
          "writeBranchId": {
            "description": "The branch every run writes on (`master` for Base), whatever its trigger names; a change-request review trigger still works on the change request under review. Base or a variant takes the writes directly only while it allows edits to live, and an unprotected change request always does; otherwise runs use a change request under it. Absent: triggered runs use a change request (see `branchPerRun`) and hand-launched runs write where they are launched.",
            "nullable": true,
            "type": "object"
          }
        },
        "type": "object"
      },
      "UpdateBranchDescriptionDto": {
        "properties": {
          "content": {
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "content"
        ],
        "type": "object"
      },
      "UpdateFlowMdDto": {
        "properties": {
          "content": {
            "description": "The full Flow.md markdown content",
            "type": "string"
          }
        },
        "required": [
          "content"
        ],
        "type": "object"
      },
      "UpdateNotificationPreferenceItemDto": {
        "properties": {
          "email_enabled": {
            "type": "boolean"
          },
          "event_type": {
            "enum": [
              "UserInvited",
              "ReviewAssigned",
              "ReviewSubmitted",
              "ReviewStale",
              "RequirementBroken",
              "CommentMention",
              "EntityChanged",
              "CommentReply",
              "CommentResolved",
              "BranchReadyForReview",
              "BranchMerged",
              "BranchOwnerChanged",
              "ShareViewOpened",
              "ViewShared",
              "AutomationRunFinished",
              "AgentChatFinished",
              "AgentChatNeedsInput",
              "AutomationActivity",
              "AutomationItemsChanged",
              "WatcherFindingRaised",
              "AutomationNotification"
            ],
            "type": "string"
          },
          "in_app_enabled": {
            "type": "boolean"
          },
          "slack_enabled": {
            "type": "boolean"
          },
          "toast_enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "event_type",
          "email_enabled"
        ],
        "type": "object"
      },
      "UpdateNotificationPreferencesDto": {
        "properties": {
          "preferences": {
            "items": {
              "$ref": "#/components/schemas/UpdateNotificationPreferenceItemDto"
            },
            "type": "array"
          }
        },
        "required": [
          "preferences"
        ],
        "type": "object"
      },
      "UpdateProjectDto": {
        "properties": {
          "ai_model": {
            "description": "Default AI model identifier for this project",
            "type": "string"
          },
          "name": {
            "description": "New display name for the project",
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpdateReviewPolicyDto": {
        "properties": {
          "allow_auto_merge": {
            "type": "boolean"
          },
          "allow_merge_override": {
            "type": "boolean"
          },
          "changed_item_review_enabled": {
            "type": "boolean"
          },
          "changed_item_review_fields": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "merge_override_role": {
            "enum": [
              "admins",
              "admins_and_parent_branch_owners"
            ],
            "type": "string"
          },
          "min_approvals": {
            "maximum": 20,
            "minimum": 1,
            "type": "number"
          },
          "min_approvals_enabled": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "UpdateSharedSavedViewDto": {
        "properties": {
          "columns": {
            "description": "Table columns, in order. Replaces every column; [] leaves the view on the default columns. Stored as `state.columns`. null clears them too.",
            "items": {
              "$ref": "#/components/schemas/SavedViewColumnDto"
            },
            "nullable": true,
            "type": "array"
          },
          "filters": {
            "allOf": [
              {
                "properties": {
                  "nodes": {
                    "items": {
                      "anyOf": [
                        {
                          "additionalProperties": false,
                          "properties": {
                            "id": {
                              "description": "Any string unique within the expression; Flow assigns one when omitted.",
                              "minLength": 1,
                              "type": "string"
                            },
                            "kind": {
                              "enum": [
                                "group"
                              ],
                              "type": "string"
                            },
                            "nodes": {
                              "description": "The same leaves as the top level; groups may nest.",
                              "items": {},
                              "type": "array"
                            },
                            "operator": {
                              "enum": [
                                "and",
                                "or"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "operator",
                            "nodes"
                          ],
                          "type": "object"
                        },
                        {
                          "anyOf": [
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "description": "Value-agnostic presence check; supply no value operand.",
                                  "enum": [
                                    "isPopulated",
                                    "isEmpty"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "tag",
                                    "stage",
                                    "verificationResult",
                                    "text",
                                    "richText",
                                    "number",
                                    "date",
                                    "user"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "tags": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "type": {
                                  "enum": [
                                    "tag",
                                    "stage",
                                    "verificationResult"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation",
                                "tags"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "equals",
                                    "notEquals",
                                    "contains",
                                    "notContains",
                                    "startsWith",
                                    "endsWith"
                                  ],
                                  "type": "string"
                                },
                                "text": {
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "text",
                                    "richText"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation",
                                "text"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "equals",
                                    "notEquals",
                                    "greaterThan",
                                    "greaterThanOrEqual",
                                    "lessThan",
                                    "lessThanOrEqual",
                                    "between"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "number"
                                  ],
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string"
                                },
                                "valueTo": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation",
                                "value"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "date": {
                                  "nullable": true,
                                  "type": "string"
                                },
                                "dateTo": {
                                  "nullable": true,
                                  "type": "string"
                                },
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "on",
                                    "before",
                                    "after",
                                    "between"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "date"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation",
                                "date"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "date": {
                                  "nullable": true,
                                  "type": "string"
                                },
                                "dateTo": {
                                  "nullable": true,
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "on",
                                    "before",
                                    "after",
                                    "between",
                                    "within",
                                    "notWithin"
                                  ],
                                  "type": "string"
                                },
                                "range": {
                                  "description": "For within / notWithin: the rolling window ending now — the last 24 hours, 7, 30 or 90 days.",
                                  "enum": [
                                    "day",
                                    "week",
                                    "month",
                                    "quarter"
                                  ],
                                  "nullable": true,
                                  "type": "string"
                                },
                                "timestamp": {
                                  "description": "Which lifecycle instant to compare: when the item was created, or when it last changed (any field or link edit visible on this branch).",
                                  "enum": [
                                    "createdAt",
                                    "updatedAt"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "timestamp"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "timestamp",
                                "operation",
                                "date"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "isTrue",
                                    "isFalse"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "toggle"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "user"
                                  ],
                                  "type": "string"
                                },
                                "userIds": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "operation",
                                "userIds"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "type"
                                  ],
                                  "type": "string"
                                },
                                "typeIds": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                }
                              },
                              "required": [
                                "type",
                                "operation",
                                "typeIds"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "type": "string"
                                },
                                "fieldType": {
                                  "enum": [
                                    "jira",
                                    "teamcenter",
                                    "linear",
                                    "googleDoc",
                                    "googleSheet",
                                    "aodocsDoc",
                                    "file",
                                    "cadFile"
                                  ],
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "isPopulated",
                                    "isEmpty"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "presence"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "fieldId",
                                "fieldType",
                                "operation"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "changedInBranch"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "operation"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "isPopulated",
                                    "isEmpty"
                                  ],
                                  "type": "string"
                                },
                                "resolved": {
                                  "enum": [
                                    "open",
                                    "resolved"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "hasComments"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "operation"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "resolved": {
                                  "enum": [
                                    "open",
                                    "resolved"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "commentBy"
                                  ],
                                  "type": "string"
                                },
                                "userIds": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                }
                              },
                              "required": [
                                "type",
                                "operation",
                                "userIds"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "contains",
                                    "notContains"
                                  ],
                                  "type": "string"
                                },
                                "resolved": {
                                  "enum": [
                                    "open",
                                    "resolved"
                                  ],
                                  "type": "string"
                                },
                                "text": {
                                  "maxLength": 1000,
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "commentText"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "operation",
                                "text"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "fieldId": {
                                  "nullable": true,
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "resolved": {
                                  "enum": [
                                    "open",
                                    "resolved"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "commentField"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "operation",
                                "fieldId"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "matches"
                                  ],
                                  "type": "string"
                                },
                                "text": {
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "search"
                                  ],
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "operation",
                                "text"
                              ],
                              "type": "object"
                            },
                            {
                              "additionalProperties": false,
                              "properties": {
                                "direction": {
                                  "description": "Which links count: `upstream` (inbound), `downstream` (outbound), `up+downstream`, or `cross-link`. Omit to count a link of any kind — inbound, outbound and cross-link alike — which is also what the view toolbar does with no direction set.",
                                  "enum": [
                                    "upstream",
                                    "downstream",
                                    "up+downstream",
                                    "cross-link"
                                  ],
                                  "type": "string"
                                },
                                "entityId": {
                                  "default": null,
                                  "nullable": true,
                                  "type": "string"
                                },
                                "id": {
                                  "description": "Any string unique within the expression; Flow assigns one when omitted.",
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "operation": {
                                  "enum": [
                                    "overlaps",
                                    "excludes"
                                  ],
                                  "type": "string"
                                },
                                "targetKind": {
                                  "description": "Whether the target is one entity (`entityId`) or any entity of a type (`typeId`). Inferred from which id is given when omitted.",
                                  "enum": [
                                    "entity",
                                    "type"
                                  ],
                                  "type": "string"
                                },
                                "type": {
                                  "enum": [
                                    "linkedTo"
                                  ],
                                  "type": "string"
                                },
                                "typeId": {
                                  "default": null,
                                  "description": "Entity-type reference for \"linked to any entity of this type\"; use the category form required by the calling tool.",
                                  "nullable": true,
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "operation"
                              ],
                              "type": "object"
                            }
                          ]
                        }
                      ]
                    },
                    "type": "array"
                  },
                  "operator": {
                    "enum": [
                      "and",
                      "or"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "operator",
                  "nodes"
                ],
                "type": "object"
              }
            ],
            "description": "Conditions every item the view shows must meet, joined by `operator`; a `group` node joins its own `nodes` with its own operator. Each leaf's `type` is the FIELD'S DATA TYPE (`tag`, `stage`, `verificationResult`, `text`, `richText`, `number`, `date`, `toggle`, `user`, `presence`) with `fieldId` a field key from the categories endpoint (or `<typeId>::<key>`), or a structural condition (`type`, `linkedTo`, `timestamp`, `changedInBranch`, the comment conditions). Tag, stage and verification values are option NAMES; user values are user ids; type ids are data type ids. Unknown fields, options, types or operations answer 400 and nothing is saved. Example — Status is Triage: {\"operator\":\"and\",\"nodes\":[{\"type\":\"tag\",\"fieldId\":\"status\",\"operation\":\"overlaps\",\"tags\":[\"Triage\"]}]}. Stored as `state.filters`. null clears them.",
            "nullable": true
          },
          "icon": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SavedViewIconDto"
              }
            ],
            "description": "null removes the icon.",
            "nullable": true,
            "type": "object"
          },
          "name": {
            "type": "string"
          },
          "relationships": {
            "description": "Nesting rules, in order: under each `parentType`, show items of `childType`. Replaces every rule; send [] to remove them all. Stored as `state.relationships`.",
            "items": {
              "$ref": "#/components/schemas/SavedViewRelationshipDto"
            },
            "type": "array"
          },
          "rootType": {
            "description": "Data type id of the items the view starts from (its \"Start type\"). Stored as `state.rootType`. null clears it.",
            "nullable": true,
            "type": "object"
          },
          "sort": {
            "description": "Ordered sort keys, the first most significant. Replaces the whole sort; send [] for the natural order. Stored as `state.sort`. null clears it.",
            "items": {
              "$ref": "#/components/schemas/SavedViewSortDto"
            },
            "nullable": true,
            "type": "array"
          }
        },
        "type": "object"
      },
      "UpdateUpstreamContextDto": {
        "properties": {
          "upstream_context_path": {
            "description": "The path above the shared item as the sharer sees it now, top first. Individual item shares are added and removed so the share shows exactly this path; an empty list removes the path.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "upstream_context_path"
        ],
        "type": "object"
      },
      "UpdateUserGroupDto": {
        "properties": {
          "external_provider": {
            "nullable": true,
            "type": "string"
          },
          "external_role": {
            "nullable": true,
            "type": "string"
          },
          "member_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "UpdateUserNameDto": {
        "properties": {
          "family_name": {
            "description": "Use an empty string for a user without a family name.",
            "example": "Lovelace",
            "maxLength": 255,
            "type": "string"
          },
          "given_name": {
            "example": "Ada",
            "maxLength": 255,
            "type": "string"
          }
        },
        "required": [
          "given_name",
          "family_name"
        ],
        "type": "object"
      },
      "UpdateVariantsEnabledDto": {
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ],
        "type": "object"
      },
      "UpdatedVariantViewEnabledResponseDto": {
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ],
        "type": "object"
      },
      "UpsertEntityDto": {
        "properties": {
          "entityType": {
            "description": "Entity type (e.g. \"task\", \"bug\"). Must match an existing type in the schema.",
            "type": "string"
          },
          "id": {
            "description": "Entity ID (UUID). Must be unique within the project.",
            "type": "string"
          },
          "idField": {
            "description": "Optional field key to match `id` against instead of treating `id` as the Flow entity id. When set, `id` is interpreted as an external identifier and matched against the current value of this field across existing entities on the branch: a match reuses that entity, a miss creates a new one with a freshly generated Flow id. This decouples the Flow entity id from any one external field (e.g. match on a custom \"ReqIF ID\" field). Omit (or leave the field empty) to keep the default behaviour where `id` is the Flow entity id verbatim.",
            "type": "string"
          },
          "parentIds": {
            "description": "Optional list of parent entity IDs. For each parent, a downstream link is created from that parent to this entity if one does not already exist. Existing upstream links that are not listed here are left untouched.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "values": {
            "description": "Key-value pairs to compare and write. Only keys whose values differ from the stored state will produce diffs.",
            "type": "object"
          }
        },
        "required": [
          "id",
          "entityType",
          "values"
        ],
        "type": "object"
      },
      "UserDto": {
        "properties": {
          "cognito_id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "family_name": {
            "type": "string"
          },
          "given_name": {
            "type": "string"
          },
          "has_profile_picture": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "is_bot": {
            "type": "boolean"
          },
          "role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Role"
              }
            ]
          }
        },
        "required": [
          "id",
          "email",
          "given_name",
          "family_name"
        ],
        "type": "object"
      },
      "UserGroupResponseDto": {
        "properties": {
          "external_provider": {
            "nullable": true,
            "type": "string"
          },
          "external_role": {
            "nullable": true,
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "member_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "scim_managed": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "member_ids",
          "external_role",
          "external_provider",
          "scim_managed"
        ],
        "type": "object"
      },
      "UserPageDto": {
        "properties": {
          "has_more": {
            "type": "boolean"
          },
          "next_offset": {
            "type": "number"
          },
          "users": {
            "items": {
              "$ref": "#/components/schemas/UserDto"
            },
            "type": "array"
          }
        },
        "required": [
          "users",
          "has_more",
          "next_offset"
        ],
        "type": "object"
      },
      "UserWithPermissionsDto": {
        "properties": {
          "custom_agents_enabled": {
            "type": "boolean"
          },
          "deactivated_at": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "family_name": {
            "type": "string"
          },
          "given_name": {
            "type": "string"
          },
          "has_profile_picture": {
            "type": "boolean"
          },
          "has_signed_in": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "is_bot": {
            "type": "boolean"
          },
          "project_access": {
            "$ref": "#/components/schemas/ProjectAccessSummaryDto"
          },
          "provisioned_at": {
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "provisioned_via_provider": {
            "nullable": true,
            "type": "string"
          },
          "role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Role"
              }
            ]
          }
        },
        "required": [
          "id",
          "email",
          "given_name",
          "family_name",
          "role",
          "provisioned_via_provider",
          "provisioned_at",
          "deactivated_at",
          "has_signed_in",
          "project_access"
        ],
        "type": "object"
      },
      "VariantsEnabledResponseDto": {
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "api-key": {
        "in": "header",
        "name": "X-API-Key",
        "type": "apiKey"
      },
      "bearer": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "contact": {},
    "description": "Flow customer API reference. Start with the [quickstart](/api/quickstart) and [authentication guide](/api/authentication).",
    "title": "Customer API",
    "version": "1.0.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/ai/agents": {
      "get": {
        "description": "Every chat the caller created or may see, as summaries without their transcripts. Filter by `projectId`, `branchId` or `visibility`; page with `cursor` and `nextCursor`.",
        "operationId": "AgentChatController_list",
        "parameters": [
          {
            "in": "query",
            "name": "visibility",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Opaque keyset cursor for chat history. Use 0 for the first page, then pass nextCursor while moreAvailable is true.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Legacy offset pagination. New clients should use cursor so deep pages do not require scanning every preceding row.",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "configId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "persistentAgentId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "triggerType",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "projectId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "branchId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Pass true to list archived chats instead of active ones. Omitted, only active chats are returned.",
            "in": "query",
            "name": "archived",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Ordering. 'updated' (default) walks the row's last write; 'lastUserMessage' walks when its owner last sent a message, which does not reshuffle while a run streams.",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "enum": [
                "updated",
                "lastUserMessage"
              ],
              "type": "string"
            }
          },
          {
            "description": "Pass true to list only the saved-automation runs the caller launched by hand, in place of triggerType. Runs started by other people, schedules or integrations are never listed.",
            "in": "query",
            "name": "ownAutomationRuns",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only chats started to address this comment or respond to its agent mention.",
            "in": "query",
            "name": "commentId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Pass true to list only chats addressed to a custom agent (any agent). Use persistentAgentId for one agent.",
            "in": "query",
            "name": "withPersistentAgent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Pass true to leave out conversations with a custom agent, which are reached from the agent itself. Cannot be combined with persistentAgentId or withPersistentAgent.",
            "in": "query",
            "name": "excludePersistentAgentChats",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "mainChatId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only the side chats started from a message of this chat that the caller may see.",
            "in": "query",
            "name": "forkedFromChatId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Pass true with forkedFromChatId to also list the agent tasks and agent conversations under that chat or under its custom agent's shared main.",
            "in": "query",
            "name": "linkedChats",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentChatListDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List the agent chats visible to the caller, newest first",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "content": "Every chat the caller created or may see, as summaries without their transcripts. Filter by `projectId`, `branchId` or `visibility`; page with `cursor` and `nextCursor`.",
          "href": "/api/endpoints/get-ai-agents",
          "metadata": {
            "description": "Lists the agent chats you created or can see, as summaries without transcripts.",
            "sidebarTitle": "List the agent chats visible to the caller, newest first",
            "title": "List the agent chats visible to the caller, newest first"
          }
        }
      },
      "post": {
        "description": "Creates the chat and, when `messages` is given, starts the agent on it. Answers as soon as the chat exists — its `status` is `streaming` while the agent works and `ready` once it has answered — unless `wait: true` holds the request until the opening turn has finished. Poll GET /ai/trigger/runs?agent_ids={id} (the same poll as for an automation run) or GET /ai/agents/{id} for the transcript.",
        "operationId": "AgentChatController_create",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentChatDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentChatResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Start an agent chat on a project (and optionally a branch) with an opening message",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "content": "Creates the chat and, when `messages` is given, starts the agent on it. Answers as soon as the chat exists — its `status` is `streaming` while the agent works and `ready` once it has answered — unless `wait: true` holds the request until the opening turn has finished. Poll GET /ai/trigger/runs?agent_ids=&#123;id&#125; (the same poll as for an automation run) or GET /ai/agents/&#123;id&#125; for the transcript.",
          "href": "/api/endpoints/post-ai-agents",
          "metadata": {
            "description": "Creates an agent chat and, when you include messages, starts the agent on them.",
            "sidebarTitle": "Start an agent chat on a project (and optionally a branch) with an opening message",
            "title": "Start an agent chat on a project (and optionally a branch) with an opening message"
          }
        }
      }
    },
    "/ai/agents/{id}": {
      "get": {
        "description": "`messages` is the whole transcript unless messageLimit requests a latest-first page. `status` is `streaming` while a turn runs, `ready` when the agent has answered, or `error` (with `error` set) when the last turn failed.",
        "operationId": "AgentChatController_findById",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "messageLimit",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "beforeMessageId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentChatResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Read an agent chat: its transcript, status and outcome",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "content": "`messages` is the whole transcript unless messageLimit requests a latest-first page. `status` is `streaming` while a turn runs, `ready` when the agent has answered, or `error` (with `error` set) when the last turn failed.",
          "href": "/api/endpoints/get-ai-agents-id",
          "metadata": {
            "description": "Returns an agent chat's full transcript with its current status.",
            "sidebarTitle": "Read an agent chat: its transcript, status and outcome",
            "title": "Read an agent chat: its transcript, status and outcome"
          }
        }
      }
    },
    "/ai/agents/{id}/messages": {
      "post": {
        "description": "Queues the message and starts the agent on it as soon as the chat is idle. With `queued: false` the turn has started: poll GET /ai/trigger/runs?agent_ids={id} until the run is not `running`, then GET /ai/agents/{id}. With `queued: true` an earlier turn is still running and the run status finishes for that turn first, so poll GET /ai/agents/{id} until the reply to this message is in the transcript (or PATCH /ai/agents/{id}/messages/{job_id} with `delivery: \"live\"` so the running turn reads it at its next step). With `duplicate: true` this exact send already happened: `job_id` is the original send, nothing changed and there is no new turn to wait for.",
        "operationId": "AgentChatController_sendMessage",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendMessageDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendMessageResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Send a follow-up message to an agent chat",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "content": "Queues the message and starts the agent on it as soon as the chat is idle. With `queued: false` the turn has started: poll GET /ai/trigger/runs?agent_ids=&#123;id&#125; until the run is not `running`, then GET /ai/agents/&#123;id&#125;. With `queued: true` an earlier turn is still running and the run status finishes for that turn first, so poll GET /ai/agents/&#123;id&#125; until the reply to this message is in the transcript (or PATCH /ai/agents/&#123;id&#125;/messages/&#123;job_id&#125; with `delivery: \"live\"` so the running turn reads it at its next step). With `duplicate: true` this exact send already happened: `job_id` is the original send, nothing changed and there is no new turn to wait for.",
          "href": "/api/endpoints/post-ai-agents-id-messages",
          "metadata": {
            "description": "Queues a message and starts the agent on it as soon as the chat is idle.",
            "sidebarTitle": "Send a follow-up message to an agent chat",
            "title": "Send a follow-up message to an agent chat"
          }
        }
      }
    },
    "/ai/agents/{id}/messages/{jobId}": {
      "patch": {
        "description": "Changes the delivery of a message still waiting in the queue. `live`: the running turn reads it at its next step, before finishing its current work, when that turn is yours (same person and role); otherwise it waits like the default. `eventually` (the default of every send): it waits for the running turn to end and runs as the next turn. A message set to move the chat to another branch cannot be `live`, because a live message never moves the chat (400). A message that has already started into a turn is left as it is.",
        "operationId": "AgentChatController_setQueuedMessageDelivery",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueuedMessageDeliveryDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Queued message delivery set"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Set how a queued message reaches the running turn",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "content": "Changes the delivery of a message still waiting in the queue. `live`: the running turn reads it at its next step, before finishing its current work, when that turn is yours (same person and role); otherwise it waits like the default. `eventually` (the default of every send): it waits for the running turn to end and runs as the next turn. A message set to move the chat to another branch cannot be `live`, because a live message never moves the chat (400). A message that has already started into a turn is left as it is.",
          "href": "/api/endpoints/patch-ai-agents-id-messages-jobid",
          "metadata": {
            "description": "Chooses whether a queued message joins the running turn or waits for the next one.",
            "sidebarTitle": "Set how a queued message reaches the running turn",
            "title": "Set how a queued message reaches the running turn"
          }
        }
      }
    },
    "/ai/trigger": {
      "post": {
        "operationId": "AutomationTriggerController_triggerGeneric",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TriggerGenericDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerResponseDto"
                }
              }
            },
            "description": ""
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerResponseDto"
                }
              }
            },
            "description": "The matched automations were started, not awaited. Each result carries its run id and `status: \"running\"`; read the outcome from GET /ai/trigger/runs. A request sending `wait: true` instead responds once every run has finished, with the outcomes inline."
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Trigger automation from any source",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-ai-trigger",
          "metadata": {
            "sidebarTitle": "Trigger automation from any source",
            "title": "Trigger automation from any source"
          }
        }
      }
    },
    "/ai/trigger/branch": {
      "post": {
        "operationId": "AutomationTriggerController_triggerBranch",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TriggerBranchDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Trigger branch-review automations when the review page opens",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-ai-trigger-branch",
          "metadata": {
            "sidebarTitle": "Trigger branch-review automations when the review page opens",
            "title": "Trigger branch-review automations when the review page opens"
          }
        }
      }
    },
    "/ai/trigger/branch/checks": {
      "get": {
        "operationId": "AutomationTriggerController_listBranchChecks",
        "parameters": [
          {
            "in": "query",
            "name": "branch_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchChecksResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Branch checks — every script-mode branch automation, with the verdict of its latest run on this branch",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-ai-trigger-branch-checks",
          "metadata": {
            "sidebarTitle": "Get branch automation checks",
            "title": "Get branch automation checks"
          }
        }
      }
    },
    "/ai/trigger/branch/rerun": {
      "post": {
        "operationId": "AutomationTriggerController_triggerBranchRerun",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TriggerBranchRerunDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Re-run branch-review automations (a single one, all, or only the checks not passing) on demand",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-ai-trigger-branch-rerun",
          "metadata": {
            "sidebarTitle": "Re-run branch-review automations (a single one, all, or only the checks not passing) on demand",
            "title": "Re-run branch-review automations (a single one, all, or only the checks not passing) on demand"
          }
        }
      }
    },
    "/ai/trigger/branch/status": {
      "get": {
        "operationId": "AutomationTriggerController_branchStatus",
        "parameters": [
          {
            "in": "query",
            "name": "branch_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchReviewStatusResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Branch-review automation staleness — per-automation latest run and whether changes have landed since",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-ai-trigger-branch-status",
          "metadata": {
            "sidebarTitle": "Get branch automation status",
            "title": "Get branch automation status"
          }
        }
      }
    },
    "/ai/trigger/github": {
      "post": {
        "operationId": "AutomationTriggerController_triggerGitHub",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TriggerGitHubDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerResponseDto"
                }
              }
            },
            "description": ""
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerResponseDto"
                }
              }
            },
            "description": "The matched automations were started, not awaited. Each result carries its run id and `status: \"running\"`; read the outcome from GET /ai/trigger/runs. A request sending `wait: true` instead responds once every run has finished, with the outcomes inline."
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Trigger automation from GitHub",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-ai-trigger-github",
          "metadata": {
            "sidebarTitle": "Trigger automation from GitHub",
            "title": "Trigger automation from GitHub"
          }
        }
      }
    },
    "/ai/trigger/runs": {
      "get": {
        "operationId": "AutomationTriggerController_runStatus",
        "parameters": [
          {
            "description": "Comma-separated agent ids from a trigger response, at most 50 per request.",
            "in": "query",
            "name": "agent_ids",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationRunStatusResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Poll automation runs by agent id — status, and the integration response once finished",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-ai-trigger-runs",
          "metadata": {
            "sidebarTitle": "Poll automation runs by agent id — status, and the integration response once finished",
            "title": "Poll automation runs by agent id — status, and the integration response once finished"
          }
        }
      }
    },
    "/audit-log": {
      "get": {
        "description": "User administration, organization review-policy changes, and Google integration acknowledgments and project revocations, newest first. Requires an admin with access to every project. Page with `cursor` from `0`, passing back `nextCursor` until `moreAvailable` is false. To poll for new entries, pass `since` and deduplicate by `id`.",
        "operationId": "WorkspaceAuditController_list",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "number"
            }
          },
          {
            "description": "Keyset cursor. Use 0 for the first page, then pass back nextCursor.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "default": "0",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "description": "Only entries created at or after this time, as an RFC 3339 date-time with a time zone (e.g. 2026-10-01T00:00:00Z). Composes with cursor paging and search.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAuditLogPageDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List workspace-wide admin audit log entries",
        "tags": [
          "Audit"
        ],
        "x-mint": {
          "content": "User administration, organization review-policy changes, and Google integration acknowledgments and project revocations, newest first. Requires an admin with access to every project. Page with `cursor` from `0`, passing back `nextCursor` until `moreAvailable` is false. To poll for new entries, pass `since` and deduplicate by `id`.",
          "href": "/api/endpoints/get-audit-log",
          "metadata": {
            "description": "Lists user administration and review-policy changes across the workspace, newest first.",
            "sidebarTitle": "List workspace-wide admin audit log entries",
            "title": "List workspace-wide admin audit log entries"
          }
        }
      }
    },
    "/convert/drawio-to-tldraw": {
      "post": {
        "description": "Accepts **either** format and auto-detects which one was sent:\n\n- **draw.io** — raw `<mxGraphModel>`, inline `<mxfile>`, or compressed `<mxfile>`/.drawio. Mapping is best-effort: shapes without a tldraw equivalent fall back to rectangles, and colors are quantized to the closest of tldraw's 13 default colors. Only the first page is converted. Arrow waypoints and external images are dropped.\n- **Flow's own `<diagram>` XML** — the output of `/convert/tldraw-to-xml`. `<entity>` becomes a data-shape card, `<group>` a frame, `<shape>` a geo shape, and `<connection>` a bound arrow. Connection endpoints resolve by id, falling back to the exported name for files produced before shapes carried ids; connections whose endpoints can't be resolved are dropped.\n\nReturns a tldraw StoreSnapshot JSON that can be loaded directly into the diagram editor via `loadSnapshot(editor.store, snapshot)`.",
        "operationId": "ConvertController_convertDrawioToTldraw",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DrawioToTldrawDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "snapshot": {
                      "properties": {
                        "schema": {
                          "type": "object"
                        },
                        "store": {
                          "additionalProperties": true,
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "tldraw StoreSnapshot — `{ store, schema }` consumable by loadSnapshot"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Convert a diagram XML document to a tldraw snapshot",
        "tags": [
          "Convert"
        ],
        "x-mint": {
          "content": "Accepts **either** format and auto-detects which one was sent:\n\n- **draw.io** — raw `<mxGraphModel>`, inline `<mxfile>`, or compressed `<mxfile>`/.drawio. Mapping is best-effort: shapes without a tldraw equivalent fall back to rectangles, and colors are quantized to the closest of tldraw's 13 default colors. Only the first page is converted. Arrow waypoints and external images are dropped.\n- **Flow's own `<diagram>` XML** — the output of `/convert/tldraw-to-xml`. `<entity>` becomes a data-shape card, `<group>` a frame, `<shape>` a geo shape, and `<connection>` a bound arrow. Connection endpoints resolve by id, falling back to the exported name for files produced before shapes carried ids; connections whose endpoints can't be resolved are dropped.\n\nReturns a tldraw StoreSnapshot JSON that can be loaded directly into the diagram editor via `loadSnapshot(editor.store, snapshot)`.",
          "href": "/api/endpoints/post-convert-drawio-to-tldraw",
          "metadata": {
            "description": "Converts draw.io or Flow diagram XML into a tldraw snapshot the diagram editor can load.",
            "sidebarTitle": "Convert a diagram XML document to a tldraw snapshot",
            "title": "Convert a diagram XML document to a tldraw snapshot"
          }
        }
      }
    },
    "/convert/markdown-to-rich-text": {
      "post": {
        "description": "Converts a markdown string to rich text JSON for use in entity descriptions. Supports standard markdown (headings, bold, italic, lists, code blocks, links, etc.). \n\n**Embedding files:** Use `![alt text](flow-file:{fileId})` to embed uploaded files. The `fileId` is returned by `POST /files/upload`. Example: `\"# Report\\n\\n![diagram](flow-file:abc-123)\"` produces a heading and an embedded image.",
        "operationId": "ConvertController_markdownToRichText",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarkdownToRichTextDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "richText": {
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Rich text JSON array"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Convert markdown to rich text JSON",
        "tags": [
          "Convert"
        ],
        "x-mint": {
          "content": "Converts a markdown string to rich text JSON for use in entity descriptions. Supports standard markdown (headings, bold, italic, lists, code blocks, links, etc.). \n\n**Embedding files:** Use `![alt text](flow-file:{fileId})` to embed uploaded files. The `fileId` is returned by `POST /files/upload`. Example: `\"# Report\\n\\n![diagram](flow-file:abc-123)\"` produces a heading and an embedded image.",
          "href": "/api/endpoints/post-convert-markdown-to-rich-text",
          "metadata": {
            "description": "Converts a markdown string to rich text JSON for entity descriptions.",
            "sidebarTitle": "Convert markdown to rich text JSON",
            "title": "Convert markdown to rich text JSON"
          }
        }
      }
    },
    "/convert/markdown-to-rich-text/batch": {
      "post": {
        "description": "Batch variant of `/markdown-to-rich-text`. Accepts an array of markdown strings and returns their rich text JSON in the same order.",
        "operationId": "ConvertController_batchMarkdownToRichText",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchMarkdownToRichTextDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "richText": {
                      "items": {
                        "type": "array"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Array of rich text JSON arrays, one per input markdown string"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Convert multiple markdown strings to rich text JSON",
        "tags": [
          "Convert"
        ],
        "x-mint": {
          "content": "Batch variant of `/markdown-to-rich-text`. Accepts an array of markdown strings and returns their rich text JSON in the same order.",
          "href": "/api/endpoints/post-convert-markdown-to-rich-text-batch",
          "metadata": {
            "description": "Converts several markdown strings to rich text JSON, returned in the same order.",
            "sidebarTitle": "Convert multiple markdown strings to rich text JSON",
            "title": "Convert multiple markdown strings to rich text JSON"
          }
        }
      }
    },
    "/convert/rich-text-to-markdown": {
      "post": {
        "description": "Converts rich text JSON back to a markdown string. Embedded files are serialized using the `flow-file:` scheme: `![alt](flow-file:{fileId})`.",
        "operationId": "ConvertController_richTextToMarkdown",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RichTextToMarkdownDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "markdown": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Markdown string"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Convert rich text JSON to markdown",
        "tags": [
          "Convert"
        ],
        "x-mint": {
          "content": "Converts rich text JSON back to a markdown string. Embedded files are serialized using the `flow-file:` scheme: `![alt](flow-file:{fileId})`.",
          "href": "/api/endpoints/post-convert-rich-text-to-markdown",
          "metadata": {
            "description": "Converts rich text JSON back to a markdown string.",
            "sidebarTitle": "Convert rich text JSON to markdown",
            "title": "Convert rich text JSON to markdown"
          }
        }
      }
    },
    "/convert/tldraw-to-xml": {
      "post": {
        "description": "Converts a tldraw `StoreSnapshot` into an XML document that encodes the diagram hierarchy. Parent-child relationships are derived from tldraw's native `parentId` system: shapes inside a `data-shape` or `frame` container appear as nested child elements in the XML.\n\nEvery non-arrow element also carries its geometry (`x`/`y` parent-local coordinates plus `w`/`h`) so spatially-laid-out diagrams (e.g. flowcharts) keep their positions, not just nested ones.\n\nShape mapping:\n- `data-shape` → `<entity id name type x y w h>` (entity-backed node)\n- `frame` → `<group name x y w h>`\n- geo shapes → `<shape type label x y w h>`\n- arrows → omitted from tree, captured in `<connections>` with their own label (e.g. a flowchart `Yes`/`No` branch)\n\nThe snapshot is the object returned by `editor.store.getStoreSnapshot()` or by the `/convert/drawio-to-tldraw` endpoint.",
        "operationId": "ConvertController_tldrawToXml",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TldrawSnapshotToXmlDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "xml": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Hierarchical XML string representing the diagram structure"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Convert a tldraw snapshot to hierarchical XML",
        "tags": [
          "Convert"
        ],
        "x-mint": {
          "content": "Converts a tldraw `StoreSnapshot` into an XML document that encodes the diagram hierarchy. Parent-child relationships are derived from tldraw's native `parentId` system: shapes inside a `data-shape` or `frame` container appear as nested child elements in the XML.\n\nEvery non-arrow element also carries its geometry (`x`/`y` parent-local coordinates plus `w`/`h`) so spatially-laid-out diagrams (e.g. flowcharts) keep their positions, not just nested ones.\n\nShape mapping:\n- `data-shape` → `<entity id name type x y w h>` (entity-backed node)\n- `frame` → `<group name x y w h>`\n- geo shapes → `<shape type label x y w h>`\n- arrows → omitted from tree, captured in `<connections>` with their own label (e.g. a flowchart `Yes`/`No` branch)\n\nThe snapshot is the object returned by `editor.store.getStoreSnapshot()` or by the `/convert/drawio-to-tldraw` endpoint.",
          "href": "/api/endpoints/post-convert-tldraw-to-xml",
          "metadata": {
            "description": "Converts a tldraw snapshot into XML that encodes the diagram's hierarchy and geometry.",
            "sidebarTitle": "Convert a tldraw snapshot to hierarchical XML",
            "title": "Convert a tldraw snapshot to hierarchical XML"
          }
        }
      }
    },
    "/notifications/feed": {
      "get": {
        "operationId": "NotificationsController_getFeed",
        "parameters": [
          {
            "description": "1-based page number (default 1)",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page size (1-100, default 20)",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Project scope (REQUIRED). The feed is always mounted under a project, so it must be scoped to one — the @CustomerApi guard then authorises the caller against this project. An omitted scope must NOT fall back to an all-projects read: that would return historical rows (incl. EntityChanged structured diffs) from projects the caller has since lost access to.",
            "in": "query",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Branch filter: 'master' for Base, a branch UUID, or omit for all",
            "in": "query",
            "name": "branch_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Variant scope, including its change requests",
            "in": "query",
            "name": "variant_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "When \"true\", only unread notifications",
            "in": "query",
            "name": "unread",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Type filter category: 'item' (entity updates), 'comments', 'reviews' (branch review lifecycle), 'automations' (automation runs, their progress and the items they changed), 'agents' (agent chats waiting on you or finished), or omit/'all' for every type",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationFeedPageDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Notifications"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-notifications-feed",
          "metadata": {
            "sidebarTitle": "List notifications",
            "title": "List notifications"
          }
        }
      }
    },
    "/notifications/feed/read-all": {
      "post": {
        "operationId": "NotificationsController_markAllRead",
        "parameters": [
          {
            "in": "query",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Notifications"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-notifications-feed-read-all",
          "metadata": {
            "sidebarTitle": "Mark all notifications read",
            "title": "Mark all notifications read"
          }
        }
      }
    },
    "/notifications/feed/unread-count": {
      "get": {
        "operationId": "NotificationsController_getUnreadCount",
        "parameters": [
          {
            "in": "query",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Stop counting at this many unread notifications (1-100). Omit for an exact count.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnreadCountDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Notifications"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-notifications-feed-unread-count",
          "metadata": {
            "sidebarTitle": "Count unread notifications",
            "title": "Count unread notifications"
          }
        }
      }
    },
    "/notifications/feed/{id}/read": {
      "patch": {
        "operationId": "NotificationsController_markRead",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Notifications"
        ],
        "x-mint": {
          "href": "/api/endpoints/patch-notifications-feed-id-read",
          "metadata": {
            "sidebarTitle": "Mark a notification read",
            "title": "Mark a notification read"
          }
        }
      }
    },
    "/notifications/feed/{id}/thread": {
      "get": {
        "operationId": "NotificationsController_getThread",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationThreadDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Notifications"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-notifications-feed-id-thread",
          "metadata": {
            "sidebarTitle": "GET /notifications/feed/{id}/thread",
            "title": "GET /notifications/feed/{id}/thread"
          }
        }
      }
    },
    "/notifications/feed/{id}/unread": {
      "patch": {
        "operationId": "NotificationsController_markUnread",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Notifications"
        ],
        "x-mint": {
          "href": "/api/endpoints/patch-notifications-feed-id-unread",
          "metadata": {
            "sidebarTitle": "Mark a notification unread",
            "title": "Mark a notification unread"
          }
        }
      }
    },
    "/notifications/preferences": {
      "get": {
        "operationId": "NotificationsController_getPreferences",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/NotificationPreferenceDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Notifications"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-notifications-preferences",
          "metadata": {
            "sidebarTitle": "Get notification preferences",
            "title": "Get notification preferences"
          }
        }
      },
      "patch": {
        "operationId": "NotificationsController_updatePreferences",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateNotificationPreferencesDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/NotificationPreferenceDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Notifications"
        ],
        "x-mint": {
          "href": "/api/endpoints/patch-notifications-preferences",
          "metadata": {
            "sidebarTitle": "Update notification preferences",
            "title": "Update notification preferences"
          }
        }
      }
    },
    "/notifications/subscribers": {
      "get": {
        "operationId": "NotificationsController_subscribers",
        "parameters": [
          {
            "in": "query",
            "name": "entity_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "branch_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "user_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscribersDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Notifications"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-notifications-subscribers",
          "metadata": {
            "sidebarTitle": "List subscribers",
            "title": "List subscribers"
          }
        }
      }
    },
    "/notifications/subscriptions": {
      "delete": {
        "operationId": "NotificationsController_unsubscribe",
        "parameters": [
          {
            "in": "query",
            "name": "entity_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "branch_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "user_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Notifications"
        ],
        "x-mint": {
          "href": "/api/endpoints/delete-notifications-subscriptions",
          "metadata": {
            "sidebarTitle": "Remove a subscription",
            "title": "Remove a subscription"
          }
        }
      },
      "post": {
        "operationId": "NotificationsController_subscribe",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSubscriptionDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Notifications"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-notifications-subscriptions",
          "metadata": {
            "sidebarTitle": "Create a subscription",
            "title": "Create a subscription"
          }
        }
      }
    },
    "/notifications/subscriptions/status": {
      "get": {
        "operationId": "NotificationsController_subscriptionStatus",
        "parameters": [
          {
            "in": "query",
            "name": "entity_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "branch_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "user_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionStatusDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Notifications"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-notifications-subscriptions-status",
          "metadata": {
            "sidebarTitle": "Get subscription status",
            "title": "Get subscription status"
          }
        }
      }
    },
    "/project": {
      "get": {
        "operationId": "ProjectController_findAll",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ProjectResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List all projects for the current workspace",
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project",
          "metadata": {
            "sidebarTitle": "List all projects for the current workspace",
            "title": "List all projects for the current workspace"
          }
        }
      },
      "post": {
        "operationId": "ProjectController_create",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Create a new project",
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project",
          "metadata": {
            "sidebarTitle": "Create a new project",
            "title": "Create a new project"
          }
        }
      }
    },
    "/project/slug/{slug}": {
      "get": {
        "operationId": "ProjectController_findBySlug",
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get a project by slug",
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-slug-slug",
          "metadata": {
            "sidebarTitle": "Get a project by slug",
            "title": "Get a project by slug"
          }
        }
      }
    },
    "/project/{projectId}": {
      "delete": {
        "operationId": "ProjectController_remove",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Project deleted"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Soft-delete a project",
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "href": "/api/endpoints/delete-project-projectid",
          "metadata": {
            "sidebarTitle": "Soft-delete a project",
            "title": "Soft-delete a project"
          }
        }
      },
      "get": {
        "operationId": "ProjectController_findOne",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get a project by ID",
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid",
          "metadata": {
            "sidebarTitle": "Get a project by ID",
            "title": "Get a project by ID"
          }
        }
      },
      "patch": {
        "operationId": "ProjectController_update",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProjectDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Update a project — slug is regenerated when name changes",
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "href": "/api/endpoints/patch-project-projectid",
          "metadata": {
            "sidebarTitle": "Update a project — slug is regenerated when name changes",
            "title": "Update a project — slug is regenerated when name changes"
          }
        }
      }
    },
    "/project/{projectId}/agents": {
      "get": {
        "description": "The project's agents and the caller's own personal ones (`ownerUserId` set). Nobody else's personal agent is listed: it exists for its owner alone.",
        "operationId": "AgentDefinitionsController_list",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AgentListItemDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List the persistent agents of a project",
        "tags": [
          "Persistent agents"
        ],
        "x-mint": {
          "content": "The project's agents and the caller's own personal ones (`ownerUserId` set). Nobody else's personal agent is listed: it exists for its owner alone.",
          "href": "/api/endpoints/get-project-projectid-agents",
          "metadata": {
            "description": "Lists the project's persistent agents along with your own personal agents.",
            "sidebarTitle": "List the persistent agents of a project",
            "title": "List the persistent agents of a project"
          }
        }
      },
      "post": {
        "description": "A project agent (the default `scope`) takes a project admin and is every member's; a personal agent (`scope: personal`) is the caller's own, which any member who can write may create and which exists for nobody else in the project. Whose it is never changes. The agent becomes a member of the project under its own bot user, which authors everything its runs do. A turn is bounded by the permissions of the person chatting, or of the creator when nobody is behind it (the owner, for a personal agent). An enabled agent opens the creator's main chat with it and speaks first, introducing itself and what the creator can ask it for.",
        "operationId": "AgentDefinitionsController_create",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentDefinitionDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentDefinitionDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Create a persistent agent",
        "tags": [
          "Persistent agents"
        ],
        "x-flow-mcp-tool": false,
        "x-mint": {
          "content": "A project agent (the default `scope`) takes a project admin and is every member's; a personal agent (`scope: personal`) is the caller's own, which any member who can write may create and which exists for nobody else in the project. Whose it is never changes. The agent becomes a member of the project under its own bot user, which authors everything its runs do. A turn is bounded by the permissions of the person chatting, or of the creator when nobody is behind it (the owner, for a personal agent). An enabled agent opens the creator's main chat with it and speaks first, introducing itself and what the creator can ask it for.",
          "href": "/api/endpoints/post-project-projectid-agents",
          "metadata": {
            "description": "Creates a project agent that works under its own bot user.",
            "sidebarTitle": "Create a persistent agent",
            "title": "Create a persistent agent"
          }
        }
      }
    },
    "/project/{projectId}/agents/hand-triggers": {
      "get": {
        "description": "An agent's manual trigger is a hand launch: the branch menu and the context menus of the item types it names offer the agent, and running it starts a side chat with the agent, as the agent, with the trigger's prompt. The prompt stays on the agent.",
        "operationId": "AgentDefinitionsController_handTriggers",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AgentHandTriggerDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List the hand launches the agents of a project offer",
        "tags": [
          "Persistent agents"
        ],
        "x-mint": {
          "content": "An agent's manual trigger is a hand launch: the branch menu and the context menus of the item types it names offer the agent, and running it starts a side chat with the agent, as the agent, with the trigger's prompt. The prompt stays on the agent.",
          "href": "/api/endpoints/get-project-projectid-agents-hand-triggers",
          "metadata": {
            "description": "Lists the manual triggers that a project's agents offer in branch and item menus.",
            "sidebarTitle": "List the hand launches the agents of a project offer",
            "title": "List the hand launches the agents of a project offer"
          }
        }
      }
    },
    "/project/{projectId}/agents/{agentId}": {
      "delete": {
        "description": "Withdraws the agent from the project and stops future activation. Its identity, conversations and memories are retained. A project admin for the project's agent, its owner for a personal one while the owner can write to the project.",
        "operationId": "AgentDefinitionsController_archive",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Archive a persistent agent",
        "tags": [
          "Persistent agents"
        ],
        "x-flow-mcp-tool": false,
        "x-mint": {
          "content": "Withdraws the agent from the project and stops future activation. Its identity, conversations and memories are retained. A project admin for the project's agent, its owner for a personal one while the owner can write to the project.",
          "href": "/api/endpoints/delete-project-projectid-agents-agentid",
          "metadata": {
            "description": "Archives a persistent agent, stopping future activation while keeping its conversations and memories.",
            "sidebarTitle": "Archive a persistent agent",
            "title": "Archive a persistent agent"
          }
        }
      },
      "get": {
        "operationId": "AgentDefinitionsController_get",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentDefinitionDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get a persistent agent",
        "tags": [
          "Persistent agents"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-agents-agentid",
          "metadata": {
            "sidebarTitle": "Get a persistent agent",
            "title": "Get a persistent agent"
          }
        }
      },
      "patch": {
        "description": "A project admin for the project's agent, its owner for a personal one while the owner can write to the project.",
        "operationId": "AgentDefinitionsController_update",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAgentDefinitionDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentDefinitionDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Update a persistent agent",
        "tags": [
          "Persistent agents"
        ],
        "x-flow-mcp-tool": false,
        "x-mint": {
          "href": "/api/endpoints/patch-project-projectid-agents-agentid",
          "metadata": {
            "sidebarTitle": "Update a persistent agent",
            "title": "Update a persistent agent"
          }
        }
      }
    },
    "/project/{projectId}/agents/{agentId}/triggers/{triggerId}/fire": {
      "post": {
        "description": "Starts a side chat with the agent, as the agent, with the trigger's prompt, on the branch named and about the items picked. Editors and admins who can see the agent may run it. The bot authors the turn, using the caller's current project permissions.",
        "operationId": "AgentDefinitionsController_fire",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "triggerId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FireAgentTriggerDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentTriggerFiredDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Fire one of an agent's manual triggers by hand",
        "tags": [
          "Persistent agents"
        ],
        "x-flow-mcp-tool": false,
        "x-mint": {
          "content": "Starts a side chat with the agent, as the agent, with the trigger's prompt, on the branch named and about the items picked. Editors and admins who can see the agent may run it. The bot authors the turn, using the caller's current project permissions.",
          "href": "/api/endpoints/post-project-projectid-agents-agentid-triggers-triggerid-fire",
          "metadata": {
            "description": "Starts a side chat with the agent, using the trigger's prompt on the chosen branch and items.",
            "sidebarTitle": "Fire one of an agent's manual triggers by hand",
            "title": "Fire one of an agent's manual triggers by hand"
          }
        }
      }
    },
    "/project/{projectId}/audit-log": {
      "get": {
        "description": "Changes to a project's configuration (data model, saved views, templates, automations, skills, Flow.md, change-request merges and merge-history labels, and the default AI model), newest first. Requires an admin of the project. Page with `cursor` from `0`, passing back `nextCursor` until `moreAvailable` is false. To poll for new entries, pass `since` and deduplicate by `id`.",
        "operationId": "AuditController_list",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "number"
            }
          },
          {
            "description": "Keyset cursor. Use 0 for the first page, then pass back nextCursor.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "default": "0",
              "type": "string"
            }
          },
          {
            "description": "Legacy offset paging, used only when cursor is absent. Prefer cursor.",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "resourceType",
            "required": false,
            "schema": {
              "enum": [
                "data_model",
                "view",
                "baseline",
                "project",
                "template",
                "automation",
                "flow_md",
                "skill",
                "user",
                "review_policy",
                "integration",
                "agent"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "description": "Only entries created at or after this time, as an RFC 3339 date-time with a time zone (e.g. 2026-10-01T00:00:00Z). Composes with cursor paging and search.",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminAuditLogPageDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List admin audit log entries for a project",
        "tags": [
          "Audit"
        ],
        "x-mint": {
          "content": "Changes to a project's configuration (data model, saved views, templates, automations, skills, Flow.md, change-request merges and merge-history labels, and the default AI model), newest first. Requires an admin of the project. Page with `cursor` from `0`, passing back `nextCursor` until `moreAvailable` is false. To poll for new entries, pass `since` and deduplicate by `id`.",
          "href": "/api/endpoints/get-project-projectid-audit-log",
          "metadata": {
            "description": "Lists changes to a project's configuration, such as its data model, views, and automations, newest first.",
            "sidebarTitle": "List admin audit log entries for a project",
            "title": "List admin audit log entries for a project"
          }
        }
      }
    },
    "/project/{projectId}/automations": {
      "get": {
        "operationId": "AutomationsController_list",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whose list: the project's shared one (default) or the requester's personal one. A personal write answers 409 until personal automations have turned on for this deployment, which happens by itself once every running backend has been upgraded.",
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "enum": [
                "project",
                "personal"
              ],
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationsResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get a project's automations",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-automations",
          "metadata": {
            "sidebarTitle": "Get a project's automations",
            "title": "Get a project's automations"
          }
        }
      },
      "post": {
        "description": "Creates one automation at the end of the project's list, or of your personal list with `scope=personal`. Creating shared automations requires Admin access. It runs as you: its scheduled and webhook runs use your access to the project for as long as you can edit it, and pause when you no longer can. Check `runsAs` on the response. Script automations need the automation scripts beta, and `allowAdminTools` cannot be turned on with an API key. Through Flow's hosted MCP server, a new automation is saved turned off (`enabled: false`) and runs only once a person turns it on in Flow: give them the `url` in the response. `enabled: true` is refused there.",
        "operationId": "AutomationsController_create",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whose list: the project's shared one (default) or the requester's personal one. A personal write answers 409 until personal automations have turned on for this deployment, which happens by itself once every running backend has been upgraded.",
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "enum": [
                "project",
                "personal"
              ],
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAutomationDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Create an automation",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "content": "Creates one automation at the end of the project's list, or of your personal list with `scope=personal`. Creating shared automations requires Admin access. It runs as you: its scheduled and webhook runs use your access to the project for as long as you can edit it, and pause when you no longer can. Check `runsAs` on the response. Script automations need the automation scripts beta, and `allowAdminTools` cannot be turned on with an API key. Through Flow's hosted MCP server, a new automation is saved turned off (`enabled: false`) and runs only once a person turns it on in Flow: give them the `url` in the response. `enabled: true` is refused there.",
          "href": "/api/endpoints/post-project-projectid-automations",
          "metadata": {
            "description": "Creates an automation in the project's shared list or in your personal list.",
            "sidebarTitle": "Create an automation",
            "title": "Create an automation"
          }
        }
      }
    },
    "/project/{projectId}/automations/{automationId}": {
      "delete": {
        "operationId": "AutomationsController_remove",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "automationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whose list: the project's shared one (default) or the requester's personal one. A personal write answers 409 until personal automations have turned on for this deployment, which happens by itself once every running backend has been upgraded.",
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "enum": [
                "project",
                "personal"
              ],
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Delete an automation",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "href": "/api/endpoints/delete-project-projectid-automations-automationid",
          "metadata": {
            "sidebarTitle": "Delete an automation",
            "title": "Delete an automation"
          }
        }
      },
      "get": {
        "operationId": "AutomationsController_get",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "automationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whose list: the project's shared one (default) or the requester's personal one. A personal write answers 409 until personal automations have turned on for this deployment, which happens by itself once every running backend has been upgraded.",
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "enum": [
                "project",
                "personal"
              ],
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get an automation",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-automations-automationid",
          "metadata": {
            "sidebarTitle": "Get an automation",
            "title": "Get an automation"
          }
        }
      },
      "patch": {
        "description": "Updating shared automations requires Admin access. Changes only the fields you send; `triggers` replaces the trigger list, `trigger` alone replaces only the first trigger, and `triggers: []` makes the automation manual. An automation runs as whoever last saved what it runs. If that is someone else and your edit changes what it runs or how and when it runs, the request is refused with 409 unless it sends `\"runAsMe\": true`. Renaming, disabling or turning off admin tools keeps the current writer. Through Flow's hosted MCP server, an edit that changes what an enabled automation runs, or how or when it runs, is refused with 409: turn it off first (`enabled: false`), edit it, and give the person the `url` in the response to turn it back on in Flow. Renaming it, turning it off or changing who is notified works on an enabled automation and leaves it on. `enabled: true` is refused there.",
        "operationId": "AutomationsController_update",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "automationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whose list: the project's shared one (default) or the requester's personal one. A personal write answers 409 until personal automations have turned on for this deployment, which happens by itself once every running backend has been upgraded.",
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "enum": [
                "project",
                "personal"
              ],
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAutomationDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationDto"
                }
              }
            },
            "description": ""
          },
          "409": {
            "description": "The edit would make the automation run as you instead of its current writer, and `runAsMe` was not sent."
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Update an automation",
        "tags": [
          "Automations"
        ],
        "x-mint": {
          "content": "Updating shared automations requires Admin access. Changes only the fields you send; `triggers` replaces the trigger list, `trigger` alone replaces only the first trigger, and `triggers: []` makes the automation manual. An automation runs as whoever last saved what it runs. If that is someone else and your edit changes what it runs or how and when it runs, the request is refused with 409 unless it sends `\"runAsMe\": true`. Renaming, disabling or turning off admin tools keeps the current writer. Through Flow's hosted MCP server, an edit that changes what an enabled automation runs, or how or when it runs, is refused with 409: turn it off first (`enabled: false`), edit it, and give the person the `url` in the response to turn it back on in Flow. Renaming it, turning it off or changing who is notified works on an enabled automation and leaves it on. `enabled: true` is refused there.",
          "href": "/api/endpoints/patch-project-projectid-automations-automationid",
          "metadata": {
            "description": "Updates only the fields you send on an existing automation.",
            "sidebarTitle": "Update an automation",
            "title": "Update an automation"
          }
        }
      }
    },
    "/project/{projectId}/branch": {
      "get": {
        "operationId": "BranchController_findAll",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/BranchResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List all branches",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-branch",
          "metadata": {
            "sidebarTitle": "List all branches",
            "title": "List all branches"
          }
        }
      },
      "post": {
        "operationId": "BranchController_create",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBranchDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchCreatedDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Create a new branch",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch",
          "metadata": {
            "sidebarTitle": "Create a new branch",
            "title": "Create a new branch"
          }
        }
      }
    },
    "/project/{projectId}/branch/archived": {
      "get": {
        "description": "One page of branches created after this update was deployed and then soft-deleted, whether discarded through the delete endpoint (merged_at null) or archived by a merge (merged_at set), newest archive first. A page holds at most 200 rows (pass a smaller limit to take fewer); to continue, pass the cursor of the last row shown as `before`. `search` keeps only names containing the text, ignoring case. Every merge archives its branch, so pass merged=false to list only discarded branches, or merged=true only merged ones. Each row is a candidate for the restore preview and the restore endpoint.",
        "operationId": "BranchController_findArchived",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "false lists only discarded branches, true only merged ones; omitted lists both.",
            "in": "query",
            "name": "merged",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "A user id: the person who deleted the row; keeps only rows that match it (or, with exclude_deleted_by=true, every other row).",
            "in": "query",
            "name": "deleted_by",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "true inverts deleted_by: rows that do not match it, including rows with no value.",
            "in": "query",
            "name": "exclude_deleted_by",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "ISO 8601 instant; keeps only rows deleted at or after it.",
            "in": "query",
            "name": "deleted_since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ISO 8601 instant; keeps only rows deleted before it.",
            "in": "query",
            "name": "deleted_until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A user id: the branch's owner; keeps only rows that match it (or, with exclude_owner=true, every other row).",
            "in": "query",
            "name": "owner",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "true inverts owner: rows that do not match it, including rows with no value.",
            "in": "query",
            "name": "exclude_owner",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "A branch id, or \"master\" for Base: the branch the row was created from; keeps only rows that match it (or, with exclude_parent=true, every other row).",
            "in": "query",
            "name": "parent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "true inverts parent: rows that do not match it, including rows with no value.",
            "in": "query",
            "name": "exclude_parent",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "A tag, matched ignoring case; keeps only rows that match it (or, with exclude_tag=true, every other row).",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "true inverts tag: rows that do not match it, including rows with no value.",
            "in": "query",
            "name": "exclude_tag",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "ISO 8601 instant; keeps only rows created at or after it.",
            "in": "query",
            "name": "created_since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ISO 8601 instant; keeps only rows created before it.",
            "in": "query",
            "name": "created_until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Case-insensitive substring of the branch name; omitted or blank lists every deleted branch.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The `cursor` of the last row already shown; returns the page after it. Omit for the first page.",
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/DeletedBranchListRowDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List deleted branches",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "One page of branches created after this update was deployed and then soft-deleted, whether discarded through the delete endpoint (merged_at null) or archived by a merge (merged_at set), newest archive first. A page holds at most 200 rows (pass a smaller limit to take fewer); to continue, pass the cursor of the last row shown as `before`. `search` keeps only names containing the text, ignoring case. Every merge archives its branch, so pass merged=false to list only discarded branches, or merged=true only merged ones. Each row is a candidate for the restore preview and the restore endpoint.",
          "href": "/api/endpoints/get-project-projectid-branch-archived",
          "metadata": {
            "description": "Lists deleted and merge-archived branches, newest first.",
            "sidebarTitle": "List deleted branches",
            "title": "List deleted branches"
          }
        }
      }
    },
    "/project/{projectId}/branch/awaiting-review": {
      "get": {
        "operationId": "BranchController_getAwaitingReview",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/BranchResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List branches awaiting the current user’s review",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-branch-awaiting-review",
          "metadata": {
            "sidebarTitle": "List branches awaiting the current user’s review",
            "title": "List branches awaiting the current user’s review"
          }
        }
      }
    },
    "/project/{projectId}/branch/baseline/{baselineId}/revert": {
      "post": {
        "description": "Creates a new branch off the baseline's target branch containing diffs that undo the baseline's changes when rolled up, and returns that branch. Review and merge it to apply the revert. Non-destructive: the original history is untouched, so any baseline can be reverted. Pass entity_id to undo only one item's part of the merge.",
        "operationId": "BranchController_revertBaseline",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "baselineId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevertBaselineDto"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchCreatedDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Revert a baseline by proposing an inverse-diff branch",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "Creates a new branch off the baseline's target branch containing diffs that undo the baseline's changes when rolled up, and returns that branch. Review and merge it to apply the revert. Non-destructive: the original history is untouched, so any baseline can be reverted. Pass entity_id to undo only one item's part of the merge.",
          "href": "/api/endpoints/post-project-projectid-branch-baseline-baselineid-revert",
          "metadata": {
            "description": "Proposes a new branch whose changes undo a baseline, ready to review and merge.",
            "sidebarTitle": "Revert a baseline by proposing an inverse-diff branch",
            "title": "Revert a baseline by proposing an inverse-diff branch"
          }
        }
      }
    },
    "/project/{projectId}/branch/change-requests": {
      "get": {
        "operationId": "BranchController_getChangeRequests",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 200,
              "minimum": 1,
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "starting_after",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/BranchResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List draft, open, and merged change requests",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-branch-change-requests",
          "metadata": {
            "sidebarTitle": "List draft, open, and merged change requests",
            "title": "List draft, open, and merged change requests"
          }
        }
      }
    },
    "/project/{projectId}/branch/change-requests/{id}": {
      "get": {
        "operationId": "BranchController_getChangeRequest",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get one draft, open, or merged change request",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-branch-change-requests-id",
          "metadata": {
            "sidebarTitle": "Get one draft, open, or merged change request",
            "title": "Get one draft, open, or merged change request"
          }
        }
      }
    },
    "/project/{projectId}/branch/children": {
      "get": {
        "operationId": "BranchController_getChildBranches",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortDirection",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string"
            }
          },
          {
            "description": "BranchSort key (default \"modified\")",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Parent branch id; \"master\" (default) for branches off Base",
            "in": "query",
            "name": "parentId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedBranchesDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List a branch’s direct child branches, paginated",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-branch-children",
          "metadata": {
            "sidebarTitle": "List a branch’s direct child branches, paginated",
            "title": "List a branch’s direct child branches, paginated"
          }
        }
      }
    },
    "/project/{projectId}/branch/name-suggestion": {
      "post": {
        "operationId": "BranchController_suggestName",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchNameSuggestionDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Reserve a number and suggest a branch name",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-name-suggestion",
          "metadata": {
            "sidebarTitle": "Reserve a number and suggest a branch name",
            "title": "Reserve a number and suggest a branch name"
          }
        }
      }
    },
    "/project/{projectId}/branch/review-requests": {
      "get": {
        "operationId": "BranchController_getReviewRequests",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/BranchResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List review requests (open, merged, and closed branches)",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-branch-review-requests",
          "metadata": {
            "sidebarTitle": "List review requests (open, merged, and closed branches)",
            "title": "List review requests (open, merged, and closed branches)"
          }
        }
      }
    },
    "/project/{projectId}/branch/search": {
      "get": {
        "operationId": "BranchController_searchBranches",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "JSON-encoded BranchPageFilters",
            "in": "query",
            "name": "filters",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedBranchesDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Filter and sort branches server-side, paginated",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-branch-search",
          "metadata": {
            "sidebarTitle": "Filter and sort branches server-side, paginated",
            "title": "Filter and sort branches server-side, paginated"
          }
        }
      }
    },
    "/project/{projectId}/branch/tags": {
      "delete": {
        "operationId": "BranchController_deleteBranchTag",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "text",
            "required": true,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchTagMutationResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Remove a branch tag from every branch in a project",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/delete-project-projectid-branch-tags",
          "metadata": {
            "sidebarTitle": "Remove a branch tag from every branch in a project",
            "title": "Remove a branch tag from every branch in a project"
          }
        }
      },
      "get": {
        "operationId": "BranchController_getBranchTags",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/BranchLabelDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List the project’s distinct branch tags",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-branch-tags",
          "metadata": {
            "sidebarTitle": "List the project’s distinct branch tags",
            "title": "List the project’s distinct branch tags"
          }
        }
      },
      "patch": {
        "operationId": "BranchController_renameBranchTag",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameBranchTagDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchTagMutationResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Rename a branch tag across the project",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/patch-project-projectid-branch-tags",
          "metadata": {
            "sidebarTitle": "Rename a branch tag across the project",
            "title": "Rename a branch tag across the project"
          }
        }
      }
    },
    "/project/{projectId}/branch/{branchId}/extraction-plans": {
      "post": {
        "description": "Persists a frozen server-derived plan. This endpoint does not create a branch or move changes.",
        "operationId": "BranchExtractionController_create",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "branchId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBranchExtractionPlanDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchExtractionPlanResponseDto"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Exactly one supported selector is required, and every manually selected entity must be changed."
          },
          "401": {
            "description": ""
          },
          "404": {
            "description": "Source branch was not found."
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Plan an entity-level extraction into a new sibling branch",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-branchid-extraction-plans",
          "metadata": {
            "sidebarTitle": "Plan an entity-level extraction into a new sibling branch",
            "title": "Plan an entity-level extraction into a new sibling branch"
          }
        }
      }
    },
    "/project/{projectId}/branch/{branchId}/extraction-plans/{planId}": {
      "get": {
        "operationId": "BranchExtractionController_findOne",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "branchId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "planId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchExtractionPlanResponseDto"
                }
              }
            },
            "description": ""
          },
          "401": {
            "description": ""
          },
          "404": {
            "description": "Plan was not found."
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Read a frozen extraction plan and current status",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-branch-branchid-extraction-plans-planid",
          "metadata": {
            "sidebarTitle": "Read a frozen extraction plan and current status",
            "title": "Read a frozen extraction plan and current status"
          }
        }
      }
    },
    "/project/{projectId}/branch/{branchId}/extractions": {
      "post": {
        "operationId": "BranchExtractionMutationController_execute",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "branchId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecuteBranchExtractionDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchExtractionResponseDto"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": ""
          },
          "409": {
            "description": "The frozen plan is stale or unsafe."
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Execute a frozen entity extraction plan",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-branchid-extractions",
          "metadata": {
            "sidebarTitle": "Execute a frozen entity extraction plan",
            "title": "Execute a frozen entity extraction plan"
          }
        }
      }
    },
    "/project/{projectId}/branch/{branchId}/extractions/{extractionId}": {
      "get": {
        "operationId": "BranchExtractionMutationController_findOne",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "branchId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "extractionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchExtractionResponseDto"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Read extraction audit and undo eligibility",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-branch-branchid-extractions-extractionid",
          "metadata": {
            "sidebarTitle": "Read extraction audit and undo eligibility",
            "title": "Read extraction audit and undo eligibility"
          }
        }
      }
    },
    "/project/{projectId}/branch/{branchId}/extractions/{extractionId}/undo": {
      "post": {
        "operationId": "BranchExtractionMutationController_undo",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "branchId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "extractionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchExtractionResponseDto"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": ""
          },
          "409": {
            "description": "Exact undo is no longer safe."
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Undo an exact, still-isolated extraction",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-branchid-extractions-extractionid-undo",
          "metadata": {
            "sidebarTitle": "Undo an exact, still-isolated extraction",
            "title": "Undo an exact, still-isolated extraction"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/ancestors": {
      "get": {
        "operationId": "BranchController_getBranchAncestors",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/BranchResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List a branch’s ancestors, root-first",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-branch-id-ancestors",
          "metadata": {
            "sidebarTitle": "List a branch’s ancestors, root-first",
            "title": "List a branch’s ancestors, root-first"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/auto-merge": {
      "post": {
        "description": "With the organization review policy's allow_auto_merge on, enabled=true has the branch merge itself, as the caller, as soon as every merge requirement passes (the ordinary merge job is then queued and can be polled through merge-status); enabled=false cancels a waiting request. The merge re-checks every requirement as the caller when it runs.",
        "operationId": "BranchController_setAutoMerge",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetAutoMergeDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Merge a branch automatically once it is ready",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "With the organization review policy's allow_auto_merge on, enabled=true has the branch merge itself, as the caller, as soon as every merge requirement passes (the ordinary merge job is then queued and can be polled through merge-status); enabled=false cancels a waiting request. The merge re-checks every requirement as the caller when it runs.",
          "href": "/api/endpoints/post-project-projectid-branch-id-auto-merge",
          "metadata": {
            "description": "Turns on, or cancels, a merge that runs automatically once the branch meets every requirement.",
            "sidebarTitle": "Merge a branch automatically once it is ready",
            "title": "Merge a branch automatically once it is ready"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/awaiting-my-review-entities": {
      "get": {
        "description": "Ids of this branch's changed entities that await the current user's review: entities whose firing stage gate lists them as a pending reviewer, PLUS entities whose reviewer fields/groups designate them (the latter works even without stage gates). Users who have already approved the branch are excluded; empty when nothing awaits the caller.",
        "operationId": "BranchController_stageGateAwaitingMe",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Changed entities on a branch awaiting the current user's review",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "Ids of this branch's changed entities that await the current user's review: entities whose firing stage gate lists them as a pending reviewer, PLUS entities whose reviewer fields/groups designate them (the latter works even without stage gates). Users who have already approved the branch are excluded; empty when nothing awaits the caller.",
          "href": "/api/endpoints/get-project-projectid-branch-id-awaiting-my-review-entities",
          "metadata": {
            "description": "Lists the changed entities on a branch that await your review.",
            "sidebarTitle": "Changed entities on a branch awaiting the current user's review",
            "title": "Changed entities on a branch awaiting the current user's review"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/change-request-title": {
      "post": {
        "operationId": "BranchController_setChangeRequestTitle",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetChangeRequestTitleDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Set the change request's title",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-change-request-title",
          "metadata": {
            "sidebarTitle": "Set the change request's title",
            "title": "Set the change request's title"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/changed-entity-ids": {
      "get": {
        "description": "Returns each touched entity ID with CREATED when its entity was created on this branch, or UPDATED when an inherited entity was changed on this branch.",
        "operationId": "BranchController_getChangedEntityIds",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CustomerChangedEntityDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List changed entities on a branch",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "Returns each touched entity ID with CREATED when its entity was created on this branch, or UPDATED when an inherited entity was changed on this branch.",
          "href": "/api/endpoints/get-project-projectid-branch-id-changed-entity-ids",
          "metadata": {
            "description": "Lists the entities changed on a branch, each marked as created or updated.",
            "sidebarTitle": "List changed entities on a branch",
            "title": "List changed entities on a branch"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/delete": {
      "post": {
        "description": "Soft-deletes a branch so it stops appearing in branch lists, letting callers clean up failed or abandoned branches instead of leaving permanent cruft. Refuses with 400 for the synthetic master branch or a malformed id, 404 when the branch does not exist in this project, 403 when the branch is protected, and 400 when it still has sub-branches.",
        "operationId": "BranchController_remove",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Delete a branch",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "Soft-deletes a branch so it stops appearing in branch lists, letting callers clean up failed or abandoned branches instead of leaving permanent cruft. Refuses with 400 for the synthetic master branch or a malformed id, 404 when the branch does not exist in this project, 403 when the branch is protected, and 400 when it still has sub-branches.",
          "href": "/api/endpoints/post-project-projectid-branch-id-delete",
          "metadata": {
            "description": "Soft-deletes a branch so it no longer appears in branch lists.",
            "sidebarTitle": "Delete a branch",
            "title": "Delete a branch"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/deleted-entities": {
      "get": {
        "description": "Pass \"master\" for Base. Deletions inherited from a parent branch are listed on the branch that made them. Restore a row with the entity restore endpoints.",
        "operationId": "BranchController_getDeletedEntities",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Case-insensitive literal substring of the item name, matched before pagination.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A user id: the person who deleted the row; keeps only rows that match it (or, with exclude_deleted_by=true, every other row).",
            "in": "query",
            "name": "deleted_by",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "true inverts deleted_by: rows that do not match it, including rows with no value.",
            "in": "query",
            "name": "exclude_deleted_by",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "ISO 8601 instant; keeps only rows deleted at or after it.",
            "in": "query",
            "name": "deleted_since",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ISO 8601 instant; keeps only rows deleted before it.",
            "in": "query",
            "name": "deleted_until",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A user id: the item's owner; keeps only rows that match it (or, with exclude_owner=true, every other row).",
            "in": "query",
            "name": "owner",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "true inverts owner: rows that do not match it, including rows with no value.",
            "in": "query",
            "name": "exclude_owner",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "An item type's id; keeps only rows that match it (or, with exclude_type=true, every other row).",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "true inverts type: rows that do not match it, including rows with no value.",
            "in": "query",
            "name": "exclude_type",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "The `cursor` of the last row already shown; returns the page after it. Omit for the first page.",
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedEntitiesPageDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Entities deleted on this branch (its tombstones), newest first",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "Pass \"master\" for Base. Deletions inherited from a parent branch are listed on the branch that made them. Restore a row with the entity restore endpoints.",
          "href": "/api/endpoints/get-project-projectid-branch-id-deleted-entities",
          "metadata": {
            "description": "Lists the entities deleted on a branch, newest first.",
            "sidebarTitle": "Entities deleted on this branch (its tombstones), newest first",
            "title": "Entities deleted on this branch (its tombstones), newest first"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/description": {
      "post": {
        "operationId": "BranchController_setDescription",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBranchDescriptionDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Set the branch's rich-text description",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-description",
          "metadata": {
            "sidebarTitle": "Set the branch's rich-text description",
            "title": "Set the branch's rich-text description"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/merge": {
      "post": {
        "description": "Enqueues a background merge that replays the branch onto its parent, creates a merge baseline, and deletes the branch. Live sub-branches of the merged branch are rebased onto the merge target in the same merge, keeping their own changes (GET :id/merge-rebase-preview lists them, with the fields where their change and the newly inherited history differ; pass its ids as expected_rebase_ids to refuse the merge with 409 if that set has changed). Depending on the organization review policy, project admins (and optionally the parent branch owner, except for merges into Base) may set bypass_review with a review_bypass_reason to force past known review-policy, branch-check, stage-policy, and merge-conflict blockers; only project admins can also force past editor-group blockers. The reason and blocker snapshot are preserved in merge history while structural and incomplete-scan protections remain enforced. Poll the returned job until it succeeds or fails.",
        "operationId": "BranchController_merge",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MergeBranchDto"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchMergeJobResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Merge a branch into its parent",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "Enqueues a background merge that replays the branch onto its parent, creates a merge baseline, and deletes the branch. Live sub-branches of the merged branch are rebased onto the merge target in the same merge, keeping their own changes (GET :id/merge-rebase-preview lists them, with the fields where their change and the newly inherited history differ; pass its ids as expected_rebase_ids to refuse the merge with 409 if that set has changed). Depending on the organization review policy, project admins (and optionally the parent branch owner, except for merges into Base) may set bypass_review with a review_bypass_reason to force past known review-policy, branch-check, stage-policy, and merge-conflict blockers; only project admins can also force past editor-group blockers. The reason and blocker snapshot are preserved in merge history while structural and incomplete-scan protections remain enforced. Poll the returned job until it succeeds or fails.",
          "href": "/api/endpoints/post-project-projectid-branch-id-merge",
          "metadata": {
            "description": "Starts a background merge of the branch into its parent and returns a job to poll.",
            "sidebarTitle": "Merge a branch into its parent",
            "title": "Merge a branch into its parent"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/merge-readiness": {
      "get": {
        "description": "Lists every blocker, not only the first. The merge gates an ordinary merge by the caller checks: variant, editor groups, branch checks, designated and required reviewers, review policy approvals, blocking item checks and stage gates. The review page holds that the merge itself does not enforce: draft state, a merge already queued or running, and no changes. The advisory merge conflict preview; the merge runs its own exact conflict check. A gate that cannot be judged yet (a scan still running or too large) is listed under `unknown`, and `ready` is true only when both lists are empty. This read enforces nothing; the merge re-checks its own gates.",
        "operationId": "BranchController_mergeReadiness",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MergeReadinessResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Check whether a branch is ready to merge",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "Lists every blocker, not only the first. The merge gates an ordinary merge by the caller checks: variant, editor groups, branch checks, designated and required reviewers, review policy approvals, blocking item checks and stage gates. The review page holds that the merge itself does not enforce: draft state, a merge already queued or running, and no changes. The advisory merge conflict preview; the merge runs its own exact conflict check. A gate that cannot be judged yet (a scan still running or too large) is listed under `unknown`, and `ready` is true only when both lists are empty. This read enforces nothing; the merge re-checks its own gates.",
          "href": "/api/endpoints/get-project-projectid-branch-id-merge-readiness",
          "metadata": {
            "description": "Lists every blocker that would stop the branch from merging right now.",
            "sidebarTitle": "Check whether a branch is ready to merge",
            "title": "Check whether a branch is ready to merge"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/merge-status": {
      "get": {
        "operationId": "BranchController_mergeStatus",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchMergeJobResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get the current background merge job for a branch",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-branch-id-merge-status",
          "metadata": {
            "sidebarTitle": "Get the current background merge job for a branch",
            "title": "Get the current background merge job for a branch"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/protect": {
      "post": {
        "operationId": "BranchController_protect",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-protect",
          "metadata": {
            "sidebarTitle": "Protect a branch",
            "title": "Protect a branch"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/rebase-onto": {
      "post": {
        "description": "Replays this branch's changes onto a different base and returns the result as a NEW branch; the branch named in the path is not modified. The copy keeps this branch's value for every field it changed and resolves every field it did not from the new base. Changes to items the new base does not have cannot appear on the copy: relationships to them are left out, and the items are listed in `missing_items`. The copy carries this branch's own comments, re-keyed to the copy, except a thread on an item the new base does not have and a reply to a thread that is not in the copy's lineage; a comment inherited from the old base stays there. Its sub-branches, baselines, and reviews are not copied. Refuses with 400 for the Base branch, a malformed id, a missing `newParentId`, or a target equal to the branch itself; 404 when either branch is not live in this project.",
        "operationId": "BranchController_rebaseOnto",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RebaseOntoBranchDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RebaseOntoResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Rebase a branch onto a different parent branch (as a new branch)",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "Replays this branch's changes onto a different base and returns the result as a NEW branch; the branch named in the path is not modified. The copy keeps this branch's value for every field it changed and resolves every field it did not from the new base. Changes to items the new base does not have cannot appear on the copy: relationships to them are left out, and the items are listed in `missing_items`. The copy carries this branch's own comments, re-keyed to the copy, except a thread on an item the new base does not have and a reply to a thread that is not in the copy's lineage; a comment inherited from the old base stays there. Its sub-branches, baselines, and reviews are not copied. Refuses with 400 for the Base branch, a malformed id, a missing `newParentId`, or a target equal to the branch itself; 404 when either branch is not live in this project.",
          "href": "/api/endpoints/post-project-projectid-branch-id-rebase-onto",
          "metadata": {
            "description": "Replays a branch's changes onto a different parent as a new branch, leaving the original unchanged.",
            "sidebarTitle": "Rebase a branch onto a different parent branch (as a new branch)",
            "title": "Rebase a branch onto a different parent branch (as a new branch)"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/reopen-as-draft": {
      "post": {
        "operationId": "BranchController_reopenAsDraft",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchCreatedDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Revert a merged change request into a new draft",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-reopen-as-draft",
          "metadata": {
            "sidebarTitle": "Revert a merged change request into a new draft",
            "title": "Revert a merged change request into a new draft"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/required-reviewer-groups": {
      "post": {
        "operationId": "BranchController_addRequiredReviewerGroup",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddRequiredReviewerGroupDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Add a required reviewer group (admin, owner, or existing required reviewer)",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-required-reviewer-groups",
          "metadata": {
            "sidebarTitle": "Add a required reviewer group (admin, owner, or existing required reviewer)",
            "title": "Add a required reviewer group (admin, owner, or existing required reviewer)"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/required-reviewer-groups/{groupId}/remove": {
      "post": {
        "operationId": "BranchController_removeRequiredReviewerGroup",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "groupId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Remove a required reviewer group (owner or existing required reviewer)",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-required-reviewer-groups-groupid-remove",
          "metadata": {
            "sidebarTitle": "Remove a required reviewer group (owner or existing required reviewer)",
            "title": "Remove a required reviewer group (owner or existing required reviewer)"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/required-reviewers": {
      "post": {
        "operationId": "BranchController_addRequiredReviewer",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddRequiredReviewerDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Add a required reviewer (admin, owner, or existing required reviewer)",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-required-reviewers",
          "metadata": {
            "sidebarTitle": "Add a required reviewer (admin, owner, or existing required reviewer)",
            "title": "Add a required reviewer (admin, owner, or existing required reviewer)"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/required-reviewers/{userId}/remove": {
      "post": {
        "operationId": "BranchController_removeRequiredReviewer",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Remove a required reviewer (owner or existing required reviewer)",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-required-reviewers-userid-remove",
          "metadata": {
            "sidebarTitle": "Remove a required reviewer (owner or existing required reviewer)",
            "title": "Remove a required reviewer (owner or existing required reviewer)"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/restore": {
      "post": {
        "description": "Reverses a delete of a branch created after this update was deployed: the branch reappears in branch lists and the branch selector with its changes intact, and a Reopened entry joins its review history. Every eligible deleted ancestor it depends on is restored with it, in one transaction, exactly the chain the restore preview lists (a merged ancestor comes back as an open branch that can be merged again; the reviews and description its merge moved onto the baseline stay there). A member whose parent was rebased after the member was deleted is rebased onto its parent's current history as part of the restore, the migration it missed while deleted; the preview names each such member and the restore performs them root-most first. Send the preview's ids as expected_chain_ids and expected_rebase_ids to be refused with 409 if either changed since. Refuses with 400 for the synthetic master branch or a malformed id, 404 when no eligible deleted branch with this id exists in this project, and 400, naming the branch, when the chain cannot be rebuilt: an ancestor row is gone, an ancestor predates restore support, or a member is the copy an extraction undo archived.",
        "operationId": "BranchController_restoreBranch",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreBranchDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Restore a deleted branch",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "Reverses a delete of a branch created after this update was deployed: the branch reappears in branch lists and the branch selector with its changes intact, and a Reopened entry joins its review history. Every eligible deleted ancestor it depends on is restored with it, in one transaction, exactly the chain the restore preview lists (a merged ancestor comes back as an open branch that can be merged again; the reviews and description its merge moved onto the baseline stay there). A member whose parent was rebased after the member was deleted is rebased onto its parent's current history as part of the restore, the migration it missed while deleted; the preview names each such member and the restore performs them root-most first. Send the preview's ids as expected_chain_ids and expected_rebase_ids to be refused with 409 if either changed since. Refuses with 400 for the synthetic master branch or a malformed id, 404 when no eligible deleted branch with this id exists in this project, and 400, naming the branch, when the chain cannot be rebuilt: an ancestor row is gone, an ancestor predates restore support, or a member is the copy an extraction undo archived.",
          "href": "/api/endpoints/post-project-projectid-branch-id-restore",
          "metadata": {
            "description": "Restores a deleted branch, with any deleted ancestors it depends on, in one transaction.",
            "sidebarTitle": "Restore a deleted branch",
            "title": "Restore a deleted branch"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/restore-preview": {
      "get": {
        "description": "The deleted branches a restore of this branch would bring back, root-most ancestor first and this branch last: a branch is its own changes on top of its parent as of when it was created, so a branch whose eligible ancestors are deleted comes back together with them, and the preview shows that chain by name, number, parent and deletion time so same-named branches are told apart. Each row carries `rebase` when restoring it will rebase it onto its parent's current history because the parent was rebased after the row was deleted: the parent's id, name, number and rebase time, and a sentence saying so, so the user confirms that step with the chain. Answers the refusal the restore would answer (400 naming the branch and the reason) when the chain cannot be rebuilt: an ancestor row is gone, an ancestor predates restore support, or a member is the copy an extraction undo archived. 404 when no eligible deleted branch with this id exists in this project.",
        "operationId": "BranchController_previewRestoreBranch",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchRestorePreviewDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Preview a branch restore",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "The deleted branches a restore of this branch would bring back, root-most ancestor first and this branch last: a branch is its own changes on top of its parent as of when it was created, so a branch whose eligible ancestors are deleted comes back together with them, and the preview shows that chain by name, number, parent and deletion time so same-named branches are told apart. Each row carries `rebase` when restoring it will rebase it onto its parent's current history because the parent was rebased after the row was deleted: the parent's id, name, number and rebase time, and a sentence saying so, so the user confirms that step with the chain. Answers the refusal the restore would answer (400 naming the branch and the reason) when the chain cannot be rebuilt: an ancestor row is gone, an ancestor predates restore support, or a member is the copy an extraction undo archived. 404 when no eligible deleted branch with this id exists in this project.",
          "href": "/api/endpoints/get-project-projectid-branch-id-restore-preview",
          "metadata": {
            "description": "Lists the deleted branches a restore would bring back, root-most ancestor first.",
            "sidebarTitle": "Preview a branch restore",
            "title": "Preview a branch restore"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/revert-entity-to-point": {
      "post": {
        "description": "Returns the item to its state right after the given history entry. By default creates a new branch off this branch carrying the revert, to review and merge; with in_place the revert is written straight onto this branch, subject to the same checks as any edit. The original history is untouched either way.",
        "operationId": "BranchController_revertEntityToPoint",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevertEntityToPointDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevertEntityToPointResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Revert one item to an earlier point in its history",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "Returns the item to its state right after the given history entry. By default creates a new branch off this branch carrying the revert, to review and merge; with in_place the revert is written straight onto this branch, subject to the same checks as any edit. The original history is untouched either way.",
          "href": "/api/endpoints/post-project-projectid-branch-id-revert-entity-to-point",
          "metadata": {
            "description": "Returns an item to its state right after a chosen history entry.",
            "sidebarTitle": "Revert one item to an earlier point in its history",
            "title": "Revert one item to an earlier point in its history"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/reviewer-groups/{groupId}/remove": {
      "post": {
        "operationId": "BranchController_removeReviewerGroup",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "groupId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Remove a reviewer group from this branch review",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-reviewer-groups-groupid-remove",
          "metadata": {
            "sidebarTitle": "Remove a reviewer group from this branch review",
            "title": "Remove a reviewer group from this branch review"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/reviewers/{userId}/remove": {
      "post": {
        "operationId": "BranchController_removeReviewer",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Remove a reviewer from this branch review",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-reviewers-userid-remove",
          "metadata": {
            "sidebarTitle": "Remove a reviewer from this branch review",
            "title": "Remove a reviewer from this branch review"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/set-editor-groups": {
      "post": {
        "operationId": "BranchController_setEditorGroups",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetEditorGroupsDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Assign or clear the user groups allowed to edit this branch",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-set-editor-groups",
          "metadata": {
            "sidebarTitle": "Assign or clear the user groups allowed to edit this branch",
            "title": "Assign or clear the user groups allowed to edit this branch"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/set-live-edits-allowed": {
      "post": {
        "operationId": "BranchController_setLiveEditsAllowed",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetLiveEditsAllowedDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Allow or stop edits on a variant landing on it directly instead of opening a change request",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-set-live-edits-allowed",
          "metadata": {
            "sidebarTitle": "Allow or stop edits on a variant landing on it directly instead of opening a change request",
            "title": "Allow or stop edits on a variant landing on it directly instead of opening a change request"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/set-owner": {
      "post": {
        "description": "Omit user_id to take ownership as the calling user; naming another user requires project admin. Taking ownership is not open either: a branch whose author (its owner, or its creator for rows predating ownership) can still act on it changes hands only by admin assignment, while one whose author has been deactivated or has lost access to the project stays claimable by any editor. A non-admin outside a branch's editor groups cannot become its owner. An admin supersedes both rules. Base/master has no branch row and is rejected.",
        "operationId": "BranchController_setOwner",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetBranchOwnerDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Assign the owner of a branch",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "Omit user_id to take ownership as the calling user; naming another user requires project admin. Taking ownership is not open either: a branch whose author (its owner, or its creator for rows predating ownership) can still act on it changes hands only by admin assignment, while one whose author has been deactivated or has lost access to the project stays claimable by any editor. A non-admin outside a branch's editor groups cannot become its owner. An admin supersedes both rules. Base/master has no branch row and is rejected.",
          "href": "/api/endpoints/post-project-projectid-branch-id-set-owner",
          "metadata": {
            "description": "Assigns a branch's owner, or takes ownership yourself when no user is named.",
            "sidebarTitle": "Assign the owner of a branch",
            "title": "Assign the owner of a branch"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/set-ready-for-review": {
      "post": {
        "operationId": "BranchController_setReadyForReview",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetReadyForReviewDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Toggle the branch’s ready-for-review signal",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-set-ready-for-review",
          "metadata": {
            "sidebarTitle": "Toggle the branch’s ready-for-review signal",
            "title": "Toggle the branch’s ready-for-review signal"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/set-require-review": {
      "post": {
        "operationId": "BranchController_setRequireReview",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetRequireReviewDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-set-require-review",
          "metadata": {
            "sidebarTitle": "Set branch review requirements",
            "title": "Set branch review requirements"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/set-review": {
      "post": {
        "operationId": "BranchController_setReview",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitReviewDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Submit or update the current user's review",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-set-review",
          "metadata": {
            "sidebarTitle": "Submit or update the current user's review",
            "title": "Submit or update the current user's review"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/stage-gate-status": {
      "get": {
        "description": "Returns the per-entity stage-gate violations that would block merging this branch right now (multi-step promotions, missing reviewers, missing approvals). Empty list = stage gates satisfied.",
        "operationId": "BranchController_stageGateStatus",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StageGateStatusResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Evaluate entity stage gates for a branch merge",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "content": "Returns the per-entity stage-gate violations that would block merging this branch right now (multi-step promotions, missing reviewers, missing approvals). Empty list = stage gates satisfied.",
          "href": "/api/endpoints/get-project-projectid-branch-id-stage-gate-status",
          "metadata": {
            "description": "Lists the stage-gate violations that would block merging the branch right now.",
            "sidebarTitle": "Evaluate entity stage gates for a branch merge",
            "title": "Evaluate entity stage gates for a branch merge"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/tags": {
      "delete": {
        "operationId": "BranchController_removeBranchTag",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "text",
            "required": true,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Remove one tag from a branch",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/delete-project-projectid-branch-id-tags",
          "metadata": {
            "sidebarTitle": "Remove one tag from a branch",
            "title": "Remove one tag from a branch"
          }
        }
      },
      "post": {
        "operationId": "BranchController_addBranchTag",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddBranchTagDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BranchResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Add one tag to a branch",
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-tags",
          "metadata": {
            "sidebarTitle": "Add one tag to a branch",
            "title": "Add one tag to a branch"
          }
        }
      }
    },
    "/project/{projectId}/branch/{id}/unprotect": {
      "post": {
        "operationId": "BranchController_unprotect",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "description": "Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Branches"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-branch-id-unprotect",
          "metadata": {
            "sidebarTitle": "Unprotect a branch",
            "title": "Unprotect a branch"
          }
        }
      }
    },
    "/project/{projectId}/data-model": {
      "get": {
        "operationId": "CustomerCategoriesController_findAll",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CustomerCategoryResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List all categories",
        "tags": [
          "Data Model"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-data-model",
          "metadata": {
            "sidebarTitle": "List all categories",
            "title": "List all categories"
          }
        }
      },
      "post": {
        "operationId": "CustomerCategoriesController_create",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerCreateCategoryDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCategoryResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Create a category",
        "tags": [
          "Data Model"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-data-model",
          "metadata": {
            "sidebarTitle": "Create a category",
            "title": "Create a category"
          }
        }
      }
    },
    "/project/{projectId}/data-model/{id}": {
      "delete": {
        "operationId": "CustomerCategoriesController_remove",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Delete a category",
        "tags": [
          "Data Model"
        ],
        "x-mint": {
          "href": "/api/endpoints/delete-project-projectid-data-model-id",
          "metadata": {
            "sidebarTitle": "Delete a category",
            "title": "Delete a category"
          }
        }
      },
      "get": {
        "operationId": "CustomerCategoriesController_findOne",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCategoryResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get a category by ID",
        "tags": [
          "Data Model"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-data-model-id",
          "metadata": {
            "sidebarTitle": "Get a category by ID",
            "title": "Get a category by ID"
          }
        }
      },
      "put": {
        "description": "Updates category metadata and, when fields is supplied, the category custom fields. By default fields is replacement-style: omitted customer-managed fields are removed. Set addOnly=true to preserve existing fields and append only missing fields or missing plain-tag options.",
        "operationId": "CustomerCategoriesController_update",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "addOnly": {
                  "summary": "Additive field/tag-option ensure",
                  "value": {
                    "addOnly": true,
                    "fields": [
                      {
                        "key": "priority",
                        "name": "Priority",
                        "tags": [
                          {
                            "name": "Medium"
                          }
                        ],
                        "type": "tag"
                      }
                    ]
                  }
                },
                "replacement": {
                  "summary": "Replacement-style field update",
                  "value": {
                    "fields": [
                      {
                        "key": "priority",
                        "name": "Priority",
                        "tags": [
                          {
                            "name": "Low"
                          },
                          {
                            "name": "High"
                          }
                        ],
                        "type": "tag"
                      }
                    ]
                  }
                }
              },
              "schema": {
                "$ref": "#/components/schemas/CustomerUpdateCategoryDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCategoryResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Update a category",
        "tags": [
          "Data Model"
        ],
        "x-mint": {
          "content": "Updates category metadata and, when fields is supplied, the category custom fields. By default fields is replacement-style: omitted customer-managed fields are removed. Set addOnly=true to preserve existing fields and append only missing fields or missing plain-tag options.",
          "href": "/api/endpoints/put-project-projectid-data-model-id",
          "metadata": {
            "description": "Updates a category's metadata and, optionally, its custom fields.",
            "sidebarTitle": "Update a category",
            "title": "Update a category"
          }
        }
      }
    },
    "/project/{projectId}/data-model/{id}/fields/{fieldKey}/tag-options": {
      "post": {
        "description": "Ensures option names exist on an existing plain tag field. Existing options are preserved, repeated names are idempotent, and only genuinely new names are appended. This endpoint does not edit stage fields.",
        "operationId": "CustomerCategoriesController_addTagOptions",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "fieldKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "addOptions": {
                  "summary": "Append missing tag options",
                  "value": {
                    "tags": [
                      {
                        "name": "Medium"
                      },
                      {
                        "name": "Urgent"
                      }
                    ]
                  }
                }
              },
              "schema": {
                "$ref": "#/components/schemas/CustomerAddTagOptionsDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCategoryResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Add tag options to a category field",
        "tags": [
          "Data Model"
        ],
        "x-mint": {
          "content": "Ensures option names exist on an existing plain tag field. Existing options are preserved, repeated names are idempotent, and only genuinely new names are appended. This endpoint does not edit stage fields.",
          "href": "/api/endpoints/post-project-projectid-data-model-id-fields-fieldkey-tag-options",
          "metadata": {
            "description": "Adds missing options to a plain tag field without changing existing ones.",
            "sidebarTitle": "Add tag options to a category field",
            "title": "Add tag options to a category field"
          }
        }
      }
    },
    "/project/{projectId}/diagram-symbols": {
      "get": {
        "description": "Lists the ISO 1219, IEC 60617 and ISA-5.1 symbols, authored sizes and terminal IDs. Use symbol IDs as nodes.shape or entities.geo and terminal IDs as connections.fromPort/toPort in POST /project/{projectId}/diagrams. Symbols are leaves and cannot contain children.",
        "operationId": "ProjectController_getDiagramSymbols",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiagramSymbolsResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Discover diagram symbols and named terminals",
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "content": "Lists the ISO 1219, IEC 60617 and ISA-5.1 symbols, authored sizes and terminal IDs. Use symbol IDs as nodes.shape or entities.geo and terminal IDs as connections.fromPort/toPort in POST /project/&#123;projectId&#125;/diagrams. Symbols are leaves and cannot contain children.",
          "href": "/api/endpoints/get-project-projectid-diagram-symbols",
          "metadata": {
            "description": "Lists the enabled diagram symbols with their authored sizes and terminal IDs.",
            "sidebarTitle": "Discover diagram symbols and named terminals",
            "title": "Discover diagram symbols and named terminals"
          }
        }
      }
    },
    "/project/{projectId}/diagrams": {
      "post": {
        "description": "Creates a diagram entity from either a raw tldraw snapshot or structured input, and optionally links it to a host entity. Typical draw.io import flow: (1) convert XML via POST /convert/drawio-to-tldraw, (2) call this endpoint with the returned `snapshot` plus a `hostEntityId`, (3) optionally embed the diagram in the host's rich-text field (e.g. `description`) by appending a node of the form `{\"type\": \"tldraw\", \"diagramId\": \"<id>\", \"children\": [{\"text\": \"\"}]}` via PUT /project/{projectId}/entities/{entityId}/values — embeds only resolve diagrams linked to the entity that owns the field. Upsert semantics: re-POSTing with the same `id` replaces that diagram's name and snapshot in place (e.g. re-importing an updated source file); an `id` belonging to a non-diagram entity is rejected with 409.",
        "operationId": "DiagramsController_createDiagram",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDiagramDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityStateResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Create or update a diagram",
        "tags": [
          "Diagrams"
        ],
        "x-mint": {
          "content": "Creates a diagram entity from either a raw tldraw snapshot or structured input, and optionally links it to a host entity. Typical draw.io import flow: (1) convert XML via POST /convert/drawio-to-tldraw, (2) call this endpoint with the returned `snapshot` plus a `hostEntityId`, (3) optionally embed the diagram in the host's rich-text field (e.g. `description`) by appending a node of the form `{\"type\": \"tldraw\", \"diagramId\": \"<id>\", \"children\": [{\"text\": \"\"}]}` via PUT /project/&#123;projectId&#125;/entities/&#123;entityId&#125;/values — embeds only resolve diagrams linked to the entity that owns the field. Upsert semantics: re-POSTing with the same `id` replaces that diagram's name and snapshot in place (e.g. re-importing an updated source file); an `id` belonging to a non-diagram entity is rejected with 409.",
          "href": "/api/endpoints/post-project-projectid-diagrams",
          "metadata": {
            "description": "Creates or updates a diagram from a tldraw snapshot or structured input.",
            "sidebarTitle": "Create or update a diagram",
            "title": "Create or update a diagram"
          }
        }
      }
    },
    "/project/{projectId}/diagrams/architecture-layout/{scope}": {
      "get": {
        "operationId": "DiagramsController_getArchitectureLayout",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "scope",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchitectureLayoutResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Read shared architecture layout, independent of change requests",
        "tags": [
          "Diagrams"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-diagrams-architecture-layout-scope",
          "metadata": {
            "sidebarTitle": "Read shared architecture layout, independent of change requests",
            "title": "Read shared architecture layout, independent of change requests"
          }
        }
      },
      "put": {
        "operationId": "DiagramsController_saveArchitectureLayout",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "scope",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArchitectureLayoutDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchitectureLayoutResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Save shared architecture layout without model diffs",
        "tags": [
          "Diagrams"
        ],
        "x-mint": {
          "href": "/api/endpoints/put-project-projectid-diagrams-architecture-layout-scope",
          "metadata": {
            "sidebarTitle": "Save shared architecture layout without model diffs",
            "title": "Save shared architecture layout without model diffs"
          }
        }
      }
    },
    "/project/{projectId}/entities": {
      "get": {
        "operationId": "EntitiesController_listEntities",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "branch_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "entity_type",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Keyset cursor. Start a walk with `starting_after=0`, then pass each response's `nextPageStart` for the next page, continuing while `moreAvailable` is true. This is the preferred way to walk entities — O(limit) per page at any depth and skip-free. When set, `offset` is ignored.",
            "in": "query",
            "name": "starting_after",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Legacy offset pagination, available only below 1000. Cost grows with the offset and, under heavy deletes, a page can come up short and skip entities — prefer `starting_after`.",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Page size, at most 1000. Larger values receive a 400 Bad Request response.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityListResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List all entities with pagination",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-entities",
          "metadata": {
            "sidebarTitle": "List all entities with pagination",
            "title": "List all entities with pagination"
          }
        }
      },
      "post": {
        "operationId": "EntitiesController_createEntity",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to assign a newly created entity to the authenticated user. Defaults to true.",
            "in": "query",
            "name": "auto_assign_owner",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEntityDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityStateResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Create an entity",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-entities",
          "metadata": {
            "sidebarTitle": "Create an entity",
            "title": "Create an entity"
          }
        }
      }
    },
    "/project/{projectId}/entities/batch": {
      "post": {
        "operationId": "EntitiesController_batchCreateEntities",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchCreateEntitiesDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/EntityStateResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Create multiple entities in one transaction",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-entities-batch",
          "metadata": {
            "sidebarTitle": "Create multiple entities in one transaction",
            "title": "Create multiple entities in one transaction"
          }
        }
      }
    },
    "/project/{projectId}/entities/delete/batch": {
      "post": {
        "operationId": "EntitiesController_batchDeleteEntities",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchDeleteEntitiesDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Entities deleted"
          },
          "404": {
            "description": "One or more entities not found"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Delete multiple entities in one transaction",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-entities-delete-batch",
          "metadata": {
            "sidebarTitle": "Delete multiple entities in one transaction",
            "title": "Delete multiple entities in one transaction"
          }
        }
      }
    },
    "/project/{projectId}/entities/filter/query": {
      "post": {
        "description": "Evaluate typed field conditions and AND/OR groups with a bounded flat scan. Returns IDs, without hierarchy, sorting, or a total count. Each page reads current state; concurrent edits can change later results. Continue until next_cursor is null, including after an empty page. Relationship, subtree, comment, and history filters are not supported.",
        "operationId": "CustomerEntityFilterController_query",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerEntityFilterQueryDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEntityFilterPageDto"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Invalid filter, incompatible field operation, or cursor for a different query/data model."
          },
          "503": {
            "description": "The materialized read model is not ready. No scan result was produced; retry later."
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Filter live entities across a project",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "content": "Evaluate typed field conditions and AND/OR groups with a bounded flat scan. Returns IDs, without hierarchy, sorting, or a total count. Each page reads current state; concurrent edits can change later results. Continue until next_cursor is null, including after an empty page. Relationship, subtree, comment, and history filters are not supported.",
          "href": "/api/endpoints/post-project-projectid-entities-filter-query",
          "metadata": {
            "description": "Returns the IDs of live entities that match typed field conditions, one page at a time.",
            "sidebarTitle": "Filter live entities across a project",
            "title": "Filter live entities across a project"
          }
        }
      }
    },
    "/project/{projectId}/entities/history": {
      "post": {
        "operationId": "EntitiesController_getEntitiesHistory",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerEntityHistoryQueryDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEntityHistoryPageDto"
                }
              }
            },
            "description": ""
          },
          "409": {
            "description": "The history cursor expired because the branch was rebased."
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get a paginated change-history page for multiple entities",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-entities-history",
          "metadata": {
            "sidebarTitle": "Get a paginated change-history page for multiple entities",
            "title": "Get a paginated change-history page for multiple entities"
          }
        }
      }
    },
    "/project/{projectId}/entities/links/batch": {
      "post": {
        "operationId": "EntitiesController_batchAddLinks",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchAddLinksDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/EntityStateResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Add multiple links in one transaction",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-entities-links-batch",
          "metadata": {
            "sidebarTitle": "Add multiple links in one transaction",
            "title": "Add multiple links in one transaction"
          }
        }
      }
    },
    "/project/{projectId}/entities/links/remove/batch": {
      "post": {
        "operationId": "EntitiesController_batchRemoveLinks",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchRemoveLinksDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/EntityStateResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Remove multiple links in one transaction",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-entities-links-remove-batch",
          "metadata": {
            "sidebarTitle": "Remove multiple links in one transaction",
            "title": "Remove multiple links in one transaction"
          }
        }
      }
    },
    "/project/{projectId}/entities/reorder/batch": {
      "post": {
        "operationId": "EntitiesController_reorderChildrenBatch",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchReorderChildrenDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Downstream links reordered"
          },
          "400": {
            "description": "Invalid op — duplicate parents/children or unlinked child"
          },
          "404": {
            "description": "One or more parents not found"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Reorder downstream links of many parents in one request",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-entities-reorder-batch",
          "metadata": {
            "sidebarTitle": "Reorder downstream links of many parents in one request",
            "title": "Reorder downstream links of many parents in one request"
          }
        }
      }
    },
    "/project/{projectId}/entities/restore/batch": {
      "post": {
        "description": "Each entity comes back on the branch with the fields, links and position it had when it was deleted. Restoring an entity does not restore its parent; an entity whose parent is still deleted stays out of hierarchy views until the parent is restored too.",
        "operationId": "EntitiesController_batchRestoreEntities",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchRestoreEntitiesDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Entities restored"
          },
          "404": {
            "description": "One or more entities not found"
          },
          "409": {
            "description": "One or more entities are not deleted"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Restore multiple deleted entities in one transaction",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "content": "Each entity comes back on the branch with the fields, links and position it had when it was deleted. Restoring an entity does not restore its parent; an entity whose parent is still deleted stays out of hierarchy views until the parent is restored too.",
          "href": "/api/endpoints/post-project-projectid-entities-restore-batch",
          "metadata": {
            "description": "Restores several deleted entities in one transaction, with their fields, links, and position.",
            "sidebarTitle": "Restore multiple deleted entities in one transaction",
            "title": "Restore multiple deleted entities in one transaction"
          }
        }
      }
    },
    "/project/{projectId}/entities/search": {
      "get": {
        "description": "Search names and supported field values, or resolve exact Flow and Human IDs. Returns compact matches; use the entity-by-ID endpoint for full values and links. Matches reflect branch-visible state and exclude deleted entities. Indexed text results may be unavailable while the search index warms; exact IDs and empty-query listings remain available. Semantic suggestions, when enabled, follow ordinary matches within the total result limit.",
        "operationId": "EntitiesController_searchEntities",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Search text or an exact Flow/Human ID. An empty string lists live entities. Text searches require an indexable trigram; exact identifiers still resolve for shorter queries.",
            "in": "query",
            "name": "query",
            "required": true,
            "schema": {
              "maxLength": 1024,
              "type": "string"
            }
          },
          {
            "description": "Branch to search. Omit or pass \"master\" for Base.",
            "in": "query",
            "name": "branch_id",
            "required": false,
            "schema": {
              "maxLength": 256,
              "type": "string"
            }
          },
          {
            "description": "Restrict matches to this entity category ID.",
            "in": "query",
            "name": "entity_type",
            "required": false,
            "schema": {
              "maxLength": 256,
              "type": "string"
            }
          },
          {
            "description": "Maximum total results, including semantic suggestions when enabled. Exact identifiers and field matches precede semantic suggestions. This is a bounded search, not a paginated export.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "number"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SearchResultDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": "",
            "headers": {
              "X-Flow-Name-Search-Source": {
                "description": "Search-index serving outcome for this request.",
                "schema": {
                  "type": "string"
                }
              },
              "X-Flow-Semantic-Search": {
                "description": "Semantic search outcome; off when not attempted.",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Search live entities in a project and branch",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "content": "Search names and supported field values, or resolve exact Flow and Human IDs. Returns compact matches; use the entity-by-ID endpoint for full values and links. Matches reflect branch-visible state and exclude deleted entities. Indexed text results may be unavailable while the search index warms; exact IDs and empty-query listings remain available. Semantic suggestions, when enabled, follow ordinary matches within the total result limit.",
          "href": "/api/endpoints/get-project-projectid-entities-search",
          "metadata": {
            "description": "Searches entity names and field values, or resolves exact Flow and Human IDs.",
            "sidebarTitle": "Search live entities in a project and branch",
            "title": "Search live entities in a project and branch"
          }
        }
      }
    },
    "/project/{projectId}/entities/upsert": {
      "post": {
        "description": "Accepts an array of entities. For each: creates it if it does not exist, then writes ValueDiffs only for keys whose values have changed. Optionally links each entity as a downstream child of a parent. New children append in input order, including across successive requests. All diffs are written in a single DB round-trip for efficiency. Concurrent upserts matching the same external identifier (`idField`) are serialized server-side, so they converge on one entity instead of creating duplicates. Parents and children may be created atomically in one batch when `parentIds` contains Flow entity UUIDs, including UUIDs assigned to parent rows in that batch. `parentIds` does not resolve `idField` aliases; resolve or create such a parent first if its Flow UUID is unknown. The operation is atomic and safe to retry with the same stable IDs. If Claude Desktop reports \"No result received ... after waiting 4 minutes\", first read those IDs because the approval/dispatch may have been lost before Flow received the call; never replace the IDs merely because the result was lost. Field definition validation is intentionally skipped — callers may write arbitrary key names without pre-defining them in the schema.",
        "operationId": "EntitiesController_upsertEntities",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether newly inserted entities in the upsert batch are assigned to the authenticated user. Defaults to true; existing entities are unaffected.",
            "in": "query",
            "name": "auto_assign_owner",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Branch to write all entities to. Omit or pass \"master\" for the base branch.",
            "in": "query",
            "name": "branch_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/UpsertEntityDto"
                },
                "type": "array"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/EntityStateResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Bulk upsert entities by ID",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "content": "Accepts an array of entities. For each: creates it if it does not exist, then writes ValueDiffs only for keys whose values have changed. Optionally links each entity as a downstream child of a parent. New children append in input order, including across successive requests. All diffs are written in a single DB round-trip for efficiency. Concurrent upserts matching the same external identifier (`idField`) are serialized server-side, so they converge on one entity instead of creating duplicates. Parents and children may be created atomically in one batch when `parentIds` contains Flow entity UUIDs, including UUIDs assigned to parent rows in that batch. `parentIds` does not resolve `idField` aliases; resolve or create such a parent first if its Flow UUID is unknown. The operation is atomic and safe to retry with the same stable IDs. If Claude Desktop reports \"No result received ... after waiting 4 minutes\", first read those IDs because the approval/dispatch may have been lost before Flow received the call; never replace the IDs merely because the result was lost. Field definition validation is intentionally skipped — callers may write arbitrary key names without pre-defining them in the schema.",
          "href": "/api/endpoints/post-project-projectid-entities-upsert",
          "metadata": {
            "description": "Creates or updates many entities in one atomic call, writing only the values that changed.",
            "sidebarTitle": "Bulk upsert entities by ID",
            "title": "Bulk upsert entities by ID"
          }
        }
      }
    },
    "/project/{projectId}/entities/values/batch": {
      "put": {
        "operationId": "EntitiesController_batchSetValues",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchSetValuesDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/EntityStateResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Set multiple values in one transaction",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/put-project-projectid-entities-values-batch",
          "metadata": {
            "sidebarTitle": "Set multiple values in one transaction",
            "title": "Set multiple values in one transaction"
          }
        }
      }
    },
    "/project/{projectId}/entities/{entityId}": {
      "delete": {
        "operationId": "EntitiesController_deleteEntity",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "branch_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Entity deleted"
          },
          "404": {
            "description": "Entity not found"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Delete an entity",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/delete-project-projectid-entities-entityid",
          "metadata": {
            "sidebarTitle": "Delete an entity",
            "title": "Delete an entity"
          }
        }
      }
    },
    "/project/{projectId}/entities/{entityId}/comments": {
      "get": {
        "description": "Pass the item or branch ID as entityId to list the comments that start conversations. To read a conversation, keep the original comment and call again with its id as entityId to fetch its direct replies, oldest first. Replies are not embedded in the first list. Use the same branch_id for both calls; omit it for Base. Set include_resolved=true to include resolved comments. Each call returns direct replies only: any existing replies to replies require separate calls using those reply IDs.",
        "operationId": "CustomerCommentsController_list",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "For a new thread, the item or branch ID. For replies, the ID of the original comment that started the conversation, even when responding to a later reply. For an existing comment, use its returned entity_id when fetching, editing or deleting it.",
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "branch_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "include_resolved",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CustomerCommentResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List comment threads or replies in a thread",
        "tags": [
          "Comments"
        ],
        "x-mint": {
          "content": "Pass the item or branch ID as entityId to list the comments that start conversations. To read a conversation, keep the original comment and call again with its id as entityId to fetch its direct replies, oldest first. Replies are not embedded in the first list. Use the same branch_id for both calls; omit it for Base. Set include_resolved=true to include resolved comments. Each call returns direct replies only: any existing replies to replies require separate calls using those reply IDs.",
          "href": "/api/endpoints/get-project-projectid-entities-entityid-comments",
          "metadata": {
            "description": "Lists the comments that start conversations on an item or branch, or the replies in one thread.",
            "sidebarTitle": "List comment threads or replies in a thread",
            "title": "List comment threads or replies in a thread"
          }
        }
      },
      "post": {
        "description": "Comment threads are used in item discussions, branch discussions and reviews. To start a conversation, pass the item or branch ID as entityId. To join an existing conversation, read it first, then pass the ID of the original comment that started it as entityId, with text in the body. Use that same original comment ID for every follow-up, even when answering another reply. For example, if A starts a thread and B replies to A, answer B using entityId=A, not B. Using B creates a deeper nested reply; the API accepts this, but thread cards and internal AI thread reads do not consistently include deeper replies. Pass branch_id for the branch you are posting on; omit it for Base. The branch is not inherited from the original comment. Posting a reply does not resolve or reopen the thread.",
        "operationId": "CustomerCommentsController_create",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "For a new thread, the item or branch ID. For replies, the ID of the original comment that started the conversation, even when responding to a later reply. For an existing comment, use its returned entity_id when fetching, editing or deleting it.",
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerCreateCommentDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCommentResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Add a comment or reply in an existing thread",
        "tags": [
          "Comments"
        ],
        "x-mint": {
          "content": "Comment threads are used in item discussions, branch discussions and reviews. To start a conversation, pass the item or branch ID as entityId. To join an existing conversation, read it first, then pass the ID of the original comment that started it as entityId, with text in the body. Use that same original comment ID for every follow-up, even when answering another reply. For example, if A starts a thread and B replies to A, answer B using entityId=A, not B. Using B creates a deeper nested reply; the API accepts this, but thread cards and internal AI thread reads do not consistently include deeper replies. Pass branch_id for the branch you are posting on; omit it for Base. The branch is not inherited from the original comment. Posting a reply does not resolve or reopen the thread.",
          "href": "/api/endpoints/post-project-projectid-entities-entityid-comments",
          "metadata": {
            "description": "Starts a conversation on an item or branch, or replies in an existing thread.",
            "sidebarTitle": "Add a comment or reply in an existing thread",
            "title": "Add a comment or reply in an existing thread"
          }
        }
      }
    },
    "/project/{projectId}/entities/{entityId}/comments/{commentId}": {
      "delete": {
        "description": "Pass the target comment id as commentId and its returned entity_id as entityId. Only the author can delete their comment.",
        "operationId": "CustomerCommentsController_remove",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "For a new thread, the item or branch ID. For replies, the ID of the original comment that started the conversation, even when responding to a later reply. For an existing comment, use its returned entity_id when fetching, editing or deleting it.",
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "commentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "409": {
            "description": "The comment is busy with another write or is an immutable review explanation."
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Delete a comment or reply",
        "tags": [
          "Comments"
        ],
        "x-mint": {
          "content": "Pass the target comment id as commentId and its returned entity_id as entityId. Only the author can delete their comment.",
          "href": "/api/endpoints/delete-project-projectid-entities-entityid-comments-commentid",
          "metadata": {
            "description": "Deletes a comment or reply. Only its author can delete it.",
            "sidebarTitle": "Delete a comment or reply",
            "title": "Delete a comment or reply"
          }
        }
      },
      "get": {
        "description": "Pass the target comment id as commentId and its returned entity_id as entityId. This reads one comment, not the whole conversation; use the list operation with the original comment ID to read the thread replies.",
        "operationId": "CustomerCommentsController_getOne",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "For a new thread, the item or branch ID. For replies, the ID of the original comment that started the conversation, even when responding to a later reply. For an existing comment, use its returned entity_id when fetching, editing or deleting it.",
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "commentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCommentResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get a single comment or reply",
        "tags": [
          "Comments"
        ],
        "x-mint": {
          "content": "Pass the target comment id as commentId and its returned entity_id as entityId. This reads one comment, not the whole conversation; use the list operation with the original comment ID to read the thread replies.",
          "href": "/api/endpoints/get-project-projectid-entities-entityid-comments-commentid",
          "metadata": {
            "description": "Returns one comment or reply, without the rest of its conversation.",
            "sidebarTitle": "Get a single comment or reply",
            "title": "Get a single comment or reply"
          }
        }
      },
      "patch": {
        "description": "Pass the target comment id as commentId and its returned entity_id as entityId. To resolve or reopen the conversation, update the original comment that started it.",
        "operationId": "CustomerCommentsController_update",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "For a new thread, the item or branch ID. For replies, the ID of the original comment that started the conversation, even when responding to a later reply. For an existing comment, use its returned entity_id when fetching, editing or deleting it.",
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "commentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerUpdateCommentDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerCommentResponseDto"
                }
              }
            },
            "description": ""
          },
          "409": {
            "description": "The comment is busy with another write or is an immutable review explanation."
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Update a comment (edit text and/or resolve)",
        "tags": [
          "Comments"
        ],
        "x-mint": {
          "content": "Pass the target comment id as commentId and its returned entity_id as entityId. To resolve or reopen the conversation, update the original comment that started it.",
          "href": "/api/endpoints/patch-project-projectid-entities-entityid-comments-commentid",
          "metadata": {
            "description": "Edits a comment's text, or resolves and reopens its conversation.",
            "sidebarTitle": "Update a comment (edit text and/or resolve)",
            "title": "Update a comment (edit text and/or resolve)"
          }
        }
      }
    },
    "/project/{projectId}/entities/{entityId}/crosslinks": {
      "get": {
        "operationId": "EntitiesController_getCrosslinks",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "branch_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityCrosslinksResponseDto"
                }
              }
            },
            "description": ""
          },
          "404": {
            "description": "Entity not found"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List an entity's cross-linked peers",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-entities-entityid-crosslinks",
          "metadata": {
            "sidebarTitle": "List an entity's cross-linked peers",
            "title": "List an entity's cross-linked peers"
          }
        }
      },
      "post": {
        "operationId": "EntitiesController_addCrosslink",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCrosslinkDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityCrosslinksResponseDto"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Self cross-link, or unknown peer entity"
          },
          "403": {
            "description": "Cross-links are disabled for this organization"
          },
          "404": {
            "description": "Entity not found"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Cross-link an entity to a peer entity",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-entities-entityid-crosslinks",
          "metadata": {
            "sidebarTitle": "Cross-link an entity to a peer entity",
            "title": "Cross-link an entity to a peer entity"
          }
        }
      },
      "put": {
        "operationId": "EntitiesController_replaceCrosslinks",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaceCrosslinksDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityCrosslinksResponseDto"
                }
              }
            },
            "description": ""
          },
          "400": {
            "description": "Self cross-link, or unknown peer entity"
          },
          "403": {
            "description": "Cross-links are disabled for this organization"
          },
          "404": {
            "description": "Entity not found"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Replace an entity's entire cross-link set",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/put-project-projectid-entities-entityid-crosslinks",
          "metadata": {
            "sidebarTitle": "Replace an entity's entire cross-link set",
            "title": "Replace an entity's entire cross-link set"
          }
        }
      }
    },
    "/project/{projectId}/entities/{entityId}/crosslinks/{crosslinkId}": {
      "delete": {
        "operationId": "EntitiesController_removeCrosslink",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "crosslinkId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "branch_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Cross-link removed"
          },
          "404": {
            "description": "Entity or cross-link not found"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Remove a cross-link between two entities",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/delete-project-projectid-entities-entityid-crosslinks-crosslinkid",
          "metadata": {
            "sidebarTitle": "Remove a cross-link between two entities",
            "title": "Remove a cross-link between two entities"
          }
        }
      }
    },
    "/project/{projectId}/entities/{entityId}/formulas": {
      "put": {
        "operationId": "EntitiesController_setFormula",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetFormulaDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityStateResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Author (or clear) a formula on an entity field",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/put-project-projectid-entities-entityid-formulas",
          "metadata": {
            "sidebarTitle": "Author (or clear) a formula on an entity field",
            "title": "Author (or clear) a formula on an entity field"
          }
        }
      }
    },
    "/project/{projectId}/entities/{entityId}/links": {
      "post": {
        "operationId": "EntitiesController_addLink",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddLinkDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityStateResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Add a link from an entity",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-entities-entityid-links",
          "metadata": {
            "sidebarTitle": "Add a link from an entity",
            "title": "Add a link from an entity"
          }
        }
      }
    },
    "/project/{projectId}/entities/{entityId}/links/remove": {
      "post": {
        "operationId": "EntitiesController_removeLink",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveLinkDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityStateResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Remove a link from an entity",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-entities-entityid-links-remove",
          "metadata": {
            "sidebarTitle": "Remove a link from an entity",
            "title": "Remove a link from an entity"
          }
        }
      }
    },
    "/project/{projectId}/entities/{entityId}/restore": {
      "post": {
        "description": "Each entity comes back on the branch with the fields, links and position it had when it was deleted. Restoring an entity does not restore its parent; an entity whose parent is still deleted stays out of hierarchy views until the parent is restored too.",
        "operationId": "EntitiesController_restoreEntity",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "branch_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Entity restored"
          },
          "404": {
            "description": "Entity not found"
          },
          "409": {
            "description": "Entity is not deleted"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Restore a deleted entity",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "content": "Each entity comes back on the branch with the fields, links and position it had when it was deleted. Restoring an entity does not restore its parent; an entity whose parent is still deleted stays out of hierarchy views until the parent is restored too.",
          "href": "/api/endpoints/post-project-projectid-entities-entityid-restore",
          "metadata": {
            "description": "Restores a deleted entity with the fields, links, and position it had when deleted.",
            "sidebarTitle": "Restore a deleted entity",
            "title": "Restore a deleted entity"
          }
        }
      }
    },
    "/project/{projectId}/entities/{entityId}/values": {
      "put": {
        "operationId": "EntitiesController_setValue",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetValueDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityStateResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Set a value on an entity",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/put-project-projectid-entities-entityid-values",
          "metadata": {
            "sidebarTitle": "Set a value on an entity",
            "title": "Set a value on an entity"
          }
        }
      }
    },
    "/project/{projectId}/entities/{entity_ids}": {
      "get": {
        "operationId": "EntitiesController_getEntities",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "entity_ids",
            "required": true,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "branch_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Include creation and last-updated timestamps",
            "in": "query",
            "name": "include_metadata",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/EntityStateResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get current state of entities",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-entities-entity-ids",
          "metadata": {
            "sidebarTitle": "Get current state of entities",
            "title": "Get current state of entities"
          }
        }
      }
    },
    "/project/{projectId}/entities/{parentId}/children/reorder": {
      "put": {
        "operationId": "EntitiesController_reorderChildren",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "parentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Explicitly bypass branch protection (including Base) and branch editor groups. Requires an API key owned by an admin for this project. Defaults to false. Item locks, stage policies, field validation and branch lifecycle checks still apply.",
            "in": "query",
            "name": "bypass_branch_protection",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReorderChildrenDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Downstream links reordered"
          },
          "400": {
            "description": "Invalid downstream link IDs"
          },
          "404": {
            "description": "Upstream entity not found"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Reorder downstream links of an entity",
        "tags": [
          "Entities"
        ],
        "x-mint": {
          "href": "/api/endpoints/put-project-projectid-entities-parentid-children-reorder",
          "metadata": {
            "sidebarTitle": "Reorder downstream links of an entity",
            "title": "Reorder downstream links of an entity"
          }
        }
      }
    },
    "/project/{projectId}/events": {
      "get": {
        "description": "Engineering events for one project in delivery order: branch.changed (item changes on a branch or Base, one event per branch and actor within the page, with the touched entity ids and the origin diff-seq window they cover), branch.rebased (one event per branch per update-from-parent: the branch re-anchored onto new parent state, so re-read it — its already-delivered changes are never re-reported) and the branch review workflow (branch.created, branch.ready_for_review, branch.approved, branch.rejected, branch.merged, …, each naming the branch, its merge target and the people involved). Poll without a cursor to read from the beginning, or with start=now to receive an empty page whose next_cursor is the present (future events only, no history replayed); then store and pass back next_cursor: pages are bounded by the stream’s settled floor, so a stored cursor never skips an event that commits late. Delivery order follows next_cursor; occurred_at can be out of order across pages (historical imports carry past timestamps). Filter by comma-separated type and/or one branch (branch=<id> or branch=master for Base); a cursor minted under a filter admits that filter or a narrower one — widening is a 400 instead of a silent skip of the excluded events, so restart from an earlier cursor to widen. Events carry the project, branch (\"master\" means Base), actor and an app_url back into Flow.",
        "operationId": "ProjectEventsController_list",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The next_cursor of the previous page. Omit it to read from the beginning, or pass start=now instead to begin at the present. A cursor admits the type filter it was minted under and any narrower one; a wider filter is a 400 — restart from an earlier cursor to widen.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "start=now answers an empty page whose next_cursor is the present: poll from it to receive only events that happen after this call, without replaying history. Takes no cursor; the minted cursor is unfiltered, so it admits any later type filter.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "enum": [
                "now"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "number"
            }
          },
          {
            "description": "Comma-separated event types to include (branch.changed, branch.rebased, branch.created, branch.ready_for_review, branch.draft, branch.approved, branch.rejected, branch.review_cleared, branch.reviewer_removed, branch.owner_changed, branch.editor_groups_changed, branch.approval_dismissed, branch.admin_bypass, branch.closed, branch.reopened, branch.merged, branch.extracted, branch.extraction_undone). Omit to read every type.",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only events of one branch: a branch id, or \"master\" for Base. Omit to read every branch. Like type, a cursor minted under a branch admits only that branch (a wider poll is a 400).",
            "in": "query",
            "name": "branch",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectEventPageDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Read the project event stream",
        "tags": [
          "Events"
        ],
        "x-mint": {
          "content": "Engineering events for one project in delivery order: branch.changed (item changes on a branch or Base, one event per branch and actor within the page, with the touched entity ids and the origin diff-seq window they cover), branch.rebased (one event per branch per update-from-parent: the branch re-anchored onto new parent state, so re-read it — its already-delivered changes are never re-reported) and the branch review workflow (branch.created, branch.ready_for_review, branch.approved, branch.rejected, branch.merged, …, each naming the branch, its merge target and the people involved). Poll without a cursor to read from the beginning, or with start=now to receive an empty page whose next_cursor is the present (future events only, no history replayed); then store and pass back next_cursor: pages are bounded by the stream’s settled floor, so a stored cursor never skips an event that commits late. Delivery order follows next_cursor; occurred_at can be out of order across pages (historical imports carry past timestamps). Filter by comma-separated type and/or one branch (branch=&lt;id> or branch=master for Base); a cursor minted under a filter admits that filter or a narrower one — widening is a 400 instead of a silent skip of the excluded events, so restart from an earlier cursor to widen. Events carry the project, branch (\"master\" means Base), actor and an app_url back into Flow.",
          "href": "/api/endpoints/get-project-projectid-events",
          "metadata": {
            "description": "Polls a project's branch changes and review events in delivery order, with a resumable cursor.",
            "sidebarTitle": "Read the project event stream",
            "title": "Read the project event stream"
          }
        }
      }
    },
    "/project/{projectId}/files": {
      "get": {
        "description": "Returns up to 500 of the project's most recently uploaded files, newest first.",
        "operationId": "FilesController_list",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/FileRecordResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List the files uploaded to a project",
        "tags": [
          "Files"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-files",
          "metadata": {
            "sidebarTitle": "List the files uploaded to a project",
            "title": "List the files uploaded to a project"
          }
        }
      }
    },
    "/project/{projectId}/files/request-upload": {
      "post": {
        "description": "Returns a temporary upload URL. PUT the file directly to the returned URL. Use POST /files/upload instead if you prefer to send the file through the API.",
        "operationId": "FilesController_requestUpload",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Branch rendered by the shared Reader view.",
            "in": "query",
            "name": "branchId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Saved view that granted the external Reader access.",
            "in": "query",
            "name": "viewId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Reachable entity whose rich text or diagram references the file.",
            "in": "query",
            "name": "entityId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFileDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileUploadResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Request a presigned upload URL",
        "tags": [
          "Files"
        ],
        "x-mint": {
          "content": "Returns a temporary upload URL. PUT the file directly to the returned URL. Use POST /files/upload instead if you prefer to send the file through the API.",
          "href": "/api/endpoints/post-project-projectid-files-request-upload",
          "metadata": {
            "description": "Returns a temporary URL to upload a file's bytes to directly.",
            "sidebarTitle": "Request a presigned upload URL",
            "title": "Request a presigned upload URL"
          }
        }
      }
    },
    "/project/{projectId}/files/request-uploads": {
      "post": {
        "description": "Batch version of POST /files/request-upload. Returns a presigned upload URL for each file in one round-trip; PUT each file directly to its returned URL. Results are in the same order as the request `files`.",
        "operationId": "FilesController_requestUploads",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Branch rendered by the shared Reader view.",
            "in": "query",
            "name": "branchId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Saved view that granted the external Reader access.",
            "in": "query",
            "name": "viewId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Reachable entity whose rich text or diagram references the file.",
            "in": "query",
            "name": "entityId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchRequestUploadDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchFileUploadResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Request presigned upload URLs for multiple files",
        "tags": [
          "Files"
        ],
        "x-mint": {
          "content": "Batch version of POST /files/request-upload. Returns a presigned upload URL for each file in one round-trip; PUT each file directly to its returned URL. Results are in the same order as the request `files`.",
          "href": "/api/endpoints/post-project-projectid-files-request-uploads",
          "metadata": {
            "description": "Returns a temporary upload URL for each of several files in one call.",
            "sidebarTitle": "Request presigned upload URLs for multiple files",
            "title": "Request presigned upload URLs for multiple files"
          }
        }
      }
    },
    "/project/{projectId}/files/upload": {
      "post": {
        "description": "Uploads a file as multipart/form-data, proxying the bytes through the API. Maximum file size: 100 MB — for anything larger use POST /files/request-upload and PUT the bytes to the presigned URL (up to 512 MB). The returned `id` can be used to embed the file in descriptions using the `flow-file:` scheme: `![alt](flow-file:{id})`.",
        "operationId": "FilesController_upload",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Branch rendered by the shared Reader view.",
            "in": "query",
            "name": "branchId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Saved view that granted the external Reader access.",
            "in": "query",
            "name": "viewId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Reachable entity whose rich text or diagram references the file.",
            "in": "query",
            "name": "entityId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "File to upload",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRecordResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Upload a file",
        "tags": [
          "Files"
        ],
        "x-mint": {
          "content": "Uploads a file as multipart/form-data, proxying the bytes through the API. Maximum file size: 100 MB — for anything larger use POST /files/request-upload and PUT the bytes to the presigned URL (up to 512 MB). The returned `id` can be used to embed the file in descriptions using the `flow-file:` scheme: `![alt](flow-file:{id})`.",
          "href": "/api/endpoints/post-project-projectid-files-upload",
          "metadata": {
            "description": "Uploads a file of up to 100 MB through the API as multipart form data.",
            "sidebarTitle": "Upload a file",
            "title": "Upload a file"
          }
        }
      }
    },
    "/project/{projectId}/files/urls": {
      "post": {
        "description": "Batch version of GET /files/:id/url. Returns time-limited URLs for up to 100 file IDs.",
        "operationId": "FilesController_getUrls",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Branch rendered by the shared Reader view.",
            "in": "query",
            "name": "branchId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Saved view that granted the external Reader access.",
            "in": "query",
            "name": "viewId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Reachable entity whose rich text or diagram references the file.",
            "in": "query",
            "name": "entityId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchFileUrlsRequestDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchFileUrlsResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get temporary download URLs for multiple files",
        "tags": [
          "Files"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-files-urls",
          "metadata": {
            "sidebarTitle": "Get temporary download URLs for multiple files",
            "title": "Get temporary download URLs for multiple files"
          }
        }
      }
    },
    "/project/{projectId}/files/{id}": {
      "delete": {
        "description": "Permanently deletes a file. Only the user who uploaded the file can delete it.",
        "operationId": "FilesController_remove",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Delete a file",
        "tags": [
          "Files"
        ],
        "x-mint": {
          "href": "/api/endpoints/delete-project-projectid-files-id",
          "metadata": {
            "sidebarTitle": "Delete a file",
            "title": "Delete a file"
          }
        }
      }
    },
    "/project/{projectId}/files/{id}/request-upload": {
      "post": {
        "description": "Returns a temporary upload URL that replaces an existing file's content in place, keeping its id. PUT the file directly to the returned URL. Use this when a reference to the file had to be written before its bytes were available. The stored name and mime type are reused; only the size is updated. Only the user who created the file can replace it.",
        "operationId": "FilesController_requestReupload",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Branch rendered by the shared Reader view.",
            "in": "query",
            "name": "branchId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Saved view that granted the external Reader access.",
            "in": "query",
            "name": "viewId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Reachable entity whose rich text or diagram references the file.",
            "in": "query",
            "name": "entityId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReuploadFileDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileUploadResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Request a presigned upload URL for an existing file",
        "tags": [
          "Files"
        ],
        "x-mint": {
          "content": "Returns a temporary upload URL that replaces an existing file's content in place, keeping its id. PUT the file directly to the returned URL. Use this when a reference to the file had to be written before its bytes were available. The stored name and mime type are reused; only the size is updated. Only the user who created the file can replace it.",
          "href": "/api/endpoints/post-project-projectid-files-id-request-upload",
          "metadata": {
            "description": "Returns a temporary URL that replaces an existing file's content while keeping its ID.",
            "sidebarTitle": "Request a presigned upload URL for an existing file",
            "title": "Request a presigned upload URL for an existing file"
          }
        }
      }
    },
    "/project/{projectId}/files/{id}/url": {
      "get": {
        "description": "Returns a time-limited URL for downloading or viewing the file. The URL can be used directly in img tags, download links, etc.",
        "operationId": "FilesController_getUrl",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Branch rendered by the shared Reader view.",
            "in": "query",
            "name": "branchId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Saved view that granted the external Reader access.",
            "in": "query",
            "name": "viewId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Reachable entity whose rich text or diagram references the file.",
            "in": "query",
            "name": "entityId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileUrlResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get a temporary download URL for a file",
        "tags": [
          "Files"
        ],
        "x-mint": {
          "content": "Returns a time-limited URL for downloading or viewing the file. The URL can be used directly in img tags, download links, etc.",
          "href": "/api/endpoints/get-project-projectid-files-id-url",
          "metadata": {
            "description": "Returns a time-limited URL for downloading or viewing a file.",
            "sidebarTitle": "Get a temporary download URL for a file",
            "title": "Get a temporary download URL for a file"
          }
        }
      }
    },
    "/project/{projectId}/flow-md": {
      "get": {
        "operationId": "ProjectController_getFlowMd",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whose document: the project's shared one (default) or the requester's own.",
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "enum": [
                "project",
                "personal"
              ],
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlowMdResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get the project's or the requester's Flow.md",
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-flow-md",
          "metadata": {
            "sidebarTitle": "Get the project's or the requester's Flow.md",
            "title": "Get the project's or the requester's Flow.md"
          }
        }
      },
      "put": {
        "operationId": "ProjectController_updateFlowMd",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whose document: the project's shared one (default) or the requester's own.",
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "enum": [
                "project",
                "personal"
              ],
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFlowMdDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlowMdResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Replace the project's or the requester's Flow.md",
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "href": "/api/endpoints/put-project-projectid-flow-md",
          "metadata": {
            "sidebarTitle": "Replace the project's or the requester's Flow.md",
            "title": "Replace the project's or the requester's Flow.md"
          }
        }
      }
    },
    "/project/{projectId}/import/pdf-page-image": {
      "post": {
        "description": "No model call. Returns base64 PNG plus the pixel dimensions, so a caller can overlay the normalised boxes an analysis reported.",
        "operationId": "ImportController_pdfPageImage",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PdfPageImageRequestDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PdfPageImageResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Render one PDF page as an image",
        "tags": [
          "Import"
        ],
        "x-mint": {
          "content": "No model call. Returns base64 PNG plus the pixel dimensions, so a caller can overlay the normalised boxes an analysis reported.",
          "href": "/api/endpoints/post-project-projectid-import-pdf-page-image",
          "metadata": {
            "description": "Renders one PDF page as a PNG image with its pixel dimensions.",
            "sidebarTitle": "Render one PDF page as an image",
            "title": "Render one PDF page as an image"
          }
        }
      }
    },
    "/project/{projectId}/import/runs": {
      "get": {
        "operationId": "ImportController_listRuns",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportRunListDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List this project's recent import runs",
        "tags": [
          "Import"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-import-runs",
          "metadata": {
            "sidebarTitle": "List this project's recent import runs",
            "title": "List this project's recent import runs"
          }
        }
      },
      "post": {
        "description": "Returns as soon as the run is persisted. A leased backend worker cuts each file into chunks a model can read on its own — one per PDF page, one per image — and reads them off the request path. Poll the run for progress and read its output when it settles. Nothing here writes entity data.",
        "operationId": "ImportController_startRun",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartImportRunDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportRunProgressDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Start an import run over a set of uploaded files",
        "tags": [
          "Import"
        ],
        "x-mint": {
          "content": "Returns as soon as the run is persisted. A leased backend worker cuts each file into chunks a model can read on its own — one per PDF page, one per image — and reads them off the request path. Poll the run for progress and read its output when it settles. Nothing here writes entity data.",
          "href": "/api/endpoints/post-project-projectid-import-runs",
          "metadata": {
            "description": "Starts a background import that reads a set of uploaded files page by page.",
            "sidebarTitle": "Start an import run over a set of uploaded files",
            "title": "Start an import run over a set of uploaded files"
          }
        }
      }
    },
    "/project/{projectId}/import/runs/{runId}": {
      "get": {
        "description": "Chunks read so far out of the total, plus running counts of candidate entities, relationships and notes. `chunksTotal` is null until planning has opened every file and knows how many chunks there are.",
        "operationId": "ImportController_runProgress",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "runId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportRunProgressDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Poll an import run",
        "tags": [
          "Import"
        ],
        "x-mint": {
          "content": "Chunks read so far out of the total, plus running counts of candidate entities, relationships and notes. `chunksTotal` is null until planning has opened every file and knows how many chunks there are.",
          "href": "/api/endpoints/get-project-projectid-import-runs-runid",
          "metadata": {
            "description": "Reports how much of an import run has been read and what it has found so far.",
            "sidebarTitle": "Poll an import run",
            "title": "Poll an import run"
          }
        }
      }
    },
    "/project/{projectId}/import/runs/{runId}/cancel": {
      "post": {
        "description": "Nothing further is read, and the chunks already read stay readable. A run that settled before the request arrived keeps its outcome; the returned progress says which happened.",
        "operationId": "ImportController_cancelRun",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "runId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportRunProgressDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Stop an import run",
        "tags": [
          "Import"
        ],
        "x-mint": {
          "content": "Nothing further is read, and the chunks already read stay readable. A run that settled before the request arrived keeps its outcome; the returned progress says which happened.",
          "href": "/api/endpoints/post-project-projectid-import-runs-runid-cancel",
          "metadata": {
            "description": "Stops an import run. Chunks already read stay available.",
            "sidebarTitle": "Stop an import run",
            "title": "Stop an import run"
          }
        }
      }
    },
    "/project/{projectId}/import/runs/{runId}/chunks": {
      "get": {
        "description": "Every chunk with the analysis it produced, provenance intact. This is the debug view; the rolled-up output is what an agent reads.",
        "operationId": "ImportController_runChunks",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "runId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportRunDetailDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Read an import run chunk by chunk",
        "tags": [
          "Import"
        ],
        "x-mint": {
          "content": "Every chunk with the analysis it produced, provenance intact. This is the debug view; the rolled-up output is what an agent reads.",
          "href": "/api/endpoints/get-project-projectid-import-runs-runid-chunks",
          "metadata": {
            "description": "Returns every chunk of an import run with the analysis it produced.",
            "sidebarTitle": "Read an import run chunk by chunk",
            "title": "Read an import run chunk by chunk"
          }
        }
      }
    },
    "/project/{projectId}/import/runs/{runId}/output": {
      "get": {
        "description": "Candidate entities merged by name, carrying every type they were called and everything the pages said about them, relationships merged by their ends, and the notes each chunk left. Readable before the run settles; it then covers only the chunks read so far.",
        "operationId": "ImportController_runOutput",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "runId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportRunOutputDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Read an import run rolled up across its chunks",
        "tags": [
          "Import"
        ],
        "x-mint": {
          "content": "Candidate entities merged by name, carrying every type they were called and everything the pages said about them, relationships merged by their ends, and the notes each chunk left. Readable before the run settles; it then covers only the chunks read so far.",
          "href": "/api/endpoints/get-project-projectid-import-runs-runid-output",
          "metadata": {
            "description": "Returns an import run's entities, relationships, and notes merged across its chunks.",
            "sidebarTitle": "Read an import run rolled up across its chunks",
            "title": "Read an import run rolled up across its chunks"
          }
        }
      }
    },
    "/project/{projectId}/reqif-import/upload": {
      "post": {
        "description": "Creates an import job and returns a presigned URL the client PUTs the .reqif/.reqifz bytes to directly. Call the parse endpoint once the PUT completes.",
        "operationId": "ReqifImportController_requestUpload",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReqifImportUploadDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReqifImportUploadResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Request a presigned URL to upload a ReqIF archive",
        "tags": [
          "ReqIF Import"
        ],
        "x-mint": {
          "content": "Creates an import job and returns a presigned URL the client PUTs the .reqif/.reqifz bytes to directly. Call the parse endpoint once the PUT completes.",
          "href": "/api/endpoints/post-project-projectid-reqif-import-upload",
          "metadata": {
            "description": "Creates a ReqIF import job and returns a URL to upload the archive to.",
            "sidebarTitle": "Request a presigned URL to upload a ReqIF archive",
            "title": "Request a presigned URL to upload a ReqIF archive"
          }
        }
      }
    },
    "/project/{projectId}/reqif-import/{jobId}": {
      "get": {
        "operationId": "ReqifImportController_find",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReqifImportJobResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Poll a ReqIF import job",
        "tags": [
          "ReqIF Import"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-reqif-import-jobid",
          "metadata": {
            "sidebarTitle": "Poll a ReqIF import job",
            "title": "Poll a ReqIF import job"
          }
        }
      }
    },
    "/project/{projectId}/reqif-import/{jobId}/commit": {
      "post": {
        "description": "Queues the durable write of the parsed document onto its reserved branch. Poll the job for progress and the branch id.",
        "operationId": "ReqifImportController_commit",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommitReqifImportDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReqifImportJobResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Commit a ReqIF import with the chosen mapping",
        "tags": [
          "ReqIF Import"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-reqif-import-jobid-commit",
          "metadata": {
            "sidebarTitle": "Commit a ReqIF import with the chosen mapping",
            "title": "Commit a ReqIF import with the chosen mapping"
          }
        }
      }
    },
    "/project/{projectId}/reqif-import/{jobId}/parse": {
      "post": {
        "description": "Queues the durable parse of an uploaded archive. Poll the job for the file-derived schema, then map and commit.",
        "operationId": "ReqifImportController_parse",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReqifImportJobResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Parse an uploaded ReqIF archive",
        "tags": [
          "ReqIF Import"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-project-projectid-reqif-import-jobid-parse",
          "metadata": {
            "sidebarTitle": "Parse an uploaded ReqIF archive",
            "title": "Parse an uploaded ReqIF archive"
          }
        }
      }
    },
    "/project/{projectId}/reqif-import/{jobId}/preview": {
      "post": {
        "description": "Streams the parsed document with the given mapping and returns one page of a clause's rows, each marked as creating or updating an item on the starting branch, plus optional per-clause counts. Writes nothing.",
        "operationId": "ReqifImportController_preview",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreviewReqifImportDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReqifImportPreviewResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Preview what a commit with this mapping would write",
        "tags": [
          "ReqIF Import"
        ],
        "x-mint": {
          "content": "Streams the parsed document with the given mapping and returns one page of a clause's rows, each marked as creating or updating an item on the starting branch, plus optional per-clause counts. Writes nothing.",
          "href": "/api/endpoints/post-project-projectid-reqif-import-jobid-preview",
          "metadata": {
            "description": "Previews one page of the items a ReqIF import commit would create or update, without writing.",
            "sidebarTitle": "Preview what a commit with this mapping would write",
            "title": "Preview what a commit with this mapping would write"
          }
        }
      }
    },
    "/project/{projectId}/sidebar-notifications-enabled": {
      "get": {
        "operationId": "ProjectController_getSidebarNotificationsEnabled",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SidebarNotificationsEnabledResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get the project's sidebar notifications toggle",
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-sidebar-notifications-enabled",
          "metadata": {
            "sidebarTitle": "Get the project's sidebar notifications toggle",
            "title": "Get the project's sidebar notifications toggle"
          }
        }
      }
    },
    "/project/{projectId}/updated-variant-view-enabled": {
      "get": {
        "operationId": "ProjectController_getUpdatedVariantViewEnabled",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdatedVariantViewEnabledResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get the workspace's updated variant-view toggle",
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-updated-variant-view-enabled",
          "metadata": {
            "sidebarTitle": "Get the workspace's updated variant-view toggle",
            "title": "Get the workspace's updated variant-view toggle"
          }
        }
      }
    },
    "/project/{projectId}/variants-enabled": {
      "get": {
        "deprecated": true,
        "operationId": "ProjectController_getVariantsEnabled",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VariantsEnabledResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Always true (false for external recipients)",
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-variants-enabled",
          "metadata": {
            "sidebarTitle": "Always true (false for external recipients)",
            "title": "Always true (false for external recipients)"
          }
        }
      },
      "put": {
        "deprecated": true,
        "operationId": "ProjectController_updateVariantsEnabled",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVariantsEnabledDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VariantsEnabledResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "No-op: variants can no longer be turned off",
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "href": "/api/endpoints/put-project-projectid-variants-enabled",
          "metadata": {
            "sidebarTitle": "No-op: variants can no longer be turned off",
            "title": "No-op: variants can no longer be turned off"
          }
        }
      }
    },
    "/project/{projectId}/views/saved": {
      "get": {
        "description": "Every shared view, in display order, each shaped like the single-view responses. A view's `id` is what sharing a view takes as `view_id`.",
        "operationId": "ViewsController_listSavedViews",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedSavedViewsResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List the project's shared saved views",
        "tags": [
          "Views"
        ],
        "x-mint": {
          "content": "Every shared view, in display order, each shaped like the single-view responses. A view's `id` is what sharing a view takes as `view_id`.",
          "href": "/api/endpoints/get-project-projectid-views-saved",
          "metadata": {
            "description": "Lists the project's shared saved views in display order.",
            "sidebarTitle": "List the project's shared saved views",
            "title": "List the project's shared saved views"
          }
        }
      },
      "post": {
        "description": "Requires Admin access. Adds one view after the existing shared views, visible to every project member. Sets its structure (start type and nesting rules, by data type id) and optionally its table columns, filters and sort, each checked against the data model; display options are edited in Flow. An id that is already a shared view answers 409.",
        "operationId": "ViewsController_createSavedView",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSharedSavedViewDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedSavedViewDto"
                }
              }
            },
            "description": ""
          },
          "409": {
            "description": "A shared view already has this id."
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Create a shared saved view",
        "tags": [
          "Views"
        ],
        "x-mint": {
          "content": "Requires Admin access. Adds one view after the existing shared views, visible to every project member. Sets its structure (start type and nesting rules, by data type id) and optionally its table columns, filters and sort, each checked against the data model; display options are edited in Flow. An id that is already a shared view answers 409.",
          "href": "/api/endpoints/post-project-projectid-views-saved",
          "metadata": {
            "description": "Creates a shared saved view visible to every project member.",
            "sidebarTitle": "Create a shared saved view",
            "title": "Create a shared saved view"
          }
        }
      }
    },
    "/project/{projectId}/views/saved/{viewId}": {
      "delete": {
        "description": "Requires Admin access. Removes the view for every project member. An admin can restore it from the audit log.",
        "operationId": "ViewsController_deleteSavedView",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "viewId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Delete a shared saved view",
        "tags": [
          "Views"
        ],
        "x-mint": {
          "href": "/api/endpoints/delete-project-projectid-views-saved-viewid",
          "metadata": {
            "sidebarTitle": "Delete a shared saved view",
            "title": "Delete a shared saved view"
          }
        }
      },
      "get": {
        "operationId": "ViewsController_getSavedView",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "viewId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedSavedViewDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get a shared saved view",
        "tags": [
          "Views"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-project-projectid-views-saved-viewid",
          "metadata": {
            "sidebarTitle": "Get a shared saved view",
            "title": "Get a shared saved view"
          }
        }
      },
      "patch": {
        "description": "Requires Admin access. Changes only the fields you send and keeps the rest of the view, including its display options. `relationships`, `columns`, `filters` and `sort` each replace that whole part of the view; null clears columns, filters or sort.",
        "operationId": "ViewsController_updateSavedView",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "viewId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSharedSavedViewDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedSavedViewDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Update a shared saved view",
        "tags": [
          "Views"
        ],
        "x-mint": {
          "content": "Requires Admin access. Changes only the fields you send and keeps the rest of the view, including its display options. `relationships`, `columns`, `filters` and `sort` each replace that whole part of the view; null clears columns, filters or sort.",
          "href": "/api/endpoints/patch-project-projectid-views-saved-viewid",
          "metadata": {
            "description": "Updates only the fields you send on a shared saved view.",
            "sidebarTitle": "Update a shared saved view",
            "title": "Update a shared saved view"
          }
        }
      }
    },
    "/project/{projectId}/views/saved/{viewId}/relationships": {
      "delete": {
        "description": "Requires Admin access. Removes the rule for `parentType` and `childType` and keeps the view's other rules. A view without that rule answers 404. Returns the view.",
        "operationId": "ViewsController_removeSavedViewRelationship",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "viewId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Data type id of the rule's parent.",
            "in": "query",
            "name": "parentType",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Data type id of the rule's child.",
            "in": "query",
            "name": "childType",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedSavedViewDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Remove a nesting rule from a shared saved view",
        "tags": [
          "Views"
        ],
        "x-mint": {
          "content": "Requires Admin access. Removes the rule for `parentType` and `childType` and keeps the view's other rules. A view without that rule answers 404. Returns the view.",
          "href": "/api/endpoints/delete-project-projectid-views-saved-viewid-relationships",
          "metadata": {
            "description": "Removes one nesting rule from a shared saved view and keeps its other rules.",
            "sidebarTitle": "Remove a nesting rule from a shared saved view",
            "title": "Remove a nesting rule from a shared saved view"
          }
        }
      },
      "post": {
        "description": "Requires Admin access. Appends one rule (\"under `parentType`, show items of `childType`\") after the view's other rules, which are kept. A rule is identified by its `parentType` and `childType`: sending a rule the view already has, with the same direction, changes nothing, so a retry is safe; the same pair with another direction answers 409. Returns the view.",
        "operationId": "ViewsController_addSavedViewRelationship",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "viewId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavedViewRelationshipDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedSavedViewDto"
                }
              }
            },
            "description": ""
          },
          "409": {
            "description": "The view already has a rule for this pair with another direction."
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Add a nesting rule to a shared saved view",
        "tags": [
          "Views"
        ],
        "x-mint": {
          "content": "Requires Admin access. Appends one rule (\"under `parentType`, show items of `childType`\") after the view's other rules, which are kept. A rule is identified by its `parentType` and `childType`: sending a rule the view already has, with the same direction, changes nothing, so a retry is safe; the same pair with another direction answers 409. Returns the view.",
          "href": "/api/endpoints/post-project-projectid-views-saved-viewid-relationships",
          "metadata": {
            "description": "Adds a nesting rule to a shared saved view and keeps its existing rules.",
            "sidebarTitle": "Add a nesting rule to a shared saved view",
            "title": "Add a nesting rule to a shared saved view"
          }
        }
      }
    },
    "/reqif/parse": {
      "post": {
        "description": "Resolves a ReqIF document against an optional import mapping and returns the entities it describes (identifier, flow type, field values — with XHTML fields converted to rich-text JSON), the hierarchy/relation links, and the file-derived default schema. No entities are created; this is a read-only preview of what an import would produce.",
        "operationId": "ReqifController_parse",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParseReqifDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "defaultSchema": {
                      "type": "object"
                    },
                    "entities": {
                      "items": {
                        "properties": {
                          "identifier": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "values": {
                            "type": "object"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "links": {
                      "items": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Parsed entities, links and the file-derived default schema"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Parse a ReqIF document into a flow-shaped preview",
        "tags": [
          "ReqIF"
        ],
        "x-mint": {
          "content": "Resolves a ReqIF document against an optional import mapping and returns the entities it describes (identifier, flow type, field values — with XHTML fields converted to rich-text JSON), the hierarchy/relation links, and the file-derived default schema. No entities are created; this is a read-only preview of what an import would produce.",
          "href": "/api/endpoints/post-reqif-parse",
          "metadata": {
            "description": "Previews the entities and links a ReqIF document would import, without creating anything.",
            "sidebarTitle": "Parse a ReqIF document into a flow-shaped preview",
            "title": "Parse a ReqIF document into a flow-shaped preview"
          }
        }
      }
    },
    "/review-policy": {
      "get": {
        "description": "The conditions a branch in any project must meet to merge (minimum approvals, changed-item review) and who may override them.",
        "operationId": "ReviewPolicyController_get",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewPolicyResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Read the review policy",
        "tags": [
          "Review policy"
        ],
        "x-mint": {
          "content": "The conditions a branch in any project must meet to merge (minimum approvals, changed-item review) and who may override them.",
          "href": "/api/endpoints/get-review-policy",
          "metadata": {
            "description": "Returns the conditions a branch must meet to merge and who may override them.",
            "sidebarTitle": "Read the review policy",
            "title": "Read the review policy"
          }
        }
      },
      "patch": {
        "description": "Admins only. Omitted fields keep their stored value; the changed-item review fields are replaced as a whole list.",
        "operationId": "ReviewPolicyController_update",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateReviewPolicyDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewPolicyResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Update the review policy",
        "tags": [
          "Review policy"
        ],
        "x-mint": {
          "href": "/api/endpoints/patch-review-policy",
          "metadata": {
            "sidebarTitle": "Update the review policy",
            "title": "Update the review policy"
          }
        }
      }
    },
    "/shared-grants": {
      "post": {
        "operationId": "SharedGrantsController_create",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSharedAccessGrantDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedAccessGrantResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Create a shared-access grant",
        "tags": [
          "Shared Access Grants"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-shared-grants",
          "metadata": {
            "sidebarTitle": "Create a shared-access grant",
            "title": "Create a shared-access grant"
          }
        }
      }
    },
    "/shared-grants/project/{projectId}": {
      "get": {
        "operationId": "SharedGrantsController_findExpiredGrants",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SharedAccessGrantResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List shared-access grants in a project, including expired ones. Admins get every grant; other members get the grants they created.",
        "tags": [
          "Shared Access Grants"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-shared-grants-project-projectid",
          "metadata": {
            "sidebarTitle": "List shared-access grants in a project, including expired ones. Admins get every grant; other members get the grants they created.",
            "title": "List shared-access grants in a project, including expired ones. Admins get every grant; other members get the grants they created."
          }
        }
      }
    },
    "/shared-grants/project/{projectId}/me": {
      "get": {
        "operationId": "SharedGrantsController_findCurrentUserGrants",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SharedAccessGrantResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List active shared-access grants held by the current user in this project",
        "tags": [
          "Shared Access Grants"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-shared-grants-project-projectid-me",
          "metadata": {
            "sidebarTitle": "List active shared-access grants held by the current user in this project",
            "title": "List active shared-access grants held by the current user in this project"
          }
        }
      }
    },
    "/shared-grants/project/{projectId}/me/can-write": {
      "get": {
        "operationId": "SharedGrantsController_canCurrentUserWriteScope",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Branch the rendered share view is scoped to.",
            "in": "query",
            "name": "branchId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "CustomView.id the rendered share view is scoped to.",
            "in": "query",
            "name": "viewId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Currently rendered entity id to test against reachable writer grants.",
            "in": "query",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedGrantWriteAccessResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Check whether the current external user can write the rendered share scope",
        "tags": [
          "Shared Access Grants"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-shared-grants-project-projectid-me-can-write",
          "metadata": {
            "sidebarTitle": "Check whether the current external user can write the rendered share scope",
            "title": "Check whether the current external user can write the rendered share scope"
          }
        }
      }
    },
    "/shared-grants/project/{projectId}/scope": {
      "get": {
        "operationId": "SharedGrantsController_findByScope",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Branch the dialog is scoped to. \"master\" for the base branch.",
            "in": "query",
            "name": "branchId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "CustomView.id the dialog is scoped to.",
            "in": "query",
            "name": "viewId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Starting entity id the dialog is anchored to.",
            "in": "query",
            "name": "entityId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SharedAccessGrantResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List active grants for the (project, branch, view, starting entity) scope",
        "tags": [
          "Shared Access Grants"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-shared-grants-project-projectid-scope",
          "metadata": {
            "sidebarTitle": "List active grants for the (project, branch, view, starting entity) scope",
            "title": "List active grants for the (project, branch, view, starting entity) scope"
          }
        }
      }
    },
    "/shared-grants/project/{projectId}/{id}": {
      "delete": {
        "operationId": "SharedGrantsController_remove",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Grant deleted"
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Revoke a shared-access grant",
        "tags": [
          "Shared Access Grants"
        ],
        "x-mint": {
          "href": "/api/endpoints/delete-shared-grants-project-projectid-id",
          "metadata": {
            "sidebarTitle": "Revoke a shared-access grant",
            "title": "Revoke a shared-access grant"
          }
        }
      }
    },
    "/shared-grants/project/{projectId}/{id}/upstream-context": {
      "put": {
        "operationId": "SharedGrantsController_updateUpstreamContext",
        "parameters": [
          {
            "in": "path",
            "name": "projectId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUpstreamContextDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedAccessGrantResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Replace the path above a shared item: individual item shares are added and removed to match",
        "tags": [
          "Shared Access Grants"
        ],
        "x-mint": {
          "href": "/api/endpoints/put-shared-grants-project-projectid-id-upstream-context",
          "metadata": {
            "sidebarTitle": "Replace the path above a shared item: individual item shares are added and removed to match",
            "title": "Replace the path above a shared item: individual item shares are added and removed to match"
          }
        }
      }
    },
    "/shared-grants/share-view": {
      "post": {
        "operationId": "SharedGrantsController_shareView",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareViewBatchDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareViewBatchResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Issue one grant per recipient for each destination. Atomic across the batch.",
        "tags": [
          "Shared Access Grants"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-shared-grants-share-view",
          "metadata": {
            "sidebarTitle": "Issue one grant per recipient for each destination. Atomic across the batch.",
            "title": "Issue one grant per recipient for each destination. Atomic across the batch."
          }
        }
      }
    },
    "/user-groups": {
      "get": {
        "operationId": "UserGroupsController_findAll",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/UserGroupResponseDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List user groups in the workspace",
        "tags": [
          "User Groups"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-user-groups",
          "metadata": {
            "sidebarTitle": "List user groups in the workspace",
            "title": "List user groups in the workspace"
          }
        }
      },
      "post": {
        "operationId": "UserGroupsController_create",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserGroupDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserGroupResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Create a user group",
        "tags": [
          "User Groups"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-user-groups",
          "metadata": {
            "sidebarTitle": "Create a user group",
            "title": "Create a user group"
          }
        }
      }
    },
    "/user-groups/{id}": {
      "delete": {
        "description": "Stage gates referencing the deleted group lose those eligible reviewers (fail closed); edit the affected gates afterwards.",
        "operationId": "UserGroupsController_remove",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Delete a user group",
        "tags": [
          "User Groups"
        ],
        "x-mint": {
          "content": "Stage gates referencing the deleted group lose those eligible reviewers (fail closed); edit the affected gates afterwards.",
          "href": "/api/endpoints/delete-user-groups-id",
          "metadata": {
            "description": "Deletes a user group. Stage gates that reference it lose those reviewers.",
            "sidebarTitle": "Delete a user group",
            "title": "Delete a user group"
          }
        }
      },
      "patch": {
        "operationId": "UserGroupsController_update",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserGroupDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserGroupResponseDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Rename a user group or replace its members",
        "tags": [
          "User Groups"
        ],
        "x-mint": {
          "href": "/api/endpoints/patch-user-groups-id",
          "metadata": {
            "sidebarTitle": "Rename a user group or replace its members",
            "title": "Rename a user group or replace its members"
          }
        }
      }
    },
    "/users": {
      "get": {
        "operationId": "UsersController_findAll",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "project_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "agent_project_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "assignable",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/UserDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List all users",
        "tags": [
          "Users"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-users",
          "metadata": {
            "sidebarTitle": "List all users",
            "title": "List all users"
          }
        }
      }
    },
    "/users/by-ids": {
      "get": {
        "operationId": "UsersController_findByIds",
        "parameters": [
          {
            "in": "query",
            "name": "ids",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/UserDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get the users with the given ids. An id that is unknown, malformed, or outside the caller’s visible set is simply absent from the response.",
        "tags": [
          "Users"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-users-by-ids",
          "metadata": {
            "sidebarTitle": "Get users by ID",
            "title": "Get users by ID"
          }
        }
      }
    },
    "/users/invite/bulk": {
      "post": {
        "operationId": "UsersController_inviteUsersBulk",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkInviteUserDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkInviteResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Invite many users at once. Names are unknown at invite time and stored empty until each user signs in.",
        "tags": [
          "Users"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-users-invite-bulk",
          "metadata": {
            "sidebarTitle": "Invite users in bulk",
            "title": "Invite users in bulk"
          }
        }
      }
    },
    "/users/invite/bulk-detailed": {
      "post": {
        "operationId": "UsersController_inviteUsersBulkDetailed",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkInviteDetailedDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkInviteResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Invite many fully-specified users at once (per-user name, role, and project access). Used by the v2 -> v3 migration to provision users in one round-trip while preserving each source user’s name and scope.",
        "tags": [
          "Users"
        ],
        "x-mint": {
          "href": "/api/endpoints/post-users-invite-bulk-detailed",
          "metadata": {
            "sidebarTitle": "Invite users with roles and access",
            "title": "Invite users with roles and access"
          }
        }
      }
    },
    "/users/me": {
      "get": {
        "operationId": "UsersController_me",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserWithPermissionsDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get the current authenticated user",
        "tags": [
          "Users"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-users-me",
          "metadata": {
            "sidebarTitle": "Get the current authenticated user",
            "title": "Get the current authenticated user"
          }
        }
      }
    },
    "/users/page": {
      "get": {
        "operationId": "UsersController_findPage",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "project_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "agent_project_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "include_ids",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "assignable",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserPageDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "List one page of users",
        "tags": [
          "Users"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-users-page",
          "metadata": {
            "sidebarTitle": "List one page of users",
            "title": "List one page of users"
          }
        }
      }
    },
    "/users/remove/bulk": {
      "post": {
        "operationId": "UsersController_bulkRemoveUsers",
        "parameters": [
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkRemoveUsersDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkRemoveUsersResultDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Remove the selected users from the workspace in one request. Users the caller cannot administer (or that no longer exist) are reported back as failed rather than removed.",
        "tags": [
          "Users"
        ],
        "x-flow-mcp-tool": false,
        "x-mint": {
          "href": "/api/endpoints/post-users-remove-bulk",
          "metadata": {
            "sidebarTitle": "Remove the selected users from the workspace in one request. Users the caller cannot administer (or that no longer exist) are reported back as failed rather than removed.",
            "title": "Remove the selected users from the workspace in one request. Users the caller cannot administer (or that no longer exist) are reported back as failed rather than removed."
          }
        }
      }
    },
    "/users/with-permissions": {
      "get": {
        "operationId": "UsersController_findAllWithPermissions",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "role",
            "required": false,
            "schema": {
              "enum": [
                "admin",
                "editor",
                "read_only",
                "external"
              ],
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/UserWithPermissionsDto"
                  },
                  "type": "array"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "tags": [
          "Users"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-users-with-permissions",
          "metadata": {
            "sidebarTitle": "List users with permissions",
            "title": "List users with permissions"
          }
        }
      }
    },
    "/users/{id}": {
      "delete": {
        "operationId": "UsersController_removeUser",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Remove a user from the workspace. Their account and authored content remain; they lose access until invited again.",
        "tags": [
          "Users"
        ],
        "x-flow-mcp-tool": false,
        "x-mint": {
          "href": "/api/endpoints/delete-users-id",
          "metadata": {
            "sidebarTitle": "Remove a user from the workspace. Their account and authored content remain; they lose access until invited again.",
            "title": "Remove a user from the workspace. Their account and authored content remain; they lose access until invited again."
          }
        }
      },
      "get": {
        "operationId": "UsersController_findOne",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get a user by ID",
        "tags": [
          "Users"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-users-id",
          "metadata": {
            "sidebarTitle": "Get a user by ID",
            "title": "Get a user by ID"
          }
        }
      }
    },
    "/users/{id}/name": {
      "patch": {
        "description": "Requires an all-project admin. Replaces both name fields for the specified user, including users who have not signed in yet. Does not change email, role, or project access.",
        "operationId": "UsersController_updateName",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserNameDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Update a user’s name in this workspace",
        "tags": [
          "Users"
        ],
        "x-mint": {
          "content": "Requires an all-project admin. Replaces both name fields for the specified user, including users who have not signed in yet. Does not change email, role, or project access.",
          "href": "/api/endpoints/patch-users-id-name",
          "metadata": {
            "description": "Replaces a user's name fields in this workspace.",
            "sidebarTitle": "Update a user’s name in this workspace",
            "title": "Update a user’s name in this workspace"
          }
        }
      }
    },
    "/users/{id}/profile-picture-url": {
      "get": {
        "operationId": "UsersController_getProfilePictureUrl",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Workspace identifier",
            "in": "header",
            "name": "customer",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfilePictureUrlDto"
                }
              }
            },
            "description": ""
          }
        },
        "security": [
          {
            "api-key": []
          },
          {
            "bearer": []
          }
        ],
        "summary": "Get presigned URL for a user profile picture",
        "tags": [
          "Users"
        ],
        "x-mint": {
          "href": "/api/endpoints/get-users-id-profile-picture-url",
          "metadata": {
            "sidebarTitle": "Get presigned URL for a user profile picture",
            "title": "Get presigned URL for a user profile picture"
          }
        }
      }
    }
  },
  "servers": [
    {
      "description": "Flow API",
      "url": "{baseUrl}",
      "variables": {
        "baseUrl": {
          "default": "https://backend.branch.flowengineering.com"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Audit"
    },
    {
      "name": "Automations"
    },
    {
      "name": "Branches"
    },
    {
      "name": "Comments"
    },
    {
      "name": "Convert"
    },
    {
      "name": "Data Model"
    },
    {
      "name": "Diagrams"
    },
    {
      "name": "Entities"
    },
    {
      "name": "Events"
    },
    {
      "name": "Files"
    },
    {
      "name": "Import"
    },
    {
      "name": "Notifications"
    },
    {
      "name": "Persistent agents"
    },
    {
      "name": "Projects"
    },
    {
      "name": "ReqIF"
    },
    {
      "name": "ReqIF Import"
    },
    {
      "name": "Review policy"
    },
    {
      "name": "Shared Access Grants"
    },
    {
      "name": "User Groups"
    },
    {
      "name": "Users"
    },
    {
      "name": "Views"
    }
  ]
}
