feat(org): add organization and membership contract and storage

This commit is contained in:
shira committed 2026-10-06 15:55:29 +03:00
1 parent a0551a34b8
commit bdc5855001
90 files changed
+17545 -480

No files matched your search

+58
View File
@@ -26,6 +26,14 @@ tags:
Assessment attempts of the current candidate: availability, start and
resume, answers and the code practice, finalization, and the result.
Answers, keys, and attempt history are visible only to the candidate.
- name: organization
description: >-
Organizations of employer accounts: the profile with its contacts and
representatives, the verification level that only the server sets, and
the memberships that give an account its role in an organization. The
organization in the path is authoritative and is checked against an
active membership on every request; no body carries a role, a
membership, or a verification level.
- name: need
description: >-
Hiring needs of an organization: requirements with their confirmation
@@ -89,6 +97,12 @@ paths:
$ref: ./routes/candidate_assessment_attempt_finalize.yml
/api/v1/me/assessment-attempts/{attempt_id}/result:
$ref: ./routes/candidate_assessment_attempt_result.yml
/api/v1/me/organizations:
$ref: ./routes/my_organizations.yml
/api/v1/organizations:
$ref: ./routes/organizations.yml
/api/v1/organizations/{org_id}:
$ref: ./routes/organization.yml
/api/v1/organizations/{org_id}/needs:
$ref: ./routes/organization_needs.yml
/api/v1/organizations/{org_id}/needs/{need_id}:
@@ -599,6 +613,46 @@ components:
$ref: ./components/schemas.yml#/ConsentRecord
ConsentRecordList:
$ref: ./components/schemas.yml#/ConsentRecordList
OrganizationVersion:
$ref: ./components/schemas.yml#/OrganizationVersion
OrganizationName:
$ref: ./components/schemas.yml#/OrganizationName
OrganizationDescription:
$ref: ./components/schemas.yml#/OrganizationDescription
OrganizationSphere:
$ref: ./components/schemas.yml#/OrganizationSphere
OrganizationWebsite:
$ref: ./components/schemas.yml#/OrganizationWebsite
OrganizationContactChannels:
$ref: ./components/schemas.yml#/OrganizationContactChannels
OrganizationRepresentative:
$ref: ./components/schemas.yml#/OrganizationRepresentative
OrganizationVerificationLevel:
$ref: ./components/schemas.yml#/OrganizationVerificationLevel
OrganizationVerificationBasis:
$ref: ./components/schemas.yml#/OrganizationVerificationBasis
OrganizationVerification:
$ref: ./components/schemas.yml#/OrganizationVerification
CandidateOrganizationCard:
$ref: ./components/schemas.yml#/CandidateOrganizationCard
Organization:
$ref: ./components/schemas.yml#/Organization
OrganizationCreate:
$ref: ./components/schemas.yml#/OrganizationCreate
OrganizationUpdate:
$ref: ./components/schemas.yml#/OrganizationUpdate
OrganizationRole:
$ref: ./components/schemas.yml#/OrganizationRole
MembershipState:
$ref: ./components/schemas.yml#/MembershipState
OrganizationMembership:
$ref: ./components/schemas.yml#/OrganizationMembership
OrganizationSummary:
$ref: ./components/schemas.yml#/OrganizationSummary
MyOrganization:
$ref: ./components/schemas.yml#/MyOrganization
MyOrganizationList:
$ref: ./components/schemas.yml#/MyOrganizationList
parameters:
IdempotencyKey:
$ref: ./components/parameters.yml#/IdempotencyKey
@@ -704,6 +758,10 @@ components:
$ref: ./components/responses.yml#/InvitationVersionConflict
InvitationCommandConflict:
$ref: ./components/responses.yml#/InvitationCommandConflict
OrganizationValidationFailed:
$ref: ./components/responses.yml#/OrganizationValidationFailed
OrganizationVersionConflict:
$ref: ./components/responses.yml#/OrganizationVersionConflict
securitySchemes:
sessionCookie:
type: apiKey