{ "components": { "schemas": { "AcceptInvitationRequest": { "properties": { "displayName": { "maxLength": 100, "minLength": 0, "type": "string" }, "password": { "type": "string" }, "token": { "minLength": 1, "type": "string" } }, "required": [ "token" ], "type": "object" }, "ActionTokenRequest": { "properties": { "token": { "minLength": 1, "type": "string", "writeOnly": true } }, "required": [ "token" ], "type": "object" }, "AlertRuleResponse": { "additionalProperties": false, "properties": { "channel": { "enum": [ "EMAIL" ], "type": "string" }, "comparator": { "enum": [ "GT", "GTE", "LT", "LTE", "EQ" ], "type": "string" }, "cooldownMinutes": { "format": "int32", "type": "integer" }, "createdAt": { "format": "date-time", "type": "string" }, "createdByMembershipId": { "format": "uuid", "type": "string" }, "destination": { "type": "string" }, "enabled": { "type": "boolean" }, "evaluationWindowMinutes": { "format": "int32", "type": "integer" }, "id": { "format": "uuid", "type": "string" }, "lastTriggeredAt": { "format": "date-time", "type": "string" }, "metricType": { "enum": [ "CHANGE_LEAD_TIME_HOURS", "DEPLOYMENT_FREQUENCY", "FAILED_DEPLOYMENT_RECOVERY_TIME_HOURS", "CHANGE_FAILURE_RATE_PERCENT", "PR_RISK_SCORE" ], "type": "string" }, "name": { "type": "string" }, "repositoryFullName": { "type": "string" }, "repositoryId": { "format": "uuid", "type": "string" }, "thresholdValue": { "type": "number" }, "updatedAt": { "format": "date-time", "type": "string" }, "workspaceId": { "format": "uuid", "type": "string" } }, "required": [ "channel", "comparator", "cooldownMinutes", "createdAt", "destination", "enabled", "evaluationWindowMinutes", "id", "metricType", "name", "repositoryFullName", "repositoryId", "thresholdValue", "updatedAt", "workspaceId" ], "type": "object" }, "AuthSessionResponse": { "oneOf": [ { "$ref": "#/components/schemas/AuthenticatedSessionResponse" }, { "$ref": "#/components/schemas/WorkspaceSelectionSessionResponse" } ] }, "AuthenticatedSessionResponse": { "additionalProperties": false, "properties": { "accessToken": { "description": "Memory-only Bearer JWT.", "type": "string" }, "currentMembership": { "$ref": "#/components/schemas/MembershipSummary" }, "expiresInSeconds": { "format": "int32", "minimum": 1, "type": "integer" }, "user": { "$ref": "#/components/schemas/UserSummary" }, "workspaceSelectionRequired": { "enum": [ false ], "type": "boolean" }, "workspaces": { "description": "Active workspace memberships. Empty when the account must create a workspace.", "items": { "$ref": "#/components/schemas/WorkspaceSummaryResponse" }, "type": "array" } }, "required": [ "accessToken", "currentMembership", "expiresInSeconds", "user", "workspaceSelectionRequired", "workspaces" ], "type": "object" }, "ChangeFailureRateDetailDto": { "properties": { "commitSha": { "type": "string" }, "deploymentId": { "format": "uuid", "type": "string" }, "environment": { "type": "string" }, "finishedAt": { "format": "date-time", "type": "string" }, "incident": { "$ref": "#/components/schemas/ChangeFailureRateIncidentRefDto" }, "isFailure": { "type": "boolean" }, "repositoryFullName": { "type": "string" }, "repositoryId": { "format": "uuid", "type": "string" }, "repositoryName": { "type": "string" }, "status": { "enum": [ "QUEUED", "IN_PROGRESS", "SUCCESS", "FAILURE", "CANCELLED" ], "type": "string" } }, "type": "object" }, "ChangeFailureRateDetailsResponse": { "properties": { "failedDeployments": { "format": "int64", "type": "integer" }, "failureRatePercent": { "format": "double", "type": "number" }, "items": { "items": { "$ref": "#/components/schemas/ChangeFailureRateDetailDto" }, "type": "array" }, "page": { "format": "int32", "type": "integer" }, "projectId": { "format": "uuid", "type": "string" }, "rangeEnd": { "format": "date-time", "type": "string" }, "rangeStart": { "format": "date-time", "type": "string" }, "repositoryCount": { "format": "int32", "type": "integer" }, "repositoryId": { "format": "uuid", "type": "string" }, "size": { "format": "int32", "type": "integer" }, "timezone": { "type": "string" }, "totalDeployments": { "format": "int64", "type": "integer" }, "totalElements": { "format": "int64", "type": "integer" }, "totalPages": { "format": "int32", "type": "integer" }, "workspaceId": { "format": "uuid", "type": "string" } }, "type": "object" }, "ChangeFailureRateIncidentRefDto": { "properties": { "id": { "format": "uuid", "type": "string" }, "severity": { "enum": [ "UNKNOWN", "SEV1", "SEV2", "SEV3", "SEV4" ], "type": "string" }, "title": { "type": "string" } }, "type": "object" }, "ChangeLeadTimeDetailDto": { "properties": { "authorLogin": { "type": "string" }, "codingTimeSeconds": { "format": "int64", "type": "integer" }, "deployTimeSeconds": { "format": "int64", "type": "integer" }, "deployedAt": { "format": "date-time", "type": "string" }, "deploymentCommitSha": { "type": "string" }, "deploymentEnvironment": { "type": "string" }, "firstCommitAt": { "format": "date-time", "type": "string" }, "leadTimeSeconds": { "format": "int64", "type": "integer" }, "mergedAt": { "format": "date-time", "type": "string" }, "openedAt": { "format": "date-time", "type": "string" }, "prId": { "format": "uuid", "type": "string" }, "prNumber": { "format": "int32", "type": "integer" }, "prTitle": { "type": "string" }, "prUrl": { "type": "string" }, "repositoryFullName": { "type": "string" }, "repositoryId": { "format": "uuid", "type": "string" }, "repositoryName": { "type": "string" }, "repositoryOwnerLogin": { "type": "string" }, "reviewTimeSeconds": { "format": "int64", "type": "integer" } }, "type": "object" }, "ChangeLeadTimeDetailsResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/ChangeLeadTimeDetailDto" }, "type": "array" }, "page": { "format": "int32", "type": "integer" }, "projectId": { "format": "uuid", "type": "string" }, "rangeEnd": { "format": "date-time", "type": "string" }, "rangeStart": { "format": "date-time", "type": "string" }, "repositoryCount": { "format": "int32", "type": "integer" }, "repositoryId": { "format": "uuid", "type": "string" }, "size": { "format": "int32", "type": "integer" }, "timezone": { "type": "string" }, "totalElements": { "format": "int64", "type": "integer" }, "totalPages": { "format": "int32", "type": "integer" }, "workspaceId": { "format": "uuid", "type": "string" } }, "type": "object" }, "ChatMessageResponse": { "properties": { "content": { "type": "string" }, "createdAt": { "format": "date-time", "type": "string" }, "id": { "format": "uuid", "type": "string" }, "projectId": { "format": "uuid", "type": "string" }, "sender": { "$ref": "#/components/schemas/ChatMessageSenderDto" } }, "type": "object" }, "ChatMessageSenderDto": { "properties": { "avatarUrl": { "type": "string" }, "displayName": { "type": "string" }, "email": { "type": "string" }, "membershipId": { "format": "uuid", "type": "string" }, "role": { "enum": [ "MANAGER", "LEAD" ], "type": "string" }, "userId": { "format": "uuid", "type": "string" } }, "type": "object" }, "CreateAlertRuleRequest": { "additionalProperties": false, "properties": { "channel": { "enum": [ "EMAIL" ], "type": "string" }, "comparator": { "enum": [ "GT", "GTE", "LT", "LTE", "EQ" ], "type": "string" }, "cooldownMinutes": { "format": "int32", "minimum": 0, "type": "integer" }, "destination": { "format": "email", "maxLength": 320, "minLength": 0, "type": "string" }, "enabled": { "type": "boolean" }, "evaluationWindowMinutes": { "format": "int32", "minimum": 1, "type": "integer" }, "metricType": { "enum": [ "CHANGE_LEAD_TIME_HOURS", "DEPLOYMENT_FREQUENCY", "FAILED_DEPLOYMENT_RECOVERY_TIME_HOURS", "CHANGE_FAILURE_RATE_PERCENT", "PR_RISK_SCORE" ], "type": "string" }, "name": { "maxLength": 160, "minLength": 0, "type": "string" }, "repositoryId": { "format": "uuid", "type": "string" }, "thresholdValue": { "type": "number" } }, "required": [ "comparator", "metricType", "name", "repositoryId", "thresholdValue" ], "type": "object" }, "CreateProjectRequest": { "properties": { "description": { "maxLength": 1000, "minLength": 0, "type": "string" }, "jiraProjectIds": { "items": { "format": "uuid", "type": "string" }, "maxItems": 100, "minItems": 0, "type": "array", "uniqueItems": true }, "name": { "maxLength": 160, "minLength": 0, "type": "string" }, "repositories": { "items": { "$ref": "#/components/schemas/ProjectRepositoryConfigurationRequest" }, "maxItems": 500, "minItems": 0, "type": "array" } }, "required": [ "name" ], "type": "object" }, "CreateRepositoryLeadInvitationRequest": { "additionalProperties": false, "properties": { "email": { "format": "email", "maxLength": 320, "minLength": 0, "type": "string" } }, "required": [ "email" ], "type": "object" }, "CreateWorkspaceRequest": { "properties": { "name": { "maxLength": 160, "minLength": 0, "type": "string" }, "timezone": { "minLength": 1, "type": "string" } }, "required": [ "name", "timezone" ], "type": "object" }, "CurrentWorkspaceMemberLookupResponse": { "additionalProperties": false, "properties": { "assignableAsLead": { "type": "boolean" }, "email": { "type": "string" }, "emailVerified": { "type": "boolean" }, "existingUser": { "type": "boolean" }, "workspaceMembershipId": { "format": "uuid", "type": [ "string", "null" ] }, "workspaceMembershipStatus": { "enum": [ "ACTIVE", "SUSPENDED" ], "type": [ "string", "null" ] }, "workspaceRole": { "enum": [ "MANAGER", "LEAD" ], "type": [ "string", "null" ] } }, "required": [ "assignableAsLead", "email", "emailVerified", "existingUser" ], "type": "object" }, "CurrentWorkspaceResponse": { "additionalProperties": false, "properties": { "id": { "format": "uuid", "type": "string" }, "membershipId": { "format": "uuid", "type": "string" }, "name": { "type": "string" }, "role": { "enum": [ "MANAGER", "LEAD" ], "type": "string" }, "slug": { "type": "string" }, "timezone": { "type": "string" } }, "required": [ "id", "membershipId", "name", "role", "slug", "timezone" ], "type": "object" }, "CycleTimePeriodDto": { "properties": { "bottleneck": { "description": "This period's stage with the longest non-zero median, or null when no stage took measurable time. Chosen by the same rule as the range bottleneck.", "enum": [ "CODING", "PICKUP", "REVIEW", "DEPLOY" ], "type": "string" }, "periodEnd": { "description": "Exclusive end of the calendar period. The last period can end after the requested range.", "format": "date-time", "type": "string" }, "periodStart": { "description": "Start of the calendar day, Monday-start week or month in the workspace timezone. The first period can start before the requested range; only merges inside the range are counted.", "format": "date-time", "type": "string" }, "pullRequestCount": { "description": "Merged pull requests in this period and inside the requested range.", "format": "int32", "type": "integer" }, "stages": { "items": { "$ref": "#/components/schemas/CycleTimeStageDto" }, "type": "array" } }, "type": "object" }, "CycleTimeResponse": { "properties": { "bottleneck": { "description": "Stage with the longest non-zero median, or null when no stage took measurable time.", "enum": [ "CODING", "PICKUP", "REVIEW", "DEPLOY" ], "type": "string" }, "calculatedAt": { "format": "date-time", "type": "string" }, "calculationVersion": { "type": "string" }, "granularity": { "enum": [ "DAY", "WEEK", "MONTH" ], "type": "string" }, "periodEnd": { "format": "date-time", "type": "string" }, "periodStart": { "format": "date-time", "type": "string" }, "projectId": { "format": "uuid", "type": "string" }, "pullRequestCount": { "description": "Merged pull requests in the range with at least one measurable stage.", "format": "int32", "type": "integer" }, "repositoryCount": { "format": "int32", "type": "integer" }, "repositoryId": { "format": "uuid", "type": "string" }, "series": { "items": { "$ref": "#/components/schemas/CycleTimePeriodDto" }, "type": "array" }, "stages": { "items": { "$ref": "#/components/schemas/CycleTimeStageDto" }, "type": "array" }, "stale": { "type": "boolean" }, "timezone": { "type": "string" }, "unreviewedPullRequestCount": { "description": "Merged pull requests in the range that no human reviewed before merge.", "format": "int32", "type": "integer" }, "workspaceId": { "format": "uuid", "type": "string" } }, "type": "object" }, "CycleTimeStageDto": { "properties": { "medianHours": { "description": "Median hours spent in this stage; zero when sampleSize is zero.", "type": "number" }, "p75Hours": { "type": "number" }, "sampleSize": { "description": "Merged pull requests with a measurable duration for this stage.", "format": "int32", "type": "integer" }, "stage": { "enum": [ "CODING", "PICKUP", "REVIEW", "DEPLOY" ], "type": "string" } }, "type": "object" }, "DeleteWorkspaceRequest": { "properties": { "confirmationSlug": { "minLength": 1, "type": "string" } }, "required": [ "confirmationSlug" ], "type": "object" }, "DeploymentFrequencyDetailDto": { "properties": { "commitSha": { "type": "string" }, "deployedAt": { "format": "date-time", "type": "string" }, "durationSeconds": { "format": "int64", "type": "integer" }, "environment": { "type": "string" }, "id": { "format": "uuid", "type": "string" }, "repositoryFullName": { "type": "string" }, "repositoryId": { "format": "uuid", "type": "string" }, "repositoryName": { "type": "string" }, "source": { "enum": [ "GITHUB_DEPLOYMENT", "GITHUB_WORKFLOW", "MANUAL" ], "type": "string" } }, "type": "object" }, "DeploymentFrequencyDetailsResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/DeploymentFrequencyDetailDto" }, "type": "array" }, "page": { "format": "int32", "type": "integer" }, "projectId": { "format": "uuid", "type": "string" }, "rangeEnd": { "format": "date-time", "type": "string" }, "rangeStart": { "format": "date-time", "type": "string" }, "repositoryCount": { "format": "int32", "type": "integer" }, "repositoryId": { "format": "uuid", "type": "string" }, "size": { "format": "int32", "type": "integer" }, "timezone": { "type": "string" }, "totalElements": { "format": "int64", "type": "integer" }, "totalPages": { "format": "int32", "type": "integer" }, "workspaceId": { "format": "uuid", "type": "string" } }, "type": "object" }, "DoraMetricsSeriesResponse": { "properties": { "calculatedAt": { "format": "date-time", "type": "string" }, "calculationVersion": { "type": "string" }, "granularity": { "enum": [ "DAY", "WEEK", "MONTH" ], "type": "string" }, "periodEnd": { "format": "date-time", "type": "string" }, "periodStart": { "format": "date-time", "type": "string" }, "projectId": { "format": "uuid", "type": "string" }, "repositoryCount": { "format": "int32", "type": "integer" }, "repositoryId": { "format": "uuid", "type": "string" }, "series": { "items": { "$ref": "#/components/schemas/MetricSeriesItemDto" }, "type": "array" }, "stale": { "type": "boolean" }, "timezone": { "type": "string" }, "workspaceId": { "format": "uuid", "type": "string" } }, "type": "object" }, "DoraMetricsSummaryResponse": { "properties": { "calculatedAt": { "format": "date-time", "type": "string" }, "calculationVersion": { "type": "string" }, "changeFailureRate": { "$ref": "#/components/schemas/MetricSummaryDto" }, "changeLeadTime": { "$ref": "#/components/schemas/MetricSummaryDto" }, "deploymentFrequency": { "$ref": "#/components/schemas/MetricSummaryDto" }, "periodEnd": { "format": "date-time", "type": "string" }, "periodStart": { "format": "date-time", "type": "string" }, "projectId": { "format": "uuid", "type": "string" }, "recoveryTime": { "$ref": "#/components/schemas/MetricSummaryDto" }, "repositoryCount": { "format": "int32", "type": "integer" }, "repositoryId": { "format": "uuid", "type": "string" }, "stale": { "type": "boolean" }, "timezone": { "type": "string" }, "workspaceId": { "format": "uuid", "type": "string" } }, "type": "object" }, "EmailRequest": { "properties": { "email": { "format": "email", "maxLength": 320, "minLength": 0, "type": "string" } }, "required": [ "email" ], "type": "object" }, "FieldError": { "additionalProperties": false, "properties": { "field": { "type": "string" }, "message": { "type": "string" } }, "required": [ "field", "message" ], "type": "object" }, "GithubConnectUrlResponse": { "properties": { "state": { "type": "string" }, "url": { "type": "string" } }, "type": "object" }, "GithubIntegrationResponse": { "properties": { "accountLogin": { "type": "string" }, "accountType": { "enum": [ "ORGANIZATION", "USER" ], "type": "string" }, "id": { "format": "uuid", "type": "string" }, "installationId": { "format": "int64", "type": "integer" }, "installedAt": { "format": "date-time", "type": "string" }, "lastSyncedAt": { "format": "date-time", "type": "string" }, "repositoryCount": { "format": "int32", "type": "integer" }, "repositorySelection": { "enum": [ "ALL", "SELECTED" ], "type": "string" }, "status": { "enum": [ "ACTIVE", "SUSPENDED", "REVOKED", "ERROR" ], "type": "string" }, "workspaceId": { "format": "uuid", "type": "string" } }, "type": "object" }, "GoogleOnboardingRequest": { "additionalProperties": false, "properties": { "timezone": { "minLength": 1, "type": "string" }, "workspaceName": { "maxLength": 160, "minLength": 0, "type": "string" } }, "required": [ "timezone", "workspaceName" ], "type": "object" }, "GoogleReauthenticationStartResponse": { "additionalProperties": false, "properties": { "authorizationUrl": { "type": "string" } }, "required": [ "authorizationUrl" ], "type": "object" }, "InvitationPreviewResponse": { "properties": { "email": { "type": "string" }, "existingAccount": { "type": "boolean" }, "expiresAt": { "format": "date-time", "type": "string" }, "hasPassword": { "type": "boolean" }, "repositories": { "items": { "type": "string" }, "type": "array" }, "role": { "enum": [ "MANAGER", "LEAD" ], "type": "string" }, "workspaceName": { "type": "string" } }, "type": "object" }, "JiraConnectUrlResponse": { "properties": { "state": { "type": "string" }, "url": { "type": "string" } }, "type": "object" }, "JiraIntegrationResponse": { "properties": { "cloudId": { "type": "string" }, "displayName": { "type": "string" }, "id": { "format": "uuid", "type": "string" }, "lastSyncedAt": { "format": "date-time", "type": "string" }, "projectCount": { "format": "int32", "type": "integer" }, "siteUrl": { "type": "string" }, "status": { "enum": [ "ACTIVE", "SUSPENDED", "REVOKED", "ERROR" ], "type": "string" }, "workspaceId": { "format": "uuid", "type": "string" } }, "type": "object" }, "JiraProjectResponse": { "properties": { "id": { "format": "uuid", "type": "string" }, "jiraIntegrationId": { "format": "uuid", "type": "string" }, "jiraProjectId": { "type": "string" }, "lastSyncedAt": { "format": "date-time", "type": "string" }, "projectKey": { "type": "string" }, "projectName": { "type": "string" }, "projectType": { "type": "string" }, "trackingEnabled": { "type": "boolean" }, "workspaceId": { "format": "uuid", "type": "string" } }, "type": "object" }, "LeadCandidateResponse": { "properties": { "avatarUrl": { "type": "string" }, "githubUserId": { "type": "string" }, "login": { "type": "string" }, "permission": { "type": "string" }, "publicEmail": { "type": "string" } }, "type": "object" }, "LoginRequest": { "properties": { "email": { "type": "string" }, "password": { "type": "string", "writeOnly": true } }, "required": [ "email", "password" ], "type": "object" }, "LookupWorkspaceMemberRequest": { "additionalProperties": false, "properties": { "email": { "format": "email", "maxLength": 320, "minLength": 0, "type": "string" } }, "required": [ "email" ], "type": "object" }, "MapRepositoryJiraProjectsRequest": { "properties": { "jiraProjectIds": { "items": { "format": "uuid", "type": "string" }, "type": "array" } }, "required": [ "jiraProjectIds" ], "type": "object" }, "MeResponse": { "additionalProperties": false, "properties": { "currentMembership": { "$ref": "#/components/schemas/MembershipSummary" }, "user": { "$ref": "#/components/schemas/UserSummary" }, "workspaces": { "items": { "$ref": "#/components/schemas/WorkspaceSummaryResponse" }, "type": "array" } }, "required": [ "currentMembership", "user", "workspaces" ], "type": "object" }, "MembershipSummary": { "additionalProperties": false, "properties": { "id": { "format": "uuid", "type": "string" }, "role": { "enum": [ "MANAGER", "LEAD" ], "type": "string" }, "timezone": { "type": "string" }, "workspaceId": { "format": "uuid", "type": "string" }, "workspaceName": { "type": "string" }, "workspaceSlug": { "type": "string" } }, "required": [ "id", "role", "timezone", "workspaceId", "workspaceName", "workspaceSlug" ], "type": "object" }, "MetricSeriesItemDto": { "properties": { "dimensions": { "additionalProperties": {}, "type": "object" }, "metricType": { "enum": [ "CHANGE_LEAD_TIME_HOURS", "DEPLOYMENT_FREQUENCY", "FAILED_DEPLOYMENT_RECOVERY_TIME_HOURS", "CHANGE_FAILURE_RATE_PERCENT", "PR_CODING_TIME_HOURS", "PR_PICKUP_TIME_HOURS", "PR_REVIEW_TIME_HOURS", "PR_DEPLOY_TIME_HOURS" ], "type": "string" }, "periodEnd": { "format": "date-time", "type": "string" }, "periodStart": { "format": "date-time", "type": "string" }, "sampleSize": { "format": "int32", "type": "integer" }, "unit": { "type": "string" }, "value": { "type": "number" } }, "type": "object" }, "MetricSummaryDto": { "properties": { "dimensions": { "additionalProperties": {}, "type": "object" }, "rating": { "enum": [ "ELITE", "HIGH", "MEDIUM", "LOW", "UNKNOWN" ], "type": "string" }, "sampleSize": { "format": "int32", "type": "integer" }, "unit": { "type": "string" }, "value": { "type": "number" } }, "type": "object" }, "PasswordReauthenticationRequest": { "properties": { "password": { "type": "string", "writeOnly": true } }, "required": [ "password" ], "type": "object" }, "PendingRepositoryLeadInvitationResponse": { "additionalProperties": false, "properties": { "assignmentId": { "format": "uuid", "type": "string" }, "email": { "type": "string" }, "expiresAt": { "format": "date-time", "type": "string" }, "invitationId": { "format": "uuid", "type": "string" }, "repositoryId": { "format": "uuid", "type": "string" }, "role": { "enum": [ "MANAGER", "LEAD" ], "type": "string" }, "status": { "enum": [ "PENDING", "ACCEPTED", "REVOKED", "EXPIRED" ], "type": "string" } }, "required": [ "assignmentId", "email", "expiresAt", "invitationId", "repositoryId", "role", "status" ], "type": "object" }, "ProblemDetail": { "additionalProperties": false, "description": "RFC 9457 problem response with stable Adept fields.", "properties": { "code": { "type": "string" }, "detail": { "type": "string" }, "fieldErrors": { "items": { "$ref": "#/components/schemas/FieldError" }, "type": "array" }, "instance": { "format": "uri", "type": "string" }, "status": { "format": "int32", "type": "integer" }, "title": { "type": "string" }, "traceId": { "type": "string" }, "type": { "format": "uri", "type": "string" } }, "required": [ "code", "detail", "instance", "status", "title", "traceId", "type" ], "type": "object" }, "ProjectGithubIssuePageResponse": { "additionalProperties": false, "properties": { "items": { "items": { "$ref": "#/components/schemas/ProjectGithubIssueResponse" }, "type": "array" }, "page": { "format": "int32", "type": "integer" }, "size": { "format": "int32", "type": "integer" }, "totalElements": { "format": "int64", "type": "integer" }, "totalPages": { "format": "int32", "type": "integer" } }, "required": [ "items", "page", "size", "totalElements", "totalPages" ], "type": "object" }, "ProjectGithubIssueResponse": { "additionalProperties": false, "properties": { "assigneeLogins": { "items": { "type": "string" }, "type": "array" }, "authorLogin": { "type": "string" }, "commentsCount": { "format": "int32", "type": "integer" }, "createdAt": { "format": "date-time", "type": "string" }, "id": { "format": "uuid", "type": "string" }, "labels": { "items": { "type": "string" }, "type": "array" }, "number": { "format": "int32", "type": "integer" }, "repositoryFullName": { "type": "string" }, "repositoryId": { "format": "uuid", "type": "string" }, "title": { "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" }, "url": { "type": "string" } }, "required": [ "assigneeLogins", "commentsCount", "createdAt", "id", "labels", "number", "repositoryFullName", "repositoryId", "title", "url" ], "type": "object" }, "ProjectIssueSyncResponse": { "additionalProperties": false, "properties": { "alreadyQueuedGithubRepositories": { "format": "int32", "type": "integer" }, "alreadyQueuedJiraIntegrations": { "format": "int32", "type": "integer" }, "queuedGithubRepositories": { "format": "int32", "type": "integer" }, "queuedJiraIntegrations": { "format": "int32", "type": "integer" } }, "required": [ "alreadyQueuedGithubRepositories", "alreadyQueuedJiraIntegrations", "queuedGithubRepositories", "queuedJiraIntegrations" ], "type": "object" }, "ProjectJiraIssuePageResponse": { "additionalProperties": false, "properties": { "items": { "items": { "$ref": "#/components/schemas/ProjectJiraIssueResponse" }, "type": "array" }, "page": { "format": "int32", "type": "integer" }, "size": { "format": "int32", "type": "integer" }, "totalElements": { "format": "int64", "type": "integer" }, "totalPages": { "format": "int32", "type": "integer" } }, "required": [ "items", "page", "size", "totalElements", "totalPages" ], "type": "object" }, "ProjectJiraIssueResponse": { "additionalProperties": false, "properties": { "createdAt": { "format": "date-time", "type": "string" }, "id": { "format": "uuid", "type": "string" }, "issueKey": { "type": "string" }, "issueType": { "type": "string" }, "jiraProjectId": { "format": "uuid", "type": "string" }, "jiraProjectKey": { "type": "string" }, "jiraProjectName": { "type": "string" }, "priorityName": { "type": "string" }, "statusName": { "type": "string" }, "summary": { "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" }, "url": { "type": "string" } }, "required": [ "createdAt", "id", "issueKey", "jiraProjectId", "jiraProjectKey", "jiraProjectName", "summary", "url" ], "type": "object" }, "ProjectJiraProjectResponse": { "additionalProperties": false, "properties": { "id": { "format": "uuid", "type": "string" }, "projectKey": { "type": "string" }, "projectName": { "type": "string" }, "trackingEnabled": { "type": "boolean" } }, "required": [ "id", "projectKey", "projectName", "trackingEnabled" ], "type": "object" }, "ProjectPullRequestRiskItemResponse": { "additionalProperties": false, "properties": { "authorLogin": { "type": "string" }, "draft": { "type": "boolean" }, "number": { "format": "int32", "type": "integer" }, "openedAt": { "format": "date-time", "type": "string" }, "predictedAt": { "format": "date-time", "type": "string" }, "pullRequestId": { "format": "uuid", "type": "string" }, "repositoryFullName": { "type": "string" }, "repositoryId": { "format": "uuid", "type": "string" }, "riskLevel": { "enum": [ "LOW", "MEDIUM", "HIGH", "CRITICAL" ], "type": "string" }, "riskScore": { "type": "number" }, "stalled": { "type": "boolean" }, "thresholdUsed": { "type": "number" }, "title": { "type": "string" }, "topFactors": { "items": { "additionalProperties": {}, "type": "object" }, "type": "array" }, "url": { "type": "string" } }, "required": [ "draft", "number", "openedAt", "predictedAt", "pullRequestId", "repositoryFullName", "repositoryId", "riskLevel", "riskScore", "stalled", "title", "topFactors", "url" ], "type": "object" }, "ProjectPullRequestRiskPageResponse": { "additionalProperties": false, "properties": { "disclaimer": { "type": "string" }, "displayLabel": { "type": "string" }, "featureSchemaVersion": { "type": "string" }, "items": { "items": { "$ref": "#/components/schemas/ProjectPullRequestRiskItemResponse" }, "type": "array" }, "modelName": { "type": "string" }, "modelVersion": { "type": "string" }, "page": { "format": "int32", "type": "integer" }, "size": { "format": "int32", "type": "integer" }, "stalledBefore": { "format": "date-time", "type": "string" }, "totalElements": { "format": "int64", "type": "integer" }, "totalPages": { "format": "int32", "type": "integer" } }, "required": [ "disclaimer", "displayLabel", "featureSchemaVersion", "items", "modelName", "modelVersion", "page", "size", "stalledBefore", "totalElements", "totalPages" ], "type": "object" }, "ProjectPullRequestRiskRebuildResponse": { "additionalProperties": false, "properties": { "alreadyQueuedRepositories": { "format": "int32", "type": "integer" }, "modelVersion": { "type": "string" }, "queuedRepositories": { "format": "int32", "type": "integer" } }, "required": [ "alreadyQueuedRepositories", "modelVersion", "queuedRepositories" ], "type": "object" }, "ProjectRepositoryConfigurationRequest": { "additionalProperties": false, "properties": { "jiraProjectIds": { "items": { "format": "uuid", "type": "string" }, "maxItems": 100, "minItems": 0, "type": "array", "uniqueItems": true }, "repositoryId": { "format": "uuid", "type": "string" } }, "required": [ "jiraProjectIds", "repositoryId" ], "type": "object" }, "ProjectRepositoryResponse": { "additionalProperties": false, "properties": { "archived": { "type": "boolean" }, "fullName": { "type": "string" }, "id": { "format": "uuid", "type": "string" }, "jiraProjects": { "items": { "$ref": "#/components/schemas/ProjectJiraProjectResponse" }, "type": "array" }, "trackingEnabled": { "type": "boolean" } }, "required": [ "archived", "fullName", "id", "jiraProjects", "trackingEnabled" ], "type": "object" }, "ProjectResponse": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "id": { "format": "uuid", "type": "string" }, "jiraProjects": { "items": { "$ref": "#/components/schemas/ProjectJiraProjectResponse" }, "type": "array" }, "name": { "type": "string" }, "repositories": { "items": { "$ref": "#/components/schemas/ProjectRepositoryResponse" }, "type": "array" }, "workspaceId": { "format": "uuid", "type": "string" } }, "required": [ "id", "jiraProjects", "name", "repositories", "workspaceId" ], "type": "object" }, "ProjectTeamResponse": { "properties": { "manager": { "$ref": "#/components/schemas/TeamMemberDto" }, "members": { "items": { "$ref": "#/components/schemas/TeamMemberDto" }, "type": "array" }, "projectDescription": { "type": "string" }, "projectId": { "format": "uuid", "type": "string" }, "projectName": { "type": "string" } }, "type": "object" }, "RecoveryDeploymentRefDto": { "properties": { "commitSha": { "type": "string" }, "environment": { "type": "string" }, "finishedAt": { "format": "date-time", "type": "string" }, "id": { "format": "uuid", "type": "string" } }, "type": "object" }, "RecoveryTimeDetailDto": { "properties": { "detectedAt": { "format": "date-time", "type": "string" }, "failedDeployment": { "$ref": "#/components/schemas/RecoveryDeploymentRefDto" }, "incidentId": { "format": "uuid", "type": "string" }, "recoveryDeployment": { "$ref": "#/components/schemas/RecoveryDeploymentRefDto" }, "recoveryDurationSeconds": { "format": "int64", "type": "integer" }, "repositoryFullName": { "type": "string" }, "repositoryId": { "format": "uuid", "type": "string" }, "repositoryName": { "type": "string" }, "resolvedAt": { "format": "date-time", "type": "string" }, "severity": { "enum": [ "UNKNOWN", "SEV1", "SEV2", "SEV3", "SEV4" ], "type": "string" }, "source": { "enum": [ "JIRA", "MANUAL", "GITHUB" ], "type": "string" }, "title": { "type": "string" } }, "type": "object" }, "RecoveryTimeDetailsResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/RecoveryTimeDetailDto" }, "type": "array" }, "page": { "format": "int32", "type": "integer" }, "projectId": { "format": "uuid", "type": "string" }, "rangeEnd": { "format": "date-time", "type": "string" }, "rangeStart": { "format": "date-time", "type": "string" }, "repositoryCount": { "format": "int32", "type": "integer" }, "repositoryId": { "format": "uuid", "type": "string" }, "size": { "format": "int32", "type": "integer" }, "timezone": { "type": "string" }, "totalElements": { "format": "int64", "type": "integer" }, "totalPages": { "format": "int32", "type": "integer" }, "workspaceId": { "format": "uuid", "type": "string" } }, "type": "object" }, "RefreshRequest": { "properties": { "workspaceId": { "format": "uuid", "type": "string" } }, "type": "object" }, "ReplaceProjectConfigurationRequest": { "additionalProperties": false, "properties": { "jiraProjectIds": { "items": { "format": "uuid", "type": "string" }, "maxItems": 100, "minItems": 0, "type": "array", "uniqueItems": true }, "repositories": { "items": { "$ref": "#/components/schemas/ProjectRepositoryConfigurationRequest" }, "maxItems": 500, "minItems": 0, "type": "array" } }, "required": [ "repositories" ], "type": "object" }, "ReplaceProjectRepositoriesRequest": { "properties": { "repositoryIds": { "items": { "format": "uuid", "type": "string" }, "maxItems": 500, "minItems": 0, "type": "array", "uniqueItems": true } }, "required": [ "repositoryIds" ], "type": "object" }, "RepositoryResponse": { "properties": { "archived": { "type": "boolean" }, "defaultBranch": { "type": "string" }, "fullName": { "type": "string" }, "githubIntegrationId": { "format": "uuid", "type": "string" }, "githubRepoId": { "format": "int64", "type": "integer" }, "id": { "format": "uuid", "type": "string" }, "lastSyncedAt": { "format": "date-time", "type": "string" }, "name": { "type": "string" }, "ownerLogin": { "type": "string" }, "settings": { "$ref": "#/components/schemas/RepositorySettingsDto" }, "trackingEnabled": { "type": "boolean" }, "visibility": { "enum": [ "PUBLIC", "PRIVATE", "INTERNAL" ], "type": "string" }, "workspaceId": { "format": "uuid", "type": "string" } }, "type": "object" }, "RepositorySettingsDto": { "properties": { "backfillDays": { "format": "int32", "maximum": 365, "minimum": 1, "type": "integer" }, "defaultMetricGranularity": { "enum": [ "DAY", "WEEK", "MONTH" ], "type": "string" }, "deploymentSignal": { "pattern": "^(WORKFLOW_RUN|DEPLOYMENT)$", "type": "string" }, "deploymentWorkflowNamePatterns": { "items": { "maxLength": 128, "minLength": 0, "type": "string" }, "maxItems": 32, "minItems": 0, "type": "array" }, "doraExclusions": { "items": { "maxLength": 128, "minLength": 0, "type": "string" }, "maxItems": 32, "minItems": 0, "type": "array" }, "incidentSource": { "pattern": "^(GITHUB|JIRA|MANUAL|BOTH)$", "type": "string" }, "productionBranchPatterns": { "items": { "maxLength": 128, "minLength": 0, "type": "string" }, "maxItems": 32, "minItems": 0, "type": "array" }, "productionEnvironmentPatterns": { "items": { "maxLength": 128, "minLength": 0, "type": "string" }, "maxItems": 32, "minItems": 0, "type": "array" } }, "type": "object" }, "RepositorySettingsOptionsResponse": { "properties": { "branches": { "$ref": "#/components/schemas/SettingsOptions" }, "environments": { "$ref": "#/components/schemas/SettingsOptions" }, "workflows": { "$ref": "#/components/schemas/SettingsOptions" } }, "required": [ "branches", "environments", "workflows" ], "type": "object" }, "ResetPasswordRequest": { "properties": { "newPassword": { "minLength": 1, "type": "string", "writeOnly": true }, "token": { "minLength": 1, "type": "string", "writeOnly": true } }, "required": [ "newPassword", "token" ], "type": "object" }, "SendChatMessageRequest": { "properties": { "content": { "maxLength": 4000, "minLength": 0, "type": "string" } }, "required": [ "content" ], "type": "object" }, "SettingsOptions": { "properties": { "complete": { "type": "boolean" }, "values": { "items": { "type": "string" }, "type": "array" }, "warning": { "description": "Safe explanation when discovery is unavailable or partial", "type": "string" } }, "required": [ "complete", "values" ], "type": "object" }, "SignupRequest": { "properties": { "displayName": { "maxLength": 160, "minLength": 0, "type": "string" }, "email": { "format": "email", "maxLength": 320, "minLength": 0, "type": "string" }, "password": { "minLength": 1, "type": "string", "writeOnly": true }, "timezone": { "minLength": 1, "type": "string" }, "workspaceName": { "maxLength": 160, "minLength": 0, "type": "string" } }, "required": [ "displayName", "email", "password", "timezone", "workspaceName" ], "type": "object" }, "SignupResponse": { "additionalProperties": false, "properties": { "emailVerificationRequired": { "type": "boolean" }, "user": { "$ref": "#/components/schemas/UserSummary" }, "workspace": { "$ref": "#/components/schemas/WorkspaceSummaryResponse" } }, "required": [ "emailVerificationRequired", "user", "workspace" ], "type": "object" }, "TeamMemberDto": { "properties": { "avatarUrl": { "type": "string" }, "displayName": { "type": "string" }, "email": { "type": "string" }, "membershipId": { "format": "uuid", "type": "string" }, "role": { "enum": [ "MANAGER", "LEAD" ], "type": "string" }, "userId": { "format": "uuid", "type": "string" } }, "type": "object" }, "UpdateAlertRuleRequest": { "additionalProperties": false, "description": "Presence-aware patch for alert rules. At least one field must be provided.", "properties": { "channel": { "enum": [ "EMAIL" ], "type": "string" }, "comparator": { "enum": [ "GT", "GTE", "LT", "LTE", "EQ" ], "type": "string" }, "cooldownMinutes": { "format": "int32", "type": "integer" }, "destination": { "type": "string" }, "enabled": { "type": "boolean" }, "evaluationWindowMinutes": { "format": "int32", "type": "integer" }, "metricType": { "enum": [ "CHANGE_LEAD_TIME_HOURS", "DEPLOYMENT_FREQUENCY", "FAILED_DEPLOYMENT_RECOVERY_TIME_HOURS", "CHANGE_FAILURE_RATE_PERCENT", "PR_RISK_SCORE" ], "type": "string" }, "name": { "type": "string" }, "thresholdValue": { "type": "number" } }, "type": "object" }, "UpdateJiraProjectRequest": { "properties": { "trackingEnabled": { "type": "boolean" } }, "required": [ "trackingEnabled" ], "type": "object" }, "UpdateProjectRequest": { "properties": { "description": { "type": "string" }, "name": { "type": "string" } }, "type": "object" }, "UpdateRepositoryRequest": { "properties": { "settings": { "$ref": "#/components/schemas/RepositorySettingsDto" }, "trackingEnabled": { "type": "boolean" } }, "type": "object" }, "UpdateWorkspaceRequest": { "additionalProperties": false, "description": "Presence-aware patch. At least one of name or timezone is required; explicit null is invalid.", "properties": { "name": { "type": "string" }, "timezone": { "type": "string" } }, "type": "object" }, "UserSummary": { "additionalProperties": false, "properties": { "displayName": { "type": "string" }, "email": { "type": "string" }, "emailVerified": { "type": "boolean" }, "hasPassword": { "type": "boolean" }, "id": { "format": "uuid", "type": "string" }, "onboardingComplete": { "type": "boolean" } }, "required": [ "displayName", "email", "emailVerified", "hasPassword", "id", "onboardingComplete" ], "type": "object" }, "WorkspaceDeletionResponse": { "additionalProperties": false, "properties": { "status": { "enum": [ "ACTIVE", "DELETING", "DELETED" ], "type": "string" }, "workspaceId": { "format": "uuid", "type": "string" } }, "required": [ "status", "workspaceId" ], "type": "object" }, "WorkspaceSelectionSessionResponse": { "additionalProperties": false, "properties": { "user": { "$ref": "#/components/schemas/UserSummary" }, "workspaceSelectionRequired": { "enum": [ true ], "type": "boolean" }, "workspaces": { "description": "Active workspace memberships. Empty when the account must create a workspace.", "items": { "$ref": "#/components/schemas/WorkspaceSummaryResponse" }, "type": "array" } }, "required": [ "user", "workspaceSelectionRequired", "workspaces" ], "type": "object" }, "WorkspaceSummaryResponse": { "additionalProperties": false, "properties": { "id": { "format": "uuid", "type": "string" }, "name": { "type": "string" }, "role": { "enum": [ "MANAGER", "LEAD" ], "type": "string" }, "slug": { "type": "string" }, "timezone": { "type": "string" } }, "required": [ "id", "name", "role", "slug", "timezone" ], "type": "object" } }, "securitySchemes": { "bearerAuth": { "bearerFormat": "JWT", "description": "HTTP Bearer JWT access token.", "scheme": "bearer", "type": "http" }, "csrfHeader": { "description": "CSRF header whose value must match the paired readable XSRF-TOKEN cookie.", "in": "header", "name": "X-XSRF-TOKEN", "type": "apiKey" }, "oauthSessionCookie": { "description": "Short-lived HttpOnly session used for Google login, onboarding, or reauthentication.", "in": "cookie", "name": "adept_oauth", "type": "apiKey" }, "refreshCookie": { "description": "HttpOnly refresh-session cookie. The cookie is required for refresh, workspace switching, and zero-workspace account recovery.", "in": "cookie", "name": "adept_refresh", "type": "apiKey" } } }, "info": { "description": "Adept Industries API contract.", "title": "Adept API", "version": "v1" }, "openapi": "3.1.0", "paths": { "/api/v1/alert-rules": { "get": { "description": "Managers see rules across all workspace repositories. Leads see only rules for assigned repositories.", "operationId": "listAlertRules", "parameters": [ { "in": "query", "name": "repositoryId", "required": false, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/AlertRuleResponse" }, "type": "array" } } }, "description": "Alert rules returned", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [] } ], "summary": "List alert rules", "tags": [ "alert-rule-controller" ] }, "post": { "description": "Creates a threshold comparison rule for a tracked repository. Managers can create for any repository; Leads can create only for assigned repositories.", "operationId": "createAlertRule", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAlertRuleRequest" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AlertRuleResponse" } } }, "description": "Alert rule created", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Create an alert rule", "tags": [ "alert-rule-controller" ] } }, "/api/v1/alert-rules/{id}": { "delete": { "description": "Deletes an existing alert rule. Can only be performed by the rule creator or a Manager within the current workspace.", "operationId": "deleteAlertRule", "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "204": { "description": "Alert rule deleted", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Delete an alert rule", "tags": [ "alert-rule-controller" ] }, "patch": { "description": "Updates an existing alert rule. Can only be performed by the rule creator or a Manager within the current workspace.", "operationId": "updateAlertRule", "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAlertRuleRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AlertRuleResponse" } } }, "description": "Alert rule updated", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Update an alert rule", "tags": [ "alert-rule-controller" ] } }, "/api/v1/auth/csrf": { "get": { "description": "Returns 204 and emits the readable XSRF-TOKEN cookie used with the X-XSRF-TOKEN header.", "operationId": "getCsrfToken", "responses": { "204": { "description": "CSRF cookie issued", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets the readable XSRF-TOKEN cookie.", "schema": { "type": "string" } } } } }, "security": [], "summary": "Bootstrap CSRF protection", "tags": [ "csrf-controller" ] } }, "/api/v1/auth/forgot-password": { "post": { "operationId": "forgotPassword", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EmailRequest" } } }, "required": true }, "responses": { "202": { "description": "Request accepted", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } } } } }, "security": [ { "csrfHeader": [] } ], "summary": "Request a password reset", "tags": [ "auth-controller" ] } }, "/api/v1/auth/google/onboarding": { "post": { "operationId": "completeGoogleOnboarding", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GoogleOnboardingRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthSessionResponse" } } }, "description": "Adept account and session created", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Successful onboarding clears adept_oauth, sets adept_refresh, and expires XSRF-TOKEN.", "schema": { "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Successful onboarding clears adept_oauth, sets adept_refresh, and expires XSRF-TOKEN.", "schema": { "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Successful onboarding clears adept_oauth, sets adept_refresh, and expires XSRF-TOKEN.", "schema": { "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Successful onboarding clears adept_oauth, sets adept_refresh, and expires XSRF-TOKEN.", "schema": { "type": "string" } } } }, "409": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The requested state conflicts with current state", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Successful onboarding clears adept_oauth, sets adept_refresh, and expires XSRF-TOKEN.", "schema": { "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Successful onboarding clears adept_oauth, sets adept_refresh, and expires XSRF-TOKEN.", "schema": { "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Successful onboarding clears adept_oauth, sets adept_refresh, and expires XSRF-TOKEN.", "schema": { "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } }, "Set-Cookie": { "description": "Successful onboarding clears adept_oauth, sets adept_refresh, and expires XSRF-TOKEN.", "schema": { "type": "string" } } } } }, "security": [ { "csrfHeader": [], "oauthSessionCookie": [] } ], "summary": "Complete Google account onboarding", "tags": [ "google-auth-controller" ] } }, "/api/v1/auth/google/reauthentication/start": { "post": { "description": "Creates a browser-bound OAuth handshake that forces a fresh Google authentication.", "operationId": "startGoogleReauthentication", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GoogleReauthenticationStartResponse" } } }, "description": "Google authorization URL returned", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "A successful start sets the short-lived HttpOnly adept_oauth cookie.", "schema": { "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "A successful start sets the short-lived HttpOnly adept_oauth cookie.", "schema": { "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "A successful start sets the short-lived HttpOnly adept_oauth cookie.", "schema": { "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "A successful start sets the short-lived HttpOnly adept_oauth cookie.", "schema": { "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } }, "Set-Cookie": { "description": "A successful start sets the short-lived HttpOnly adept_oauth cookie.", "schema": { "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Start Google identity verification", "tags": [ "google-auth-controller" ] } }, "/api/v1/auth/google/start": { "get": { "description": "Creates a short-lived OAuth handshake and redirects the browser to Google.", "operationId": "startGoogleAuthentication", "responses": { "302": { "description": "Redirect to Google", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Location": { "description": "Internal authorization endpoint that then redirects to Google.", "schema": { "format": "uri-reference", "type": "string" } }, "Set-Cookie": { "description": "A successful start sets the short-lived HttpOnly adept_oauth cookie.", "schema": { "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "A successful start sets the short-lived HttpOnly adept_oauth cookie.", "schema": { "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } }, "Set-Cookie": { "description": "A successful start sets the short-lived HttpOnly adept_oauth cookie.", "schema": { "type": "string" } } } } }, "security": [], "summary": "Start Google authentication", "tags": [ "google-auth-controller" ] } }, "/api/v1/auth/login": { "post": { "operationId": "login", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthSessionResponse" } } }, "description": "Session created", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } } }, "security": [ { "csrfHeader": [] } ], "summary": "Create a browser session", "tags": [ "auth-controller" ] } }, "/api/v1/auth/logout": { "post": { "description": "Idempotently clears session cookies. A valid adept_refresh cookie is revoked when present; a missing cookie still returns 204.", "operationId": "logoutSession", "responses": { "204": { "description": "Session cookies cleared", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } } }, "security": [ { "csrfHeader": [] } ], "summary": "End the browser session", "tags": [ "auth-controller" ] } }, "/api/v1/auth/me": { "get": { "operationId": "getCurrentUser", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MeResponse" } } }, "description": "Current identity returned", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [] } ], "summary": "Get the current identity context", "tags": [ "auth-controller" ] } }, "/api/v1/auth/onboarding/complete": { "post": { "operationId": "completeOnboarding", "responses": { "204": { "description": "Onboarding marked complete", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Complete the account onboarding tour", "tags": [ "auth-controller" ] } }, "/api/v1/auth/reauthenticate/password": { "post": { "operationId": "reauthenticateWithPassword", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PasswordReauthenticationRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthSessionResponse" } } }, "description": "Identity verified and a recent session issued", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Verify the current user with a password", "tags": [ "auth-controller" ] } }, "/api/v1/auth/refresh": { "post": { "operationId": "refreshSession", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshRequest" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthSessionResponse" } } }, "description": "Session refreshed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Rotates or clears the HttpOnly adept_refresh cookie.", "schema": { "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Rotates or clears the HttpOnly adept_refresh cookie.", "schema": { "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Rotates or clears the HttpOnly adept_refresh cookie.", "schema": { "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Rotates or clears the HttpOnly adept_refresh cookie.", "schema": { "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Rotates or clears the HttpOnly adept_refresh cookie.", "schema": { "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Rotates or clears the HttpOnly adept_refresh cookie.", "schema": { "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } }, "Set-Cookie": { "description": "Rotates or clears the HttpOnly adept_refresh cookie.", "schema": { "type": "string" } } } } }, "security": [ { "csrfHeader": [], "refreshCookie": [] } ], "summary": "Rotate the refresh token and issue session state", "tags": [ "auth-controller" ] } }, "/api/v1/auth/resend-verification": { "post": { "operationId": "resendVerification", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EmailRequest" } } }, "required": true }, "responses": { "202": { "description": "Request accepted", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } } } } }, "security": [ { "csrfHeader": [] } ], "summary": "Request another verification email", "tags": [ "auth-controller" ] } }, "/api/v1/auth/reset-password": { "post": { "operationId": "resetPassword", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResetPasswordRequest" } } }, "required": true }, "responses": { "204": { "description": "Password reset and session cookies cleared", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } }, "Set-Cookie": { "description": "Sets or clears adept_refresh and rotates or expires XSRF-TOKEN as described by the operation.", "schema": { "type": "string" } } } } }, "security": [ { "csrfHeader": [] } ], "summary": "Reset a password", "tags": [ "auth-controller" ] } }, "/api/v1/auth/signup": { "post": { "operationId": "signup", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignupRequest" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignupResponse" } } }, "description": "Account created", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "409": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The requested state conflicts with current state", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } } } } }, "security": [ { "csrfHeader": [] } ], "summary": "Create an account and workspace", "tags": [ "auth-controller" ] } }, "/api/v1/auth/switch-workspace/{workspaceId}": { "post": { "operationId": "switchWorkspace", "parameters": [ { "in": "path", "name": "workspaceId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthSessionResponse" } } }, "description": "Workspace selected", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "May clear the adept_refresh cookie after invalid session state.", "schema": { "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } } } } }, "security": [ { "csrfHeader": [], "refreshCookie": [] } ], "summary": "Switch the active workspace", "tags": [ "auth-controller" ] } }, "/api/v1/auth/verify-email": { "post": { "operationId": "verifyEmail", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActionTokenRequest" } } }, "required": true }, "responses": { "204": { "description": "Email verified", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } } } } }, "security": [ { "csrfHeader": [] } ], "summary": "Verify an email address", "tags": [ "auth-controller" ] } }, "/api/v1/auth/workspaces": { "post": { "operationId": "createWorkspaceForSession", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateWorkspaceRequest" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthSessionResponse" } } }, "description": "Workspace and authenticated session created", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Set-Cookie": { "description": "May clear the adept_refresh cookie after invalid session state.", "schema": { "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "409": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The requested state conflicts with current state", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } } } } }, "security": [ { "csrfHeader": [], "refreshCookie": [] } ], "summary": "Create a workspace for an account with none", "tags": [ "auth-controller" ] } }, "/api/v1/integrations/github": { "get": { "operationId": "getIntegration_1", "responses": { "200": { "content": { "*/*": { "schema": { "$ref": "#/components/schemas/GithubIntegrationResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "tags": [ "github-integration-controller" ] } }, "/api/v1/integrations/github/callback": { "get": { "operationId": "handleCallback_1", "parameters": [ { "in": "query", "name": "installation_id", "required": true, "schema": { "format": "int64", "type": "integer" } }, { "in": "query", "name": "state", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [], "tags": [ "github-integration-controller" ] } }, "/api/v1/integrations/github/connect-url": { "post": { "operationId": "createConnectUrl_1", "responses": { "200": { "content": { "*/*": { "schema": { "$ref": "#/components/schemas/GithubConnectUrlResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "github-integration-controller" ] } }, "/api/v1/integrations/github/{integrationId}": { "delete": { "operationId": "disconnect_1", "parameters": [ { "in": "path", "name": "integrationId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "github-integration-controller" ] } }, "/api/v1/integrations/github/{integrationId}/sync": { "post": { "operationId": "syncRepositories", "parameters": [ { "in": "path", "name": "integrationId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "github-integration-controller" ] } }, "/api/v1/integrations/jira": { "get": { "operationId": "getIntegration", "responses": { "200": { "content": { "*/*": { "schema": { "$ref": "#/components/schemas/JiraIntegrationResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "tags": [ "jira-integration-controller" ] } }, "/api/v1/integrations/jira/callback": { "get": { "operationId": "handleCallback", "parameters": [ { "in": "query", "name": "code", "required": true, "schema": { "type": "string" } }, { "in": "query", "name": "state", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [], "tags": [ "jira-integration-controller" ] } }, "/api/v1/integrations/jira/connect-url": { "post": { "operationId": "createConnectUrl", "responses": { "200": { "content": { "*/*": { "schema": { "$ref": "#/components/schemas/JiraConnectUrlResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "jira-integration-controller" ] } }, "/api/v1/integrations/jira/{integrationId}": { "delete": { "operationId": "disconnect", "parameters": [ { "in": "path", "name": "integrationId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "jira-integration-controller" ] } }, "/api/v1/integrations/jira/{integrationId}/sync": { "post": { "operationId": "syncProjects", "parameters": [ { "in": "path", "name": "integrationId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "jira-integration-controller" ] } }, "/api/v1/invitations/accept": { "post": { "operationId": "accept", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AcceptInvitationRequest" } } }, "required": true }, "responses": { "200": { "content": { "*/*": { "schema": { "$ref": "#/components/schemas/AuthSessionResponse" } } }, "description": "OK" } }, "security": [ { "csrfHeader": [] } ], "tags": [ "invitation-controller" ] } }, "/api/v1/invitations/preview": { "get": { "operationId": "preview", "parameters": [ { "in": "query", "name": "token", "required": true, "schema": { "minLength": 1, "type": "string" } } ], "responses": { "200": { "content": { "*/*": { "schema": { "$ref": "#/components/schemas/InvitationPreviewResponse" } } }, "description": "OK" } }, "security": [], "tags": [ "invitation-controller" ] } }, "/api/v1/invitations/{invitationId}": { "delete": { "operationId": "delete", "parameters": [ { "in": "path", "name": "invitationId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "invitation-controller" ] } }, "/api/v1/invitations/{invitationId}/resend": { "post": { "operationId": "resend", "parameters": [ { "in": "path", "name": "invitationId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "invitation-controller" ] } }, "/api/v1/jira/projects": { "get": { "operationId": "listProjects_1", "responses": { "200": { "content": { "*/*": { "schema": { "items": { "$ref": "#/components/schemas/JiraProjectResponse" }, "type": "array" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "tags": [ "jira-integration-controller" ] } }, "/api/v1/jira/projects/{projectId}": { "patch": { "operationId": "updateProjectTracking", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateJiraProjectRequest" } } }, "required": true }, "responses": { "200": { "content": { "*/*": { "schema": { "$ref": "#/components/schemas/JiraProjectResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "jira-integration-controller" ] } }, "/api/v1/metrics/change-failure-rate/details": { "get": { "description": "Returns paginated finished production deployments inside the window, both failed and successful, with whether each counts as a failure and any linked incident. Totals cover the whole window and match the metric's numerator and denominator.", "operationId": "getChangeFailureRateDetails", "parameters": [ { "description": "Optional selected project scope.", "in": "query", "name": "projectId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "description": "Optional single repository within the selected scope.", "in": "query", "name": "repositoryId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "in": "query", "name": "from", "required": false, "schema": { "format": "date-time", "type": "string" } }, { "in": "query", "name": "to", "required": false, "schema": { "format": "date-time", "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "default": 0, "format": "int32", "minimum": 0, "type": "integer" } }, { "in": "query", "name": "size", "required": false, "schema": { "default": 20, "format": "int32", "maximum": 100, "minimum": 1, "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangeFailureRateDetailsResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "summary": "Get Change Failure Rate event details", "tags": [ "metric-controller" ] } }, "/api/v1/metrics/change-lead-time/details": { "get": { "description": "Returns paginated pull requests with their lead-time breakdown (coding, review, and deploy stages) based on successful production deployments.", "operationId": "getChangeLeadTimeDetails", "parameters": [ { "description": "Optional selected project scope.", "in": "query", "name": "projectId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "description": "Optional single repository within the selected scope.", "in": "query", "name": "repositoryId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "in": "query", "name": "from", "required": false, "schema": { "format": "date-time", "type": "string" } }, { "in": "query", "name": "to", "required": false, "schema": { "format": "date-time", "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "default": 0, "format": "int32", "minimum": 0, "type": "integer" } }, { "in": "query", "name": "size", "required": false, "schema": { "default": 20, "format": "int32", "maximum": 100, "minimum": 1, "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangeLeadTimeDetailsResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "summary": "Get Change Lead Time event details", "tags": [ "metric-controller" ] } }, "/api/v1/metrics/cycle-time": { "get": { "description": "Splits merged pull requests into coding, pickup, review and deploy stages and returns stage medians for the range and a stacked series per period. Pull requests are grouped by merge time and scoped exactly like the DORA metrics endpoints.", "operationId": "getCycleTime", "parameters": [ { "description": "Optional selected project scope.", "in": "query", "name": "projectId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "description": "Optional single repository within the selected scope.", "in": "query", "name": "repositoryId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "in": "query", "name": "granularity", "required": false, "schema": { "default": "WEEK", "enum": [ "DAY", "WEEK", "MONTH" ], "type": "string" } }, { "in": "query", "name": "from", "required": false, "schema": { "format": "date-time", "type": "string" } }, { "in": "query", "name": "to", "required": false, "schema": { "format": "date-time", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CycleTimeResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "summary": "Get scoped code-review cycle time", "tags": [ "metric-controller" ] } }, "/api/v1/metrics/deployment-frequency/details": { "get": { "description": "Returns paginated successful production deployments counted by Deployment Frequency.", "operationId": "getDeploymentFrequencyDetails", "parameters": [ { "description": "Optional selected project scope.", "in": "query", "name": "projectId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "description": "Optional single repository within the selected scope.", "in": "query", "name": "repositoryId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "in": "query", "name": "from", "required": false, "schema": { "format": "date-time", "type": "string" } }, { "in": "query", "name": "to", "required": false, "schema": { "format": "date-time", "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "default": 0, "format": "int32", "minimum": 0, "type": "integer" } }, { "in": "query", "name": "size", "required": false, "schema": { "default": 20, "format": "int32", "maximum": 100, "minimum": 1, "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeploymentFrequencyDetailsResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "summary": "Get Deployment Frequency event details", "tags": [ "metric-controller" ] } }, "/api/v1/metrics/details": { "get": { "description": "Returns paginated raw event records for a specific DORA metric. Defaults to Deployment Frequency when no metric type is specified.", "operationId": "getDetails", "parameters": [ { "description": "Optional selected project scope.", "in": "query", "name": "projectId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "description": "Optional single repository within the selected scope.", "in": "query", "name": "repositoryId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "description": "Metric type to fetch details for.", "in": "query", "name": "metricType", "required": false, "schema": { "default": "DEPLOYMENT_FREQUENCY", "enum": [ "CHANGE_LEAD_TIME_HOURS", "DEPLOYMENT_FREQUENCY", "FAILED_DEPLOYMENT_RECOVERY_TIME_HOURS", "CHANGE_FAILURE_RATE_PERCENT", "PR_CODING_TIME_HOURS", "PR_PICKUP_TIME_HOURS", "PR_REVIEW_TIME_HOURS", "PR_DEPLOY_TIME_HOURS" ], "type": "string" } }, { "in": "query", "name": "from", "required": false, "schema": { "format": "date-time", "type": "string" } }, { "in": "query", "name": "to", "required": false, "schema": { "format": "date-time", "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "default": 0, "format": "int32", "minimum": 0, "type": "integer" } }, { "in": "query", "name": "size", "required": false, "schema": { "default": 20, "format": "int32", "maximum": 100, "minimum": 1, "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeploymentFrequencyDetailsResponse" } } }, "description": "Paginated event details for the requested metric." } }, "security": [ { "bearerAuth": [] } ], "summary": "Get scoped DORA metric event details", "tags": [ "metric-controller" ] } }, "/api/v1/metrics/recovery-time/details": { "get": { "description": "Returns paginated resolved incidents whose resolution falls inside the window, with detection/resolution times and correlated failed and recovery deployments. Open incidents are excluded.", "operationId": "getRecoveryTimeDetails", "parameters": [ { "description": "Optional selected project scope.", "in": "query", "name": "projectId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "description": "Optional single repository within the selected scope.", "in": "query", "name": "repositoryId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "in": "query", "name": "from", "required": false, "schema": { "format": "date-time", "type": "string" } }, { "in": "query", "name": "to", "required": false, "schema": { "format": "date-time", "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "default": 0, "format": "int32", "minimum": 0, "type": "integer" } }, { "in": "query", "name": "size", "required": false, "schema": { "default": 20, "format": "int32", "maximum": 100, "minimum": 1, "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecoveryTimeDetailsResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "summary": "Get Failed Deployment Recovery Time event details", "tags": [ "metric-controller" ] } }, "/api/v1/metrics/series": { "get": { "description": "When projectId is supplied without repositoryId, metrics are aggregated across the repositories readable in that project. When both are supplied, the repository must be tracked, attached to that project, and readable by the caller.", "operationId": "getSeries", "parameters": [ { "description": "Optional selected project scope.", "in": "query", "name": "projectId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "description": "Optional single repository within the selected scope.", "in": "query", "name": "repositoryId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "in": "query", "name": "metricType", "required": false, "schema": { "enum": [ "CHANGE_LEAD_TIME_HOURS", "DEPLOYMENT_FREQUENCY", "FAILED_DEPLOYMENT_RECOVERY_TIME_HOURS", "CHANGE_FAILURE_RATE_PERCENT", "PR_CODING_TIME_HOURS", "PR_PICKUP_TIME_HOURS", "PR_REVIEW_TIME_HOURS", "PR_DEPLOY_TIME_HOURS" ], "type": "string" } }, { "in": "query", "name": "granularity", "required": false, "schema": { "default": "DAY", "enum": [ "DAY", "WEEK", "MONTH" ], "type": "string" } }, { "in": "query", "name": "from", "required": false, "schema": { "format": "date-time", "type": "string" } }, { "in": "query", "name": "to", "required": false, "schema": { "format": "date-time", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DoraMetricsSeriesResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "summary": "Get a scoped DORA metrics time series", "tags": [ "metric-controller" ] } }, "/api/v1/metrics/summary": { "get": { "description": "When projectId is supplied without repositoryId, metrics are aggregated across the repositories readable in that project. When both are supplied, the repository must be tracked, attached to that project, and readable by the caller.", "operationId": "getSummary", "parameters": [ { "description": "Optional selected project scope.", "in": "query", "name": "projectId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "description": "Optional single repository within the selected scope.", "in": "query", "name": "repositoryId", "required": false, "schema": { "format": "uuid", "type": "string" } }, { "in": "query", "name": "from", "required": false, "schema": { "format": "date-time", "type": "string" } }, { "in": "query", "name": "to", "required": false, "schema": { "format": "date-time", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DoraMetricsSummaryResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "summary": "Get a scoped DORA metrics summary", "tags": [ "metric-controller" ] } }, "/api/v1/projects": { "get": { "description": "Managers receive all projects. Leads receive only projects containing an actively assigned repository.", "operationId": "listProjects", "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ProjectResponse" }, "type": "array" } } }, "description": "Projects returned", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [] } ], "summary": "List visible projects in the current workspace", "tags": [ "project-controller" ] }, "post": { "description": "Optionally attaches tracked, non-archived repositories and replaces their repository-level Jira mappings atomically.", "operationId": "createProject", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateProjectRequest" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectResponse" } } }, "description": "Project created", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "409": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The requested state conflicts with current state", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Create a project in the current workspace", "tags": [ "project-controller" ] } }, "/api/v1/projects/{projectId}": { "delete": { "description": "Deletes only the project grouping; repositories and their analytics remain in the workspace.", "operationId": "deleteProject", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "204": { "description": "Project deleted", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Delete a project", "tags": [ "project-controller" ] }, "get": { "operationId": "getProject", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectResponse" } } }, "description": "Project returned", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [] } ], "summary": "Get a visible project", "tags": [ "project-controller" ] }, "patch": { "operationId": "updateProject", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateProjectRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectResponse" } } }, "description": "Project updated", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "409": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The requested state conflicts with current state", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Update a project", "tags": [ "project-controller" ] } }, "/api/v1/projects/{projectId}/configuration": { "put": { "description": "The project repository set and mappings for included repositories are replaced in one transaction. Mappings for repositories removed from the project remain unchanged because they are repository-level settings.", "operationId": "replaceProjectConfiguration", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReplaceProjectConfigurationRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectResponse" } } }, "description": "Project configuration replaced", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Replace project repositories and their Jira mappings", "tags": [ "project-controller" ] } }, "/api/v1/projects/{projectId}/issues/github": { "get": { "description": "Managers see issues from every tracked project repository. Leads see issues only from tracked project repositories assigned to their active membership.", "operationId": "listProjectGithubIssues", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "default": 0, "format": "int32", "minimum": 0, "type": "integer" } }, { "in": "query", "name": "size", "required": false, "schema": { "default": 20, "format": "int32", "maximum": 100, "minimum": 1, "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectGithubIssuePageResponse" } } }, "description": "Project GitHub issues returned", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [] } ], "summary": "List open GitHub issues for a project", "tags": [ "project-issue-controller" ] } }, "/api/v1/projects/{projectId}/issues/jira": { "get": { "description": "Managers and Leads with access to the project see the same unresolved issues from its tracked Jira projects.", "operationId": "listProjectJiraIssues", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "default": 0, "format": "int32", "minimum": 0, "type": "integer" } }, { "in": "query", "name": "size", "required": false, "schema": { "default": 20, "format": "int32", "maximum": 100, "minimum": 1, "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectJiraIssuePageResponse" } } }, "description": "Project Jira issues returned", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [] } ], "summary": "List unresolved Jira issues for a project", "tags": [ "project-issue-controller" ] } }, "/api/v1/projects/{projectId}/issues/sync": { "post": { "description": "Manager-only operation. Queues deduplicated GitHub repository and Jira project issue synchronization without rebuilding DORA metrics.", "operationId": "syncProjectIssues", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "202": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectIssueSyncResponse" } } }, "description": "Project issue synchronization accepted", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Queue issue synchronization for a project", "tags": [ "project-issue-controller" ] } }, "/api/v1/projects/{projectId}/messages": { "get": { "operationId": "getMessages", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "content": { "*/*": { "schema": { "items": { "$ref": "#/components/schemas/ChatMessageResponse" }, "type": "array" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "tags": [ "chat-controller" ] }, "post": { "operationId": "sendMessage", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SendChatMessageRequest" } } }, "required": true }, "responses": { "200": { "content": { "*/*": { "schema": { "$ref": "#/components/schemas/ChatMessageResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "chat-controller" ] } }, "/api/v1/projects/{projectId}/pull-request-risks": { "get": { "description": "Managers see predictions for every tracked project repository. Leads see only repositories assigned to their active membership. Results contain safe derived metadata and no source code or diffs.", "operationId": "listProjectPullRequestRisks", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } }, { "in": "query", "name": "page", "required": false, "schema": { "default": 0, "format": "int32", "minimum": 0, "type": "integer" } }, { "in": "query", "name": "size", "required": false, "schema": { "default": 20, "format": "int32", "maximum": 100, "minimum": 1, "type": "integer" } }, { "in": "query", "name": "riskLevel", "required": false, "schema": { "enum": [ "LOW", "MEDIUM", "HIGH", "CRITICAL" ], "type": "string" } }, { "in": "query", "name": "stalledOnly", "required": false, "schema": { "default": false, "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectPullRequestRiskPageResponse" } } }, "description": "Project pull-request risks returned", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [] } ], "summary": "List current estimated review risks for a project", "tags": [ "project-pull-request-risk-controller" ] } }, "/api/v1/projects/{projectId}/pull-request-risks/rebuild": { "post": { "description": "Manager-only operation. Queues one deduplicated open-pull-request scoring job for each tracked, non-archived project repository without rebuilding DORA metrics.", "operationId": "rebuildProjectPullRequestRisks", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "202": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectPullRequestRiskRebuildResponse" } } }, "description": "Project risk rebuild accepted", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Queue risk-only backfills for a project", "tags": [ "project-pull-request-risk-controller" ] } }, "/api/v1/projects/{projectId}/repositories": { "put": { "description": "Every supplied repository must be tracked, non-archived, and belong to the current workspace. Jira mappings are unchanged.", "operationId": "replaceProjectRepositories", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReplaceProjectRepositoriesRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectResponse" } } }, "description": "Project repositories replaced", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Replace a project's repository set", "tags": [ "project-controller" ] } }, "/api/v1/projects/{projectId}/team": { "get": { "operationId": "getTeam", "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "content": { "*/*": { "schema": { "$ref": "#/components/schemas/ProjectTeamResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "tags": [ "chat-controller" ] } }, "/api/v1/repositories": { "get": { "operationId": "list", "parameters": [ { "in": "query", "name": "trackingOnly", "required": false, "schema": { "type": "boolean" } } ], "responses": { "200": { "content": { "*/*": { "schema": { "items": { "$ref": "#/components/schemas/RepositoryResponse" }, "type": "array" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "tags": [ "repository-controller" ] } }, "/api/v1/repositories/{repositoryId}": { "get": { "operationId": "get", "parameters": [ { "in": "path", "name": "repositoryId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "content": { "*/*": { "schema": { "$ref": "#/components/schemas/RepositoryResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "tags": [ "repository-controller" ] }, "patch": { "operationId": "update", "parameters": [ { "in": "path", "name": "repositoryId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateRepositoryRequest" } } }, "required": true }, "responses": { "200": { "content": { "*/*": { "schema": { "$ref": "#/components/schemas/RepositoryResponse" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "repository-controller" ] } }, "/api/v1/repositories/{repositoryId}/backfill": { "post": { "description": "Queues a deduplicated backfill and recalculation for a tracked, non-archived repository.", "operationId": "requestBackfill", "parameters": [ { "in": "path", "name": "repositoryId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "202": { "description": "Repository rebuild accepted", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Rebuild a repository's DORA data", "tags": [ "repository-controller" ] } }, "/api/v1/repositories/{repositoryId}/jira-projects": { "get": { "operationId": "getMappedJiraProjects", "parameters": [ { "in": "path", "name": "repositoryId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "content": { "*/*": { "schema": { "items": { "$ref": "#/components/schemas/JiraProjectResponse" }, "type": "array" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "tags": [ "repository-controller" ] }, "post": { "operationId": "mapJiraProjects", "parameters": [ { "in": "path", "name": "repositoryId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MapRepositoryJiraProjectsRequest" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "repository-controller" ] } }, "/api/v1/repositories/{repositoryId}/lead-assignments": { "get": { "operationId": "getLeadAssignments", "parameters": [ { "in": "path", "name": "repositoryId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "content": { "*/*": { "schema": { "items": { "$ref": "#/components/schemas/PendingRepositoryLeadInvitationResponse" }, "type": "array" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "tags": [ "repository-controller" ] }, "post": { "operationId": "createPendingRepositoryLeadInvitation", "parameters": [ { "in": "path", "name": "repositoryId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateRepositoryLeadInvitationRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PendingRepositoryLeadInvitationResponse" } } }, "description": "Pending invitation assignment returned", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "409": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The requested state conflicts with current state", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Create or reuse a pending Lead invitation", "tags": [ "repository-controller" ] } }, "/api/v1/repositories/{repositoryId}/lead-assignments/{assignmentId}": { "delete": { "operationId": "deleteLeadAssignment", "parameters": [ { "in": "path", "name": "repositoryId", "required": true, "schema": { "format": "uuid", "type": "string" } }, { "in": "path", "name": "assignmentId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "repository-controller" ] } }, "/api/v1/repositories/{repositoryId}/lead-candidates": { "get": { "operationId": "getLeadCandidates", "parameters": [ { "in": "path", "name": "repositoryId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "content": { "*/*": { "schema": { "items": { "$ref": "#/components/schemas/LeadCandidateResponse" }, "type": "array" } } }, "description": "OK" } }, "security": [ { "bearerAuth": [] } ], "tags": [ "repository-controller" ] } }, "/api/v1/repositories/{repositoryId}/settings-options": { "get": { "description": "Manager-only, workspace-scoped GitHub branch, workflow and environment names. Each list reports completeness and a safe warning independently. Successful results are cached for five minutes; discovery never changes settings or queues a backfill.", "operationId": "settingsOptions", "parameters": [ { "in": "path", "name": "repositoryId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RepositorySettingsOptionsResponse" } } }, "description": "Repository settings options returned (possibly partial)", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "404": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The scoped resource was not found", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [] } ], "summary": "Discover repository settings options", "tags": [ "repository-controller" ] } }, "/api/v1/webhooks/github": { "post": { "operationId": "receiveGithubWebhook", "responses": { "200": { "description": "OK" } }, "security": [], "tags": [ "webhook-controller" ] } }, "/api/v1/webhooks/jira/{integrationId}": { "post": { "operationId": "receiveJiraWebhook", "parameters": [ { "in": "path", "name": "integrationId", "required": true, "schema": { "format": "uuid", "type": "string" } }, { "in": "query", "name": "token", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [], "tags": [ "jira-webhook-controller" ] } }, "/api/v1/workspaces": { "get": { "operationId": "listWorkspaces", "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/WorkspaceSummaryResponse" }, "type": "array" } } }, "description": "Accessible workspaces returned", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [] } ], "summary": "List active workspace memberships", "tags": [ "workspace-controller" ] }, "post": { "description": "Creates a new tenant and an active Manager membership for the authenticated user.", "operationId": "createWorkspace", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateWorkspaceRequest" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkspaceSummaryResponse" } } }, "description": "Workspace created", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "409": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The requested state conflicts with current state", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Create another workspace", "tags": [ "workspace-controller" ] } }, "/api/v1/workspaces/current": { "delete": { "description": "Requires authentication within the configured sensitive-action window, marks the workspace DELETING, suspends integrations, and queues one pending DELETE_WORKSPACE job.", "operationId": "deleteCurrentWorkspace", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeleteWorkspaceRequest" } } }, "required": true }, "responses": { "202": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkspaceDeletionResponse" } } }, "description": "Deletion requested", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "409": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The requested state conflicts with current state", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "429": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "A request rate limit was exceeded", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } }, "Retry-After": { "description": "Seconds until the request may be retried.", "schema": { "format": "int64", "minimum": 0, "type": "integer" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Request current workspace deletion", "tags": [ "workspace-controller" ] }, "get": { "operationId": "getCurrentWorkspace", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CurrentWorkspaceResponse" } } }, "description": "Current workspace returned", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [] } ], "summary": "Get the current workspace", "tags": [ "workspace-controller" ] }, "patch": { "operationId": "updateCurrentWorkspace", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateWorkspaceRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CurrentWorkspaceResponse" } } }, "description": "Workspace updated", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "409": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The requested state conflicts with current state", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Update current workspace settings", "tags": [ "workspace-controller" ] } }, "/api/v1/workspaces/current/members/lookup": { "post": { "operationId": "lookupCurrentWorkspaceMember", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LookupWorkspaceMemberRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CurrentWorkspaceMemberLookupResponse" } } }, "description": "Lookup completed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "400": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Validation failed or the request was malformed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "401": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Authentication or session validation failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "403": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "CSRF, origin, membership, or role authorization failed", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "413": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body exceeded the 16 KiB limit", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } }, "415": { "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "The request body used an unsupported media type", "headers": { "Cache-Control": { "description": "Sensitive responses are not cached.", "schema": { "enum": [ "no-store" ], "type": "string" } } } } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "summary": "Look up a user by email in the current workspace", "tags": [ "workspace-controller" ] } }, "/api/v1/workspaces/current/members/{membershipId}": { "delete": { "operationId": "removeMember", "parameters": [ { "in": "path", "name": "membershipId", "required": true, "schema": { "format": "uuid", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "bearerAuth": [], "csrfHeader": [] } ], "tags": [ "workspace-controller" ] } } }, "servers": [ { "description": "Generated server url", "url": "http://localhost" } ] }