feat(api): add support case and manual assessment request contract

This commit is contained in:
shira committed 2026-10-06 10:57:36 +03:00
1 parent 2db585fbff
commit ad4bb94426
65 files changed
+14629 -23

No files matched your search

+71
View File
@@ -32,6 +32,13 @@ tags:
state and provenance, immutable versions, readiness, and category
recommendations. Access comes only from an active membership in the
organization; a need never requires a vacancy.
- name: support
description: >-
Support cases of the current account: questions, complaints, appeals
of a grade or an anti-cheat decision, and manual assessment requests.
The author sees the number, the status, the response target, the
decision, and the public history; moderators and internal notes stay
hidden.
# Operations require a session unless they declare `security: []`, so a new
# operation that omits security is protected by default.
security:
@@ -73,6 +80,10 @@ paths:
$ref: ./routes/organization_needs.yml
/api/v1/organizations/{org_id}/needs/{need_id}:
$ref: ./routes/organization_need.yml
/api/v1/me/support-cases:
$ref: ./routes/support_cases.yml
/api/v1/me/support-cases/{case_id}:
$ref: ./routes/support_case.yml
components:
schemas:
Problem:
@@ -381,6 +392,60 @@ components:
$ref: ./components/schemas.yml#/NeedCreate
NeedUpdate:
$ref: ./components/schemas.yml#/NeedUpdate
SupportCaseNumber:
$ref: ./components/schemas.yml#/SupportCaseNumber
SupportCaseType:
$ref: ./components/schemas.yml#/SupportCaseType
SupportCaseStatus:
$ref: ./components/schemas.yml#/SupportCaseStatus
SupportCaseObjectType:
$ref: ./components/schemas.yml#/SupportCaseObjectType
SupportCaseObjectReference:
$ref: ./components/schemas.yml#/SupportCaseObjectReference
SupportCaseAttemptReference:
$ref: ./components/schemas.yml#/SupportCaseAttemptReference
SupportCaseGradeAppealReference:
$ref: ./components/schemas.yml#/SupportCaseGradeAppealReference
SupportCaseComplaintReference:
$ref: ./components/schemas.yml#/SupportCaseComplaintReference
SupportCaseAssessmentTarget:
$ref: ./components/schemas.yml#/SupportCaseAssessmentTarget
SupportCaseComplaintReason:
$ref: ./components/schemas.yml#/SupportCaseComplaintReason
SupportCaseDescription:
$ref: ./components/schemas.yml#/SupportCaseDescription
SupportCasePublicText:
$ref: ./components/schemas.yml#/SupportCasePublicText
SupportCaseCreateSupport:
$ref: ./components/schemas.yml#/SupportCaseCreateSupport
SupportCaseCreateComplaint:
$ref: ./components/schemas.yml#/SupportCaseCreateComplaint
SupportCaseCreateGradeAppeal:
$ref: ./components/schemas.yml#/SupportCaseCreateGradeAppeal
SupportCaseCreateAnticheatAppeal:
$ref: ./components/schemas.yml#/SupportCaseCreateAnticheatAppeal
SupportCaseCreateManualAssessment:
$ref: ./components/schemas.yml#/SupportCaseCreateManualAssessment
SupportCaseCreate:
$ref: ./components/schemas.yml#/SupportCaseCreate
SupportResponseTarget:
$ref: ./components/schemas.yml#/SupportResponseTarget
SupportCaseDecisionOutcome:
$ref: ./components/schemas.yml#/SupportCaseDecisionOutcome
SupportCaseDecision:
$ref: ./components/schemas.yml#/SupportCaseDecision
SupportCaseActorKind:
$ref: ./components/schemas.yml#/SupportCaseActorKind
SupportCaseEventKind:
$ref: ./components/schemas.yml#/SupportCaseEventKind
SupportCaseEvent:
$ref: ./components/schemas.yml#/SupportCaseEvent
SupportCase:
$ref: ./components/schemas.yml#/SupportCase
SupportCaseSummary:
$ref: ./components/schemas.yml#/SupportCaseSummary
SupportCaseList:
$ref: ./components/schemas.yml#/SupportCaseList
parameters:
IdempotencyKey:
$ref: ./components/parameters.yml#/IdempotencyKey
@@ -396,6 +461,8 @@ components:
$ref: ./components/parameters.yml#/OrganizationId
NeedId:
$ref: ./components/parameters.yml#/NeedId
SupportCaseId:
$ref: ./components/parameters.yml#/SupportCaseId
headers:
ETag:
$ref: ./components/headers.yml#/ETag
@@ -468,6 +535,10 @@ components:
$ref: ./components/responses.yml#/NeedValidationFailed
NeedVersionConflict:
$ref: ./components/responses.yml#/NeedVersionConflict
SupportCaseValidationFailed:
$ref: ./components/responses.yml#/SupportCaseValidationFailed
SupportCaseCreateConflict:
$ref: ./components/responses.yml#/SupportCaseCreateConflict
securitySchemes:
sessionCookie:
type: apiKey