7226 lines
339 KiB
YAML
7226 lines
339 KiB
YAML
openapi: 3.2.0
|
|
info:
|
|
title: Lincodex API
|
|
version: 0.1.0
|
|
servers:
|
|
- url: /
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- name: health
|
|
description: Liveness of the API process.
|
|
- name: identity
|
|
description: Registration, email verification, login, logout, and the current account. Sessions are server-side and travel in an HttpOnly cookie; mutating requests that require a session also carry a CSRF token.
|
|
- name: catalog
|
|
description: 'Public reference data: directions, specializations with their assessment availability, and the grade scale.'
|
|
- name: candidate
|
|
description: Data of the current candidate, such as the questionnaire with the chosen specializations and self-assessed grades. Confirmed grades and categories come only from assessment results.
|
|
- name: assessment
|
|
description: '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: need
|
|
description: 'Hiring needs of an organization: requirements with their confirmation 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.'
|
|
paths:
|
|
/api/v1/healthz:
|
|
get:
|
|
operationId: GetHealthz
|
|
summary: Check whether the API process is responding.
|
|
security: []
|
|
tags:
|
|
- health
|
|
responses:
|
|
'200':
|
|
description: The API process is responding.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/HealthResponse'
|
|
examples:
|
|
ok:
|
|
summary: The process is responding
|
|
value:
|
|
status: ok
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/identity/consent-texts/{purpose}:
|
|
get:
|
|
operationId: GetConsentText
|
|
summary: Read the currently published text of a registration consent.
|
|
description: Public operation without a session. Returns the current text of a consent that is given before an account exists; only `c1` is available. The registration page shows this text and sends its `text_version` with RegisterAccount, and the server hashes the same stored text when it records the acceptance. If the text changes while the page is open, RegisterAccount answers 400 validation_failed with the pointer `/consent_c1/text_version`, and the page reads the text again. An unknown purpose fails parameter validation with 400.
|
|
security: []
|
|
tags:
|
|
- identity
|
|
parameters:
|
|
- name: purpose
|
|
in: path
|
|
required: true
|
|
description: Consent whose text is requested.
|
|
schema:
|
|
$ref: '#/components/schemas/ConsentPurpose'
|
|
responses:
|
|
'200':
|
|
description: The current consent text.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ConsentText'
|
|
examples:
|
|
c1:
|
|
summary: Current C1 text
|
|
value:
|
|
purpose: c1
|
|
text_version: c1-2026-10-01
|
|
text: |-
|
|
I consent to the processing of my personal data for registration and the use of the service.
|
|
|
|
The full text is published by the operator.
|
|
published_at: '2026-10-01T00:00:00Z'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/identity/registrations:
|
|
post:
|
|
operationId: RegisterAccount
|
|
summary: Register an account by email with a scenario and consent C1.
|
|
description: |-
|
|
Public operation without a session. The client reads the current C1 text with GetConsentText and sends the email, the password, the chosen scenario, and consent C1 with the version of the text the user accepted.
|
|
|
|
The answer is the same 202 whether the email is new, registered but not verified, or verified, so registration does not enumerate accounts:
|
|
|
|
- New email: the server creates an unverified account with the scenario and the first onboarding step, records C1 with its text version and text hash, stores only the hash of a one-time verification token, and queues the verification message, all in one transaction.
|
|
- Registered but not verified: the server treats the request as a new registration of that address. In one transaction it replaces the password hash, the scenario, the onboarding step, and the C1 record, advances the registration version, invalidates every earlier verification token, and queues a message with a new token. A pre-registration with someone else's password therefore never survives the address owner's own registration.
|
|
- Verified: nothing changes. The server may queue a rate-limited "you already have an account" notice to the address.
|
|
|
|
Every verification token is bound to the registration version it was issued for, so a token issued before a re-registration can never confirm the newer credentials. An account that stays unverified is deleted with its consent record and tokens 7 days after its last registration (planned value from configuration). Verification tokens live 24 hours (planned value from configuration).
|
|
|
|
The response does not depend on the branch in content or timing. Before it looks up the email, the server validates the whole body, including the password bounds after normalization, the password blocklist, and the C1 version, and it computes the Argon2id hash on every branch; a 400 therefore never depends on whether the email exists. Mail is delivered asynchronously from the outbox.
|
|
|
|
The operation requires Idempotency-Key. For this anonymous operation the key is scoped by the operation, the key, and an HMAC of the normalized email, and the request fingerprint is an HMAC-SHA-256 with a server secret over the canonical JSON body. The server never stores the body, the password, or a plain hash of either; the secret keeps the fingerprint from serving as an offline password check. A retry with the same key, email, and body replays the stored 202 without a second message; the same key and email with a different body answers 422 idempotency_key_reused.
|
|
|
|
It is rate-limited per client and per email and answers 429 with Retry-After when the limit is reached. Like every unsafe request, it requires an allowed Origin and answers 403 csrf_check_failed otherwise.
|
|
security: []
|
|
tags:
|
|
- identity
|
|
parameters:
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/RegistrationRequest'
|
|
examples:
|
|
candidate:
|
|
summary: Candidate registration
|
|
value:
|
|
email: candidate@example.com
|
|
password: correct horse battery staple
|
|
scenario: candidate
|
|
consent_c1:
|
|
text_version: c1-2026-10-01
|
|
accepted: true
|
|
responses:
|
|
'202':
|
|
description: Registration request accepted. If the email can be registered, a verification link is on its way; the response does not say whether it was.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/IdentityRequestAccepted'
|
|
examples:
|
|
accepted:
|
|
summary: Neutral acknowledgement
|
|
value:
|
|
status: accepted
|
|
'400':
|
|
$ref: '#/components/responses/RegistrationValidationFailed'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailed'
|
|
'409':
|
|
$ref: '#/components/responses/IdempotencyInProgress'
|
|
'422':
|
|
$ref: '#/components/responses/UnprocessableContent'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/identity/email-verification-requests:
|
|
post:
|
|
operationId: ResendEmailVerification
|
|
summary: Request a new email verification link.
|
|
description: |-
|
|
Public operation without a session. The answer is the same 202 for an unknown email, a verified email, and an unverified one, so it does not enumerate accounts. Only for an unverified account does the server issue a new one-time token bound to the current registration version, invalidate every earlier token of that account, and queue the message. Resend never changes the password, the scenario, or the consent record; a user who did not start the pending registration registers again instead, which replaces it.
|
|
|
|
It is rate-limited per client and per email and answers 429 with Retry-After when the limit is reached. A retry is safe without Idempotency-Key: at worst it replaces the token again within the rate limit. Like every unsafe request, it requires an allowed Origin and answers 403 csrf_check_failed otherwise.
|
|
security: []
|
|
tags:
|
|
- identity
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/EmailVerificationResendRequest'
|
|
examples:
|
|
resend:
|
|
summary: Resend to an address
|
|
value:
|
|
email: candidate@example.com
|
|
responses:
|
|
'202':
|
|
description: Request accepted. If the address belongs to an unverified account, a new link is on its way; the response does not say whether it was.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/IdentityRequestAccepted'
|
|
examples:
|
|
accepted:
|
|
summary: Neutral acknowledgement
|
|
value:
|
|
status: accepted
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailed'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/identity/email-verifications:
|
|
post:
|
|
operationId: ConfirmEmail
|
|
summary: Verify an email with the one-time token from the link.
|
|
description: |-
|
|
Public operation without a session. The verification link has the form `<frontend origin>/verify-email#token=<token>`: the token travels in the URL fragment, so it never reaches a server log or a Referer header. The page first removes the fragment with `history.replaceState`, then waits for an explicit user action, such as a Confirm button, before it posts the token here. A link scanner that only fetches the page therefore does not consume the token.
|
|
|
|
The server looks up the token by its hash and, in one transaction, checks that it is unused, not expired, and bound to the current registration version, marks it used, and marks the email verified. Only one of several parallel requests with the same token succeeds. An expired token answers verification_token_expired; an unknown, used, replaced, or superseded token answers verification_token_invalid; neither changes anything. For both, the client offers a new link and sign-in, because the address may already be verified.
|
|
|
|
A repeated confirmation with an already used token is not an idempotent 200: exactly one request may succeed for a token, so the outcome of parallel requests stays unambiguous, and the next step after either outcome is sign-in anyway.
|
|
|
|
Success does not start a session: the link may be opened on another device or by a mail scanner, and a session must come only from the password. The response returns the scenario and the saved onboarding step so the client can continue after sign-in. The operation is rate-limited and requires an allowed Origin.
|
|
security: []
|
|
tags:
|
|
- identity
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/EmailVerificationRequest'
|
|
examples:
|
|
token:
|
|
summary: Token from the link
|
|
value:
|
|
token: q3Zt9b2Kx7LmP4vR8sW1yC6nD0fH5jA2eG9uI3oT7kE
|
|
responses:
|
|
'200':
|
|
description: The email is verified.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/EmailVerificationResult'
|
|
examples:
|
|
candidate:
|
|
summary: A candidate continues with consents
|
|
value:
|
|
email_verified: true
|
|
scenario: candidate
|
|
onboarding_step: candidate_consents
|
|
'400':
|
|
$ref: '#/components/responses/EmailVerificationFailed'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailed'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/identity/sessions:
|
|
post:
|
|
operationId: Login
|
|
summary: Sign in with email and password and start a session.
|
|
description: |-
|
|
Public operation that starts a server session. The server verifies the password with Argon2id; for an unknown email it verifies against a fixed dummy hash, so the response time does not reveal whether the account exists. An unknown email and a wrong password both answer 401 invalid_credentials.
|
|
|
|
Correct credentials for an unverified email answer 403 email_not_verified and create no session. This reveals the verification state only to someone who already knows the password, which proves more than the state itself; the client offers to resend the link.
|
|
|
|
On success the server revokes the session that the request carried, if any, creates a new random session in PostgreSQL with a new identifier and a new CSRF token, sets the HttpOnly session cookie, and returns the account and the CSRF token. The new session follows the idle and absolute timeouts of the sessionCookie scheme. The client keeps the token in memory and sends it in X-CSRF-Token with every mutating request that requires a session.
|
|
|
|
Login is rate-limited per client and per email and answers 429 with Retry-After. Like every unsafe request, it requires an allowed Origin, which protects against login CSRF, and answers 403 csrf_check_failed otherwise.
|
|
security: []
|
|
tags:
|
|
- identity
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/LoginRequest'
|
|
examples:
|
|
login:
|
|
summary: Email and password
|
|
value:
|
|
email: candidate@example.com
|
|
password: correct horse battery staple
|
|
responses:
|
|
'201':
|
|
description: Session started; the session cookie is set.
|
|
headers:
|
|
Set-Cookie:
|
|
$ref: '#/components/headers/SessionCookieSet'
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/Session'
|
|
examples:
|
|
candidate:
|
|
$ref: '#/components/examples/CandidateSession'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/InvalidCredentials'
|
|
'403':
|
|
description: Correct credentials for an unverified email (email_not_verified), or a disallowed Origin (csrf_check_failed). No session was created.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
email_not_verified:
|
|
$ref: '#/components/examples/EmailNotVerified'
|
|
csrf_check_failed:
|
|
$ref: '#/components/examples/CsrfCheckFailed'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/identity/sessions/current:
|
|
get:
|
|
operationId: GetCurrentSession
|
|
summary: Read the current session and its CSRF token.
|
|
description: Requires the session cookie. Returns the account and the CSRF token of the current session, so the client can restore the token after a page reload or after 403 csrf_check_failed. A missing, unknown, expired, or revoked session answers 401 unauthenticated. Cross-origin pages cannot read the token, because the API sends no Access-Control-Allow-Origin header.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- identity
|
|
responses:
|
|
'200':
|
|
description: The current session.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/Session'
|
|
examples:
|
|
candidate:
|
|
$ref: '#/components/examples/CandidateSession'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
delete:
|
|
operationId: Logout
|
|
summary: Sign out and revoke the current session.
|
|
description: Requires the session cookie and the CSRF token of that session in X-CSRF-Token, and an allowed Origin. The server revokes the session in PostgreSQL, so the cookie value stops working even if a copy remains, and clears the cookie. A missing, expired, or revoked session answers 401 unauthenticated and also clears the cookie, so a stale cookie does not stay in the browser; a missing or wrong CSRF token or a disallowed Origin answers 403 csrf_check_failed and keeps the session and the cookie. The client clears its private query cache after the response.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- identity
|
|
responses:
|
|
'204':
|
|
description: The session is revoked and the cookie is cleared.
|
|
headers:
|
|
Set-Cookie:
|
|
$ref: '#/components/headers/SessionCookieCleared'
|
|
'401':
|
|
description: No valid session; code unauthenticated. The cookie is cleared as well.
|
|
headers:
|
|
Set-Cookie:
|
|
$ref: '#/components/headers/SessionCookieCleared'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
unauthenticated:
|
|
$ref: '#/components/examples/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailed'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/identity/me:
|
|
get:
|
|
operationId: GetCurrentAccount
|
|
summary: Read the account of the current session.
|
|
description: Requires the session cookie. The account comes from the session, never from a request parameter. The client uses `scenario` and `onboarding_step` to return the user to the unfinished onboarding step. A missing, unknown, expired, or revoked session answers 401 unauthenticated. An unverified account never has a session, because login answers 403 email_not_verified for it, so this operation also answers 401 for such an account.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- identity
|
|
responses:
|
|
'200':
|
|
description: The current account.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/Account'
|
|
examples:
|
|
candidate:
|
|
$ref: '#/components/examples/CandidateAccount'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/specializations:
|
|
get:
|
|
operationId: GetSpecializationCatalog
|
|
summary: Read the catalog of directions, specializations, and grades.
|
|
description: |-
|
|
Public operation without a session. Returns the directions with their specializations, the assessment availability of each specialization, and the grade scale. The candidate picks specializations and self-assessed grades from this catalog for the questionnaire, and the client joins the codes stored in the questionnaire with the titles here.
|
|
|
|
The catalog is public because it is the same for every caller and contains no personal data: the product shows it before registration, and a public read lets intermediaries and the browser cache it. It reveals nothing beyond what the landing pages already show.
|
|
|
|
A category is a specialization together with a confirmed grade. Task languages and the stack are attributes of a chosen specialization and never appear as categories. `test_availability` is derived from the published task banks at the time of the request, so it changes when a bank is published, without a contract change: the MVP opens an assessment only for a category with a published bank, and every other specialization is marked `in_development`. Presence in the catalog never means that its test is ready.
|
|
security: []
|
|
tags:
|
|
- catalog
|
|
responses:
|
|
'200':
|
|
description: The catalog.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/SpecializationCatalog'
|
|
examples:
|
|
mvp:
|
|
$ref: '#/components/examples/SpecializationCatalog'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/questionnaire:
|
|
get:
|
|
operationId: GetMyQuestionnaire
|
|
summary: Read the questionnaire of the current candidate.
|
|
description: |-
|
|
Requires the session cookie of a candidate account. The candidate comes from the session, never from a request parameter. A candidate who has not saved the questionnaire yet gets 200 with version 0 and no specializations rather than 404, so the client reads the version for the first save in the same way as for later ones and a missing questionnaire is not an error state.
|
|
|
|
The response never contains a confirmed grade or a category; those come only from assessment results. A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- candidate
|
|
responses:
|
|
'200':
|
|
description: The questionnaire of the current candidate.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CandidateQuestionnaire'
|
|
examples:
|
|
new_candidate:
|
|
$ref: '#/components/examples/NewCandidateQuestionnaire'
|
|
backend_go_and_network_engineer:
|
|
$ref: '#/components/examples/BackendGoAndNetworkEngineerQuestionnaire'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
put:
|
|
operationId: SaveMyQuestionnaire
|
|
summary: Replace the questionnaire of the current candidate.
|
|
description: |-
|
|
Requires the session cookie of a candidate account, the CSRF token of that session in X-CSRF-Token, and an allowed Origin. The body is the complete new state: one or two specializations, each with a self-assessed grade, task languages, stack tags, and stated experience or null, and the working context. It replaces the stored questionnaire as a whole.
|
|
|
|
Self-assessment is a claim. It influences where the assessment starts and which grade the assessment step offers first, but it adds no points and never writes a confirmed grade or a category: a self-assessed `senior`, or the word "Senior" in a stack tag, never assigns the Senior category. A real profile stays invisible to employers until an assessment confirms a category. Choosing a specialization whose test is `in_development` is allowed; no assessment starts for it until its bank is published. Removing a specialization from the questionnaire does not change assessment results.
|
|
|
|
Optimistic concurrency uses `expected_version` in the body: the client sends the `version` it read, 0 for the first save. If it is not the current version, the server answers 412 version_conflict and changes nothing; the client reads the questionnaire again. The version travels in the body rather than in If-Match because the generated client cannot read the ETag response header yet. The status and code are the same as for a failed If-Match, since the client action is the same.
|
|
|
|
The operation needs no Idempotency-Key: it replaces the whole state and is idempotent. A body whose specializations and working context equal the stored ones changes nothing, keeps the version, and answers 200 with the current questionnaire even when `expected_version` is older, so a retry after a lost response of a successful save succeeds instead of failing with 412.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden for an employer), domain rules (400), then the version (412). The schema rejects more than two specializations, an unknown grade, specialization, or task language, and unknown fields. The server also rejects a repeated specialization and a task language that the specialization's published bank does not offer, with 400 validation_failed and pointers to the items, for example `/specializations/1/specialization` or `/specializations/0/task_languages/0`.
|
|
|
|
A successful save on the onboarding step candidate_questionnaire advances the account to candidate_assessment (planned).
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- candidate
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CandidateQuestionnaireUpdate'
|
|
examples:
|
|
backend_go_and_network_engineer:
|
|
$ref: '#/components/examples/BackendGoAndNetworkEngineerQuestionnaireUpdate'
|
|
responses:
|
|
'200':
|
|
description: The saved questionnaire with its new version.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CandidateQuestionnaire'
|
|
examples:
|
|
backend_go_and_network_engineer:
|
|
$ref: '#/components/examples/BackendGoAndNetworkEngineerQuestionnaire'
|
|
'400':
|
|
$ref: '#/components/responses/QuestionnaireValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'412':
|
|
$ref: '#/components/responses/QuestionnaireVersionConflict'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/assessment-availability:
|
|
get:
|
|
operationId: GetMyAssessmentAvailability
|
|
summary: Read which assessment attempts the current candidate can start.
|
|
description: |-
|
|
Requires the session cookie of a candidate account; the candidate comes from the session. For each specialization of the questionnaire, returns the confirmed grade, the active attempt, and for every grade whether an attempt can start now, in which mode, and with which limits: the time limit, the session limit, the item limit, and whether a code practice is required. The client shows them before the start, together with the method and the signals that are collected, and resumes an active attempt by `active_attempt_id`, for example after it lost the response of CreateMyAssessmentAttempt.
|
|
|
|
`insufficient_bank` is the state of a category whose bank is not published or has too few families that this candidate has not seen; the server limits attempts instead of repeating families. `cooldown` carries the date when the attempt opens, so the client can explain a blocked attempt with that date and offer support. Specializations and their retry intervals are independent. Attempts that ended as `insufficient_bank` or with the reason `sandbox_unavailable` are platform limitations and never cause a `cooldown`.
|
|
|
|
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- assessment
|
|
responses:
|
|
'200':
|
|
description: Assessment availability of the current candidate.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentAvailability'
|
|
examples:
|
|
backend_and_network_engineer:
|
|
$ref: '#/components/examples/AssessmentAvailability'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/assessment-attempts:
|
|
post:
|
|
operationId: CreateMyAssessmentAttempt
|
|
summary: Start an assessment attempt for a category of the current candidate.
|
|
description: |-
|
|
Requires the session cookie of a candidate account, the CSRF token of that session in X-CSRF-Token, an allowed Origin, and an Idempotency-Key. The body names the category, a specialization of the questionnaire and a target grade, and the task language. The server picks the mode from the published bank, `demo_basic` or `adaptive`, and fixes the policy, bank, and algorithm versions, the time and session limits, and the item variants in one transaction; the client never sends a mode, a seed, or a version. Creation starts session 1. The self-assessed grade only chooses where the test starts and adds no points. An adaptive retest starts from the previous ability estimate of the specialization, adjusted for the time passed, so a new attempt adds evidence instead of starting the measurement over.
|
|
|
|
A specialization has at most one active attempt. A new attempt cannot start while one is active, during a retry or promotion interval or past the attempt limit of the policy, or when the bank is insufficient; each answers 409 state_conflict and creates nothing, not even a placeholder attempt. GetMyAssessmentAvailability tells which case applies and when a blocked attempt opens. After a failure, including the first test, a lower grade can be tested at once. An attempt that ends as `expired` or with the reason `practice_incomplete` counts toward the attempt limit and starts the same-grade retry interval; one that ends as `insufficient_bank` or with the reason `sandbox_unavailable` counts toward neither.
|
|
|
|
The limits are server-side: `expires_at` and `sessions` come from the policy version, the client clock never extends them, and after them the attempt accepts no command. Within them the attempt is also bounded by the item limit of the policy.
|
|
|
|
Idempotency: a retry with the same key and body within 24 hours replays the stored 201 or 409 state_conflict response and creates nothing, so a lost response never creates a second attempt. A different body with the same key answers 422 idempotency_key_reused. 400 is never stored, so a corrected retry is evaluated again.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden for an employer), the Idempotency-Key (422, 409 idempotency_in_progress, replay), domain rules (400 with a pointer, for example `/specialization` for a specialization that is not in the questionnaire or `/task_language` for a language that the bank does not offer), then availability (409 state_conflict). The rate limit can answer 429 with Retry-After before any of them; it is not stored.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- assessment
|
|
parameters:
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentAttemptCreate'
|
|
examples:
|
|
backend_junior_go:
|
|
$ref: '#/components/examples/AssessmentAttemptCreateBackendJunior'
|
|
responses:
|
|
'201':
|
|
description: The attempt was created, or a retry with the same Idempotency-Key replayed its creation.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentAttempt'
|
|
examples:
|
|
demo_basic_created:
|
|
$ref: '#/components/examples/AssessmentAttemptCreated'
|
|
'400':
|
|
$ref: '#/components/responses/AssessmentAttemptCreateValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'409':
|
|
$ref: '#/components/responses/AssessmentCreateConflict'
|
|
'422':
|
|
$ref: '#/components/responses/UnprocessableContent'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/assessment-attempts/{attempt_id}:
|
|
get:
|
|
operationId: GetMyAssessmentAttempt
|
|
summary: Read or resume an assessment attempt of the current candidate.
|
|
description: |-
|
|
Requires the session cookie of a candidate account. Returns the attempt with its state, fixed versions, time and session limits, progress, the item to answer now, and the practices. A reload, a retried request, or a new session returns the same item instance with the same text and option order; a lost connection never creates a new attempt. The response never says whether an earlier answer was correct and never contains answer keys, item scores, family or variant identifiers, seeds, hidden checks, or anti-cheat signals.
|
|
|
|
Reading an active attempt counts as activity: after the previous session ended it starts the next session, and when that would exceed the session limit it starts none and the attempt becomes `expired`. Before it answers, the server commits any transition that is due, with a new version: past `expires_at`, `ready_to_finalize` becomes `completed`, an unsubmitted additional practice is declined and the attempt becomes `completed`, and the other active states become `expired`; a practice still `pending` is graded first. The client polls this operation while a practice is `pending`. Reading a terminal attempt changes nothing.
|
|
|
|
The attempt must belong to the candidate of the session: an attempt of another candidate answers 404 not_found, the same as an unknown identifier, so identifiers cannot be probed. An employer account answers 403 forbidden; no operation gives an employer the answers or the attempt history.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- assessment
|
|
parameters:
|
|
- $ref: '#/components/parameters/AssessmentAttemptId'
|
|
responses:
|
|
'200':
|
|
description: The attempt.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentAttempt'
|
|
examples:
|
|
adaptive_resumed:
|
|
$ref: '#/components/examples/AssessmentAttemptResumed'
|
|
practice_pending:
|
|
$ref: '#/components/examples/AssessmentAttemptPracticePending'
|
|
practice_verdict_pending:
|
|
$ref: '#/components/examples/AssessmentAttemptPracticeVerdictPending'
|
|
sandbox_failed:
|
|
$ref: '#/components/examples/AssessmentAttemptSandboxFailed'
|
|
ready_to_finalize:
|
|
$ref: '#/components/examples/AssessmentAttemptReadyToFinalize'
|
|
additional_practice_pending:
|
|
$ref: '#/components/examples/AssessmentAttemptAdditionalPracticePending'
|
|
completed:
|
|
$ref: '#/components/examples/AssessmentAttemptCompleted'
|
|
insufficient_bank:
|
|
$ref: '#/components/examples/AssessmentAttemptInsufficientBank'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/assessment-attempts/{attempt_id}/answers:
|
|
post:
|
|
operationId: SubmitMyAssessmentAnswer
|
|
summary: Answer the current item or submit a practice of an assessment attempt.
|
|
description: |-
|
|
Requires the session cookie of a candidate account, the CSRF token of that session in X-CSRF-Token, an allowed Origin, and an Idempotency-Key. The body names the item and carries the answer in the format of that item: `choice`, `number`, `string`, `order`, `find_error`, `configuration`, or `practice`. It never carries a score, a duration, or a correctness flag; the server records the times itself and scores the answer with the key of the fixed item instance. Time never enters the ability estimate or the grade decision.
|
|
|
|
The response is the attempt with the next item to answer. It never says whether the answer was correct. Items are answered in order and each answer is final.
|
|
|
|
Practice: an answer with format `practice` submits the solution of the main or the additional practice. It is stored, and the sandbox runs it asynchronously against the hidden check groups; the response shows the practice `pending`, and the client polls GetMyAssessmentAttempt for the verdict. Only the score 0-3 and the pass state of each group are shown, never the checks, error output, or seeds. Every outcome caused by the solution, such as a compilation error, a crash, or a time or memory limit, is a `finished` verdict. A `failed` verdict means only that the sandbox infrastructure could not run it; it consumes nothing. After `finished` the practice accepts no other solution, so hidden group results cannot be used to tune it. Debug runs of the candidate's own tests and the public examples are unlimited apart from the sandbox rate limit and never show hidden group results; they are planned as a separate operation.
|
|
|
|
Repeats and conflicts, per item:
|
|
- A retry with the same Idempotency-Key and body within 24 hours replays the stored response.
|
|
- Sending the answer already stored for the item again, even with a new key or an older `expected_version`, stores nothing, keeps the version, and answers 200 with the current attempt. Each answer format defines equality: sets for `option_ids` and `line_numbers`, the exact sequence for `element_ids`, numeric equality for `number`, identical text without normalization for `text` and `config`, and the same language with identical source for a practice.
|
|
- A different answer for an item that already has one answers 409 state_conflict when `expected_version` is current; with a stale version the version check comes first and answers 412.
|
|
- Exception for a practice whose latest verdict is `failed`: the repeat rule does not apply. A submission with the same or a different solution, with the current `expected_version`, queues it again and advances the version.
|
|
|
|
Optimistic concurrency: `expected_version` must equal the current attempt version, otherwise the server answers 412 version_conflict and stores nothing; the client reads the attempt again. 412 is the repository status for a stale version, also used by SaveMyQuestionnaire; 409 state_conflict is kept for commands that the attempt state does not allow at the current version.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden), the Idempotency-Key (422, 409 idempotency_in_progress, replay), the attempt (404 not_found for an unknown attempt or one of another candidate; the server first commits any due transition such as expiry, and the request counts as activity for the session limit), the repeat of the stored answer (200, skipped for a practice whose latest verdict is `failed`), the version (412), the state (409 state_conflict: the attempt is terminal, the item is not current, the item has a different answer, or the practice verdict is pending or finished), then the answer against the item (400 with a pointer such as `/answer/format` or `/answer/option_ids/0`). Following the Idempotency-Key convention, 404 and 409 state_conflict are stored under the key and replayed; 400, 412, 429, and 5xx are not. The rate limit can answer 429 with Retry-After before any check.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- assessment
|
|
parameters:
|
|
- $ref: '#/components/parameters/AssessmentAttemptId'
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentAnswerSubmission'
|
|
examples:
|
|
choice:
|
|
$ref: '#/components/examples/AssessmentChoiceAnswer'
|
|
order:
|
|
$ref: '#/components/examples/AssessmentOrderAnswer'
|
|
number:
|
|
$ref: '#/components/examples/AssessmentNumberAnswer'
|
|
string:
|
|
$ref: '#/components/examples/AssessmentStringAnswer'
|
|
find_error:
|
|
$ref: '#/components/examples/AssessmentFindErrorAnswer'
|
|
configuration:
|
|
$ref: '#/components/examples/AssessmentConfigurationAnswer'
|
|
practice:
|
|
$ref: '#/components/examples/AssessmentPracticeAnswer'
|
|
responses:
|
|
'200':
|
|
description: The answer was stored, or this exact answer was already stored, and the response is the attempt with the next item.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentAttempt'
|
|
examples:
|
|
accepted:
|
|
$ref: '#/components/examples/AssessmentAnswerAccepted'
|
|
practice_submitted:
|
|
$ref: '#/components/examples/AssessmentAttemptPracticeVerdictPending'
|
|
'400':
|
|
$ref: '#/components/responses/AssessmentAnswerValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/AssessmentCommandConflict'
|
|
'412':
|
|
$ref: '#/components/responses/AssessmentVersionConflict'
|
|
'422':
|
|
$ref: '#/components/responses/UnprocessableContent'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/assessment-attempts/{attempt_id}/finalize:
|
|
post:
|
|
operationId: FinalizeMyAssessmentAttempt
|
|
summary: Ask for the grade decision of an assessment attempt.
|
|
description: |-
|
|
Requires the session cookie of a candidate account, the CSRF token of that session in X-CSRF-Token, an allowed Origin, and an Idempotency-Key. Finalize always answers with the attempt, never with the result: the decision may continue the attempt, and one response type keeps that unambiguous for every generated client. When the returned state is `completed`, the client reads the result with GetMyAssessmentResult.
|
|
|
|
Allowed in `ready_to_finalize`, where every required part is done, and in `additional_practice_pending` while the additional practice is `not_started` or `failed`. The server decides from the stored answers with the policy, bank, and algorithm versions fixed at creation:
|
|
- `demo_basic` compares the raw score with the pass mark of the recorded basic grading policy and completes the attempt. It never offers an additional practice.
|
|
- `adaptive` applies the probability bands of the recorded policy. Confirmation or rejection completes the attempt. A probability in the band below confirmation (0.50 to below 0.80 in the demo policy) on the first finalize, while time and sessions remain, completes nothing: the server appends an `additional` practice, moves the attempt to `additional_practice_pending`, and answers 200 with it. The additional practice continues the same attempt, keeps its limits, and spends no new attempt. The next finalize, after its verdict, decides with the added evidence; a probability still below confirmation gives `not_confirmed`. An attempt offers at most one additional practice.
|
|
- Finalize in `additional_practice_pending` declines the offer and gives `not_confirmed` with the current evidence. A retry of the first finalize with a new key cannot decline by accident: it carries the version from before the offer and answers 412.
|
|
|
|
A failed attempt never lowers a confirmed grade. Repeats return the same outcome: a retry with the same Idempotency-Key replays the stored response, and a finalize of a `completed` attempt answers 200 with that attempt even with a new key or an older `expected_version`; the result is computed once. When `expires_at` passes or the session limit is reached, the server finalizes `ready_to_finalize` itself, without offering an additional practice, so a finalize after that also answers 200 with the `completed` attempt.
|
|
|
|
An attempt in `in_progress` or `practice_pending`, one with a practice verdict `pending`, or one that ended as `expired` or `insufficient_bank` answers 409 state_conflict. The problem does not list what is unfinished; the attempt shows it in `state`, `progress`, `current_item`, and `practices`. A stale `expected_version` answers 412 version_conflict, the repository status for a stale version.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden), the Idempotency-Key (422, 409 idempotency_in_progress, replay), the attempt (404 not_found, after any due transition), the repeat on a `completed` attempt (200), the version (412), then the state (409 state_conflict). 404 and 409 state_conflict are stored under the key; 400 and 412 are not.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- assessment
|
|
parameters:
|
|
- $ref: '#/components/parameters/AssessmentAttemptId'
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentFinalization'
|
|
examples:
|
|
finalize:
|
|
$ref: '#/components/examples/AssessmentFinalization'
|
|
responses:
|
|
'200':
|
|
description: 'The attempt after the decision: `completed`, with the result available from GetMyAssessmentResult, or `additional_practice_pending` when an adaptive attempt offers an additional practice.'
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentAttempt'
|
|
examples:
|
|
demo_basic_completed:
|
|
$ref: '#/components/examples/AssessmentAttemptCompleted'
|
|
additional_practice_offered:
|
|
$ref: '#/components/examples/AssessmentAttemptAdditionalPracticePending'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/AssessmentFinalizeConflict'
|
|
'412':
|
|
$ref: '#/components/responses/AssessmentVersionConflict'
|
|
'422':
|
|
$ref: '#/components/responses/UnprocessableContent'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/assessment-attempts/{attempt_id}/result:
|
|
get:
|
|
operationId: GetMyAssessmentResult
|
|
summary: Read the result of an assessment attempt of the current candidate.
|
|
description: |-
|
|
Requires the session cookie of a candidate account. Returns the immutable result of a terminal attempt: `completed`, `expired`, or `insufficient_bank`. It records the mode, the policy, bank, and algorithm versions, the decision, the previously confirmed grade, the calibration status and limitations of the method, the uncertainty where the method computes it, the practice verdicts, the weak domains, the working time as a separate label, and the next steps that the server allows. A later policy, bank, or algorithm version never changes it.
|
|
|
|
Fields that the method does not compute are null and never zero: a `demo_basic` result has null `uncertainty` and `strength`. The result never contains answers, per-item correctness, answer keys, seeds, hidden checks, or anti-cheat signals.
|
|
|
|
An active attempt answers 409 state_conflict; an attempt in `additional_practice_pending` is active and has no result yet. The server first commits any due transition, so an attempt past its limits is read as terminal. An attempt of another candidate answers 404 not_found, the same as an unknown identifier. An employer account answers 403 forbidden; employers see only the current category through a separate projection, never this result or the attempt history.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- assessment
|
|
parameters:
|
|
- $ref: '#/components/parameters/AssessmentAttemptId'
|
|
responses:
|
|
'200':
|
|
description: The result.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentResult'
|
|
examples:
|
|
demo_basic:
|
|
$ref: '#/components/examples/AssessmentDemoBasicResult'
|
|
adaptive_confirmed:
|
|
$ref: '#/components/examples/AssessmentAdaptiveResult'
|
|
adaptive_not_confirmed:
|
|
$ref: '#/components/examples/AssessmentNotConfirmedResult'
|
|
insufficient_bank:
|
|
$ref: '#/components/examples/AssessmentInsufficientBankResult'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/AssessmentResultNotReady'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/organizations/{org_id}/needs:
|
|
get:
|
|
operationId: ListOrganizationNeeds
|
|
summary: List the needs of an organization.
|
|
description: |-
|
|
Requires the session cookie of an employer account with an active membership in `org_id`. The organization and the role come from the membership that the server holds for the session account, never from the request. In the MVP only the owner of the organization works with needs; the other roles of the PRD FR07 matrix (recruiter, hiring manager and technical expert for assigned needs) are planned and change no field of this contract. The list holds only the needs that the role may read.
|
|
|
|
Returns a page of need summaries, newest first by creation time with the identifier as the tie-breaker, with cursor pagination. A summary has the current version, the target specialization and grade with their confirmation state, and the readiness; GetOrganizationNeed returns the requirements and the recommendations.
|
|
|
|
Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated; a candidate account answers 403 forbidden; an account without an active membership in the organization and an unknown organization both answer 404 not_found, so organizations cannot be enumerated; a member whose role does not allow reading needs answers 403 forbidden. A malformed `org_id`, `limit`, or `cursor` answers 400 validation_failed.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- need
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/PageLimit'
|
|
- $ref: '#/components/parameters/PageCursor'
|
|
responses:
|
|
'200':
|
|
description: A page of the needs of the organization.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/NeedList'
|
|
examples:
|
|
last_page:
|
|
$ref: '#/components/examples/NeedListPage'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
post:
|
|
operationId: CreateOrganizationNeed
|
|
summary: Create a need of an organization from a form, a text, or both.
|
|
description: |-
|
|
Requires the session cookie of an employer account with an active membership in `org_id`, the CSRF token of that session in X-CSRF-Token, an allowed Origin, and an Idempotency-Key. The organization comes from the path and the server-side membership; the body has no organization, membership, or role field. In the MVP only the owner of the organization may create a need; the other roles of PRD FR07 are planned.
|
|
|
|
A need does not require a vacancy: `vacancy_id` is optional and nullable. When it is given, it must name a vacancy of the same organization; until vacancies exist in the contract, any vacancy identifier answers 400 with the pointer `/vacancy_id`, the same for an unknown vacancy and one of another organization.
|
|
|
|
Only `title` is required. A field is sent as a decision `{value, status}` and a list item as `{name or text, status}`; on creation the status must be `confirmed`, and the value becomes a confirmed manual value. When `source_text` is given, the server extracts suggestions for the absent fields with deterministic rules and a dictionary before it answers, so creation works while the ML service is disabled; every suggestion has the status `extracted`, the origin extracted_from_text, a quote where the extractor found one, and the extractor version, and it waits for a member to confirm it. A field that the text does not state stays `unknown` with null value and source; the server never guesses a grade, a format, or a salary. ML suggestions with quotes are planned as an asynchronous addition that creates a new version and never overwrites a confirmed value.
|
|
|
|
The need is saved even when critical fields are missing: the response is 201 with version 1, and `readiness.missing_fields` names each critical field without a confirmed value with a specific question. `recommendations` is computed by the server from the confirmed requirements only; the request cannot set a recommendation, its score, or its components. Creating a need never contacts a candidate or sends an invitation.
|
|
|
|
Salary limit: setting a salary range counts against a limit shared by the whole organization, every member and every need, on creation as on a change: at most three range settings a day (PRD FR13, planned in TASK-211). Over the limit the server answers 429 with Retry-After and creates nothing. After five settings within seven days the money component of the recommendations is `withheld` for seven days. The limit keeps an organization from probing hidden candidate minimums with new needs instead of edits; repeated range changes also feed the private risk signals of TASK-319.
|
|
|
|
Idempotency: a retry with the same key and body within 24 hours replays the stored 201 and creates nothing, so a lost response never creates a second need. A different body with the same key answers 422 idempotency_key_reused. 400 is never stored, so a corrected retry is evaluated again.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden for a candidate), membership (404 not_found) and role (403 forbidden), the Idempotency-Key (422, 409 idempotency_in_progress, replay), domain rules (400 with a pointer: `/salary/value/salary_to` for a range whose lower bound is not below the upper one or whose width is outside 10-40%, `/required_skills/1/name` for a repeated skill, `/grade/status` or `/required_skills/0/status` for `extracted`, which a new need cannot have, or `/vacancy_id`), then the salary limit (429). The schema already rejects unknown fields such as `rec_score`, `members`, or `candidate_minimum`, a field sent as a bare value instead of `{value, status}`, a salary bound that is not a positive multiple of 1000, and an unknown currency, period, or tax basis. The general rate limit can answer 429 with Retry-After before any check. 429 is never stored.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- need
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/NeedCreate'
|
|
examples:
|
|
manual_without_vacancy:
|
|
$ref: '#/components/examples/NeedCreateManual'
|
|
from_text:
|
|
$ref: '#/components/examples/NeedCreateFromText'
|
|
responses:
|
|
'201':
|
|
description: The need was created as version 1, or a retry with the same Idempotency-Key replayed its creation.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/Need'
|
|
examples:
|
|
manual_without_vacancy:
|
|
$ref: '#/components/examples/NeedManualWithoutVacancy'
|
|
from_text_with_unknown_skill:
|
|
$ref: '#/components/examples/NeedExtractedWithUnknownSkill'
|
|
'400':
|
|
$ref: '#/components/responses/NeedValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/IdempotencyInProgress'
|
|
'422':
|
|
$ref: '#/components/responses/UnprocessableContent'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/organizations/{org_id}/needs/{need_id}:
|
|
get:
|
|
operationId: GetOrganizationNeed
|
|
summary: Read the current version of a need of an organization.
|
|
description: |-
|
|
Requires the session cookie of an employer account with an active membership in `org_id`. The organization and the role come from the server-side membership, never from the request. In the MVP only the owner of the organization reads needs; the other roles of PRD FR07 are planned.
|
|
|
|
Returns the current version of the need: `version`, the requirements with the confirmation state and provenance of each field (`status`, and `source` with the origin, the quote, the version whose text the quote belongs to, and the extractor version), the readiness with `missing_fields`, and the category recommendations of the server. A field with status `unknown` has null value and source; an `extracted` value is a suggestion that waits for confirmation and never feeds search or recommendations.
|
|
|
|
Versions: every committed change creates a new immutable `version`, and this operation always returns the latest one. `requirements_version` is the version in which the confirmed requirements were last changed; a change of the title, the vacancy link, the text, or suggestions only keeps it. Search runs, selection snapshots, and invitations refer to a need by its identifier and `requirements_version`, so they keep the requirements they used, and only a new `requirements_version` calls for a new selection snapshot. Reading and comparing earlier versions (PRD FR10) are planned as separate operations that return the same NeedRequirementSet for a given version; they add no field here.
|
|
|
|
Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated; a candidate account answers 403 forbidden; an account without an active membership in the organization, an unknown organization, an unknown need, and a need of another organization all answer 404 not_found, so identifiers cannot be probed; a member whose role does not allow reading the need answers 403 forbidden. An `org_id` or `need_id` that is not a UUID answers 400 validation_failed with the path pointer.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- need
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/NeedId'
|
|
responses:
|
|
'200':
|
|
description: The current version of the need.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/Need'
|
|
examples:
|
|
manual_without_vacancy:
|
|
$ref: '#/components/examples/NeedManualWithoutVacancy'
|
|
from_text_with_unknown_skill:
|
|
$ref: '#/components/examples/NeedExtractedWithUnknownSkill'
|
|
confirmed:
|
|
$ref: '#/components/examples/NeedConfirmedAfterUpdate'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
patch:
|
|
operationId: UpdateOrganizationNeed
|
|
summary: Confirm, change, or delete requirements of a need.
|
|
description: |-
|
|
Requires the session cookie of an employer account with an active membership in `org_id`, the CSRF token of that session in X-CSRF-Token, and an allowed Origin. The organization and the role come from the server-side membership; the body has no organization, membership, or role field. In the MVP only the owner of the organization changes needs; the technical expert, who may refine the requirements of assigned needs under PRD FR07, is planned.
|
|
|
|
Merge rules: the body is `application/json` with explicit field replacement, not JSON Merge Patch. Each field present replaces that field as a whole and an absent field stays unchanged; a field decision and each list are replaced entirely and never merged. This keeps every field one optional value in the generated server and client, without nested partial updates.
|
|
|
|
Each requirement field is sent as a decision `{value, status}` and each list item as `{name or text, status}`, so confirmation is always explicit:
|
|
- Confirm a suggestion: send its stored value with `confirmed`. It keeps its origin and quote.
|
|
- Keep a suggestion open: send its stored value with `extracted`, or leave the field out. `extracted` with any other value, or for a field or item without a stored suggestion, answers 400 with the pointer of that `status`, for example `/grade/status` or `/required_skills/2/status`. A client that sends back an unchanged form therefore never confirms a suggestion by accident.
|
|
- Change: send another value with `confirmed`. It becomes a confirmed manual value, and its quote is dropped.
|
|
- Delete: send null for a nullable field, which makes it `unknown` (or unlinks `vacancy_id`), or leave the item out of a skill or task list, which deletes it. An empty skill or task list deletes every item; a list sent as null answers 400. A deleted requirement really changes the requirements that search uses, not only an explanation, and a deleted suggestion is not proposed again by a later extraction.
|
|
- Text: a different `source_text` extracts again. New suggestions replace only the `extracted` values and items of the fields not named in the body; confirmed values are never overwritten, and a suggested skill whose name is already in either skill list is skipped. Null removes the text and keeps every value.
|
|
|
|
Versions: every committed change creates version `expected_version + 1` as an immutable snapshot and answers 200 with it. `requirements_version` becomes the new version only when a confirmed requirement was confirmed, changed, or removed. `expected_version` is the `version` the client read; when it is not current, the server answers 412 version_conflict and changes nothing, and the client reads the need again and reapplies its unsaved edits. The version travels in the body rather than in If-Match because the generated client cannot read the ETag response header yet, as for the questionnaire. Concurrent changes therefore never overwrite each other silently.
|
|
|
|
The operation needs no Idempotency-Key: a body that changes nothing when applied to the current version, such as a retry of a change that already succeeded, keeps the version and answers 200 with the current need even when `expected_version` is older. An incomplete need is a valid result; `readiness.missing_fields` tells what remains.
|
|
|
|
Salary limit: the recommendations aggregate candidates' minimums against the upper bound, so setting or changing a confirmed salary range counts against a limit shared by the whole organization, every member and every need, together with ranges set on creation: at most three a day (PRD FR13, planned in TASK-211). Over the limit the server answers 429 with Retry-After and changes nothing. After five settings within seven days the money component is `withheld` for seven days. Repeated range changes also feed the private risk signals of TASK-319.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden for a candidate), membership (404 not_found) and role (403 forbidden), the need (404 not_found), a body that changes nothing (200), the version (412), domain rules (400 with a pointer such as `/salary/value/salary_to` for a range whose lower bound is not below the upper one or whose width is outside 10-40%, `/desired_skills/0/name` for a skill that is also in the required list, `/grade/status` or `/required_skills/2/status` for `extracted` with a value that is not the stored suggestion, or `/vacancy_id`), then the salary change limit (429). The schema rejects a missing or non-positive `expected_version`, unknown fields such as `rec_score`, `members`, `candidate_minimum`, or `version`, a field sent as a bare value instead of `{value, status}`, a list sent as null, a salary bound that is not a positive multiple of 1000, and an unknown currency, period, or tax basis.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- need
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/NeedId'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/NeedUpdate'
|
|
examples:
|
|
confirm_suggestions:
|
|
$ref: '#/components/examples/NeedUpdateConfirmSuggestions'
|
|
responses:
|
|
'200':
|
|
description: The need after the change, or the current need when the body changes nothing.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/Need'
|
|
examples:
|
|
confirmed:
|
|
$ref: '#/components/examples/NeedConfirmedAfterUpdate'
|
|
'400':
|
|
$ref: '#/components/responses/NeedValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'412':
|
|
$ref: '#/components/responses/NeedVersionConflict'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/support-cases:
|
|
get:
|
|
operationId: ListMySupportCases
|
|
summary: List the support cases of the current account.
|
|
description: |-
|
|
Requires the session cookie of a candidate or an employer account. Returns a page of the cases that this account created, newest first by creation time with the identifier as the tie-breaker, with cursor pagination. Each item is a summary with the number, type, status, object reference, category, response target, and decision outcome; it has no description and no history, which GetMySupportCase returns with the full case. Cases of other accounts are never listed, including cases of other members of the same organization.
|
|
|
|
Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated. A malformed `limit` or `cursor` answers 400 validation_failed. Filters by status and type are planned and add optional parameters.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- support
|
|
parameters:
|
|
- $ref: '#/components/parameters/PageLimit'
|
|
- $ref: '#/components/parameters/PageCursor'
|
|
responses:
|
|
'200':
|
|
description: A page of the cases of the current account.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/SupportCaseList'
|
|
examples:
|
|
last_page:
|
|
$ref: '#/components/examples/SupportCaseListPage'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
post:
|
|
operationId: CreateMySupportCase
|
|
summary: Open a support case, a complaint, an appeal, or a manual assessment request.
|
|
description: |-
|
|
Requires the session cookie, the CSRF token of that session in X-CSRF-Token, an allowed Origin, and an Idempotency-Key. The author is the account of the session; the body has no user, account, or organization field. A case is reachable from any screen, including a screen that denies access to an assessment: being refused an action never removes the path to a case about it.
|
|
|
|
The client sends only what the user states: `type`, a non-blank `description`, and the fields of the type. It never sets the status, the decision, the outcome, the priority, the response target, the rubric, the assignee, or the moderator: every variant has `additionalProperties: false`, so such fields answer 400. Attachments are not part of the MVP; they are planned as an optional field and change no existing one.
|
|
|
|
Types, accounts, and allowed references:
|
|
|
|
| Type | Accounts | Object reference | Other fields |
|
|
| --- | --- | --- | --- |
|
|
| `support` | candidate, employer | optional; `assessment_attempt` of the caller, an `organization` that the caller can see, an `invitation` addressed to the caller, or another `support_case` of the caller | optional `assessment_target` |
|
|
| `complaint` | candidate | required; an `organization` that the caller can see or an `invitation` addressed to the caller | required `complaint_reason`; `offer_content` and `salary_terms_violation` require an invitation |
|
|
| `grade_appeal` | candidate | required; `assessment_attempt` of the caller in a terminal state, so it has a result, or a `support_case` of the caller of type `manual_assessment` that is `resolved` with the outcome `assessed`, for a category that an expert assigned without an attempt | none |
|
|
| `anticheat_appeal` | candidate | required; `assessment_attempt` of the caller with an anti-cheat review decision | none |
|
|
| `manual_assessment` | candidate | optional; a prior `assessment_attempt` of the caller in the same specialization | required `assessment_target` |
|
|
|
|
An organization is visible to a candidate when it sent the candidate an invitation or when the organization contract (TASK-077) shows the candidate its profile, and to an employer account when the account has an active membership in it. Invitations are not in the contract yet, so until they are, every `invitation` reference answers 404 not_found; anti-cheat review decisions are not either, so until TASK-173 every anti-cheat appeal answers 409 state_conflict. The schema rejects an object type that the case type does not accept, for example an organization in a grade appeal.
|
|
|
|
Ownership of the reference: the server checks the object against the session account on every create. An unknown object and an object of someone else, such as another candidate's attempt, another account's case, or an invitation addressed to another person, both answer 404 not_found, so a reference never reveals whether a foreign object exists. An own case that a grade appeal cannot dispute, because it is not a manual assessment, is not resolved yet, or was resolved with another outcome, answers 409 state_conflict. An identifier that is not a UUID fails validation with the whole-body pointer, because the decoder does not record the path inside the selected variant. The case stores only the type and the identifier of the object.
|
|
|
|
Limits: an attempt and a resolved manual assessment each accept at most one grade appeal, and an attempt at most one anti-cheat appeal, in any status; a disagreement with the decision goes into a support case that references the appeal as `support_case`. A specialization accepts one open manual assessment, and an object accepts one open complaint; open means not `resolved` or `closed`. A second one answers 409 state_conflict. A grade appeal of an attempt that is still active also answers 409. Every create that passed authentication, validation, and the account scenario counts against a per-account limit from the product policy, including replays, 404, and 409, so the limit also bounds probing of references; over the limit the server answers 429 with Retry-After and creates nothing.
|
|
|
|
Description check: the schema pattern `\S` uses the ECMAScript white space set in both generated validators (ogen converts it for Go), so a description of spaces such as U+00A0 or U+3000 already fails validation with the pointer `/description`. ECMAScript white space omits U+0085 (NEL), which Go `unicode.IsSpace` includes, so the server also applies a domain check: a description whose every character is `unicode.IsSpace` or U+FEFF answers 400 validation_failed with the pointer `/description`. This check comes with the implementation; generated Zod accepts a description of NEL, and the server stays authoritative.
|
|
|
|
The new case gets a number and the status `submitted`. A grade appeal, an anti-cheat appeal, and a manual assessment are moved to `waiting_expert` by a `system` event in the same transaction, so the 201 already shows that status with both events; a support case and a complaint stay `submitted`. Each case gets a response target from the product policy version and the configured business calendar: 5 business days for a manual assessment and 10 for an appeal (PRD FR18 and C3), and a policy value for support and complaints. The target is an operational goal, not a deadline set by law. A manual assessment fixes the published rubric version of the category, or null when the category has none yet; the expert assesses with the same rubric as the automated assessment, and the request assigns no category by itself. Creating a case never grants, revokes, or changes a consent, a grade, or an attempt.
|
|
|
|
Replies: the case itself is the channel. Support replies and decisions appear in the public `history` and `decision`. The server may also notify the verified email address of the account that the case changed, with the case number and a link, never with the description, the reply, or assessment details. No request field names another address or contact, so the operation cannot send mail to an address that the user typed.
|
|
|
|
Idempotency: a retry with the same key and body within 24 hours replays the stored 201 with the same number and creates nothing, so a lost response never opens a second case. The replay is the snapshot stored at creation, following the repository convention; the client reads the current status and history with GetMySupportCase. 404 and 409 state_conflict are stored and replayed as well. A different body with the same key answers 422 idempotency_key_reused. 400, 403, and 429 are never stored.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden for an employer account with a type other than `support`), the per-account case limit (429), the Idempotency-Key (422, 409 idempotency_in_progress, replay), domain rules (400 with the pointer `/description` for a text of only Unicode spaces or `/object/type` for a complaint reason that requires an invitation), the object reference (404 not_found), then the state of the object and the limits (409 state_conflict). The general rate limit can answer 429 with Retry-After before any check.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- support
|
|
parameters:
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/SupportCaseCreate'
|
|
examples:
|
|
manual_assessment:
|
|
$ref: '#/components/examples/SupportCaseCreateManualAssessment'
|
|
own_grade_appeal:
|
|
$ref: '#/components/examples/SupportCaseCreateGradeAppeal'
|
|
appeal_of_manual_assessment:
|
|
$ref: '#/components/examples/SupportCaseCreateCategoryAppeal'
|
|
test_unavailable:
|
|
$ref: '#/components/examples/SupportCaseCreateTestUnavailable'
|
|
salary_terms_complaint:
|
|
$ref: '#/components/examples/SupportCaseCreateComplaint'
|
|
responses:
|
|
'201':
|
|
description: The case was created, with the status `submitted` or, for an appeal or a manual assessment, `waiting_expert`; or a retry with the same Idempotency-Key replayed the stored creation response.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/SupportCase'
|
|
examples:
|
|
manual_assessment:
|
|
$ref: '#/components/examples/SupportCaseManualAssessmentCreated'
|
|
'400':
|
|
$ref: '#/components/responses/SupportCaseValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/SupportCaseCreateConflict'
|
|
'422':
|
|
$ref: '#/components/responses/UnprocessableContent'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/support-cases/{case_id}:
|
|
get:
|
|
operationId: GetMySupportCase
|
|
summary: Read a support case of the current account.
|
|
description: |-
|
|
Requires the session cookie of a candidate or an employer account. Returns the case with its number, type, object reference, status, response target, decision, and public history. The owner reads the case whatever happened to the object since then: a revoked access, a closed invitation, or a refused test never hides the case from its author.
|
|
|
|
The case never contains the identity of a moderator, an expert, or a support agent, internal notes, evidence, assessment answers, anti-cheat or risk signals, or contact data of another person. `decision` is null until the case is `resolved`.
|
|
|
|
The history lists every public event and is never truncated: the server keeps a case within 200 events by rejecting a staff event that would leave no room for the terminal one.
|
|
|
|
The case must belong to the account of the session: a case of another account, including another member of the same organization, answers 404 not_found, the same as an unknown identifier, so identifiers cannot be probed. TASK-314 says forbidden for a foreign case URL; the contract answers 404 instead, so the client shows the same "not found" state for a foreign and an unknown case. A malformed `case_id` answers 400 validation_failed with the path pointer.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- support
|
|
parameters:
|
|
- $ref: '#/components/parameters/SupportCaseId'
|
|
responses:
|
|
'200':
|
|
description: The case.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/SupportCase'
|
|
examples:
|
|
manual_assessment_created:
|
|
$ref: '#/components/examples/SupportCaseManualAssessmentCreated'
|
|
grade_appeal_resolved:
|
|
$ref: '#/components/examples/SupportCaseGradeAppealResolved'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
components:
|
|
schemas:
|
|
Problem:
|
|
type: object
|
|
description: Problem details (RFC 9457) returned with the application/problem+json media type for every error response. `code` is the stable, machine-readable reason; clients branch on it rather than on `title`, `detail`, or the HTTP status alone. The body never contains internal error text, stack traces, SQL, file paths, credentials, contact data, or echoed request values.
|
|
additionalProperties: false
|
|
required:
|
|
- type
|
|
- title
|
|
- status
|
|
- code
|
|
properties:
|
|
type:
|
|
type: string
|
|
format: uri-reference
|
|
maxLength: 256
|
|
description: URI that identifies the problem type. It has the form `urn:lincodex:problem:<code>` and is an identifier, not a link to dereference.
|
|
title:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 200
|
|
description: Short, fixed English summary of the problem type. It does not change between occurrences.
|
|
status:
|
|
type: integer
|
|
format: int32
|
|
minimum: 400
|
|
maximum: 599
|
|
description: HTTP status code generated by the origin server.
|
|
code:
|
|
$ref: '#/components/schemas/ProblemCode'
|
|
detail:
|
|
type: string
|
|
maxLength: 1000
|
|
description: Safe English explanation of this occurrence. It never contains internal error text or request values.
|
|
instance:
|
|
type: string
|
|
format: uri-reference
|
|
maxLength: 2048
|
|
description: URI reference that identifies this occurrence, when one exists.
|
|
trace_id:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 128
|
|
pattern: ^[A-Za-z0-9._-]+$
|
|
description: Request identifier, equal to the X-Request-ID response header. Quote it when reporting the problem; it is not a secret.
|
|
errors:
|
|
type: array
|
|
maxItems: 100
|
|
description: Field-level reasons for validation_failed. Other codes omit it.
|
|
items:
|
|
$ref: '#/components/schemas/ProblemFieldError'
|
|
ProblemCode:
|
|
type: string
|
|
description: |-
|
|
Stable public error code. Adding a code is a contract change; renaming or removing one is a breaking change. Clients must handle an unknown code by its HTTP status.
|
|
|
|
- validation_failed (400): parameters or body do not match the contract, or a body violates a domain rule such as salary_from <= salary_to; `errors` points at the fields.
|
|
- verification_token_invalid (400): the email verification token is unknown, already used, or replaced by a newer one; request a new link or sign in.
|
|
- verification_token_expired (400): the email verification token is past its lifetime; request a new link.
|
|
- unauthenticated (401): no valid session or credentials.
|
|
- invalid_credentials (401): the email and password do not match an account; an unknown email and a wrong password are not distinguished.
|
|
- forbidden (403): the caller is authenticated but not allowed.
|
|
- email_not_verified (403): the credentials are correct but the email is not verified yet.
|
|
- csrf_check_failed (403): the request failed cross-site request protection: a missing or wrong X-CSRF-Token or a disallowed Origin.
|
|
- not_found (404): the route or object does not exist or is not visible.
|
|
- method_not_allowed (405): the route does not support the method.
|
|
- idempotency_in_progress (409): a request with the same Idempotency-Key is still being processed.
|
|
- state_conflict (409): the operation conflicts with the current state of the resource, for example an invitation that was already accepted.
|
|
- version_conflict (412): If-Match, or an `expected_version` field in the request body, does not match the current version; nothing was changed.
|
|
- payload_too_large (413): the request body exceeds the limit.
|
|
- unsupported_media_type (415): the request Content-Type is not accepted.
|
|
- idempotency_key_reused (422): the Idempotency-Key was already used with a different request.
|
|
- precondition_required (428): the operation requires If-Match.
|
|
- rate_limited (429): too many requests; see Retry-After.
|
|
- internal (500): unexpected server error.
|
|
- not_implemented (501): the operation is in the contract but not implemented yet.
|
|
enum:
|
|
- validation_failed
|
|
- verification_token_invalid
|
|
- verification_token_expired
|
|
- unauthenticated
|
|
- invalid_credentials
|
|
- forbidden
|
|
- email_not_verified
|
|
- csrf_check_failed
|
|
- not_found
|
|
- method_not_allowed
|
|
- idempotency_in_progress
|
|
- state_conflict
|
|
- version_conflict
|
|
- payload_too_large
|
|
- unsupported_media_type
|
|
- idempotency_key_reused
|
|
- precondition_required
|
|
- rate_limited
|
|
- internal
|
|
- not_implemented
|
|
ProblemFieldError:
|
|
type: object
|
|
description: One reason why a request field or parameter is invalid.
|
|
additionalProperties: false
|
|
required:
|
|
- in
|
|
- pointer
|
|
- code
|
|
- message
|
|
properties:
|
|
in:
|
|
$ref: '#/components/schemas/ProblemFieldLocation'
|
|
pointer:
|
|
type: string
|
|
maxLength: 1024
|
|
pattern: ^(/([^~/]|~[01])*)*$
|
|
description: JSON Pointer (RFC 6901). For `body` it points into the request body document, for example `/salary_from`; an empty string means the whole body. For a parameter it is `/` followed by the parameter name, for example `/limit` or `/Idempotency-Key`.
|
|
code:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 64
|
|
pattern: ^[a-z][a-z0-9_]*$
|
|
description: Stable field reason. Current values are `required` (missing value) and `invalid` (malformed value or a value outside the schema). Clients must tolerate new values.
|
|
message:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 500
|
|
description: Fixed English message that never echoes the submitted value.
|
|
ProblemFieldLocation:
|
|
type: string
|
|
description: Part of the request that contains the invalid field.
|
|
enum:
|
|
- body
|
|
- query
|
|
- path
|
|
- header
|
|
- cookie
|
|
Timestamp:
|
|
type: string
|
|
format: date-time
|
|
description: UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.
|
|
examples:
|
|
- '2026-10-05T09:30:00Z'
|
|
PageInfo:
|
|
type: object
|
|
description: Cursor pagination state of a list response. Lists are ordered by a stable server-defined key. To read the next page, repeat the request with the same filters and `cursor` set to `next_cursor`.
|
|
additionalProperties: false
|
|
required:
|
|
- has_more
|
|
- next_cursor
|
|
properties:
|
|
has_more:
|
|
type: boolean
|
|
description: Whether another page follows this one.
|
|
next_cursor:
|
|
type:
|
|
- string
|
|
- 'null'
|
|
minLength: 1
|
|
maxLength: 512
|
|
pattern: ^[A-Za-z0-9_-]+$
|
|
description: Opaque cursor of the next page, or null on the last page. Clients must not parse, build, or store it beyond the current listing.
|
|
EmailAddress:
|
|
type: string
|
|
format: email
|
|
minLength: 3
|
|
maxLength: 254
|
|
description: Account email address. The server compares addresses without regard to letter case and never reveals in a response whether an address belongs to an account.
|
|
examples:
|
|
- candidate@example.com
|
|
NewPassword:
|
|
type: string
|
|
minLength: 15
|
|
maxLength: 128
|
|
description: Password chosen at registration. The server normalizes it to Unicode NFKC, as NIST SP 800-63B-4 recommends, and then requires 15 to 128 Unicode code points; a value that the schema accepts can still fail this check after normalization. The 15-character minimum follows NIST SP 800-63B-4 for a password used as the only authentication factor; there are no composition rules. The upper bound limits the cost of password hashing. Generated client validators count UTF-16 code units, so a password with characters outside the Basic Multilingual Plane can pass the client check and fail on the server; a later client check should count code points. A password on the server blocklist of common or breached passwords answers 400 validation_failed with the pointer `/password`. The value is never returned, logged, or echoed in a problem.
|
|
LoginPassword:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 128
|
|
description: Password entered at login. The server applies the same NFKC normalization as at registration before it verifies the hash. Only the hashing bound applies, so a later change of the registration policy does not lock out existing accounts and a login error does not reveal the policy. The value is never returned, logged, or echoed in a problem.
|
|
AccountScenario:
|
|
type: string
|
|
description: 'Scenario chosen at registration: `candidate` looks for an offer and passes the assessment, `employer` represents a company that searches for candidates. The scenario selects the onboarding steps.'
|
|
enum:
|
|
- candidate
|
|
- employer
|
|
OnboardingStep:
|
|
type: string
|
|
description: |-
|
|
Saved onboarding step that the account returns to after login. The server stores it and advances it as each step completes; clients route by it and never set it directly.
|
|
|
|
- candidate_consents: candidate consents beyond C1, which was given at registration.
|
|
- candidate_profile: candidate profile.
|
|
- candidate_questionnaire: candidate questionnaire.
|
|
- candidate_assessment: the assessment. The expected grade is the `self_assessed_grade` saved in the questionnaire, and this step offers it first; only an assessment result confirms a grade. The first successful SaveMyQuestionnaire moves the account from candidate_questionnaire to this step (planned).
|
|
- employer_company: company profile of the employer.
|
|
- completed: onboarding is finished; the client opens the scenario home.
|
|
|
|
Candidate steps follow the order above and end with completed; the employer has employer_company and then completed. New steps may be added as onboarding grows; adding a value is a contract change.
|
|
enum:
|
|
- candidate_consents
|
|
- candidate_profile
|
|
- candidate_questionnaire
|
|
- candidate_assessment
|
|
- employer_company
|
|
- completed
|
|
ConsentPurpose:
|
|
type: string
|
|
description: 'Consent whose text the client may read before an account exists. Only the consents given at registration are listed: `c1` is the consent to the processing of personal data.'
|
|
enum:
|
|
- c1
|
|
ConsentText:
|
|
type: object
|
|
description: Currently published consent text. The server stores an acceptance with `text_version` and the hash of exactly this text.
|
|
additionalProperties: false
|
|
required:
|
|
- purpose
|
|
- text_version
|
|
- text
|
|
- published_at
|
|
properties:
|
|
purpose:
|
|
$ref: '#/components/schemas/ConsentPurpose'
|
|
text_version:
|
|
$ref: '#/components/schemas/ConsentTextVersion'
|
|
text:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 100000
|
|
description: Full consent text in plain UTF-8; paragraphs are separated by an empty line. The client shows it as text, never as HTML.
|
|
published_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
ConsentTextVersion:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 64
|
|
pattern: ^[A-Za-z0-9._-]+$
|
|
description: Identifier of the published consent text that the user saw and accepted. The server stores the acceptance with this version and the hash of its text; the client never sends or receives the hash.
|
|
examples:
|
|
- c1-2026-10-01
|
|
PersonalDataConsentAcceptance:
|
|
type: object
|
|
description: Consent C1 to the processing of personal data, given at registration. The client reads the current text and its version with GetConsentText(c1) and sends that version here. A version that is not the currently published one answers 400 validation_failed with the pointer `/consent_c1/text_version`; the client then reads the text again and asks the user to accept the new version. Unknown fields are rejected, so registration cannot carry any other consent; in particular, C4 is never part of registration.
|
|
additionalProperties: false
|
|
required:
|
|
- text_version
|
|
- accepted
|
|
properties:
|
|
text_version:
|
|
$ref: '#/components/schemas/ConsentTextVersion'
|
|
accepted:
|
|
type: boolean
|
|
enum:
|
|
- true
|
|
description: Explicit acceptance. Only true is valid.
|
|
RegistrationRequest:
|
|
type: object
|
|
description: New account with its scenario and consent C1.
|
|
additionalProperties: false
|
|
required:
|
|
- email
|
|
- password
|
|
- scenario
|
|
- consent_c1
|
|
properties:
|
|
email:
|
|
$ref: '#/components/schemas/EmailAddress'
|
|
password:
|
|
$ref: '#/components/schemas/NewPassword'
|
|
scenario:
|
|
$ref: '#/components/schemas/AccountScenario'
|
|
consent_c1:
|
|
$ref: '#/components/schemas/PersonalDataConsentAcceptance'
|
|
EmailVerificationResendRequest:
|
|
type: object
|
|
description: Address that should receive a new verification link.
|
|
additionalProperties: false
|
|
required:
|
|
- email
|
|
properties:
|
|
email:
|
|
$ref: '#/components/schemas/EmailAddress'
|
|
IdentityRequestAccepted:
|
|
type: object
|
|
description: Neutral acknowledgement. Its content is identical whether or not the address belongs to an account or is already verified, so the response does not enumerate accounts. The client tells the user to check the mailbox.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
properties:
|
|
status:
|
|
type: string
|
|
enum:
|
|
- accepted
|
|
VerificationToken:
|
|
type: string
|
|
minLength: 32
|
|
maxLength: 128
|
|
pattern: ^[A-Za-z0-9_-]+$
|
|
description: 'One-time raw token copied from the verification link. It is request input only: the server stores only its hash and never returns a token.'
|
|
EmailVerificationRequest:
|
|
type: object
|
|
description: Token from the email verification link.
|
|
additionalProperties: false
|
|
required:
|
|
- token
|
|
properties:
|
|
token:
|
|
$ref: '#/components/schemas/VerificationToken'
|
|
EmailVerificationResult:
|
|
type: object
|
|
description: Result of a successful email verification. It does not start a session; the user signs in next and continues from `onboarding_step`.
|
|
additionalProperties: false
|
|
required:
|
|
- email_verified
|
|
- scenario
|
|
- onboarding_step
|
|
properties:
|
|
email_verified:
|
|
type: boolean
|
|
enum:
|
|
- true
|
|
description: Always true in a successful response.
|
|
scenario:
|
|
$ref: '#/components/schemas/AccountScenario'
|
|
onboarding_step:
|
|
$ref: '#/components/schemas/OnboardingStep'
|
|
LoginRequest:
|
|
type: object
|
|
description: Email and password of the account.
|
|
additionalProperties: false
|
|
required:
|
|
- email
|
|
- password
|
|
properties:
|
|
email:
|
|
$ref: '#/components/schemas/EmailAddress'
|
|
password:
|
|
$ref: '#/components/schemas/LoginPassword'
|
|
CsrfToken:
|
|
type: string
|
|
minLength: 32
|
|
maxLength: 128
|
|
pattern: ^[A-Za-z0-9_-]+$
|
|
description: CSRF token bound to the current session. The client keeps it in memory only and sends it in the X-CSRF-Token header of every mutating request that requires a session. It changes when a new session starts.
|
|
Account:
|
|
type: object
|
|
description: Current account view. It never contains password hashes, token hashes, session identifiers, or other storage secrets.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- email
|
|
- email_verified
|
|
- scenario
|
|
- onboarding_step
|
|
- created_at
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Account identifier.
|
|
email:
|
|
$ref: '#/components/schemas/EmailAddress'
|
|
email_verified:
|
|
type: boolean
|
|
description: Whether the address is verified. A session exists only for a verified account, so this is true in every current response.
|
|
scenario:
|
|
$ref: '#/components/schemas/AccountScenario'
|
|
onboarding_step:
|
|
$ref: '#/components/schemas/OnboardingStep'
|
|
created_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
Session:
|
|
type: object
|
|
description: 'Current session as the client may see it: the account and the CSRF token. The session identifier itself travels only in the HttpOnly session cookie and never appears in a body.'
|
|
additionalProperties: false
|
|
required:
|
|
- account
|
|
- csrf_token
|
|
properties:
|
|
account:
|
|
$ref: '#/components/schemas/Account'
|
|
csrf_token:
|
|
$ref: '#/components/schemas/CsrfToken'
|
|
DirectionCode:
|
|
type: string
|
|
description: |-
|
|
Stable code of a professional direction, the group that a specialization belongs to.
|
|
|
|
- development: Development.
|
|
- infrastructure: Infrastructure.
|
|
- data: Data.
|
|
- security: Security.
|
|
- quality: Quality.
|
|
|
|
Adding a value is a contract change.
|
|
enum:
|
|
- development
|
|
- infrastructure
|
|
- data
|
|
- security
|
|
- quality
|
|
SpecializationCode:
|
|
type: string
|
|
description: |-
|
|
Stable code of a specialization. A category is a specialization together with a confirmed grade; programming languages and the technology stack are separate attributes and never form a category of their own, so Backend with Go is the category `backend`, not `go`. Algorithms is a shared assessment module, not a specialization, and has no code here.
|
|
|
|
- backend: Backend (development).
|
|
- frontend: Frontend (development).
|
|
- mobile: Mobile (development).
|
|
- network_engineer: Network Engineer (infrastructure).
|
|
- devops_sre: DevOps/SRE (infrastructure).
|
|
- data_analyst: Data Analyst (data).
|
|
- ds_ml: DS/ML (data).
|
|
- information_security: Information security (security).
|
|
- qa: QA (quality).
|
|
|
|
Adding a value is a contract change; renaming or removing one is a breaking change.
|
|
enum:
|
|
- backend
|
|
- frontend
|
|
- mobile
|
|
- network_engineer
|
|
- devops_sre
|
|
- data_analyst
|
|
- ds_ml
|
|
- information_security
|
|
- qa
|
|
GradeCode:
|
|
type: string
|
|
description: 'Grade of the MVP scale in ascending order: `intern`, `junior`, `middle`, `senior`. The same codes describe a self-assessed grade, which the candidate states, and a confirmed grade, which only an assessment result establishes. Lead and Architect are planned after the MVP; adding a value is a contract change.'
|
|
enum:
|
|
- intern
|
|
- junior
|
|
- middle
|
|
- senior
|
|
TaskLanguage:
|
|
type: string
|
|
description: Programming language in which assessment tasks of a specialization are offered and solved. It is the language of the task bank, not the candidate's platform stack, and it never forms a separate category. Only banks that offer a choice of language define task languages; the first Backend bank offers Python and Go. Adding a value is a contract change.
|
|
enum:
|
|
- python
|
|
- go
|
|
TestAvailabilityStatus:
|
|
type: string
|
|
description: Whether an assessment can start for the specialization. `available` means that a published task bank exists for at least one grade, listed in `TestAvailability.grades`. `in_development` means that no grade of the specialization has a published bank yet; the specialization can still be chosen in the questionnaire, but no assessment starts and no category can be confirmed for it. Presence in the catalog or in demo data never means that a test is ready.
|
|
enum:
|
|
- available
|
|
- in_development
|
|
TestAvailability:
|
|
type: object
|
|
description: Assessment availability of a specialization, derived by the server from the published task banks at the time of the request. The MVP opens an assessment only for a category, a specialization and a grade, that has a published bank. `status` is `available` exactly when `grades` is not empty; for `in_development` both `grades` and `task_languages` are empty.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- grades
|
|
- task_languages
|
|
- note
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/TestAvailabilityStatus'
|
|
grades:
|
|
type: array
|
|
maxItems: 10
|
|
uniqueItems: true
|
|
description: Grades of the specialization with a published task bank, in ascending order. Only these categories can be assessed and confirmed.
|
|
items:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
task_languages:
|
|
type: array
|
|
maxItems: 2
|
|
uniqueItems: true
|
|
description: Task languages that the published bank offers for this specialization. Empty when the bank does not offer a choice of language, as for Network Engineer, or when no bank is published. The questionnaire accepts only these languages for the specialization.
|
|
items:
|
|
$ref: '#/components/schemas/TaskLanguage'
|
|
note:
|
|
type:
|
|
- string
|
|
- 'null'
|
|
minLength: 1
|
|
maxLength: 300
|
|
description: Short Russian note for the candidate, for example why the test is not available yet, or null. Plain text; the client shows it as text, never as HTML.
|
|
CatalogSpecialization:
|
|
type: object
|
|
description: Specialization in the catalog with its assessment availability.
|
|
additionalProperties: false
|
|
required:
|
|
- code
|
|
- title
|
|
- test_availability
|
|
properties:
|
|
code:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
title:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 100
|
|
description: Display name in Russian. Plain text.
|
|
test_availability:
|
|
$ref: '#/components/schemas/TestAvailability'
|
|
CatalogDirection:
|
|
type: object
|
|
description: Professional direction with its specializations. Each specialization belongs to exactly one direction.
|
|
additionalProperties: false
|
|
required:
|
|
- code
|
|
- title
|
|
- specializations
|
|
properties:
|
|
code:
|
|
$ref: '#/components/schemas/DirectionCode'
|
|
title:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 100
|
|
description: Display name in Russian. Plain text.
|
|
specializations:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 20
|
|
description: Specializations of the direction in display order.
|
|
items:
|
|
$ref: '#/components/schemas/CatalogSpecialization'
|
|
CatalogGrade:
|
|
type: object
|
|
description: Grade of the scale with its display name.
|
|
additionalProperties: false
|
|
required:
|
|
- code
|
|
- title
|
|
properties:
|
|
code:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
title:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 100
|
|
description: Display name in Russian. Plain text.
|
|
SpecializationCatalog:
|
|
type: object
|
|
description: Catalog of directions, specializations, and the grade scale that the questionnaire and the assessment use. The catalog is reference data and identical for every caller; it contains no personal data.
|
|
additionalProperties: false
|
|
required:
|
|
- directions
|
|
- grades
|
|
properties:
|
|
directions:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 20
|
|
description: Directions in display order.
|
|
items:
|
|
$ref: '#/components/schemas/CatalogDirection'
|
|
grades:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 10
|
|
description: Grade scale in ascending order.
|
|
items:
|
|
$ref: '#/components/schemas/CatalogGrade'
|
|
QuestionnaireVersion:
|
|
type: integer
|
|
format: int64
|
|
minimum: 0
|
|
description: Version of the candidate questionnaire. A candidate without a saved questionnaire has version 0; every save that changes the questionnaire advances it by one.
|
|
examples:
|
|
- 3
|
|
StackTag:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 50
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: 'Free technology tag of the candidate''s stack, for example PostgreSQL, Kubernetes, or Django. A tag is a descriptive attribute: it never forms a category, never selects the task language, and never changes a grade, so a tag such as "Senior" has no effect on any category. It has no leading or trailing whitespace and no line breaks. The server compares tags without regard to letter case. Clients show tags as text, never as HTML.'
|
|
WorkFormat:
|
|
type: string
|
|
description: 'Acceptable work format: `remote`, `office`, or `hybrid`.'
|
|
enum:
|
|
- remote
|
|
- office
|
|
- hybrid
|
|
WorkContext:
|
|
type: object
|
|
description: Working context of the candidate's search. It holds no personal data such as an address or a city; location, relocation, and salary expectations belong to the candidate profile.
|
|
additionalProperties: false
|
|
required:
|
|
- work_formats
|
|
properties:
|
|
work_formats:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 3
|
|
uniqueItems: true
|
|
description: Acceptable work formats.
|
|
items:
|
|
$ref: '#/components/schemas/WorkFormat'
|
|
CandidateExperience:
|
|
type: object
|
|
description: 'Experience that the candidate states for one specialization, in whole months. It is self-reported context: it never adds assessment points and never confirms a grade.'
|
|
additionalProperties: false
|
|
required:
|
|
- commercial_months
|
|
- academic_months
|
|
properties:
|
|
commercial_months:
|
|
type: integer
|
|
format: int32
|
|
minimum: 0
|
|
maximum: 600
|
|
description: Months of commercial work in the specialization.
|
|
academic_months:
|
|
type: integer
|
|
format: int32
|
|
minimum: 0
|
|
maximum: 600
|
|
description: Months of study, internships, or academic projects in the specialization.
|
|
QuestionnaireSpecialization:
|
|
type: object
|
|
description: 'One specialization chosen by the candidate with the candidate''s self-assessment. `self_assessed_grade` is a claim: it influences where the assessment starts and which grade the assessment step offers first, but it adds no points and never becomes a confirmed grade. A confirmed grade, and with it a category, comes only from an assessment result and is never part of the questionnaire; unknown fields such as `confirmed_grade` or `category` are rejected. Task languages and the stack are attributes of the chosen specialization, not categories.'
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- self_assessed_grade
|
|
- task_languages
|
|
- stack
|
|
- experience
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
self_assessed_grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
task_languages:
|
|
type: array
|
|
maxItems: 2
|
|
uniqueItems: true
|
|
description: Task languages in which the candidate wants to solve assessment tasks of this specialization. Each value must be one of `test_availability.task_languages` of the specialization in the current catalog; any other value answers 400 validation_failed with a pointer to it. Empty when the bank offers no choice of language.
|
|
items:
|
|
$ref: '#/components/schemas/TaskLanguage'
|
|
stack:
|
|
type: array
|
|
maxItems: 20
|
|
uniqueItems: true
|
|
description: Technology tags of the candidate in this specialization.
|
|
items:
|
|
$ref: '#/components/schemas/StackTag'
|
|
experience:
|
|
description: Stated experience, or null when the candidate did not state it.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/CandidateExperience'
|
|
- type: 'null'
|
|
CandidateQuestionnaire:
|
|
type: object
|
|
description: 'Questionnaire of the current candidate: the chosen specializations with self-assessed grades and the working context. It never contains a confirmed grade or a category; those come only from assessment results. A candidate who has not saved the questionnaire yet gets version 0, no specializations, and null `work_context` and `updated_at`.'
|
|
additionalProperties: false
|
|
required:
|
|
- version
|
|
- specializations
|
|
- work_context
|
|
- updated_at
|
|
properties:
|
|
version:
|
|
$ref: '#/components/schemas/QuestionnaireVersion'
|
|
specializations:
|
|
type: array
|
|
maxItems: 2
|
|
description: Chosen specializations in the order the candidate gave them, each specialization at most once. Each one is assessed independently.
|
|
items:
|
|
$ref: '#/components/schemas/QuestionnaireSpecialization'
|
|
work_context:
|
|
description: Working context, or null before the first save.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/WorkContext'
|
|
- type: 'null'
|
|
updated_at:
|
|
description: Time of the last change, or null before the first save.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
CandidateQuestionnaireUpdate:
|
|
type: object
|
|
description: Complete new state of the questionnaire. It replaces the stored specializations and working context as a whole. Unknown fields are rejected, so a request cannot set a confirmed grade or a category.
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
- specializations
|
|
- work_context
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/QuestionnaireVersion'
|
|
specializations:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 2
|
|
description: One or two chosen specializations. The schema limits the count; the server also requires each specialization to appear at most once and answers a repeated one with 400 validation_failed and the pointer of the repeated item's `specialization`, for example `/specializations/1/specialization`.
|
|
items:
|
|
$ref: '#/components/schemas/QuestionnaireSpecialization'
|
|
work_context:
|
|
$ref: '#/components/schemas/WorkContext'
|
|
AssessmentMode:
|
|
type: string
|
|
description: |-
|
|
Measurement method of an attempt. The server selects it from the published task bank of the category; the client never chooses it.
|
|
|
|
- demo_basic: a fixed form of reviewed demo items scored by their keys against the pass mark of the versioned basic grading policy. It computes no ability estimate, standard error, or probability, so every uncertainty field of its result is null, its thresholds are uncalibrated, and its decision is binary: it never offers an additional practice.
|
|
- adaptive: the adaptive test on task families with an ability estimate, its standard error, and the probability of reaching the grade threshold, as the versioned assessment policy defines them. A probability in the band below confirmation offers one additional practice in the same attempt.
|
|
|
|
Adding a value is a contract change.
|
|
enum:
|
|
- demo_basic
|
|
- adaptive
|
|
AssessmentAttemptVersion:
|
|
type: integer
|
|
format: int64
|
|
minimum: 1
|
|
description: 'Version of an assessment attempt. A new attempt has version 1, and each committed change advances it by exactly one: an accepted answer, a practice submission or resubmission, a verdict, a decision of finalize, a session start, and a server-side transition such as expiry or automatic finalization. A transition that the server applies when the attempt is read is committed before the response and also advances it. A rejected command and a repeat that stores nothing leave it unchanged. Commands send the version they read as `expected_version`.'
|
|
examples:
|
|
- 4
|
|
AssessmentAttemptState:
|
|
type: string
|
|
description: |-
|
|
Lifecycle state of an attempt and the commands it accepts.
|
|
|
|
- in_progress: items are being answered; `current_item` is the item to answer. Accepts SubmitMyAssessmentAnswer for that item.
|
|
- practice_pending: the item part is finished, and the main practice has no finished verdict yet: it is not submitted, its verdict is pending in the sandbox, or the sandbox failed and the practice can be submitted again. Accepts SubmitMyAssessmentAnswer with the practice item while its status is `not_started` or `failed`. No grade is confirmed while the practice is unfinished, even when the adaptive stop rule has already ended the item part.
|
|
- additional_practice_pending: adaptive only. Finalize found the probability of reaching the grade in the band below confirmation, so the attempt offers one additional practice without spending a new attempt; it keeps the time and session limits of the attempt. Accepts SubmitMyAssessmentAnswer with the additional practice item while its status is `not_started` or `failed`, and FinalizeMyAssessmentAttempt in the same statuses, which declines the offer and decides `not_confirmed` with the current evidence.
|
|
- ready_to_finalize: every required part is done, including a submitted additional practice with a finished verdict. Accepts FinalizeMyAssessmentAttempt.
|
|
- completed: a decision was made; the result is available.
|
|
- expired: the time or session limit passed before the candidate finished the required parts. The result is available and confirms no grade.
|
|
- insufficient_bank: the published bank could not supply the items required for coverage within the limit, and the attempt ended without a confirmed grade instead of repeating families. The result is available.
|
|
|
|
When `expires_at` passes or the session limit is reached, a practice submitted before that and still `pending` is graded first. Then the server decides without another command: `ready_to_finalize` is finalized and becomes `completed`; `additional_practice_pending` with the additional practice not submitted is finalized as declined and becomes `completed` with `not_confirmed`; `in_progress` and `practice_pending` become `expired`, with the result reason `expired` or `practice_incomplete`; and when the latest submission of a practice ended `failed`, the attempt becomes `expired` with the reason `sandbox_unavailable`, which is not the candidate's fault. `completed`, `expired`, and `insufficient_bank` are terminal and accept no command except the repeat of finalize described on FinalizeMyAssessmentAttempt. Adding a value is a contract change.
|
|
enum:
|
|
- in_progress
|
|
- practice_pending
|
|
- additional_practice_pending
|
|
- ready_to_finalize
|
|
- completed
|
|
- expired
|
|
- insufficient_bank
|
|
AssessmentVersionLabel:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 64
|
|
pattern: ^[A-Za-z0-9._-]+$
|
|
description: Opaque identifier of a published version, for example `backend-demo.2026-10.1`. Clients show it as text and never parse it.
|
|
AssessmentVersions:
|
|
type: object
|
|
description: Versions fixed when the attempt was created. They never change during the attempt, and a result is always reproduced from the stored answers with these versions; a later policy, bank, or algorithm version does not rewrite it.
|
|
additionalProperties: false
|
|
required:
|
|
- policy_version
|
|
- bank_version
|
|
- algorithm_version
|
|
properties:
|
|
policy_version:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
description: 'Number of the `product` policy version whose assessment rules apply: thresholds, stop rules, item limits, time and session limits, and retry intervals.'
|
|
bank_version:
|
|
$ref: '#/components/schemas/AssessmentVersionLabel'
|
|
algorithm_version:
|
|
$ref: '#/components/schemas/AssessmentVersionLabel'
|
|
AssessmentSessions:
|
|
type: object
|
|
description: |-
|
|
Work sessions of the attempt, as the policy version limits them, for example two sessions within the time limit.
|
|
|
|
A session starts with the creation of the attempt or, after the previous session ended, with the next GetMyAssessmentAttempt or command on the active attempt. It ends after `idle_timeout_seconds` without such a request. A request that would start a session beyond `max_sessions` starts none: the server moves the attempt to `expired` and answers with it (a read) or with 409 state_conflict (a command). Reading a terminal attempt or a result never starts a session.
|
|
additionalProperties: false
|
|
required:
|
|
- used
|
|
- max
|
|
- idle_timeout_seconds
|
|
properties:
|
|
used:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 10
|
|
description: Sessions started so far, including the current one.
|
|
max:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 10
|
|
idle_timeout_seconds:
|
|
type: integer
|
|
format: int32
|
|
minimum: 60
|
|
maximum: 86400
|
|
description: Inactivity after which the current session ends.
|
|
AssessmentAttemptCreate:
|
|
type: object
|
|
description: 'Category to assess: a specialization and the target grade, with the task language. The candidate comes from the session. The mode and versions are chosen by the server; unknown fields such as `mode`, `seed`, or `score` are rejected.'
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- target_grade
|
|
- task_language
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
target_grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
task_language:
|
|
description: Task language of the attempt, one of the `task_languages` of the published bank, or null when the bank offers no choice of language. The questionnaire choice is the value the client offers first.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/TaskLanguage'
|
|
- type: 'null'
|
|
AssessmentItemId:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of an item instance in one attempt. It identifies the fixed variant served to this candidate and reveals neither the task family, its version, nor the variant seed.
|
|
AssessmentOptionId:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 32
|
|
pattern: ^[A-Za-z0-9_-]+$
|
|
description: Opaque identifier of a choice option or an order element within one item instance. It is unrelated to the position or correctness of the option.
|
|
AssessmentOption:
|
|
type: object
|
|
description: Choice option or order element. Plain text.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- text
|
|
properties:
|
|
id:
|
|
$ref: '#/components/schemas/AssessmentOptionId'
|
|
text:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 2000
|
|
description: Text of the option; the client shows it as text, never as HTML.
|
|
ChoiceItemContent:
|
|
type: object
|
|
description: Choose one option, or several when `multiple` is true. The content never says which options are correct or how many are.
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- options
|
|
- multiple
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- choice
|
|
options:
|
|
type: array
|
|
minItems: 2
|
|
maxItems: 10
|
|
description: Options in the order of this instance.
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentOption'
|
|
multiple:
|
|
type: boolean
|
|
description: 'Whether more than one option may be selected. It is a property of the task family, fixed for every variant, and never derived from the key: a multiple-choice variant may have a single correct option.'
|
|
NumberItemContent:
|
|
type: object
|
|
description: Enter a number, optionally in the given unit.
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- unit
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- number
|
|
unit:
|
|
type:
|
|
- string
|
|
- 'null'
|
|
minLength: 1
|
|
maxLength: 32
|
|
description: Unit of the expected value, for example `ms`, or null.
|
|
StringItemContent:
|
|
type: object
|
|
description: Enter a short string, such as a command, a header name, or an address.
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- max_length
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- string
|
|
max_length:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 500
|
|
description: Maximum length of the answer in characters. It is an input limit of the task family, never derived from the key, so it does not reveal the length of the correct answer.
|
|
OrderItemContent:
|
|
type: object
|
|
description: Put every element into the right order. The elements arrive in the order of this instance, which is never the answer.
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- elements
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- order
|
|
elements:
|
|
type: array
|
|
minItems: 2
|
|
maxItems: 20
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentOption'
|
|
CodeLine:
|
|
type: object
|
|
description: One numbered line of a code or configuration fragment. Plain text.
|
|
additionalProperties: false
|
|
required:
|
|
- number
|
|
- text
|
|
properties:
|
|
number:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 500
|
|
text:
|
|
type: string
|
|
maxLength: 1000
|
|
FindErrorItemContent:
|
|
type: object
|
|
description: Find the lines with the error in a code or configuration fragment and select up to `max_selections` line numbers.
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- syntax
|
|
- lines
|
|
- max_selections
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- find_error
|
|
syntax:
|
|
type:
|
|
- string
|
|
- 'null'
|
|
minLength: 1
|
|
maxLength: 32
|
|
pattern: ^[a-z0-9_+-]+$
|
|
description: Highlighting hint such as `go`, `python`, or `cisco_ios`, or null.
|
|
lines:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 500
|
|
description: Lines numbered from 1 in order.
|
|
items:
|
|
$ref: '#/components/schemas/CodeLine'
|
|
max_selections:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 10
|
|
description: Maximum number of lines the answer may select. It is a limit of the task family, fixed for every variant and never derived from the key; it is not the number of wrong lines.
|
|
ConfigurationItemContent:
|
|
type: object
|
|
description: Write or fix a configuration. The server checks the submitted text with the computed key or reference check of the task family; it never executes it as code.
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- syntax
|
|
- initial_config
|
|
- max_length
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- configuration
|
|
syntax:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 32
|
|
pattern: ^[a-z0-9_+-]+$
|
|
description: Configuration syntax such as `cisco_ios`, `nginx`, or `yaml`.
|
|
initial_config:
|
|
type: string
|
|
maxLength: 20000
|
|
description: Starting text to edit; empty when the candidate writes it from scratch.
|
|
max_length:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 20000
|
|
description: Maximum length of the submitted configuration in characters, an input limit of the task family that is never derived from the key.
|
|
PracticeExample:
|
|
type: object
|
|
description: 'Public example of the practice task: an input and its expected output. Hidden checks are never listed.'
|
|
additionalProperties: false
|
|
required:
|
|
- input
|
|
- expected_output
|
|
properties:
|
|
input:
|
|
type: string
|
|
maxLength: 10000
|
|
expected_output:
|
|
type: string
|
|
maxLength: 10000
|
|
PracticeItemContent:
|
|
type: object
|
|
description: Code practice. The candidate submits one final solution, which runs in the isolated sandbox against three groups of hidden checks. The content lists only the statement, the allowed languages, and public examples; hidden checks, their inputs, and seeds never reach the client.
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- languages
|
|
- public_examples
|
|
- max_source_length
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- practice
|
|
languages:
|
|
type: array
|
|
maxItems: 2
|
|
uniqueItems: true
|
|
description: Languages the solution may use. Empty when the task does not offer a choice; the submission then sends a null language.
|
|
items:
|
|
$ref: '#/components/schemas/TaskLanguage'
|
|
public_examples:
|
|
type: array
|
|
maxItems: 10
|
|
items:
|
|
$ref: '#/components/schemas/PracticeExample'
|
|
max_source_length:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 65536
|
|
description: Maximum length of the solution source in characters.
|
|
ItemContent:
|
|
description: 'Format-specific part of an item, selected by `format`. It holds only what the candidate needs to answer: never an answer key, a correct option, a score, a family or variant identifier, a seed, or a hidden check. Limits such as `multiple`, `max_selections`, and `max_length` belong to the format or the task family and never reveal the key.'
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ChoiceItemContent'
|
|
- $ref: '#/components/schemas/NumberItemContent'
|
|
- $ref: '#/components/schemas/StringItemContent'
|
|
- $ref: '#/components/schemas/OrderItemContent'
|
|
- $ref: '#/components/schemas/FindErrorItemContent'
|
|
- $ref: '#/components/schemas/ConfigurationItemContent'
|
|
- $ref: '#/components/schemas/PracticeItemContent'
|
|
AssessmentItem:
|
|
type: object
|
|
description: 'Item instance served to the candidate. The variant is fixed when it is first served: a reload, a retried request, or a resumed session returns the same instance with the same text and option order. The item never says whether an earlier answer was correct, and seed items, which are not scored, are indistinguishable from scored ones.'
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- sequence
|
|
- prompt
|
|
- content
|
|
properties:
|
|
id:
|
|
$ref: '#/components/schemas/AssessmentItemId'
|
|
sequence:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 100
|
|
description: Position of the item in the attempt, from 1.
|
|
prompt:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 20000
|
|
description: Statement in Russian. Plain text with line breaks; the client shows it as text, never as HTML.
|
|
content:
|
|
$ref: '#/components/schemas/ItemContent'
|
|
AssessmentProgress:
|
|
type: object
|
|
description: Progress of the item part. It counts seed items like scored ones, so it does not reveal which items are scored. An adaptive attempt may end its item part before `max_items` by its stop rule. A finalize refused as premature does not list the unfinished parts; the client reads them here, in `current_item`, and in `practices`.
|
|
additionalProperties: false
|
|
required:
|
|
- answered_items
|
|
- max_items
|
|
properties:
|
|
answered_items:
|
|
type: integer
|
|
format: int32
|
|
minimum: 0
|
|
maximum: 100
|
|
max_items:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 100
|
|
description: 'Item limit of the attempt: the form size in demo_basic, or the policy limit of scored and seed items together in adaptive.'
|
|
PracticeKind:
|
|
type: string
|
|
description: |-
|
|
Role of a practice in the attempt.
|
|
|
|
- main: the practice that every attempt with practice requires before a decision.
|
|
- additional: adaptive only; offered by finalize when the probability of reaching the grade is in the band below confirmation. It continues the same attempt and spends no new attempt.
|
|
|
|
Adding a value is a contract change.
|
|
enum:
|
|
- main
|
|
- additional
|
|
PracticeStatus:
|
|
type: string
|
|
description: |-
|
|
State of a practice.
|
|
|
|
- not_started: no solution was submitted yet.
|
|
- pending: the submitted solution is queued or running in the sandbox.
|
|
- finished: the sandbox ran the solution and returned a verdict; `verdict` holds it. Every outcome caused by the solution itself, such as a compilation error, a runtime error, a time limit, or a memory limit, is `finished` with the affected groups not passed.
|
|
- failed: the sandbox infrastructure could not run the solution, for example because its queue was full or an executor broke, independently of the solution. The failure is not the candidate's and consumes nothing; the practice can be submitted again.
|
|
enum:
|
|
- not_started
|
|
- pending
|
|
- finished
|
|
- failed
|
|
PracticeFailureReason:
|
|
type: string
|
|
description: 'Why the sandbox infrastructure returned no verdict: `sandbox_busy` when its queue was full, `sandbox_error` for an infrastructure failure such as a broken executor. Neither depends on the solution; a solution that fails to compile, crashes, or exceeds a limit gets a `finished` verdict instead, so a failure never acts as an oracle for hidden checks.'
|
|
enum:
|
|
- sandbox_busy
|
|
- sandbox_error
|
|
PracticeGroupResult:
|
|
type: object
|
|
description: Outcome of one hidden check group. It never contains the checks themselves.
|
|
additionalProperties: false
|
|
required:
|
|
- group
|
|
- passed
|
|
properties:
|
|
group:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 3
|
|
passed:
|
|
type: boolean
|
|
PracticeVerdict:
|
|
type: object
|
|
description: 'Verdict of a practice solution on the hidden checks: the score 0-3, one point for each passed group. The hidden checks, their inputs and outputs, error output, and seeds are never returned.'
|
|
additionalProperties: false
|
|
required:
|
|
- score
|
|
- max_score
|
|
- groups
|
|
properties:
|
|
score:
|
|
type: integer
|
|
format: int32
|
|
minimum: 0
|
|
maximum: 3
|
|
max_score:
|
|
type: integer
|
|
format: int32
|
|
minimum: 3
|
|
maximum: 3
|
|
groups:
|
|
type: array
|
|
minItems: 3
|
|
maxItems: 3
|
|
items:
|
|
$ref: '#/components/schemas/PracticeGroupResult'
|
|
AssessmentPractice:
|
|
type: object
|
|
description: Practice of the attempt. Its verdict is shown only after the submission; the solution time is kept as a separate label and never enters the ability estimate or the grade decision.
|
|
additionalProperties: false
|
|
required:
|
|
- kind
|
|
- item_id
|
|
- status
|
|
- submitted_at
|
|
- verdict
|
|
- failure_reason
|
|
properties:
|
|
kind:
|
|
$ref: '#/components/schemas/PracticeKind'
|
|
item_id:
|
|
$ref: '#/components/schemas/AssessmentItemId'
|
|
status:
|
|
$ref: '#/components/schemas/PracticeStatus'
|
|
submitted_at:
|
|
description: Time of the latest submission, or null before the first one.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
verdict:
|
|
description: The verdict when `status` is `finished`, otherwise null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/PracticeVerdict'
|
|
- type: 'null'
|
|
failure_reason:
|
|
description: The reason when `status` is `failed`, otherwise null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/PracticeFailureReason'
|
|
- type: 'null'
|
|
AssessmentAttempt:
|
|
type: object
|
|
description: Assessment attempt of the current candidate for one category, a specialization and a target grade. It shows the state, the fixed versions, the server deadline `expires_at` from the policy version, which the client clock never extends, the session limit, the progress, the item to answer now, and the practices. It never contains answer keys, the correctness of submitted answers, scores of single items, family or variant identifiers, seeds, hidden checks, or anti-cheat signals.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- version
|
|
- specialization
|
|
- target_grade
|
|
- task_language
|
|
- mode
|
|
- state
|
|
- versions
|
|
- started_at
|
|
- expires_at
|
|
- sessions
|
|
- finished_at
|
|
- progress
|
|
- current_item
|
|
- practices
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Attempt identifier.
|
|
version:
|
|
$ref: '#/components/schemas/AssessmentAttemptVersion'
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
target_grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
task_language:
|
|
description: Task language of the attempt, or null when the bank offers no choice.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/TaskLanguage'
|
|
- type: 'null'
|
|
mode:
|
|
$ref: '#/components/schemas/AssessmentMode'
|
|
state:
|
|
$ref: '#/components/schemas/AssessmentAttemptState'
|
|
versions:
|
|
$ref: '#/components/schemas/AssessmentVersions'
|
|
started_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
expires_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
sessions:
|
|
description: Session limit of the attempt, or null when its policy version defines none.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/AssessmentSessions'
|
|
- type: 'null'
|
|
finished_at:
|
|
description: Time the attempt reached a terminal state, or null while it is active.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
progress:
|
|
$ref: '#/components/schemas/AssessmentProgress'
|
|
current_item:
|
|
description: 'Item to answer now: a test item in `in_progress`, the practice item to submit in `practice_pending` or `additional_practice_pending` while that practice is `not_started` or `failed`, and null otherwise.'
|
|
oneOf:
|
|
- $ref: '#/components/schemas/AssessmentItem'
|
|
- type: 'null'
|
|
practices:
|
|
type: array
|
|
maxItems: 5
|
|
description: 'Practices in the order they were assigned: the `main` practice first, then an `additional` practice once finalize offers it. Empty only for a demo_basic attempt while code practice is disabled until the sandbox isolation is verified; its result then lists the `practice_not_included` limitation. A list rather than one field leaves room for more practices without a breaking change.'
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentPractice'
|
|
ChoiceAnswer:
|
|
type: object
|
|
description: 'Selected options of a choice item: exactly one unless the item allows several. Two answers are equal when they select the same set of options, in any order.'
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- option_ids
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- choice
|
|
option_ids:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 10
|
|
uniqueItems: true
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentOptionId'
|
|
NumberAnswer:
|
|
type: object
|
|
description: Numeric answer in the unit of the item. Two answers are equal when their decoded values are numerically equal, so 254 and 254.0 are the same answer.
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- number
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- number
|
|
number:
|
|
type: number
|
|
format: double
|
|
StringAnswer:
|
|
type: object
|
|
description: String answer, at most the `max_length` of the item. Two answers are equal only when their texts are identical; no trimming, case folding, or Unicode normalization applies to that comparison.
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- text
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- string
|
|
text:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 500
|
|
OrderAnswer:
|
|
type: object
|
|
description: Every element of the item exactly once, in the chosen order. Two answers are equal only when the sequences are identical.
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- element_ids
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- order
|
|
element_ids:
|
|
type: array
|
|
minItems: 2
|
|
maxItems: 20
|
|
uniqueItems: true
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentOptionId'
|
|
FindErrorAnswer:
|
|
type: object
|
|
description: Selected line numbers, at most the `max_selections` of the item. Two answers are equal when they select the same set of lines, in any order.
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- line_numbers
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- find_error
|
|
line_numbers:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 10
|
|
uniqueItems: true
|
|
items:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 500
|
|
ConfigurationAnswer:
|
|
type: object
|
|
description: Submitted configuration text, at most the `max_length` of the item. Two answers are equal only when their texts are identical, including whitespace and line breaks.
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- config
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- configuration
|
|
config:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 20000
|
|
PracticeAnswer:
|
|
type: object
|
|
description: Practice solution. It runs in the isolated sandbox without network access, secrets, or business data. Two submissions are equal only when the language is the same and the source texts are identical. The source is never echoed in a response or a problem.
|
|
additionalProperties: false
|
|
required:
|
|
- format
|
|
- language
|
|
- source_code
|
|
properties:
|
|
format:
|
|
type: string
|
|
enum:
|
|
- practice
|
|
language:
|
|
description: One of the `languages` of the practice item, or null when the item offers none.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/TaskLanguage'
|
|
- type: 'null'
|
|
source_code:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 65536
|
|
AssessmentAnswer:
|
|
description: 'Candidate answer, selected by `format`, which must equal the format of the answered item. It carries only the answer: no score, duration, correctness flag, or seed. The server records the times itself and scores the answer with the key of the fixed item instance. Each format defines when two answers are equal, which decides whether a repeated submission is the same answer.'
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ChoiceAnswer'
|
|
- $ref: '#/components/schemas/NumberAnswer'
|
|
- $ref: '#/components/schemas/StringAnswer'
|
|
- $ref: '#/components/schemas/OrderAnswer'
|
|
- $ref: '#/components/schemas/FindErrorAnswer'
|
|
- $ref: '#/components/schemas/ConfigurationAnswer'
|
|
- $ref: '#/components/schemas/PracticeAnswer'
|
|
AssessmentAnswerSubmission:
|
|
type: object
|
|
description: Answer to one item of the attempt. Unknown fields are rejected, so a request cannot send a score, a duration, or a correctness flag.
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
- item_id
|
|
- answer
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/AssessmentAttemptVersion'
|
|
item_id:
|
|
$ref: '#/components/schemas/AssessmentItemId'
|
|
answer:
|
|
$ref: '#/components/schemas/AssessmentAnswer'
|
|
AssessmentFinalization:
|
|
type: object
|
|
description: Command to finalize the attempt.
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/AssessmentAttemptVersion'
|
|
AssessmentOutcome:
|
|
type: string
|
|
description: |-
|
|
Grade decision of the attempt.
|
|
|
|
- confirmed: the target grade is confirmed by the rule of the recorded policy version.
|
|
- not_confirmed: the evidence is below the rule, including an adaptive attempt whose probability stayed below confirmation after the additional practice, or whose additional practice was declined or not submitted in time. The previously confirmed grade, if any, stays in force.
|
|
- not_determined: the attempt gives no decision; `not_determined_reason` says why. The previously confirmed grade stays in force.
|
|
|
|
A failed, expired, or flagged attempt never lowers a confirmed grade.
|
|
enum:
|
|
- confirmed
|
|
- not_confirmed
|
|
- not_determined
|
|
AssessmentNotDeterminedReason:
|
|
type: string
|
|
description: |-
|
|
Why an attempt gives no decision, and whether it counts against the retry rules.
|
|
|
|
- expired: the time or session limit passed before the candidate finished the item part. It is the candidate's attempt: it counts toward the attempt limit and starts the same-grade retry interval.
|
|
- practice_incomplete: the item part was done, but the candidate did not submit the main practice before the limit. It counts like `expired`.
|
|
- insufficient_bank: the bank could not supply the required coverage within the limit. It is a platform limitation: it never counts toward the attempt limit and starts no retry interval.
|
|
- sandbox_unavailable: the latest submission of a required or additional practice ended `failed` because of the sandbox infrastructure, and the limit passed before a verdict. It is a platform fault: it never counts toward the attempt limit and starts no retry interval.
|
|
enum:
|
|
- expired
|
|
- practice_incomplete
|
|
- insufficient_bank
|
|
- sandbox_unavailable
|
|
AssessmentStrength:
|
|
type: string
|
|
description: 'Strength of an adaptive confirmation: `high` or `medium`, by the probability bands of the recorded policy version.'
|
|
enum:
|
|
- high
|
|
- medium
|
|
CalibrationStatus:
|
|
type: string
|
|
description: 'Whether the thresholds of the recorded policy version are empirically calibrated. `uncalibrated` results are provisional: their thresholds come from expert judgement, and their probabilities are not claimed to be calibrated.'
|
|
enum:
|
|
- uncalibrated
|
|
- calibrated
|
|
AssessmentLimitation:
|
|
type: string
|
|
description: |-
|
|
Known limitation of the method behind a result, shown with the result.
|
|
|
|
- uncalibrated_thresholds: the thresholds are not yet validated on a pilot.
|
|
- demo_bank: the result comes from the small reviewed demo bank.
|
|
- practice_not_included: the attempt had no code practice because the sandbox was not enabled.
|
|
- unproctored: the attempt was taken online without supervision.
|
|
|
|
Adding a value is a contract change.
|
|
enum:
|
|
- uncalibrated_thresholds
|
|
- demo_bank
|
|
- practice_not_included
|
|
- unproctored
|
|
AssessmentInterval:
|
|
type: object
|
|
description: Interval on the ability scale.
|
|
additionalProperties: false
|
|
required:
|
|
- low
|
|
- high
|
|
properties:
|
|
low:
|
|
type: number
|
|
format: double
|
|
high:
|
|
type: number
|
|
format: double
|
|
AssessmentUncertainty:
|
|
type: object
|
|
description: 'Ability estimate of an adaptive attempt and its uncertainty: the EAP estimate on the specialization scale, its standard error, the 95% interval, and the probability of reaching the target grade threshold. The interval is reported but is not a separate stop condition.'
|
|
additionalProperties: false
|
|
required:
|
|
- theta
|
|
- standard_error
|
|
- interval_95
|
|
- p_grade
|
|
properties:
|
|
theta:
|
|
type: number
|
|
format: double
|
|
standard_error:
|
|
type: number
|
|
format: double
|
|
minimum: 0
|
|
interval_95:
|
|
$ref: '#/components/schemas/AssessmentInterval'
|
|
p_grade:
|
|
type: number
|
|
format: double
|
|
minimum: 0
|
|
maximum: 1
|
|
description: Probability of reaching the threshold of the target grade.
|
|
BasicScore:
|
|
type: object
|
|
description: Raw score of a demo_basic attempt and the pass mark of the recorded basic grading policy. The pass mark comes from that policy version and never from the handler.
|
|
additionalProperties: false
|
|
required:
|
|
- points
|
|
- max_points
|
|
- pass_points
|
|
properties:
|
|
points:
|
|
type: integer
|
|
format: int32
|
|
minimum: 0
|
|
max_points:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
pass_points:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
AssessmentGap:
|
|
type: object
|
|
description: Domain of the specialization where the evidence was weak.
|
|
additionalProperties: false
|
|
required:
|
|
- domain
|
|
- title
|
|
properties:
|
|
domain:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 64
|
|
pattern: ^[a-z0-9_]+$
|
|
description: Stable domain code of the bank blueprint.
|
|
title:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 200
|
|
description: Display name in Russian. Plain text.
|
|
AssessmentDurations:
|
|
type: object
|
|
description: 'Working time recorded by the server. It is a separate label: it never enters the ability estimate or the grade decision.'
|
|
additionalProperties: false
|
|
required:
|
|
- items_seconds
|
|
- practice_seconds
|
|
properties:
|
|
items_seconds:
|
|
type: integer
|
|
format: int32
|
|
minimum: 0
|
|
practice_seconds:
|
|
type:
|
|
- integer
|
|
- 'null'
|
|
format: int32
|
|
minimum: 0
|
|
description: Time on all practices with a verdict, or null when no practice has one.
|
|
AssessmentPracticeResult:
|
|
type: object
|
|
description: Verdict of one practice of the attempt.
|
|
additionalProperties: false
|
|
required:
|
|
- kind
|
|
- verdict
|
|
properties:
|
|
kind:
|
|
$ref: '#/components/schemas/PracticeKind'
|
|
verdict:
|
|
$ref: '#/components/schemas/PracticeVerdict'
|
|
AssessmentNextAction:
|
|
type: string
|
|
description: |-
|
|
Step that the candidate may take next.
|
|
|
|
- retake_same_grade: test the same grade again from `available_at`.
|
|
- take_lower_grade: test the lower `grade`. After a failure, including the first test, it is allowed at once, outside the same-grade retry interval.
|
|
- accept_lower_grade: accept the lower `grade` on the evidence of this attempt, when the data are sufficient (the command is planned).
|
|
- take_higher_grade: test the higher `grade` from `available_at`. A first confirmation is not a promotion, so after it `available_at` is null; after a promotion the next one waits for the promotion interval of the policy.
|
|
enum:
|
|
- retake_same_grade
|
|
- take_lower_grade
|
|
- accept_lower_grade
|
|
- take_higher_grade
|
|
AssessmentNextStep:
|
|
type: object
|
|
description: Step that the server allows after this result, computed when it was decided.
|
|
additionalProperties: false
|
|
required:
|
|
- action
|
|
- grade
|
|
- available_at
|
|
properties:
|
|
action:
|
|
$ref: '#/components/schemas/AssessmentNextAction'
|
|
grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
available_at:
|
|
description: First time the step is allowed, or null when it is allowed now.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
AssessmentResult:
|
|
type: object
|
|
description: 'Immutable result of a terminal attempt, visible only to its candidate. It records the method, the versions, the decision, its uncertainty, and its limitations; a later policy, bank, or algorithm version never changes it. It never contains answers, per-item correctness, answer keys, seeds, hidden checks, or anti-cheat signals. Fields that the method does not compute are null, never zero: demo_basic has null `uncertainty` and `strength`, and adaptive has null `basic_score`.'
|
|
additionalProperties: false
|
|
required:
|
|
- attempt_id
|
|
- specialization
|
|
- target_grade
|
|
- task_language
|
|
- mode
|
|
- versions
|
|
- outcome
|
|
- not_determined_reason
|
|
- confirmed_grade
|
|
- previous_confirmed_grade
|
|
- strength
|
|
- calibration_status
|
|
- limitations
|
|
- uncertainty
|
|
- basic_score
|
|
- practices
|
|
- gaps
|
|
- durations
|
|
- next_steps
|
|
- decided_at
|
|
properties:
|
|
attempt_id:
|
|
type: string
|
|
format: uuid
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
target_grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
task_language:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/TaskLanguage'
|
|
- type: 'null'
|
|
mode:
|
|
$ref: '#/components/schemas/AssessmentMode'
|
|
versions:
|
|
$ref: '#/components/schemas/AssessmentVersions'
|
|
outcome:
|
|
$ref: '#/components/schemas/AssessmentOutcome'
|
|
not_determined_reason:
|
|
description: The reason when `outcome` is `not_determined`, otherwise null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/AssessmentNotDeterminedReason'
|
|
- type: 'null'
|
|
confirmed_grade:
|
|
description: Grade that this attempt confirmed, the target grade, or null when it confirmed none. Together with the specialization it forms the category.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
previous_confirmed_grade:
|
|
description: Confirmed grade of the specialization before this attempt, or null. When the attempt confirmed nothing, this grade stays in force.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
strength:
|
|
description: Strength of an adaptive confirmation, otherwise null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/AssessmentStrength'
|
|
- type: 'null'
|
|
calibration_status:
|
|
$ref: '#/components/schemas/CalibrationStatus'
|
|
limitations:
|
|
type: array
|
|
maxItems: 10
|
|
uniqueItems: true
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentLimitation'
|
|
uncertainty:
|
|
description: Ability estimate and uncertainty of an adaptive attempt with a decision; null for demo_basic, which computes none, and for an attempt without a decision.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/AssessmentUncertainty'
|
|
- type: 'null'
|
|
basic_score:
|
|
description: Raw score of a demo_basic attempt with a decision, otherwise null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/BasicScore'
|
|
- type: 'null'
|
|
practices:
|
|
type: array
|
|
maxItems: 5
|
|
description: Verdicts of the practices that have one, main first.
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentPracticeResult'
|
|
gaps:
|
|
type: array
|
|
maxItems: 20
|
|
description: Domains with weak evidence; empty when none were found or the method finds none.
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentGap'
|
|
durations:
|
|
$ref: '#/components/schemas/AssessmentDurations'
|
|
next_steps:
|
|
type: array
|
|
maxItems: 5
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentNextStep'
|
|
decided_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
AssessmentGradeAvailabilityStatus:
|
|
type: string
|
|
description: |-
|
|
Whether an attempt for the grade can start now.
|
|
|
|
- available: CreateMyAssessmentAttempt can start it.
|
|
- active_attempt: the specialization has an active attempt; resume it by `active_attempt_id`.
|
|
- cooldown: a retry or promotion interval or the attempt limit of the policy blocks it until `available_at`. Attempts that ended as `insufficient_bank` or `sandbox_unavailable` never cause it.
|
|
- insufficient_bank: no published bank of the category, or not enough unseen families to cover the blueprint for this candidate. The server never fills the gap by repeating families.
|
|
enum:
|
|
- available
|
|
- active_attempt
|
|
- cooldown
|
|
- insufficient_bank
|
|
AssessmentGradeAvailability:
|
|
type: object
|
|
description: Availability of an attempt for one grade of a specialization, with the limits that an attempt would have, so the client can show them before the start. The limit fields are null when the status is `insufficient_bank` or the policy defines no such limit.
|
|
additionalProperties: false
|
|
required:
|
|
- grade
|
|
- status
|
|
- mode
|
|
- available_at
|
|
- time_limit_seconds
|
|
- max_sessions
|
|
- max_items
|
|
- practice_required
|
|
properties:
|
|
grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
status:
|
|
$ref: '#/components/schemas/AssessmentGradeAvailabilityStatus'
|
|
mode:
|
|
description: Mode that an attempt would use, or null when the status is `insufficient_bank`.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/AssessmentMode'
|
|
- type: 'null'
|
|
available_at:
|
|
description: When the status is `cooldown`, the first time the attempt can start; otherwise null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
time_limit_seconds:
|
|
type:
|
|
- integer
|
|
- 'null'
|
|
format: int32
|
|
minimum: 1
|
|
description: Time from the start to `expires_at`.
|
|
max_sessions:
|
|
type:
|
|
- integer
|
|
- 'null'
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 10
|
|
description: Session limit within the time limit.
|
|
max_items:
|
|
type:
|
|
- integer
|
|
- 'null'
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 100
|
|
description: Item limit, as in `AssessmentProgress.max_items`.
|
|
practice_required:
|
|
type:
|
|
- boolean
|
|
- 'null'
|
|
description: Whether the attempt would include a main code practice.
|
|
AssessmentSpecializationAvailability:
|
|
type: object
|
|
description: Assessment state of one questionnaire specialization. Specializations are assessed independently, with independent retry intervals.
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- confirmed_grade
|
|
- active_attempt_id
|
|
- grades
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
confirmed_grade:
|
|
description: Currently confirmed grade of the specialization, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
active_attempt_id:
|
|
type:
|
|
- string
|
|
- 'null'
|
|
format: uuid
|
|
description: Identifier of the active attempt of the specialization, or null.
|
|
grades:
|
|
type: array
|
|
maxItems: 10
|
|
description: Every grade of the scale in ascending order.
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentGradeAvailability'
|
|
AssessmentAvailability:
|
|
type: object
|
|
description: Assessment availability for the specializations of the current candidate's questionnaire, derived at the time of the request.
|
|
additionalProperties: false
|
|
required:
|
|
- specializations
|
|
properties:
|
|
specializations:
|
|
type: array
|
|
maxItems: 2
|
|
description: Questionnaire specializations in questionnaire order.
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentSpecializationAvailability'
|
|
NeedVersion:
|
|
type: integer
|
|
format: int64
|
|
minimum: 1
|
|
description: Version of an employer need. Creation makes version 1, and every committed change of the need advances it by exactly one, including a change made by the server, such as a planned asynchronous ML suggestion. Each version is an immutable snapshot of the need. `requirements_version` names the version whose confirmed requirements are current, so a change that leaves them unchanged creates a need version without a new requirements version.
|
|
examples:
|
|
- 2
|
|
NeedTitle:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 200
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: Short name of the need inside the organization, for example "Backend for the payments team". It has no leading or trailing whitespace and no line breaks. Plain text; clients show it as text, never as HTML.
|
|
NeedSourceText:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 10000
|
|
description: 'Free description of the team''s tasks as the employer wrote or pasted it. The server extracts proposed requirements from it; the text itself is never a requirement. It may contain line breaks. Plain text; clients show it as text, never as HTML. It describes the job and must not contain personal data of candidates. The server stores it as written: it may contain requirements that discriminate by a protected characteristic, and the extractor never turns such a requirement into a need field. Exclusions, the requirements that a candidate must not meet, are planned as a separate additive field with the Labor Code article 64 check (TASK-182).'
|
|
NeedValueStatus:
|
|
type: string
|
|
description: |-
|
|
Confirmation state of one need field.
|
|
|
|
- confirmed: a member of the organization entered the value or confirmed it. Only confirmed values feed readiness, category recommendations, search, and invitations.
|
|
- extracted: the server proposed the value from the need text or an import, and nobody has confirmed it yet. It is a suggestion: it never feeds search or recommendations and never counts as an answer in readiness.
|
|
- unknown: the field has no value. `value` and `source` are null. The server never fills an unknown field with a default or a guess, such as a Senior grade, the remote format, or a zero salary.
|
|
enum:
|
|
- confirmed
|
|
- extracted
|
|
- unknown
|
|
NeedItemStatus:
|
|
type: string
|
|
description: 'Confirmation state of a list item, and the decision that a request sends for a field or an item: `confirmed` or `extracted`, with the meaning of NeedValueStatus. A request sends `confirmed` to confirm a suggestion or to set a manual value, and `extracted` only to keep a stored suggestion unconfirmed with exactly its stored value. An item is never `unknown`; a list with no confirmed item is what readiness reports as missing.'
|
|
enum:
|
|
- confirmed
|
|
- extracted
|
|
NeedValueOrigin:
|
|
type: string
|
|
description: |-
|
|
Where the value of a field or item came from. The server sets it; a request never sends it.
|
|
|
|
- manual: a member of the organization typed the value in the form. `quote`, `extraction_version`, and `extracted_in_version` are null.
|
|
- extracted_from_text: the server extracted the value from `source_text`, with the deterministic rules and dictionary or, planned, with the ML service. `extraction_version` names the extractor version.
|
|
- imported: planned; the value was copied from a linked vacancy or an import. No MVP operation produces it.
|
|
|
|
Confirming an extracted value keeps its origin and quote; changing the value makes it `manual`. Adding a value is a contract change.
|
|
enum:
|
|
- manual
|
|
- extracted_from_text
|
|
- imported
|
|
NeedSourceQuote:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 300
|
|
description: Exact excerpt of the `source_text` that the value was extracted from, so a reviewer can check it. It may contain line breaks. Plain text; clients show it as text, never as HTML.
|
|
NeedVersionLabel:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 64
|
|
pattern: ^[A-Za-z0-9._-]+$
|
|
description: Opaque identifier of a published extractor or algorithm version, for example `need-rules.2026-10.1`. Clients show it as text and never parse it.
|
|
NeedValueSource:
|
|
type: object
|
|
description: 'Provenance of a value: its origin, the quote it was extracted from, the need version whose text the quote belongs to, and the extractor version. Read-only; the server derives it and a request cannot set it.'
|
|
additionalProperties: false
|
|
required:
|
|
- origin
|
|
- quote
|
|
- extracted_in_version
|
|
- extraction_version
|
|
properties:
|
|
origin:
|
|
$ref: '#/components/schemas/NeedValueOrigin'
|
|
quote:
|
|
description: Excerpt of the need text that supports the value, or null for a manual value and for an extracted value that the extractor did not tie to one excerpt.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedSourceQuote'
|
|
- type: 'null'
|
|
extracted_in_version:
|
|
description: Need version whose `source_text` the value was extracted from and the quote is an excerpt of, or null for a manual value. A confirmed value keeps it after the text changes, so its quote may be absent from the current `source_text`.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedVersion'
|
|
- type: 'null'
|
|
extraction_version:
|
|
description: Extractor version for an extracted or imported value, or null for a manual value.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedVersionLabel'
|
|
- type: 'null'
|
|
SkillName:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 100
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: Name of a skill or technology as the employer gave it, for example Go, PostgreSQL, or Temporal. It has no leading or trailing whitespace and no line breaks. The server compares names without regard to letter case. Plain text; clients show it as text, never as HTML.
|
|
SkillTaxonomyCode:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 64
|
|
pattern: ^[a-z0-9][a-z0-9_.+#-]*$
|
|
description: Code of a skill in the platform skill taxonomy, for example `postgresql`. The server assigns it from the taxonomy; clients never send it and never derive it from the name.
|
|
NeedTaskText:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 300
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: One work task of the team, for example "Move the payout service to an event model". It has no leading or trailing whitespace and no line breaks. Plain text; clients show it as text, never as HTML.
|
|
NeedDomainName:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 100
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: Business domain of the work, for example payments or logistics, as free text. Plain text without line breaks; clients show it as text, never as HTML.
|
|
NeedLocationName:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 100
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: Place of work for the office or hybrid format, for example a city, as free text. It describes the employer's office, never a candidate's address. Plain text without line breaks; clients show it as text, never as HTML.
|
|
RubAmount:
|
|
type: integer
|
|
format: int64
|
|
minimum: 1000
|
|
maximum: 100000000
|
|
multipleOf: 1000
|
|
description: Amount of money in whole rubles. A salary bound is positive and a multiple of 1000, the step that PRD FR13 sets for the bounds of a salary range and for the bids of the sealed final.
|
|
examples:
|
|
- 120000
|
|
CurrencyCode:
|
|
type: string
|
|
description: ISO 4217 currency code. The MVP accepts only RUB; adding a value is a contract change.
|
|
enum:
|
|
- RUB
|
|
SalaryPeriod:
|
|
type: string
|
|
description: Pay period of a salary amount. The MVP uses only `month`; adding a value is a contract change.
|
|
enum:
|
|
- month
|
|
SalaryTaxBasis:
|
|
type: string
|
|
description: 'Tax basis of a salary amount: `net`, the amount paid out after personal income tax, or `gross`, the amount before it. The basis is always explicit; amounts in different bases are never compared directly.'
|
|
enum:
|
|
- net
|
|
- gross
|
|
SalaryRange:
|
|
type: object
|
|
description: 'Salary range `[A; B]` in whole rubles with its base: the currency, the pay period, and the tax basis (PRD FR13). The schema requires every field, bounds that are positive multiples of 1000, and the known currency, period, and basis. The server checks the cross-field rules in integer arithmetic: `salary_from < salary_to`, and a width `(B - A) / ((A + B) / 2)` from 10% to 40% inclusive, that is `20 * (B - A) >= A + B` and `5 * (B - A) <= A + B`. A violation answers 400 validation_failed with the pointer of `salary_to` in the request, for example `/salary/value/salary_to`. For example, `[95000; 105000]` has a width of exactly 10% and `[80000; 120000]` exactly 40%; both are accepted. The rules are the same for a need and an invitation.'
|
|
additionalProperties: false
|
|
required:
|
|
- salary_from
|
|
- salary_to
|
|
- currency
|
|
- period
|
|
- tax_basis
|
|
properties:
|
|
salary_from:
|
|
$ref: '#/components/schemas/RubAmount'
|
|
salary_to:
|
|
$ref: '#/components/schemas/RubAmount'
|
|
currency:
|
|
$ref: '#/components/schemas/CurrencyCode'
|
|
period:
|
|
$ref: '#/components/schemas/SalaryPeriod'
|
|
tax_basis:
|
|
$ref: '#/components/schemas/SalaryTaxBasis'
|
|
NeedSpecialization:
|
|
type: object
|
|
description: Target specialization of the need with its confirmation state and provenance. `value` and `source` are null exactly when `status` is `unknown`.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- value
|
|
- source
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/NeedValueStatus'
|
|
value:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SpecializationCode'
|
|
- type: 'null'
|
|
source:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedValueSource'
|
|
- type: 'null'
|
|
NeedGrade:
|
|
type: object
|
|
description: Target grade of the need with its confirmation state and provenance. `value` and `source` are null exactly when `status` is `unknown`; a text that names no grade leaves the grade unknown instead of assuming one.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- value
|
|
- source
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/NeedValueStatus'
|
|
value:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
source:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedValueSource'
|
|
- type: 'null'
|
|
NeedDomain:
|
|
type: object
|
|
description: Business domain of the need with its confirmation state and provenance. `value` and `source` are null exactly when `status` is `unknown`.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- value
|
|
- source
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/NeedValueStatus'
|
|
value:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedDomainName'
|
|
- type: 'null'
|
|
source:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedValueSource'
|
|
- type: 'null'
|
|
NeedWorkFormats:
|
|
type: object
|
|
description: Work formats that the employer offers, with their confirmation state and provenance. `value` and `source` are null exactly when `status` is `unknown`; a known value lists one to three formats.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- value
|
|
- source
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/NeedValueStatus'
|
|
value:
|
|
type:
|
|
- array
|
|
- 'null'
|
|
minItems: 1
|
|
maxItems: 3
|
|
uniqueItems: true
|
|
items:
|
|
$ref: '#/components/schemas/WorkFormat'
|
|
source:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedValueSource'
|
|
- type: 'null'
|
|
NeedLocation:
|
|
type: object
|
|
description: Place of work with its confirmation state and provenance. `value` and `source` are null exactly when `status` is `unknown`. Readiness requires a confirmed place only when the confirmed work formats include `office` or `hybrid`.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- value
|
|
- source
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/NeedValueStatus'
|
|
value:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedLocationName'
|
|
- type: 'null'
|
|
source:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedValueSource'
|
|
- type: 'null'
|
|
NeedSalary:
|
|
type: object
|
|
description: Salary range that the employer offers, with its confirmation state and provenance. `value` and `source` are null exactly when `status` is `unknown`. A text without a salary leaves it unknown; the server never substitutes zero, a market estimate, or a range from another need.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- value
|
|
- source
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/NeedValueStatus'
|
|
value:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SalaryRange'
|
|
- type: 'null'
|
|
source:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedValueSource'
|
|
- type: 'null'
|
|
NeedSkill:
|
|
type: object
|
|
description: 'One required or desired skill of the need. `taxonomy_code` is null for a skill that the platform taxonomy does not know: the server keeps the name as given, never maps it to a guessed code, and counts it as not covered in category recommendations.'
|
|
additionalProperties: false
|
|
required:
|
|
- name
|
|
- taxonomy_code
|
|
- status
|
|
- source
|
|
properties:
|
|
name:
|
|
$ref: '#/components/schemas/SkillName'
|
|
taxonomy_code:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SkillTaxonomyCode'
|
|
- type: 'null'
|
|
status:
|
|
$ref: '#/components/schemas/NeedItemStatus'
|
|
source:
|
|
$ref: '#/components/schemas/NeedValueSource'
|
|
NeedTask:
|
|
type: object
|
|
description: One work task of the team with its confirmation state and provenance.
|
|
additionalProperties: false
|
|
required:
|
|
- text
|
|
- status
|
|
- source
|
|
properties:
|
|
text:
|
|
$ref: '#/components/schemas/NeedTaskText'
|
|
status:
|
|
$ref: '#/components/schemas/NeedItemStatus'
|
|
source:
|
|
$ref: '#/components/schemas/NeedValueSource'
|
|
NeedSpecializationInput:
|
|
type: object
|
|
description: Decision about the specialization in a request; see NeedUpdate for the rules of `status`.
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- status
|
|
properties:
|
|
value:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
status:
|
|
$ref: '#/components/schemas/NeedItemStatus'
|
|
NeedGradeInput:
|
|
type: object
|
|
description: Decision about the grade in a request; see NeedUpdate for the rules of `status`.
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- status
|
|
properties:
|
|
value:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
status:
|
|
$ref: '#/components/schemas/NeedItemStatus'
|
|
NeedDomainInput:
|
|
type: object
|
|
description: Decision about the domain in a request; see NeedUpdate for the rules of `status`.
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- status
|
|
properties:
|
|
value:
|
|
$ref: '#/components/schemas/NeedDomainName'
|
|
status:
|
|
$ref: '#/components/schemas/NeedItemStatus'
|
|
NeedWorkFormatsInput:
|
|
type: object
|
|
description: Decision about the work formats in a request; see NeedUpdate for the rules of `status`. Formats are compared as a set.
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- status
|
|
properties:
|
|
value:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 3
|
|
uniqueItems: true
|
|
items:
|
|
$ref: '#/components/schemas/WorkFormat'
|
|
status:
|
|
$ref: '#/components/schemas/NeedItemStatus'
|
|
NeedLocationInput:
|
|
type: object
|
|
description: Decision about the place of work in a request; see NeedUpdate for the rules of `status`.
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- status
|
|
properties:
|
|
value:
|
|
$ref: '#/components/schemas/NeedLocationName'
|
|
status:
|
|
$ref: '#/components/schemas/NeedItemStatus'
|
|
NeedSalaryInput:
|
|
type: object
|
|
description: Decision about the salary range in a request; see NeedUpdate for the rules of `status` and SalaryRange for the rules of the range, whose pointers are under `/salary/value`.
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- status
|
|
properties:
|
|
value:
|
|
$ref: '#/components/schemas/SalaryRange'
|
|
status:
|
|
$ref: '#/components/schemas/NeedItemStatus'
|
|
NeedSkillInput:
|
|
type: object
|
|
description: 'One skill of a list in a request. A name that equals, without regard to letter case, a skill of the current version in either skill list refers to that skill and keeps its origin, quote, and taxonomy code; this is how an extracted skill is confirmed or moved between the required and desired lists. Any other name is a new manual skill. `status` follows the rules of NeedUpdate: `extracted` for a name that is not a stored suggestion answers 400 validation_failed with the pointer of that `status`, for example `/required_skills/2/status`. A name repeated within or across the two skill lists answers 400 with the pointer of the later `name`.'
|
|
additionalProperties: false
|
|
required:
|
|
- name
|
|
- status
|
|
properties:
|
|
name:
|
|
$ref: '#/components/schemas/SkillName'
|
|
status:
|
|
$ref: '#/components/schemas/NeedItemStatus'
|
|
NeedTaskInput:
|
|
type: object
|
|
description: One task of the list in a request. A text equal to a task of the current version refers to that task and keeps its origin and quote; any other text is a new manual task. `status` and repeated texts follow the rules of NeedSkillInput.
|
|
additionalProperties: false
|
|
required:
|
|
- text
|
|
- status
|
|
properties:
|
|
text:
|
|
$ref: '#/components/schemas/NeedTaskText'
|
|
status:
|
|
$ref: '#/components/schemas/NeedItemStatus'
|
|
NeedRequirementSet:
|
|
type: object
|
|
description: Requirements of one need version, each with its confirmation state and provenance. Read-only; requests change them through the fields of NeedCreate and NeedUpdate.
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- grade
|
|
- required_skills
|
|
- desired_skills
|
|
- tasks
|
|
- domain
|
|
- work_formats
|
|
- location
|
|
- salary
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/NeedSpecialization'
|
|
grade:
|
|
$ref: '#/components/schemas/NeedGrade'
|
|
required_skills:
|
|
type: array
|
|
maxItems: 30
|
|
description: Required skills; each has weight 2 in skill coverage. Only confirmed skills count.
|
|
items:
|
|
$ref: '#/components/schemas/NeedSkill'
|
|
desired_skills:
|
|
type: array
|
|
maxItems: 30
|
|
description: Desired skills; each has weight 1 in skill coverage. Only confirmed skills count.
|
|
items:
|
|
$ref: '#/components/schemas/NeedSkill'
|
|
tasks:
|
|
type: array
|
|
maxItems: 20
|
|
description: Work tasks of the team in the order given.
|
|
items:
|
|
$ref: '#/components/schemas/NeedTask'
|
|
domain:
|
|
$ref: '#/components/schemas/NeedDomain'
|
|
work_formats:
|
|
$ref: '#/components/schemas/NeedWorkFormats'
|
|
location:
|
|
$ref: '#/components/schemas/NeedLocation'
|
|
salary:
|
|
$ref: '#/components/schemas/NeedSalary'
|
|
NeedFieldName:
|
|
type: string
|
|
description: Name of a need field, equal to its property name in NeedRequirementSet and in the request bodies. Adding a value is a contract change.
|
|
enum:
|
|
- specialization
|
|
- grade
|
|
- required_skills
|
|
- desired_skills
|
|
- tasks
|
|
- domain
|
|
- work_formats
|
|
- location
|
|
- salary
|
|
NeedMissingReason:
|
|
type: string
|
|
description: 'Why a critical field is missing: `unknown`, the field has no value, or `unconfirmed`, it has only an extracted value or, for required skills, only extracted items that wait for confirmation.'
|
|
enum:
|
|
- unknown
|
|
- unconfirmed
|
|
NeedMissingField:
|
|
type: object
|
|
description: One critical field that has no confirmed value, with a specific question that the client shows next to the field.
|
|
additionalProperties: false
|
|
required:
|
|
- field
|
|
- reason
|
|
- question
|
|
properties:
|
|
field:
|
|
$ref: '#/components/schemas/NeedFieldName'
|
|
reason:
|
|
$ref: '#/components/schemas/NeedMissingReason'
|
|
question:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 300
|
|
description: Specific Russian question about the missing value, for example which grade is needed. Plain text; the client shows it as text, never as HTML.
|
|
NeedReadinessStatus:
|
|
type: string
|
|
description: '`complete` when every critical field has a confirmed value, otherwise `incomplete`.'
|
|
enum:
|
|
- complete
|
|
- incomplete
|
|
NeedReadinessReport:
|
|
type: object
|
|
description: Completeness of the critical fields, computed by the server for the current version. The critical fields are `specialization`, `grade`, `required_skills` (at least one confirmed skill), `work_formats`, `salary`, and `location` when the confirmed work formats include `office` or `hybrid`. An incomplete need is still a valid saved need; each later operation, such as search or an invitation, states which readiness it requires.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- missing_fields
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/NeedReadinessStatus'
|
|
missing_fields:
|
|
type: array
|
|
maxItems: 9
|
|
description: Critical fields without a confirmed value, each at most once, in the order of NeedFieldName. Empty exactly when `status` is `complete`.
|
|
items:
|
|
$ref: '#/components/schemas/NeedMissingField'
|
|
NeedRecommendationStatus:
|
|
type: string
|
|
description: |-
|
|
State of the category recommendations of the current requirements version.
|
|
|
|
- computed: `categories` holds the recommendations computed from the confirmed requirements of `requirements_version`.
|
|
- pending: the computation for the current requirements version has not finished yet; `categories` is empty. Read the need again later.
|
|
- not_available: the current requirements have no confirmed required or desired skill to compute from; `categories` is empty.
|
|
enum:
|
|
- computed
|
|
- pending
|
|
- not_available
|
|
NeedSkillOverlap:
|
|
type: object
|
|
description: 'Skill coverage of a category: the weighted share of the confirmed skills of the need that the category taxonomy covers, with weight 2 for a required and 1 for a desired skill.'
|
|
additionalProperties: false
|
|
required:
|
|
- share
|
|
- covered_skills
|
|
- uncovered_skills
|
|
properties:
|
|
share:
|
|
type: number
|
|
format: double
|
|
minimum: 0
|
|
maximum: 1
|
|
description: Weighted share from 0 to 1, rounded to two decimals.
|
|
covered_skills:
|
|
type: array
|
|
maxItems: 60
|
|
description: Confirmed skills of the need that the category covers.
|
|
items:
|
|
$ref: '#/components/schemas/SkillName'
|
|
uncovered_skills:
|
|
type: array
|
|
maxItems: 60
|
|
description: Confirmed skills of the need that the category does not cover, including skills without a taxonomy code.
|
|
items:
|
|
$ref: '#/components/schemas/SkillName'
|
|
NeedMoneyStatus:
|
|
type: string
|
|
description: |-
|
|
How the salary component of a recommendation was obtained.
|
|
|
|
- computed: at least five available candidates of the category have a known minimum comparable with the confirmed range; `share` is given.
|
|
- insufficient_data: fewer than five such candidates; the policy uses the neutral value 0.5 and `share` is null.
|
|
- no_salary: the need has no confirmed salary range; the policy uses the neutral value 0.5 and `share` is null.
|
|
- withheld: the organization changed salary ranges five times within seven days, so salary aggregates are withheld for seven days (PRD FR13, planned in TASK-211); the policy uses the neutral value 0.5 and `share` is null.
|
|
|
|
An unknown candidate minimum never counts as zero.
|
|
enum:
|
|
- computed
|
|
- insufficient_data
|
|
- no_salary
|
|
- withheld
|
|
NeedMoneyFit:
|
|
type: object
|
|
description: Salary component of a recommendation. It is an aggregate over at least five candidates and never reveals a minimum of any candidate.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- share
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/NeedMoneyStatus'
|
|
share:
|
|
type:
|
|
- number
|
|
- 'null'
|
|
format: double
|
|
minimum: 0
|
|
maximum: 1
|
|
description: 'Share of those candidates whose minimum is not above the upper bound of the range, rounded down to a multiple of 0.25 (one of 0, 0.25, 0.5, 0.75, 1), or null unless `status` is `computed`. The score and the ranking use this rounded value, never the exact share. A quarter step gives five levels: each probe of a new upper bound tells at most which quarter of the group accepts it, and in the smallest allowed group of five candidates a single minimum often does not move the value, while the share still separates a range that most candidates accept from one that few accept.'
|
|
NeedSupplyBand:
|
|
type: string
|
|
description: 'Number of available candidates of the category in the allowed detail: `fewer_than_5`, `from_5_to_29`, or `30_or_more`. Smaller groups are never counted exactly.'
|
|
enum:
|
|
- fewer_than_5
|
|
- from_5_to_29
|
|
- 30_or_more
|
|
NeedCategoryRecommendation:
|
|
type: object
|
|
description: 'One recommended category, a specialization with a grade, with its score and the reasons for it. The score is `0.5 * Overlap + 0.3 * Money + 0.2 * Supply` (PRD FR08) computed from the published components: the exact skill overlap, the money share rounded down to a quarter or the neutral 0.5, and `Supply = min(1, active / 30)` when at least five candidates are available. For a group of fewer than five, Supply enters the ranking as 0, the same for every such group, so neither the score nor the order reveals the exact size of a group below five.'
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- grade
|
|
- score
|
|
- skill_overlap
|
|
- money
|
|
- supply
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
score:
|
|
type:
|
|
- number
|
|
- 'null'
|
|
format: double
|
|
minimum: 0
|
|
maximum: 1
|
|
description: Recommendation score from 0 to 1, rounded half up to two decimals, or null when `supply` is `fewer_than_5`. Read-only; no request can set it.
|
|
skill_overlap:
|
|
$ref: '#/components/schemas/NeedSkillOverlap'
|
|
money:
|
|
$ref: '#/components/schemas/NeedMoneyFit'
|
|
supply:
|
|
$ref: '#/components/schemas/NeedSupplyBand'
|
|
NeedCategoryRecommendations:
|
|
type: object
|
|
description: 'Category recommendations computed by the server from the confirmed requirements of `requirements_version` with a versioned policy (PRD FR08). Read-only: no request can set a recommendation, a score, or one of its components. The server may recompute them for the same requirements version, for example for a new policy or a changed pool of available candidates, without a new need version; `computed_at` and `policy_version` then change. The policy version and the candidate group used are stored with each computation, so a later policy never rewrites it.'
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- requirements_version
|
|
- policy_version
|
|
- algorithm_version
|
|
- computed_at
|
|
- categories
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/NeedRecommendationStatus'
|
|
requirements_version:
|
|
$ref: '#/components/schemas/NeedVersion'
|
|
policy_version:
|
|
type:
|
|
- integer
|
|
- 'null'
|
|
format: int32
|
|
minimum: 1
|
|
description: Number of the policy version whose weights were applied, or null unless `status` is `computed`.
|
|
algorithm_version:
|
|
description: Version of the recommendation algorithm, or null unless `status` is `computed`.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedVersionLabel'
|
|
- type: 'null'
|
|
computed_at:
|
|
description: Time of the computation, or null unless `status` is `computed`.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
categories:
|
|
type: array
|
|
maxItems: 10
|
|
description: Recommended categories, best first by the score described in NeedCategoryRecommendation. Empty unless `status` is `computed`.
|
|
items:
|
|
$ref: '#/components/schemas/NeedCategoryRecommendation'
|
|
Need:
|
|
type: object
|
|
description: 'Hiring need of an organization: what the team needs, independent of any published vacancy. It holds the current version of the requirements with their provenance, the readiness of the critical fields, and the category recommendations. It never contains membership data, a candidate''s personal data, or a candidate''s salary minimum.'
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- organization_id
|
|
- vacancy_id
|
|
- title
|
|
- source_text
|
|
- version
|
|
- requirements_version
|
|
- requirements
|
|
- readiness
|
|
- recommendations
|
|
- created_at
|
|
- updated_at
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the need.
|
|
organization_id:
|
|
type: string
|
|
format: uuid
|
|
description: Organization that owns the need, equal to `org_id` of the path. It never changes.
|
|
vacancy_id:
|
|
type:
|
|
- string
|
|
- 'null'
|
|
format: uuid
|
|
description: Linked vacancy of the same organization, or null. A need never requires a vacancy.
|
|
title:
|
|
$ref: '#/components/schemas/NeedTitle'
|
|
source_text:
|
|
description: Text the requirements were extracted from, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedSourceText'
|
|
- type: 'null'
|
|
version:
|
|
$ref: '#/components/schemas/NeedVersion'
|
|
requirements_version:
|
|
description: Need version in which the current confirmed requirements were last changed, at most `version`. A change that confirms, changes, or removes a requirement makes it equal to the new `version`. A change of the title, the vacancy link, or the text, or of suggestions only, creates a new `version` but keeps `requirements_version`, so it invalidates neither the recommendations nor search results and selection snapshots. Search runs and selection snapshots (PRD FR10) refer to `(need id, requirements_version)`, and a new selection snapshot is due only when it changes.
|
|
allOf:
|
|
- $ref: '#/components/schemas/NeedVersion'
|
|
requirements:
|
|
$ref: '#/components/schemas/NeedRequirementSet'
|
|
readiness:
|
|
$ref: '#/components/schemas/NeedReadinessReport'
|
|
recommendations:
|
|
$ref: '#/components/schemas/NeedCategoryRecommendations'
|
|
created_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
updated_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
NeedSummary:
|
|
type: object
|
|
description: 'Need in a list: its identity, current version, target category fields, and readiness. Read the need for the requirements and the recommendations.'
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- vacancy_id
|
|
- title
|
|
- version
|
|
- specialization
|
|
- grade
|
|
- readiness
|
|
- created_at
|
|
- updated_at
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the need.
|
|
vacancy_id:
|
|
type:
|
|
- string
|
|
- 'null'
|
|
format: uuid
|
|
description: Linked vacancy, or null.
|
|
title:
|
|
$ref: '#/components/schemas/NeedTitle'
|
|
version:
|
|
$ref: '#/components/schemas/NeedVersion'
|
|
specialization:
|
|
$ref: '#/components/schemas/NeedSpecialization'
|
|
grade:
|
|
$ref: '#/components/schemas/NeedGrade'
|
|
readiness:
|
|
$ref: '#/components/schemas/NeedReadinessReport'
|
|
created_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
updated_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
NeedList:
|
|
type: object
|
|
description: One page of the needs of an organization, newest first by creation time.
|
|
additionalProperties: false
|
|
required:
|
|
- items
|
|
- page
|
|
properties:
|
|
items:
|
|
type: array
|
|
maxItems: 100
|
|
description: Needs of the page.
|
|
items:
|
|
$ref: '#/components/schemas/NeedSummary'
|
|
page:
|
|
$ref: '#/components/schemas/PageInfo'
|
|
NeedCreate:
|
|
type: object
|
|
description: New need. Only `title` is required, so a need can start from a title, from a text, or from form fields, and with or without a vacancy. A field or list item given here must have `status` `confirmed` and becomes a confirmed manual value; `extracted` answers 400 with the pointer of that `status`, such as `/grade/status`, because a new need has no stored suggestion. A field that is absent is extracted from `source_text` when the text is given and is left unknown or empty otherwise. A nullable field sent as null, and a skill or task list sent as an empty list, stays unknown or empty and is not extracted; an empty `work_formats` value fails `minItems`. Unknown fields are rejected, so a request cannot set membership, a role, a status of the need, a provenance, readiness, a recommendation or its score, or a candidate's salary minimum.
|
|
additionalProperties: false
|
|
required:
|
|
- title
|
|
properties:
|
|
title:
|
|
$ref: '#/components/schemas/NeedTitle'
|
|
vacancy_id:
|
|
type:
|
|
- string
|
|
- 'null'
|
|
format: uuid
|
|
description: Vacancy of the same organization to link, or null or absent for a need without a vacancy.
|
|
source_text:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedSourceText'
|
|
- type: 'null'
|
|
specialization:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedSpecializationInput'
|
|
- type: 'null'
|
|
grade:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedGradeInput'
|
|
- type: 'null'
|
|
required_skills:
|
|
type: array
|
|
maxItems: 30
|
|
items:
|
|
$ref: '#/components/schemas/NeedSkillInput'
|
|
desired_skills:
|
|
type: array
|
|
maxItems: 30
|
|
items:
|
|
$ref: '#/components/schemas/NeedSkillInput'
|
|
tasks:
|
|
type: array
|
|
maxItems: 20
|
|
items:
|
|
$ref: '#/components/schemas/NeedTaskInput'
|
|
domain:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedDomainInput'
|
|
- type: 'null'
|
|
work_formats:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedWorkFormatsInput'
|
|
- type: 'null'
|
|
location:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedLocationInput'
|
|
- type: 'null'
|
|
salary:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedSalaryInput'
|
|
- type: 'null'
|
|
NeedUpdate:
|
|
type: object
|
|
description: 'Change of a need over the version the client read. Each field present in the body replaces that field as a whole; an absent field stays unchanged. Nested objects and lists are not merged: a field decision and each list are replaced entirely, and a stored item missing from a sent list is deleted. A nullable field sent as null becomes unknown, or unlinked for `vacancy_id`; a skill or task list sent empty deletes every item; a list sent as null fails validation. A field decision `{value, status}` and a list item follow the same rules: `confirmed` with the stored value confirms it and keeps its origin and quote, and `confirmed` with another value sets a confirmed manual value; `extracted` keeps a stored suggestion unconfirmed and is allowed only with exactly the stored suggested value, otherwise it answers 400 with the pointer of that `status`, such as `/grade/status` or `/required_skills/0/status`. A client that sends back an unchanged form therefore confirms nothing by accident: it sends each suggestion with `extracted`, or leaves the field out. Sending a different `source_text` extracts again: new suggestions replace only the `extracted` values and items of fields not named in this body; confirmed values are never overwritten, a suggested skill whose name is already in either skill list is skipped, and a suggestion that a member deleted is not proposed again for this need. Unknown fields are rejected, so a request cannot set membership, a role, a provenance, readiness, a recommendation or its score, or a candidate''s salary minimum.'
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/NeedVersion'
|
|
title:
|
|
$ref: '#/components/schemas/NeedTitle'
|
|
vacancy_id:
|
|
type:
|
|
- string
|
|
- 'null'
|
|
format: uuid
|
|
description: Vacancy of the same organization to link, or null to unlink.
|
|
source_text:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedSourceText'
|
|
- type: 'null'
|
|
specialization:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedSpecializationInput'
|
|
- type: 'null'
|
|
grade:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedGradeInput'
|
|
- type: 'null'
|
|
required_skills:
|
|
type: array
|
|
maxItems: 30
|
|
items:
|
|
$ref: '#/components/schemas/NeedSkillInput'
|
|
desired_skills:
|
|
type: array
|
|
maxItems: 30
|
|
items:
|
|
$ref: '#/components/schemas/NeedSkillInput'
|
|
tasks:
|
|
type: array
|
|
maxItems: 20
|
|
items:
|
|
$ref: '#/components/schemas/NeedTaskInput'
|
|
domain:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedDomainInput'
|
|
- type: 'null'
|
|
work_formats:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedWorkFormatsInput'
|
|
- type: 'null'
|
|
location:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedLocationInput'
|
|
- type: 'null'
|
|
salary:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedSalaryInput'
|
|
- type: 'null'
|
|
SupportCaseNumber:
|
|
type: string
|
|
minLength: 14
|
|
maxLength: 18
|
|
pattern: ^SC-[0-9]{4}-[0-9]{6,10}$
|
|
description: 'Human-readable case number that the server assigns on creation, for example `SC-2026-000123`: the prefix `SC`, the UTC year of creation, and a sequence number of at least six digits with leading zeros. The sequence is global and never reused, so the number is unique across every case and year and never changes. The user quotes it in letters and calls; the API addresses a case only by its `id`. Clients show the number as text and never parse it.'
|
|
examples:
|
|
- SC-2026-000123
|
|
SupportCaseType:
|
|
type: string
|
|
description: |-
|
|
Kind of the case. It fixes the allowed object reference, the type-specific fields, the response target, and the queue that handles the case.
|
|
|
|
- support: a question or a problem, for example an assessment that is not available or a failed sandbox run. Candidate and employer accounts.
|
|
- complaint: a complaint about an organization or an offer, including a breach of the salary terms or a disclosure of personal data (PRD FR18). Candidate accounts.
|
|
- grade_appeal: an appeal of a category the caller received: the result of one own assessment attempt, or the outcome of one own resolved manual assessment case. An expert reviews it, and the original result stays in the history. Candidate accounts.
|
|
- anticheat_appeal: an appeal of an anti-cheat review decision on one own assessment attempt. Candidate accounts.
|
|
- manual_assessment: a request for a manual assessment of a category by a subject expert with the same rubric, the alternative to automated categorization (consent C3). Candidate accounts.
|
|
enum:
|
|
- support
|
|
- complaint
|
|
- grade_appeal
|
|
- anticheat_appeal
|
|
- manual_assessment
|
|
SupportCaseStatus:
|
|
type: string
|
|
description: |-
|
|
Processing status of a case. Only the server changes it; no request field sets it. Adding a value is a contract change: generated clients reject an unknown value.
|
|
|
|
- submitted: the case was accepted and waits in its queue.
|
|
- in_review: support or a moderator works on it.
|
|
- waiting_for_user: support asked the author for more detail. Not set yet: it starts with the planned operation that lets the author reply, and until then no case has this status.
|
|
- waiting_expert: a grade appeal, an anti-cheat appeal, or a manual assessment waits for a subject expert. The server sets it in the same transaction as the creation of such a case. The case stays here until a person decides; it is never resolved by the passing of time.
|
|
- resolved: terminal; a decision was made and `decision` holds its outcome and public reason.
|
|
- closed: terminal; the case ended without a decision on the merits, for example as a duplicate of another case. The last history event says why.
|
|
enum:
|
|
- submitted
|
|
- in_review
|
|
- waiting_for_user
|
|
- waiting_expert
|
|
- resolved
|
|
- closed
|
|
SupportCaseObjectType:
|
|
type: string
|
|
description: |-
|
|
Kind of object that a case refers to. Each case type accepts only some of them. Adding a value is a contract change: generated clients reject an unknown value. Planned values: `vacancy` and `application` with the vacancies and protected applications of PRD FR16, and a profile finding with TASK-272.
|
|
|
|
- assessment_attempt: an assessment attempt of the caller.
|
|
- organization: an organization that the caller can see.
|
|
- invitation: an invitation addressed to the caller. Invitations are not in the contract yet; until they are, every invitation reference answers 404 not_found.
|
|
- support_case: another case of the caller, for example the resolved manual assessment that a grade appeal disputes.
|
|
enum:
|
|
- assessment_attempt
|
|
- organization
|
|
- invitation
|
|
- support_case
|
|
SupportCaseObjectReference:
|
|
type: object
|
|
description: Typed reference to an object that the case is about. The server checks on creation that the caller may see the object; an unknown object and an object of someone else both answer 404 not_found, so a reference never reveals whether another person's object exists. The case keeps only the type and the identifier, never a copy of the object.
|
|
additionalProperties: false
|
|
required:
|
|
- type
|
|
- id
|
|
properties:
|
|
type:
|
|
$ref: '#/components/schemas/SupportCaseObjectType'
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the object.
|
|
SupportCaseAttemptReference:
|
|
type: object
|
|
description: Reference to an assessment attempt of the caller. Any other object type fails validation.
|
|
additionalProperties: false
|
|
required:
|
|
- type
|
|
- id
|
|
properties:
|
|
type:
|
|
type: string
|
|
enum:
|
|
- assessment_attempt
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of an assessment attempt of the caller.
|
|
SupportCaseGradeAppealReference:
|
|
type: object
|
|
description: 'Reference to the category that a grade appeal disputes: an assessment attempt of the caller in a terminal state, or a `manual_assessment` case of the caller that is `resolved` with the outcome `assessed`, for a category that an expert assigned without an attempt. Any other object type fails validation.'
|
|
additionalProperties: false
|
|
required:
|
|
- type
|
|
- id
|
|
properties:
|
|
type:
|
|
type: string
|
|
enum:
|
|
- assessment_attempt
|
|
- support_case
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the attempt or the case.
|
|
SupportCaseComplaintReference:
|
|
type: object
|
|
description: 'Reference to the object of a complaint: an organization that the caller can see or an invitation addressed to the caller. Any other object type fails validation.'
|
|
additionalProperties: false
|
|
required:
|
|
- type
|
|
- id
|
|
properties:
|
|
type:
|
|
type: string
|
|
enum:
|
|
- organization
|
|
- invitation
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the organization or the invitation.
|
|
SupportCaseAssessmentTarget:
|
|
type: object
|
|
description: 'Category that the case is about: a specialization and a grade of the MVP scale. For a manual assessment it is the category to assess; for a support case it is optional context, for example the category whose test is not available.'
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- grade
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
SupportCaseComplaintReason:
|
|
type: string
|
|
description: |-
|
|
Ground of a complaint (PRD FR18).
|
|
|
|
- organization_conduct: conduct of the organization, for example fraudulent or abusive messages.
|
|
- offer_content: misleading or discriminatory content of an offer. Requires an invitation reference.
|
|
- salary_terms_violation: a breach of the salary terms of an offer. Requires an invitation reference.
|
|
- data_disclosure: a disclosure of the caller's personal data beyond what the caller granted.
|
|
- other: another ground, explained in the description.
|
|
enum:
|
|
- organization_conduct
|
|
- offer_content
|
|
- salary_terms_violation
|
|
- data_disclosure
|
|
- other
|
|
SupportCaseDescription:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 4000
|
|
pattern: \S
|
|
description: 'What the user asks or reports, as the user wrote it. It must contain at least one character that is not whitespace, so an empty or blank text fails validation with the pointer `/description`; it may contain line breaks. The pattern `\S` uses the ECMAScript white space set in both generated validators: ogen converts it to that set for Go, so a text made only of spaces such as U+00A0, U+2003, or U+3000 fails in the server schema and in Zod alike. ECMAScript white space omits U+0085 (NEL), which Go `unicode.IsSpace` includes; the server therefore also rejects a text whose every character is `unicode.IsSpace` or U+FEFF, with the same 400 and the pointer `/description`, while generated Zod accepts a text of NEL. Plain text; clients show it as text, never as HTML. The server stores it as written, shows it only to the author and to the staff of the queue, and never writes it to logs or notifications. Users should not put passwords or other people''s contact data into it. Generated Zod validators count UTF-16 code units, so the server stays authoritative for the length.'
|
|
examples:
|
|
- Тест на Senior пока недоступен, хотя я сдал Middle полгода назад.
|
|
SupportCasePublicText:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 4000
|
|
description: 'Text that support or a moderator wrote for the user: a public reply or the public reason of a decision. Plain text; clients show it as text, never as HTML. Internal notes of the staff are never public texts.'
|
|
SupportCaseCreateSupport:
|
|
type: object
|
|
description: New support case. Both the object reference and the assessment target are optional context; omit what does not apply.
|
|
additionalProperties: false
|
|
required:
|
|
- type
|
|
- description
|
|
properties:
|
|
type:
|
|
type: string
|
|
enum:
|
|
- support
|
|
description:
|
|
$ref: '#/components/schemas/SupportCaseDescription'
|
|
object:
|
|
$ref: '#/components/schemas/SupportCaseObjectReference'
|
|
assessment_target:
|
|
$ref: '#/components/schemas/SupportCaseAssessmentTarget'
|
|
SupportCaseCreateComplaint:
|
|
type: object
|
|
description: New complaint about an organization or an offer.
|
|
additionalProperties: false
|
|
required:
|
|
- type
|
|
- description
|
|
- complaint_reason
|
|
- object
|
|
properties:
|
|
type:
|
|
type: string
|
|
enum:
|
|
- complaint
|
|
description:
|
|
$ref: '#/components/schemas/SupportCaseDescription'
|
|
complaint_reason:
|
|
$ref: '#/components/schemas/SupportCaseComplaintReason'
|
|
object:
|
|
$ref: '#/components/schemas/SupportCaseComplaintReference'
|
|
SupportCaseCreateGradeAppeal:
|
|
type: object
|
|
description: 'New appeal of a category the caller received: the result of an own assessment attempt, or the outcome of an own resolved manual assessment.'
|
|
additionalProperties: false
|
|
required:
|
|
- type
|
|
- description
|
|
- object
|
|
properties:
|
|
type:
|
|
type: string
|
|
enum:
|
|
- grade_appeal
|
|
description:
|
|
$ref: '#/components/schemas/SupportCaseDescription'
|
|
object:
|
|
$ref: '#/components/schemas/SupportCaseGradeAppealReference'
|
|
SupportCaseCreateAnticheatAppeal:
|
|
type: object
|
|
description: New appeal of an anti-cheat review decision on an own assessment attempt.
|
|
additionalProperties: false
|
|
required:
|
|
- type
|
|
- description
|
|
- object
|
|
properties:
|
|
type:
|
|
type: string
|
|
enum:
|
|
- anticheat_appeal
|
|
description:
|
|
$ref: '#/components/schemas/SupportCaseDescription'
|
|
object:
|
|
$ref: '#/components/schemas/SupportCaseAttemptReference'
|
|
SupportCaseCreateManualAssessment:
|
|
type: object
|
|
description: 'New request for a manual assessment of a category by a subject expert. A prior attempt of the same category is optional context: a failed first test or no attempt at all never blocks the request.'
|
|
additionalProperties: false
|
|
required:
|
|
- type
|
|
- description
|
|
- assessment_target
|
|
properties:
|
|
type:
|
|
type: string
|
|
enum:
|
|
- manual_assessment
|
|
description:
|
|
$ref: '#/components/schemas/SupportCaseDescription'
|
|
assessment_target:
|
|
$ref: '#/components/schemas/SupportCaseAssessmentTarget'
|
|
object:
|
|
$ref: '#/components/schemas/SupportCaseAttemptReference'
|
|
SupportCaseCreate:
|
|
description: 'New case, selected by `type`. Each type fixes its required fields and the object types it accepts. The body carries only what the user states: the request has no status, decision, outcome, priority, response target, assignee, moderator, rubric, or contact field, and every variant rejects unknown fields, so a client cannot set any of them. The user and the account come only from the session.'
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SupportCaseCreateSupport'
|
|
- $ref: '#/components/schemas/SupportCaseCreateComplaint'
|
|
- $ref: '#/components/schemas/SupportCaseCreateGradeAppeal'
|
|
- $ref: '#/components/schemas/SupportCaseCreateAnticheatAppeal'
|
|
- $ref: '#/components/schemas/SupportCaseCreateManualAssessment'
|
|
SupportResponseTarget:
|
|
type: object
|
|
description: 'Operational target for the answer to the case (PRD FR18: a case gets a number, a status, and a response deadline). The server fixes it on creation from the product policy version and the configured business calendar; it is a goal of the team, not a deadline set by law. The target is met by the first public reply, a decision, or a closure for `support` and `complaint`, and only by a decision or a closure for the appeals and `manual_assessment`. Missing the target never closes the case, never decides it, and never changes a grade.'
|
|
additionalProperties: false
|
|
required:
|
|
- kind
|
|
- business_days
|
|
- due_at
|
|
- answered_at
|
|
- late
|
|
- policy_version
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- operational_goal
|
|
description: Nature of the target. `operational_goal` is a goal of the team that clients label as such, never as a legal deadline.
|
|
business_days:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 60
|
|
description: Length of the target in business days of the policy version, for example 5 for a manual assessment and 10 for an appeal.
|
|
due_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
answered_at:
|
|
description: Time the target was met, or null while it is not.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
late:
|
|
type: boolean
|
|
description: 'Whether the target was missed: it was met after `due_at`, or it is not met and `due_at` has passed at the time of the response.'
|
|
policy_version:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
description: Number of the `product` policy version that fixed the target.
|
|
SupportCaseDecisionOutcome:
|
|
type: string
|
|
description: |-
|
|
Outcome of a decision as the user sees it. The allowed outcomes depend on the case type.
|
|
|
|
- upheld: the appeal or the complaint is upheld in full.
|
|
- partially_upheld: the appeal or the complaint is upheld in part.
|
|
- not_upheld: the appeal or the complaint is not upheld.
|
|
- answered: a support case was answered.
|
|
- assessed: the expert finished a manual assessment. The resulting category is part of the assessment results, not of the case.
|
|
enum:
|
|
- upheld
|
|
- partially_upheld
|
|
- not_upheld
|
|
- answered
|
|
- assessed
|
|
SupportCaseDecision:
|
|
type: object
|
|
description: 'Decision visible to the user. It exists only once the case is `resolved`. It holds the outcome and the public reason; it never names the moderator or the expert and never contains internal notes, evidence, sanctions against another party, or risk signals. An upheld grade appeal never rewrites the original result: the corrected result is a separate decision of the assessment, and both stay in the history of that attempt.'
|
|
additionalProperties: false
|
|
required:
|
|
- outcome
|
|
- reason
|
|
- decided_at
|
|
properties:
|
|
outcome:
|
|
$ref: '#/components/schemas/SupportCaseDecisionOutcome'
|
|
reason:
|
|
$ref: '#/components/schemas/SupportCasePublicText'
|
|
decided_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
SupportCaseActorKind:
|
|
type: string
|
|
description: |-
|
|
Who caused an event, by kind only. A case never names or identifies a moderator, an expert, or a support agent; experts and moderators of TASK-316 and TASK-323 are `support` too. Adding a value is a contract change.
|
|
|
|
- user: the author of the case.
|
|
- support: a person of the support, moderation, or expert staff.
|
|
- system: the server, for example on creation or when it routes the case.
|
|
enum:
|
|
- user
|
|
- support
|
|
- system
|
|
SupportCaseEventKind:
|
|
type: string
|
|
description: |-
|
|
Kind of a public history event. Adding a value is a contract change. A reply of the author, planned with `waiting_for_user`, is a `reply` with the actor `user`, and a later revision of a decision (TASK-317) is another `decision` event, so neither needs a new value.
|
|
|
|
- created: the case was created; `status` is `submitted`. For an appeal or a manual assessment, a `status_changed` event of the actor `system` to `waiting_expert` follows in the same transaction.
|
|
- status_changed: the status changed; `status` is the new status, and `message` may explain a closure.
|
|
- reply: support replied; `message` holds the reply and `status` is null.
|
|
- decision: a decision was made; `status` is `resolved` and `message` holds the public reason.
|
|
enum:
|
|
- created
|
|
- status_changed
|
|
- reply
|
|
- decision
|
|
SupportCaseEvent:
|
|
type: object
|
|
description: One public event of the case history. Internal notes, assignments, evidence requests, and risk signals are never history events.
|
|
additionalProperties: false
|
|
required:
|
|
- sequence
|
|
- kind
|
|
- actor
|
|
- occurred_at
|
|
- status
|
|
- message
|
|
properties:
|
|
sequence:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
description: Position of the event in the history, starting at 1 and increasing by one.
|
|
kind:
|
|
$ref: '#/components/schemas/SupportCaseEventKind'
|
|
actor:
|
|
$ref: '#/components/schemas/SupportCaseActorKind'
|
|
occurred_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
status:
|
|
description: Status of the case after the event, or null for a reply.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SupportCaseStatus'
|
|
- type: 'null'
|
|
message:
|
|
description: Public text of the event, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SupportCasePublicText'
|
|
- type: 'null'
|
|
SupportCase:
|
|
type: object
|
|
description: Case of the current account. It contains what the author sent, the public processing state, and the public history. It never contains the identity of a moderator, an expert, or a support agent, internal notes, evidence, assessment answers or anti-cheat signals, risk signals, or contact data of another person. Fields that do not apply to the type are null.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- number
|
|
- type
|
|
- status
|
|
- description
|
|
- object
|
|
- assessment_target
|
|
- complaint_reason
|
|
- rubric_version
|
|
- response_target
|
|
- decision
|
|
- history
|
|
- created_at
|
|
- updated_at
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Case identifier.
|
|
number:
|
|
$ref: '#/components/schemas/SupportCaseNumber'
|
|
type:
|
|
$ref: '#/components/schemas/SupportCaseType'
|
|
status:
|
|
$ref: '#/components/schemas/SupportCaseStatus'
|
|
description:
|
|
$ref: '#/components/schemas/SupportCaseDescription'
|
|
object:
|
|
description: Object that the case is about, as sent on creation, or null when the case has none.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SupportCaseObjectReference'
|
|
- type: 'null'
|
|
assessment_target:
|
|
description: Category of a manual assessment, the optional category of a support case, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SupportCaseAssessmentTarget'
|
|
- type: 'null'
|
|
complaint_reason:
|
|
description: Ground of a complaint, or null for other types.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SupportCaseComplaintReason'
|
|
- type: 'null'
|
|
rubric_version:
|
|
type:
|
|
- integer
|
|
- 'null'
|
|
format: int32
|
|
minimum: 1
|
|
description: 'For a manual assessment, the version of the published rubric of the category that the server fixed on creation; the expert assesses with it, the same rubric as the automated assessment. Null for other types, and null for a manual assessment whose category has no published rubric yet: the case then waits in `waiting_expert` and the client says so instead of promising a date.'
|
|
response_target:
|
|
$ref: '#/components/schemas/SupportResponseTarget'
|
|
decision:
|
|
description: Decision once the case is `resolved`, otherwise null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SupportCaseDecision'
|
|
- type: 'null'
|
|
history:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 200
|
|
description: 'Every public event in the order it happened, starting with `created`; the list is never truncated. The server keeps a case within 200 events: it rejects a staff reply or status change that would leave no room for the terminal event, so a case always fits and can always be resolved or closed. Further correspondence goes into a new case that references this one as `support_case`.'
|
|
items:
|
|
$ref: '#/components/schemas/SupportCaseEvent'
|
|
created_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
updated_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
SupportCaseSummary:
|
|
type: object
|
|
description: 'Case in a list: the fields that a list of cases shows, without the description and the history. GetMySupportCase returns the full case.'
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- number
|
|
- type
|
|
- status
|
|
- object
|
|
- assessment_target
|
|
- response_target
|
|
- decision_outcome
|
|
- created_at
|
|
- updated_at
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Case identifier.
|
|
number:
|
|
$ref: '#/components/schemas/SupportCaseNumber'
|
|
type:
|
|
$ref: '#/components/schemas/SupportCaseType'
|
|
status:
|
|
$ref: '#/components/schemas/SupportCaseStatus'
|
|
object:
|
|
description: Object that the case is about, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SupportCaseObjectReference'
|
|
- type: 'null'
|
|
assessment_target:
|
|
description: Category of the case, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SupportCaseAssessmentTarget'
|
|
- type: 'null'
|
|
response_target:
|
|
$ref: '#/components/schemas/SupportResponseTarget'
|
|
decision_outcome:
|
|
description: Outcome of the decision once the case is `resolved`, otherwise null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SupportCaseDecisionOutcome'
|
|
- type: 'null'
|
|
created_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
updated_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
SupportCaseList:
|
|
type: object
|
|
description: One page of the cases of the current account, newest first by creation time.
|
|
additionalProperties: false
|
|
required:
|
|
- items
|
|
- page
|
|
properties:
|
|
items:
|
|
type: array
|
|
maxItems: 100
|
|
description: Case summaries of the page.
|
|
items:
|
|
$ref: '#/components/schemas/SupportCaseSummary'
|
|
page:
|
|
$ref: '#/components/schemas/PageInfo'
|
|
HealthResponse:
|
|
type: object
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
properties:
|
|
status:
|
|
type: string
|
|
enum:
|
|
- ok
|
|
parameters:
|
|
IdempotencyKey:
|
|
name: Idempotency-Key
|
|
in: header
|
|
required: true
|
|
description: |-
|
|
Client-generated key that makes a retried mutating command safe; a UUID v4 is recommended. The value is sent without quotes. The server scopes the key by caller and operation and fingerprints the request by method, path, and body.
|
|
|
|
Stored for 24 hours after the first request and replayed with the same status, headers, and body: the final 2xx outcome and final deterministic 4xx business outcomes of the command, such as 404 not_found or 409 state_conflict. A replay does not repeat the side effect.
|
|
|
|
Not stored, so a retry with the same key is evaluated again: 400 validation_failed, 413, and 415 for the request itself, 401 and 403, 409 idempotency_in_progress, 412 version_conflict and 428 precondition_required (nothing changed; read the resource again and retry), 422 idempotency_key_reused, 429, and every 5xx.
|
|
|
|
Order of checks: authentication (401), request validation (400, 413, 415), authorization (403), then the key. A stored or running request with a different fingerprint returns 422 idempotency_key_reused before any other key check; a running request with the same fingerprint returns 409 idempotency_in_progress; a stored outcome with the same fingerprint is replayed. Only after that does the server check If-Match, so a retry of a completed change replays its outcome instead of failing on the version it has just changed. After 24 hours the key may be accepted as new.
|
|
schema:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 255
|
|
pattern: ^[A-Za-z0-9._:-]+$
|
|
example: 5f0c6a8e-3b0e-4c47-9f4c-2a8f9e5d7c11
|
|
IfMatch:
|
|
name: If-Match
|
|
in: header
|
|
required: false
|
|
description: |-
|
|
Strong entity tag of the resource version the client last read, copied from the ETag response header. An operation that changes a versioned resource says in its own description that it requires If-Match.
|
|
|
|
On such an operation, a missing If-Match returns 428 precondition_required. An If-Match that does not equal the current ETag returns 412 version_conflict and changes nothing; read the resource again before retrying. Only one strong entity tag is accepted; weak tags, lists, and `*` fail validation with 400. The parameter is optional in the schema so that a missing header reaches the application, which answers 428.
|
|
schema:
|
|
type: string
|
|
minLength: 3
|
|
maxLength: 130
|
|
pattern: ^"[A-Za-z0-9._~-]{1,128}"$
|
|
example: '"v7"'
|
|
PageLimit:
|
|
name: limit
|
|
in: query
|
|
required: false
|
|
description: Maximum number of items in the page. The server may return fewer items even when more remain; use `page.has_more` to detect the end.
|
|
schema:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 100
|
|
default: 20
|
|
PageCursor:
|
|
name: cursor
|
|
in: query
|
|
required: false
|
|
description: Opaque `page.next_cursor` value from the previous page of the same listing. Omit it to read the first page. A malformed or foreign cursor returns 400 with code validation_failed.
|
|
schema:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 512
|
|
pattern: ^[A-Za-z0-9_-]+$
|
|
AssessmentAttemptId:
|
|
name: attempt_id
|
|
in: path
|
|
required: true
|
|
description: Identifier of an assessment attempt of the current candidate. An attempt of another candidate and an unknown identifier both answer 404 not_found, so identifiers cannot be enumerated.
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
example: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
|
OrganizationId:
|
|
name: org_id
|
|
in: path
|
|
required: true
|
|
description: Identifier of an organization. Access comes only from an active membership of the session account in this organization, checked by the server on every request; the identifier itself grants nothing. An organization without such a membership and an unknown identifier both answer 404 not_found, so organizations cannot be enumerated.
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
example: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
NeedId:
|
|
name: need_id
|
|
in: path
|
|
required: true
|
|
description: Identifier of a need of the organization in the path. A need of another organization and an unknown identifier both answer 404 not_found.
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
example: 01928f7a-2b3c-7d4e-9f5a-6b7c8d9e0f12
|
|
SupportCaseId:
|
|
name: case_id
|
|
in: path
|
|
required: true
|
|
description: Identifier of a case of the current account. A case of another account and an unknown identifier both answer 404 not_found, so identifiers cannot be enumerated.
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
example: 01928f7a-6e7f-7a8b-9c0d-1e2f3a4b5c6d
|
|
headers:
|
|
ETag:
|
|
description: Strong entity tag of the returned resource version. Send it back in If-Match to change this version.
|
|
required: true
|
|
schema:
|
|
type: string
|
|
minLength: 3
|
|
maxLength: 130
|
|
pattern: ^"[A-Za-z0-9._~-]{1,128}"$
|
|
example: '"v7"'
|
|
RetryAfter:
|
|
description: Number of seconds to wait before retrying the request.
|
|
schema:
|
|
type: integer
|
|
format: int32
|
|
minimum: 0
|
|
maximum: 86400
|
|
example: 30
|
|
SessionCookieSet:
|
|
description: Sets the session cookie `__Host-lincodex_session` with an opaque random value and the attributes `Path=/; Secure; HttpOnly; SameSite=Strict` and no Domain. The `__Host-` prefix makes the browser reject the cookie without Secure and Path=/ or with a Domain. Max-Age equals the remaining absolute session lifetime. The value is never readable by scripts or present in a body.
|
|
required: true
|
|
schema:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 4096
|
|
pattern: ^__Host-lincodex_session=
|
|
example: __Host-lincodex_session=opaque-session-value; Path=/; Max-Age=604800; Secure; HttpOnly; SameSite=Strict
|
|
SessionCookieCleared:
|
|
description: Removes the session cookie with an empty value, `Max-Age=0`, and the same attributes it was set with.
|
|
required: true
|
|
schema:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 4096
|
|
pattern: ^__Host-lincodex_session=
|
|
example: __Host-lincodex_session=; Path=/; Max-Age=0; Secure; HttpOnly; SameSite=Strict
|
|
CacheControlNoStore:
|
|
description: '`no-store`: the response carries account or session data that browsers and intermediaries must not keep.'
|
|
required: true
|
|
schema:
|
|
type: string
|
|
enum:
|
|
- no-store
|
|
example: no-store
|
|
responses:
|
|
ValidationFailed:
|
|
description: Parameters, headers, or the body do not match the contract, or the body violates a domain rule such as salary_from <= salary_to. The body has code validation_failed and lists the failing fields in `errors` with body or parameter pointers.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
validation_failed:
|
|
$ref: '#/components/examples/ValidationFailed'
|
|
domain_rule:
|
|
$ref: '#/components/examples/DomainValidationFailed'
|
|
Unauthenticated:
|
|
description: No valid session or credentials; code unauthenticated.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
unauthenticated:
|
|
$ref: '#/components/examples/Unauthenticated'
|
|
Forbidden:
|
|
description: The caller is authenticated but may not perform the operation; code forbidden.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
forbidden:
|
|
$ref: '#/components/examples/Forbidden'
|
|
NotFound:
|
|
description: The object does not exist or is not visible to the caller; code not_found. Missing and inaccessible objects are not distinguished.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
not_found:
|
|
$ref: '#/components/examples/NotFound'
|
|
IdempotencyInProgress:
|
|
description: A request with the same Idempotency-Key and the same fingerprint is still being processed; code idempotency_in_progress. Retry after the original request completes.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
idempotency_in_progress:
|
|
$ref: '#/components/examples/IdempotencyInProgress'
|
|
StateConflict:
|
|
description: The operation conflicts with the current state of the resource, for example a transition that is not allowed from its current status; code state_conflict.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
state_conflict:
|
|
$ref: '#/components/examples/StateConflict'
|
|
PreconditionFailed:
|
|
description: If-Match does not match the current resource version; code version_conflict. Nothing was changed.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
version_conflict:
|
|
$ref: '#/components/examples/VersionConflict'
|
|
PayloadTooLarge:
|
|
description: The request body exceeds the operation limit; code payload_too_large.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
payload_too_large:
|
|
$ref: '#/components/examples/PayloadTooLarge'
|
|
UnprocessableContent:
|
|
description: The Idempotency-Key was already used with a different request within 24 hours; code idempotency_key_reused. Nothing was changed.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
idempotency_key_reused:
|
|
$ref: '#/components/examples/IdempotencyKeyReused'
|
|
PreconditionRequired:
|
|
description: The operation requires If-Match; code precondition_required.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
precondition_required:
|
|
$ref: '#/components/examples/PreconditionRequired'
|
|
TooManyRequests:
|
|
description: Too many requests; code rate_limited.
|
|
headers:
|
|
Retry-After:
|
|
$ref: '#/components/headers/RetryAfter'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
rate_limited:
|
|
$ref: '#/components/examples/RateLimited'
|
|
Internal:
|
|
description: Unexpected server error; code internal.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
internal:
|
|
$ref: '#/components/examples/Internal'
|
|
NotImplemented:
|
|
description: The operation is declared in the contract but not implemented yet; code not_implemented.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
not_implemented:
|
|
$ref: '#/components/examples/NotImplemented'
|
|
Problem:
|
|
description: Any error response. The body is a Problem whose `status` equals the HTTP status and whose `code` is one of ProblemCode.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
validation_failed:
|
|
$ref: '#/components/examples/ValidationFailed'
|
|
not_found:
|
|
$ref: '#/components/examples/NotFound'
|
|
internal:
|
|
$ref: '#/components/examples/Internal'
|
|
not_implemented:
|
|
$ref: '#/components/examples/NotImplemented'
|
|
RegistrationValidationFailed:
|
|
description: 'The body does not match the contract or violates a registration rule: a password outside 15-128 characters or on the blocklist, or a consent text version that is not the current one; code validation_failed with body pointers. An email that already belongs to an account is never a validation error.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
validation_failed:
|
|
$ref: '#/components/examples/RegistrationValidationFailed'
|
|
EmailVerificationFailed:
|
|
description: The token cannot verify an email. Code verification_token_expired means the token is past its lifetime; verification_token_invalid means it is unknown, already used, or replaced by a newer link; validation_failed with the pointer `/token` means the token is malformed. Nothing was changed in any case.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
verification_token_expired:
|
|
$ref: '#/components/examples/VerificationTokenExpired'
|
|
verification_token_invalid:
|
|
$ref: '#/components/examples/VerificationTokenInvalid'
|
|
validation_failed:
|
|
$ref: '#/components/examples/VerificationTokenMalformed'
|
|
InvalidCredentials:
|
|
description: The email and password do not match an account; code invalid_credentials. An unknown email and a wrong password get the same response.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
invalid_credentials:
|
|
$ref: '#/components/examples/InvalidCredentials'
|
|
CsrfCheckFailed:
|
|
description: 'The request failed cross-site request protection: the X-CSRF-Token header is missing or does not belong to the session, or the Origin is not allowed; code csrf_check_failed. Nothing was changed.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
csrf_check_failed:
|
|
$ref: '#/components/examples/CsrfCheckFailed'
|
|
CsrfCheckFailedOrForbidden:
|
|
description: 'The request failed cross-site request protection, code csrf_check_failed: the X-CSRF-Token header is missing or does not belong to the session, or the Origin is not allowed. Or the account may not perform the operation, code forbidden. Nothing was changed in either case.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
csrf_check_failed:
|
|
$ref: '#/components/examples/CsrfCheckFailed'
|
|
forbidden:
|
|
$ref: '#/components/examples/Forbidden'
|
|
QuestionnaireValidationFailed:
|
|
description: 'The body does not match the contract or violates a questionnaire rule: more than two specializations, an unknown specialization, grade, or task language, an unknown field such as confirmed_grade, a repeated specialization, or a task language that the specialization''s published bank does not offer; code validation_failed with body pointers. When the decoder does not record the path of a nested field, the pointer is the whole body. Nothing was changed.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
too_many_specializations:
|
|
$ref: '#/components/examples/QuestionnaireTooManySpecializations'
|
|
unknown_grade:
|
|
$ref: '#/components/examples/QuestionnaireUnknownGrade'
|
|
repeated_specialization:
|
|
$ref: '#/components/examples/QuestionnaireRepeatedSpecialization'
|
|
QuestionnaireVersionConflict:
|
|
description: '`expected_version` is not the current questionnaire version; code version_conflict. Nothing was changed; read the questionnaire again before retrying.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
version_conflict:
|
|
$ref: '#/components/examples/VersionConflict'
|
|
AssessmentAttemptCreateValidationFailed:
|
|
description: 'The body does not match the contract or violates an assessment rule: an unknown specialization, grade, or task language, an unknown field such as mode or seed, a specialization that is not in the questionnaire, or a task language that the published bank does not offer; code validation_failed with body pointers. Nothing was created, and the outcome is not stored under the Idempotency-Key.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
specialization_not_in_questionnaire:
|
|
$ref: '#/components/examples/AssessmentSpecializationNotInQuestionnaire'
|
|
AssessmentAnswerValidationFailed:
|
|
description: 'The body does not match the contract or the answer does not fit the item: a format other than the item format, an option, element, or line that the item does not have, an order that is not a permutation of every element, more selections than the item allows, a text longer than the item allows, a language that the practice does not offer, or an unknown field such as score or duration; code validation_failed with body pointers. When the decoder does not record the path of a nested field, the pointer is the whole body. Nothing was stored, and the outcome is not stored under the Idempotency-Key.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
unknown_option:
|
|
$ref: '#/components/examples/AssessmentAnswerUnknownOption'
|
|
score_sent_by_client:
|
|
$ref: '#/components/examples/AssessmentAnswerUnknownField'
|
|
AssessmentCommandConflict:
|
|
description: 'The attempt state does not allow the answer at the current version, code state_conflict: the attempt is terminal or past its limits, the item is not the current item, the item already has a different answer, or the practice has a pending or finished verdict and the submission differs. Or a request with the same Idempotency-Key is still running, code idempotency_in_progress. Nothing was changed in either case; read the attempt to see its state.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
state_conflict:
|
|
$ref: '#/components/examples/AssessmentItemNotCurrent'
|
|
idempotency_in_progress:
|
|
$ref: '#/components/examples/IdempotencyInProgress'
|
|
AssessmentFinalizeConflict:
|
|
description: 'The attempt state does not allow finalize at the current version, code state_conflict: items or the main practice are unfinished, a practice verdict is pending, or the attempt ended as expired or insufficient_bank. The problem does not list the unfinished parts, because Problem allows no extension fields; the attempt shows them in `state`, `progress`, `current_item`, and `practices`. Or a request with the same Idempotency-Key is still running, code idempotency_in_progress. Nothing was changed in either case.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
state_conflict:
|
|
$ref: '#/components/examples/AssessmentFinalizeNotReady'
|
|
idempotency_in_progress:
|
|
$ref: '#/components/examples/IdempotencyInProgress'
|
|
AssessmentCreateConflict:
|
|
description: 'No attempt can start for the category now, code state_conflict: the specialization already has an active attempt, a retry or promotion interval or the attempt limit blocks the grade, or the bank is insufficient. GetMyAssessmentAvailability tells which, with the date when a blocked attempt opens. Or a request with the same Idempotency-Key is still running, code idempotency_in_progress. Nothing was created in either case.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
state_conflict:
|
|
$ref: '#/components/examples/AssessmentAttemptNotAvailable'
|
|
idempotency_in_progress:
|
|
$ref: '#/components/examples/IdempotencyInProgress'
|
|
AssessmentResultNotReady:
|
|
description: The attempt is still active, so it has no result yet; code state_conflict. The attempt state tells what remains to be done.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
state_conflict:
|
|
$ref: '#/components/examples/AssessmentResultNotReady'
|
|
AssessmentVersionConflict:
|
|
description: '`expected_version` is not the current attempt version; code version_conflict. Nothing was changed, and the outcome is not stored under the Idempotency-Key; read the attempt again before retrying.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
version_conflict:
|
|
$ref: '#/components/examples/AssessmentStaleVersion'
|
|
NeedValidationFailed:
|
|
description: 'The body does not match the contract or violates a need rule: an unknown field such as rec_score, members, or candidate_minimum, a field sent as a bare value instead of `{value, status}`, a list sent as null, an unknown specialization, grade, work format, currency, period, or tax basis, a salary bound that is not a positive multiple of 1000, a lower bound that is not below the upper one, a range width outside 10-40% of its midpoint, a repeated skill or task, status `extracted` with a value that is not the stored suggestion, a vacancy that is not a vacancy of the organization, or a missing or invalid expected_version; code validation_failed with body pointers. When the decoder does not record the path of a nested field, the pointer is the whole body. Nothing was changed, and the outcome is not stored under an Idempotency-Key.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
reversed_salary_range:
|
|
$ref: '#/components/examples/NeedSalaryRangeReversed'
|
|
equal_salary_bounds:
|
|
$ref: '#/components/examples/NeedSalaryEqualBounds'
|
|
salary_range_too_wide:
|
|
$ref: '#/components/examples/NeedSalaryRangeTooWide'
|
|
salary_without_tax_basis:
|
|
$ref: '#/components/examples/NeedSalaryWithoutTaxBasis'
|
|
extracted_value_mismatch:
|
|
$ref: '#/components/examples/NeedExtractedValueMismatch'
|
|
recommendation_score_sent_by_client:
|
|
$ref: '#/components/examples/NeedUnknownField'
|
|
missing_expected_version:
|
|
$ref: '#/components/examples/NeedMissingExpectedVersion'
|
|
NeedVersionConflict:
|
|
description: '`expected_version` is not the current need version; code version_conflict. Nothing was changed; read the need again before retrying.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
version_conflict:
|
|
$ref: '#/components/examples/NeedStaleVersion'
|
|
SupportCaseValidationFailed:
|
|
description: 'The body does not match the contract or violates a case rule: an empty or blank description, including one made only of Unicode spaces, an unknown case type, an object identifier that is not a UUID, an object type that the case type does not accept, a missing required field of the type, an unknown field such as status, decision, moderator, or priority, or a complaint reason that requires an invitation reference; code validation_failed with body pointers. When the decoder does not record the path of a nested field, the pointer is the whole body. Nothing was created, and the outcome is not stored under the Idempotency-Key.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
blank_description:
|
|
$ref: '#/components/examples/SupportCaseBlankDescription'
|
|
unknown_type:
|
|
$ref: '#/components/examples/SupportCaseUnknownType'
|
|
decision_sent_by_client:
|
|
$ref: '#/components/examples/SupportCaseUnknownField'
|
|
malformed_object_id:
|
|
$ref: '#/components/examples/SupportCaseMalformedReference'
|
|
complaint_reason_needs_invitation:
|
|
$ref: '#/components/examples/SupportCaseComplaintNeedsInvitation'
|
|
SupportCaseCreateConflict:
|
|
description: 'The referenced object does not allow this case now, code state_conflict: the attempt of a grade appeal has no result yet, the case referenced by a grade appeal is not a manual assessment resolved with the outcome assessed, the attempt of an anti-cheat appeal has no anti-cheat review decision, the attempt or the manual assessment already has an appeal of the same type, or an open case of the same type already exists for the category or the object. Or a request with the same Idempotency-Key is still running, code idempotency_in_progress. Nothing was created in either case.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
state_conflict:
|
|
$ref: '#/components/examples/SupportCaseAppealExists'
|
|
idempotency_in_progress:
|
|
$ref: '#/components/examples/IdempotencyInProgress'
|
|
securitySchemes:
|
|
sessionCookie:
|
|
type: apiKey
|
|
in: cookie
|
|
name: __Host-lincodex_session
|
|
description: |-
|
|
Opaque random session identifier issued by Login in an HttpOnly cookie with `Path=/; Secure; HttpOnly; SameSite=Strict` and no Domain. The server keeps the session in PostgreSQL, checks its expiry and revocation on every request, and derives the caller from it; operations never take a user identifier from the body. A session ends after an idle timeout of 24 hours or an absolute lifetime of 7 days, whichever comes first (planned values from configuration); activity extends only the idle deadline. A missing, unknown, expired, or revoked session answers 401 unauthenticated. Scripts cannot read the cookie, and it never appears in a body, log, or problem.
|
|
|
|
SameSite=Strict costs the single-page application nothing: its HTML is public and every API call is a same-origin fetch, which carries the cookie even right after a cross-site navigation, while cross-site requests never carry it.
|
|
sessionCsrf:
|
|
type: apiKey
|
|
in: header
|
|
name: X-CSRF-Token
|
|
description: 'Synchronizer token bound to the session, returned by Login and GetCurrentSession. Every mutating operation that requires a session also requires this header; a missing token or one that does not belong to the session answers 403 csrf_check_failed. The token is defense in depth next to SameSite=Strict and the Origin check: every unsafe request (POST, PUT, PATCH, DELETE), including public ones such as Login, must carry an Origin from the configured allowlist, otherwise it answers 403 csrf_check_failed; a missing Origin is rejected too, and the server never derives the allowed Origin from the Host header. Request bodies are accepted only as application/json, which a cross-site form cannot send. A backend test requires every unsafe operation that requires sessionCookie to require this scheme as well.'
|
|
examples:
|
|
ValidationFailed:
|
|
summary: Request parameters do not match the contract
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 0b6f6f0e-7c55-4c8f-a8d1-6f3f3b8f2a10
|
|
errors:
|
|
- in: query
|
|
pointer: /limit
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
- in: header
|
|
pointer: /Idempotency-Key
|
|
code: required
|
|
message: The value is required.
|
|
NotFound:
|
|
summary: Unknown route or invisible object
|
|
value:
|
|
type: urn:lincodex:problem:not_found
|
|
title: Resource not found
|
|
status: 404
|
|
code: not_found
|
|
detail: The requested resource does not exist.
|
|
trace_id: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f
|
|
Internal:
|
|
summary: Unexpected server error
|
|
value:
|
|
type: urn:lincodex:problem:internal
|
|
title: Internal server error
|
|
status: 500
|
|
code: internal
|
|
detail: The server could not complete the request.
|
|
trace_id: 9c0d1e2f-3a4b-4c5d-8e6f-7a8b9c0d1e2f
|
|
NotImplemented:
|
|
summary: Operation declared in the contract without an implementation
|
|
value:
|
|
type: urn:lincodex:problem:not_implemented
|
|
title: Operation not implemented
|
|
status: 501
|
|
code: not_implemented
|
|
detail: This operation is not available yet.
|
|
trace_id: 0d1e2f3a-4b5c-4d6e-9f7a-8b9c0d1e2f3a
|
|
DomainValidationFailed:
|
|
summary: The body violates a domain rule
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c
|
|
errors:
|
|
- in: body
|
|
pointer: /salary_from
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
RegistrationValidationFailed:
|
|
summary: The password is too short and the consent text is outdated
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 9b0c1d2e-3f4a-4b5c-8d6e-7f8a9b0c1d2e
|
|
errors:
|
|
- in: body
|
|
pointer: /password
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
- in: body
|
|
pointer: /consent_c1/text_version
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
CsrfCheckFailed:
|
|
summary: Missing or wrong CSRF token, or a disallowed Origin
|
|
value:
|
|
type: urn:lincodex:problem:csrf_check_failed
|
|
title: Cross-site request check failed
|
|
status: 403
|
|
code: csrf_check_failed
|
|
detail: Read the current session to get a new CSRF token and repeat the request.
|
|
trace_id: 8a9b0c1d-2e3f-4a4b-9c5d-6e7f8a9b0c1d
|
|
IdempotencyInProgress:
|
|
summary: The first request with this key is still running
|
|
value:
|
|
type: urn:lincodex:problem:idempotency_in_progress
|
|
title: Request with this idempotency key is in progress
|
|
status: 409
|
|
code: idempotency_in_progress
|
|
detail: Retry after the original request completes.
|
|
trace_id: 2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a
|
|
IdempotencyKeyReused:
|
|
summary: The same Idempotency-Key was sent with a different body
|
|
value:
|
|
type: urn:lincodex:problem:idempotency_key_reused
|
|
title: Idempotency key reused with a different request
|
|
status: 422
|
|
code: idempotency_key_reused
|
|
detail: Use a new Idempotency-Key for a different request.
|
|
trace_id: 4f5a6b7c-8d9e-4f0a-9b1c-3d4e5f6a7b8c
|
|
RateLimited:
|
|
summary: Too many requests
|
|
value:
|
|
type: urn:lincodex:problem:rate_limited
|
|
title: Too many requests
|
|
status: 429
|
|
code: rate_limited
|
|
detail: Wait for the Retry-After interval and retry.
|
|
trace_id: 6b7c8d9e-0f1a-4b2c-9d3e-5f6a7b8c9d0e
|
|
VerificationTokenExpired:
|
|
summary: The verification token is past its lifetime
|
|
value:
|
|
type: urn:lincodex:problem:verification_token_expired
|
|
title: Verification link expired
|
|
status: 400
|
|
code: verification_token_expired
|
|
detail: Request a new verification link.
|
|
trace_id: 4c5d6e7f-8a9b-4c0d-9e1f-2a3b4c5d6e7f
|
|
VerificationTokenInvalid:
|
|
summary: The verification token is unknown, used, or replaced
|
|
value:
|
|
type: urn:lincodex:problem:verification_token_invalid
|
|
title: Verification link is not valid
|
|
status: 400
|
|
code: verification_token_invalid
|
|
detail: Request a new verification link, or sign in if the address is already verified.
|
|
trace_id: 3b4c5d6e-7f8a-4b9c-8d0e-1f2a3b4c5d6e
|
|
VerificationTokenMalformed:
|
|
summary: The token from the link is malformed
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a
|
|
errors:
|
|
- in: body
|
|
pointer: /token
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
CandidateSession:
|
|
summary: Session of a verified candidate
|
|
value:
|
|
account:
|
|
id: 0f8b6c2e-4d1a-4e7b-9c3f-5a2d8e6b1c47
|
|
email: candidate@example.com
|
|
email_verified: true
|
|
scenario: candidate
|
|
onboarding_step: candidate_questionnaire
|
|
created_at: '2026-10-05T09:30:00Z'
|
|
csrf_token: Xk4pR9tV2mQ7wL1sN8bC5dF0gH3jZ6yA9eU2iO7rT4c
|
|
InvalidCredentials:
|
|
summary: Unknown email or wrong password
|
|
value:
|
|
type: urn:lincodex:problem:invalid_credentials
|
|
title: Invalid email or password
|
|
status: 401
|
|
code: invalid_credentials
|
|
detail: Check the email and password and try again.
|
|
trace_id: 6e7f8a9b-0c1d-4e2f-9a3b-4c5d6e7f8a9b
|
|
EmailNotVerified:
|
|
summary: Correct credentials for an unverified email
|
|
value:
|
|
type: urn:lincodex:problem:email_not_verified
|
|
title: Email not verified
|
|
status: 403
|
|
code: email_not_verified
|
|
detail: Confirm the email address with the link from the verification message.
|
|
trace_id: 7f8a9b0c-1d2e-4f3a-8b4c-5d6e7f8a9b0c
|
|
Unauthenticated:
|
|
summary: No valid session
|
|
value:
|
|
type: urn:lincodex:problem:unauthenticated
|
|
title: Authentication required
|
|
status: 401
|
|
code: unauthenticated
|
|
detail: Sign in and repeat the request.
|
|
trace_id: 4f2d1c3b-6a5e-4d7f-8b9a-0c1d2e3f4a5b
|
|
CandidateAccount:
|
|
summary: A verified candidate on the questionnaire step
|
|
value:
|
|
id: 0f8b6c2e-4d1a-4e7b-9c3f-5a2d8e6b1c47
|
|
email: candidate@example.com
|
|
email_verified: true
|
|
scenario: candidate
|
|
onboarding_step: candidate_questionnaire
|
|
created_at: '2026-10-05T09:30:00Z'
|
|
SpecializationCatalog:
|
|
summary: Illustrative MVP catalog with the Backend and Network Engineer banks published
|
|
description: Illustrative values. The directions, specializations, and grades follow the MVP scale; `test_availability` comes from the published task banks, so the grades and languages shown here are not a statement about any deployed bank.
|
|
value:
|
|
directions:
|
|
- code: development
|
|
title: Разработка
|
|
specializations:
|
|
- code: backend
|
|
title: Backend
|
|
test_availability:
|
|
status: available
|
|
grades:
|
|
- intern
|
|
- junior
|
|
- middle
|
|
- senior
|
|
task_languages:
|
|
- python
|
|
- go
|
|
note: null
|
|
- code: frontend
|
|
title: Frontend
|
|
test_availability:
|
|
status: in_development
|
|
grades: []
|
|
task_languages: []
|
|
note: Тест в разработке.
|
|
- code: mobile
|
|
title: Mobile
|
|
test_availability:
|
|
status: in_development
|
|
grades: []
|
|
task_languages: []
|
|
note: Тест в разработке.
|
|
- code: infrastructure
|
|
title: Инфраструктура
|
|
specializations:
|
|
- code: network_engineer
|
|
title: Сетевой инженер
|
|
test_availability:
|
|
status: available
|
|
grades:
|
|
- junior
|
|
- middle
|
|
task_languages: []
|
|
note: null
|
|
- code: devops_sre
|
|
title: DevOps/SRE
|
|
test_availability:
|
|
status: in_development
|
|
grades: []
|
|
task_languages: []
|
|
note: Тест в разработке.
|
|
- code: data
|
|
title: Данные
|
|
specializations:
|
|
- code: data_analyst
|
|
title: Аналитик данных
|
|
test_availability:
|
|
status: in_development
|
|
grades: []
|
|
task_languages: []
|
|
note: Тест в разработке.
|
|
- code: ds_ml
|
|
title: DS/ML
|
|
test_availability:
|
|
status: in_development
|
|
grades: []
|
|
task_languages: []
|
|
note: Тест в разработке.
|
|
- code: security
|
|
title: Безопасность
|
|
specializations:
|
|
- code: information_security
|
|
title: Информационная безопасность
|
|
test_availability:
|
|
status: in_development
|
|
grades: []
|
|
task_languages: []
|
|
note: Тест в разработке.
|
|
- code: quality
|
|
title: Качество
|
|
specializations:
|
|
- code: qa
|
|
title: QA
|
|
test_availability:
|
|
status: in_development
|
|
grades: []
|
|
task_languages: []
|
|
note: Тест в разработке.
|
|
grades:
|
|
- code: intern
|
|
title: Стажер
|
|
- code: junior
|
|
title: Junior
|
|
- code: middle
|
|
title: Middle
|
|
- code: senior
|
|
title: Senior
|
|
NewCandidateQuestionnaire:
|
|
summary: A candidate who has not saved the questionnaire yet
|
|
value:
|
|
version: 0
|
|
specializations: []
|
|
work_context: null
|
|
updated_at: null
|
|
BackendGoAndNetworkEngineerQuestionnaire:
|
|
summary: Backend with Go and Network Engineer, two independent specializations
|
|
description: Go is a task language of the `backend` specialization and PostgreSQL and gRPC are stack tags; none of them is a category. The candidate has two specializations, `backend` and `network_engineer`, each assessed independently. The self-assessed grades are claims; no confirmed grade appears.
|
|
value:
|
|
version: 3
|
|
specializations:
|
|
- specialization: backend
|
|
self_assessed_grade: middle
|
|
task_languages:
|
|
- go
|
|
stack:
|
|
- PostgreSQL
|
|
- gRPC
|
|
- Kafka
|
|
experience:
|
|
commercial_months: 30
|
|
academic_months: 12
|
|
- specialization: network_engineer
|
|
self_assessed_grade: junior
|
|
task_languages: []
|
|
stack:
|
|
- Cisco IOS
|
|
- BGP
|
|
experience: null
|
|
work_context:
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
updated_at: '2026-10-05T09:30:00Z'
|
|
Forbidden:
|
|
summary: The caller may not access the object
|
|
value:
|
|
type: urn:lincodex:problem:forbidden
|
|
title: Access denied
|
|
status: 403
|
|
code: forbidden
|
|
detail: You do not have permission to perform this operation.
|
|
trace_id: 7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d
|
|
BackendGoAndNetworkEngineerQuestionnaireUpdate:
|
|
summary: Save Backend with Go and Network Engineer over version 2
|
|
value:
|
|
expected_version: 2
|
|
specializations:
|
|
- specialization: backend
|
|
self_assessed_grade: middle
|
|
task_languages:
|
|
- go
|
|
stack:
|
|
- PostgreSQL
|
|
- gRPC
|
|
- Kafka
|
|
experience:
|
|
commercial_months: 30
|
|
academic_months: 12
|
|
- specialization: network_engineer
|
|
self_assessed_grade: junior
|
|
task_languages: []
|
|
stack:
|
|
- Cisco IOS
|
|
- BGP
|
|
experience: null
|
|
work_context:
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
QuestionnaireTooManySpecializations:
|
|
summary: Three specializations were sent; at most two are allowed
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
|
|
errors:
|
|
- in: body
|
|
pointer: /specializations
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
QuestionnaireUnknownGrade:
|
|
summary: A self-assessed grade outside the grade scale, such as lead
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 7d8e9f0a-1b2c-4d3e-9f4a-5b6c7d8e9f0a
|
|
errors:
|
|
- in: body
|
|
pointer: /specializations/0/self_assessed_grade
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
QuestionnaireRepeatedSpecialization:
|
|
summary: The same specialization was chosen twice
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 8e9f0a1b-2c3d-4e4f-8a5b-6c7d8e9f0a1b
|
|
errors:
|
|
- in: body
|
|
pointer: /specializations/1/specialization
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
VersionConflict:
|
|
summary: If-Match does not match the current version
|
|
value:
|
|
type: urn:lincodex:problem:version_conflict
|
|
title: Resource version conflict
|
|
status: 412
|
|
code: version_conflict
|
|
detail: The resource changed after it was read. Read it again before retrying.
|
|
trace_id: 3e4f5a6b-7c8d-4e9f-8a0b-2c3d4e5f6a7b
|
|
AssessmentAvailability:
|
|
summary: Backend open in demo_basic, Network Engineer blocked
|
|
description: Illustrative values. Backend junior and middle can start in the demo_basic mode, with their limits shown before the start; intern and senior have no sufficient bank. Network Engineer junior waits for its same-grade retry interval after an unconfirmed attempt.
|
|
value:
|
|
specializations:
|
|
- specialization: backend
|
|
confirmed_grade: null
|
|
active_attempt_id: null
|
|
grades:
|
|
- grade: intern
|
|
status: insufficient_bank
|
|
mode: null
|
|
available_at: null
|
|
time_limit_seconds: null
|
|
max_sessions: null
|
|
max_items: null
|
|
practice_required: null
|
|
- grade: junior
|
|
status: available
|
|
mode: demo_basic
|
|
available_at: null
|
|
time_limit_seconds: 259200
|
|
max_sessions: 2
|
|
max_items: 12
|
|
practice_required: false
|
|
- grade: middle
|
|
status: available
|
|
mode: demo_basic
|
|
available_at: null
|
|
time_limit_seconds: 259200
|
|
max_sessions: 2
|
|
max_items: 12
|
|
practice_required: false
|
|
- grade: senior
|
|
status: insufficient_bank
|
|
mode: null
|
|
available_at: null
|
|
time_limit_seconds: null
|
|
max_sessions: null
|
|
max_items: null
|
|
practice_required: null
|
|
- specialization: network_engineer
|
|
confirmed_grade: null
|
|
active_attempt_id: null
|
|
grades:
|
|
- grade: intern
|
|
status: insufficient_bank
|
|
mode: null
|
|
available_at: null
|
|
time_limit_seconds: null
|
|
max_sessions: null
|
|
max_items: null
|
|
practice_required: null
|
|
- grade: junior
|
|
status: cooldown
|
|
mode: demo_basic
|
|
available_at: '2026-11-12T00:00:00Z'
|
|
time_limit_seconds: 259200
|
|
max_sessions: 2
|
|
max_items: 10
|
|
practice_required: false
|
|
- grade: middle
|
|
status: available
|
|
mode: demo_basic
|
|
available_at: null
|
|
time_limit_seconds: 259200
|
|
max_sessions: 2
|
|
max_items: 10
|
|
practice_required: false
|
|
- grade: senior
|
|
status: insufficient_bank
|
|
mode: null
|
|
available_at: null
|
|
time_limit_seconds: null
|
|
max_sessions: null
|
|
max_items: null
|
|
practice_required: null
|
|
AssessmentAttemptCreateBackendJunior:
|
|
summary: Start Backend junior with Go tasks
|
|
value:
|
|
specialization: backend
|
|
target_grade: junior
|
|
task_language: go
|
|
AssessmentAttemptCreated:
|
|
summary: New demo_basic attempt with its first item
|
|
description: The server chose demo_basic from the published bank and fixed the policy, bank, and algorithm versions; creation started session 1. A retry of this create with the same Idempotency-Key and body within 24 hours replays exactly this 201 response and creates nothing; read the attempt for its current state. The attempt has no practice, because code practice stays disabled until the sandbox isolation is verified.
|
|
value:
|
|
id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
|
version: 1
|
|
specialization: backend
|
|
target_grade: junior
|
|
task_language: go
|
|
mode: demo_basic
|
|
state: in_progress
|
|
versions:
|
|
policy_version: 1
|
|
bank_version: backend-demo.2026-10.1
|
|
algorithm_version: basic-raw-score.1
|
|
started_at: '2026-10-08T10:00:00Z'
|
|
expires_at: '2026-10-11T10:00:00Z'
|
|
sessions:
|
|
used: 1
|
|
max: 2
|
|
idle_timeout_seconds: 1800
|
|
finished_at: null
|
|
progress:
|
|
answered_items: 0
|
|
max_items: 12
|
|
current_item:
|
|
id: 01928f7a-4a10-7b2c-9d3e-5f6a7b8c9d01
|
|
sequence: 1
|
|
prompt: Какой HTTP-статус вернуть, если запрос валиден, но ресурс находится в состоянии, не допускающем операцию?
|
|
content:
|
|
format: choice
|
|
multiple: false
|
|
options:
|
|
- id: k7
|
|
text: '400'
|
|
- id: p2
|
|
text: '404'
|
|
- id: x9
|
|
text: '409'
|
|
- id: c4
|
|
text: '500'
|
|
practices: []
|
|
AssessmentSpecializationNotInQuestionnaire:
|
|
summary: The specialization is not in the questionnaire
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 9f0a1b2c-3d4e-4f5a-8b6c-7d8e9f0a1b2c
|
|
errors:
|
|
- in: body
|
|
pointer: /specialization
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
AssessmentAttemptNotAvailable:
|
|
summary: No attempt can start for the category now
|
|
value:
|
|
type: urn:lincodex:problem:state_conflict
|
|
title: Resource state conflict
|
|
status: 409
|
|
code: state_conflict
|
|
detail: The resource is in a state that does not allow this operation.
|
|
trace_id: 3d4e5f6a-7b8c-4d9e-8f0a-1b2c3d4e5f6a
|
|
AssessmentAttemptResumed:
|
|
summary: Adaptive attempt resumed on its sixth item in session 2
|
|
description: A reload or a new session returns the same item instance with the same lines; nothing tells whether the five earlier answers were correct, and seed items look like scored ones. The retest started from the previous ability estimate of the specialization.
|
|
value:
|
|
id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
|
version: 7
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: python
|
|
mode: adaptive
|
|
state: in_progress
|
|
versions:
|
|
policy_version: 2
|
|
bank_version: backend.2026-11.3
|
|
algorithm_version: irt-1pl-eap.1
|
|
started_at: '2026-11-20T09:00:00Z'
|
|
expires_at: '2026-11-23T09:00:00Z'
|
|
sessions:
|
|
used: 2
|
|
max: 2
|
|
idle_timeout_seconds: 1800
|
|
finished_at: null
|
|
progress:
|
|
answered_items: 5
|
|
max_items: 25
|
|
current_item:
|
|
id: 01928f7b-2222-7a2b-8c3d-4e5f6a7b8c06
|
|
sequence: 6
|
|
prompt: Найдите строку, из-за которой соединения с базой данных не возвращаются в пул.
|
|
content:
|
|
format: find_error
|
|
syntax: python
|
|
max_selections: 1
|
|
lines:
|
|
- number: 1
|
|
text: 'def load_user(pool, user_id):'
|
|
- number: 2
|
|
text: ' conn = pool.acquire()'
|
|
- number: 3
|
|
text: ' row = conn.fetchrow(QUERY, user_id)'
|
|
- number: 4
|
|
text: ' if row is None:'
|
|
- number: 5
|
|
text: ' raise NotFound(user_id)'
|
|
- number: 6
|
|
text: ' pool.release(conn)'
|
|
- number: 7
|
|
text: ' return row'
|
|
practices:
|
|
- kind: main
|
|
item_id: 01928f7b-2222-7a2b-8c3d-4e5f6a7b8c99
|
|
status: not_started
|
|
submitted_at: null
|
|
verdict: null
|
|
failure_reason: null
|
|
AssessmentAttemptPracticePending:
|
|
summary: Item part finished, main practice not submitted
|
|
description: The adaptive stop rule ended the item part after 14 items, but no grade is decided until the main practice has a finished verdict. The current item is the practice; hidden checks and seeds are not part of it.
|
|
value:
|
|
id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
|
version: 16
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: python
|
|
mode: adaptive
|
|
state: practice_pending
|
|
versions:
|
|
policy_version: 2
|
|
bank_version: backend.2026-11.3
|
|
algorithm_version: irt-1pl-eap.1
|
|
started_at: '2026-11-20T09:00:00Z'
|
|
expires_at: '2026-11-23T09:00:00Z'
|
|
sessions:
|
|
used: 2
|
|
max: 2
|
|
idle_timeout_seconds: 1800
|
|
finished_at: null
|
|
progress:
|
|
answered_items: 14
|
|
max_items: 25
|
|
current_item:
|
|
id: 01928f7b-2222-7a2b-8c3d-4e5f6a7b8c99
|
|
sequence: 15
|
|
prompt: 'Реализуйте функцию merge_intervals: на вход список пар [start, end], на выход объединенные пересекающиеся интервалы, отсортированные по началу.'
|
|
content:
|
|
format: practice
|
|
languages:
|
|
- python
|
|
max_source_length: 20000
|
|
public_examples:
|
|
- input: '[[1,3],[2,6],[8,10]]'
|
|
expected_output: '[[1,6],[8,10]]'
|
|
practices:
|
|
- kind: main
|
|
item_id: 01928f7b-2222-7a2b-8c3d-4e5f6a7b8c99
|
|
status: not_started
|
|
submitted_at: null
|
|
verdict: null
|
|
failure_reason: null
|
|
AssessmentAttemptPracticeVerdictPending:
|
|
summary: Practice submitted, verdict pending in the sandbox
|
|
value:
|
|
id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
|
version: 17
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: python
|
|
mode: adaptive
|
|
state: practice_pending
|
|
versions:
|
|
policy_version: 2
|
|
bank_version: backend.2026-11.3
|
|
algorithm_version: irt-1pl-eap.1
|
|
started_at: '2026-11-20T09:00:00Z'
|
|
expires_at: '2026-11-23T09:00:00Z'
|
|
sessions:
|
|
used: 2
|
|
max: 2
|
|
idle_timeout_seconds: 1800
|
|
finished_at: null
|
|
progress:
|
|
answered_items: 14
|
|
max_items: 25
|
|
current_item: null
|
|
practices:
|
|
- kind: main
|
|
item_id: 01928f7b-2222-7a2b-8c3d-4e5f6a7b8c99
|
|
status: pending
|
|
submitted_at: '2026-11-20T10:05:00Z'
|
|
verdict: null
|
|
failure_reason: null
|
|
AssessmentAttemptSandboxFailed:
|
|
summary: Sandbox queue was full; the practice can be submitted again
|
|
description: The failure does not depend on the solution and consumes nothing. The practice item is current again; a resubmission, with the same or a different solution, queues it again and advances the version.
|
|
value:
|
|
id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
|
version: 18
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: python
|
|
mode: adaptive
|
|
state: practice_pending
|
|
versions:
|
|
policy_version: 2
|
|
bank_version: backend.2026-11.3
|
|
algorithm_version: irt-1pl-eap.1
|
|
started_at: '2026-11-20T09:00:00Z'
|
|
expires_at: '2026-11-23T09:00:00Z'
|
|
sessions:
|
|
used: 2
|
|
max: 2
|
|
idle_timeout_seconds: 1800
|
|
finished_at: null
|
|
progress:
|
|
answered_items: 14
|
|
max_items: 25
|
|
current_item:
|
|
id: 01928f7b-2222-7a2b-8c3d-4e5f6a7b8c99
|
|
sequence: 15
|
|
prompt: 'Реализуйте функцию merge_intervals: на вход список пар [start, end], на выход объединенные пересекающиеся интервалы, отсортированные по началу.'
|
|
content:
|
|
format: practice
|
|
languages:
|
|
- python
|
|
max_source_length: 20000
|
|
public_examples:
|
|
- input: '[[1,3],[2,6],[8,10]]'
|
|
expected_output: '[[1,6],[8,10]]'
|
|
practices:
|
|
- kind: main
|
|
item_id: 01928f7b-2222-7a2b-8c3d-4e5f6a7b8c99
|
|
status: failed
|
|
submitted_at: '2026-11-20T10:05:00Z'
|
|
verdict: null
|
|
failure_reason: sandbox_busy
|
|
AssessmentAttemptReadyToFinalize:
|
|
summary: Main practice verdict finished, ready to finalize
|
|
value:
|
|
id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
|
version: 20
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: python
|
|
mode: adaptive
|
|
state: ready_to_finalize
|
|
versions:
|
|
policy_version: 2
|
|
bank_version: backend.2026-11.3
|
|
algorithm_version: irt-1pl-eap.1
|
|
started_at: '2026-11-20T09:00:00Z'
|
|
expires_at: '2026-11-23T09:00:00Z'
|
|
sessions:
|
|
used: 2
|
|
max: 2
|
|
idle_timeout_seconds: 1800
|
|
finished_at: null
|
|
progress:
|
|
answered_items: 14
|
|
max_items: 25
|
|
current_item: null
|
|
practices:
|
|
- kind: main
|
|
item_id: 01928f7b-2222-7a2b-8c3d-4e5f6a7b8c99
|
|
status: finished
|
|
submitted_at: '2026-11-20T10:09:00Z'
|
|
verdict:
|
|
score: 2
|
|
max_score: 3
|
|
groups:
|
|
- group: 1
|
|
passed: true
|
|
- group: 2
|
|
passed: true
|
|
- group: 3
|
|
passed: false
|
|
failure_reason: null
|
|
AssessmentAttemptAdditionalPracticePending:
|
|
summary: Finalize offered an additional practice in the same attempt
|
|
description: 'The probability of reaching middle was in the band below confirmation, so finalize decided nothing yet: it appended an additional practice and returned the attempt instead of a result. The attempt keeps its time and session limits and spends no new attempt. Submitting the additional practice leads back to ready_to_finalize; finalizing now declines it and gives not_confirmed. A retry of that finalize with a new key and the old expected_version 20 answers 412 and cannot decline by accident.'
|
|
value:
|
|
id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
|
version: 21
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: python
|
|
mode: adaptive
|
|
state: additional_practice_pending
|
|
versions:
|
|
policy_version: 2
|
|
bank_version: backend.2026-11.3
|
|
algorithm_version: irt-1pl-eap.1
|
|
started_at: '2026-11-20T09:00:00Z'
|
|
expires_at: '2026-11-23T09:00:00Z'
|
|
sessions:
|
|
used: 2
|
|
max: 2
|
|
idle_timeout_seconds: 1800
|
|
finished_at: null
|
|
progress:
|
|
answered_items: 14
|
|
max_items: 25
|
|
current_item:
|
|
id: 01928f7b-2222-7a2b-8c3d-4e5f6a7b8ca0
|
|
sequence: 16
|
|
prompt: Реализуйте LRU-кеш с операциями get и put за O(1).
|
|
content:
|
|
format: practice
|
|
languages:
|
|
- python
|
|
max_source_length: 20000
|
|
public_examples:
|
|
- input: put(1,1); put(2,2); get(1); put(3,3); get(2)
|
|
expected_output: 1, -1
|
|
practices:
|
|
- kind: main
|
|
item_id: 01928f7b-2222-7a2b-8c3d-4e5f6a7b8c99
|
|
status: finished
|
|
submitted_at: '2026-11-20T10:09:00Z'
|
|
verdict:
|
|
score: 2
|
|
max_score: 3
|
|
groups:
|
|
- group: 1
|
|
passed: true
|
|
- group: 2
|
|
passed: true
|
|
- group: 3
|
|
passed: false
|
|
failure_reason: null
|
|
- kind: additional
|
|
item_id: 01928f7b-2222-7a2b-8c3d-4e5f6a7b8ca0
|
|
status: not_started
|
|
submitted_at: null
|
|
verdict: null
|
|
failure_reason: null
|
|
AssessmentAttemptCompleted:
|
|
summary: demo_basic attempt finalized; read the result next
|
|
value:
|
|
id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
|
version: 14
|
|
specialization: backend
|
|
target_grade: junior
|
|
task_language: go
|
|
mode: demo_basic
|
|
state: completed
|
|
versions:
|
|
policy_version: 1
|
|
bank_version: backend-demo.2026-10.1
|
|
algorithm_version: basic-raw-score.1
|
|
started_at: '2026-10-08T10:00:00Z'
|
|
expires_at: '2026-10-11T10:00:00Z'
|
|
sessions:
|
|
used: 1
|
|
max: 2
|
|
idle_timeout_seconds: 1800
|
|
finished_at: '2026-10-08T10:24:00Z'
|
|
progress:
|
|
answered_items: 12
|
|
max_items: 12
|
|
current_item: null
|
|
practices: []
|
|
AssessmentAttemptInsufficientBank:
|
|
summary: Attempt ended because the bank could not cover the blueprint
|
|
description: The bank ran out of unseen families for a required domain within the item limit. The attempt ended without a confirmed grade instead of repeating a family; its result has outcome not_determined, and it does not count against the retry rules.
|
|
value:
|
|
id: 01928f7c-5555-7a2b-8c3d-4e5f6a7b8c9d
|
|
version: 10
|
|
specialization: network_engineer
|
|
target_grade: middle
|
|
task_language: null
|
|
mode: adaptive
|
|
state: insufficient_bank
|
|
versions:
|
|
policy_version: 2
|
|
bank_version: network.2026-11.1
|
|
algorithm_version: irt-1pl-eap.1
|
|
started_at: '2026-11-21T12:00:00Z'
|
|
expires_at: '2026-11-24T12:00:00Z'
|
|
sessions:
|
|
used: 1
|
|
max: 2
|
|
idle_timeout_seconds: 1800
|
|
finished_at: '2026-11-21T12:31:00Z'
|
|
progress:
|
|
answered_items: 8
|
|
max_items: 25
|
|
current_item: null
|
|
practices:
|
|
- kind: main
|
|
item_id: 01928f7c-6666-7a2b-8c3d-4e5f6a7b8c99
|
|
status: not_started
|
|
submitted_at: null
|
|
verdict: null
|
|
failure_reason: null
|
|
AssessmentChoiceAnswer:
|
|
summary: Answer item 1 of version 1
|
|
value:
|
|
expected_version: 1
|
|
item_id: 01928f7a-4a10-7b2c-9d3e-5f6a7b8c9d01
|
|
answer:
|
|
format: choice
|
|
option_ids:
|
|
- x9
|
|
AssessmentOrderAnswer:
|
|
summary: Answer item 2 with every element once
|
|
value:
|
|
expected_version: 2
|
|
item_id: 01928f7a-4a10-7b2c-9d3e-5f6a7b8c9d02
|
|
answer:
|
|
format: order
|
|
element_ids:
|
|
- a7
|
|
- b1
|
|
- c2
|
|
- d3
|
|
AssessmentNumberAnswer:
|
|
summary: Number answer
|
|
value:
|
|
expected_version: 3
|
|
item_id: 01928f7a-4a10-7b2c-9d3e-5f6a7b8c9d03
|
|
answer:
|
|
format: number
|
|
number: 254
|
|
AssessmentStringAnswer:
|
|
summary: String answer
|
|
value:
|
|
expected_version: 4
|
|
item_id: 01928f7a-4a10-7b2c-9d3e-5f6a7b8c9d04
|
|
answer:
|
|
format: string
|
|
text: Retry-After
|
|
AssessmentFindErrorAnswer:
|
|
summary: Find-error answer for the resumed item
|
|
value:
|
|
expected_version: 7
|
|
item_id: 01928f7b-2222-7a2b-8c3d-4e5f6a7b8c06
|
|
answer:
|
|
format: find_error
|
|
line_numbers:
|
|
- 5
|
|
AssessmentConfigurationAnswer:
|
|
summary: Configuration answer
|
|
value:
|
|
expected_version: 7
|
|
item_id: 01928f7c-6666-7a2b-8c3d-4e5f6a7b8c07
|
|
answer:
|
|
format: configuration
|
|
config: |-
|
|
interface GigabitEthernet0/1
|
|
ip access-group BLOCK_TELNET in
|
|
AssessmentPracticeAnswer:
|
|
summary: Main practice solution
|
|
description: Sent with expected_version 16 for the first submission. After a failed verdict the client sends it again with the current version, such as 18 in AssessmentAttemptSandboxFailed; the same source then queues again.
|
|
value:
|
|
expected_version: 16
|
|
item_id: 01928f7b-2222-7a2b-8c3d-4e5f6a7b8c99
|
|
answer:
|
|
format: practice
|
|
language: python
|
|
source_code: |-
|
|
def merge_intervals(intervals):
|
|
result = []
|
|
for start, end in sorted(intervals):
|
|
if result and start <= result[-1][1]:
|
|
result[-1][1] = max(result[-1][1], end)
|
|
else:
|
|
result.append([start, end])
|
|
return result
|
|
AssessmentAnswerAccepted:
|
|
summary: Answer to item 1 stored; item 2 follows
|
|
description: The answer of AssessmentChoiceAnswer was stored and the version advanced from 1 to 2. The response does not say whether the answer was correct. A retry with the same Idempotency-Key replays exactly this response. Sending the same answer to item 1 again, even with a new key or the older expected_version 1, stores nothing and returns 200 with the current attempt. AssessmentOrderAnswer answers item 2 next.
|
|
value:
|
|
id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
|
version: 2
|
|
specialization: backend
|
|
target_grade: junior
|
|
task_language: go
|
|
mode: demo_basic
|
|
state: in_progress
|
|
versions:
|
|
policy_version: 1
|
|
bank_version: backend-demo.2026-10.1
|
|
algorithm_version: basic-raw-score.1
|
|
started_at: '2026-10-08T10:00:00Z'
|
|
expires_at: '2026-10-11T10:00:00Z'
|
|
sessions:
|
|
used: 1
|
|
max: 2
|
|
idle_timeout_seconds: 1800
|
|
finished_at: null
|
|
progress:
|
|
answered_items: 1
|
|
max_items: 12
|
|
current_item:
|
|
id: 01928f7a-4a10-7b2c-9d3e-5f6a7b8c9d02
|
|
sequence: 2
|
|
prompt: Упорядочите шаги обработки запроса в обработчике HTTP.
|
|
content:
|
|
format: order
|
|
elements:
|
|
- id: d3
|
|
text: Записать ответ
|
|
- id: a7
|
|
text: Проверить сессию
|
|
- id: c2
|
|
text: Выполнить операцию
|
|
- id: b1
|
|
text: Разобрать и проверить тело
|
|
practices: []
|
|
AssessmentAnswerUnknownOption:
|
|
summary: The selected option does not belong to the item
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 0a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d
|
|
errors:
|
|
- in: body
|
|
pointer: /answer/option_ids/0
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
AssessmentAnswerUnknownField:
|
|
summary: The client sent its own score
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 1b2c3d4e-5f6a-4b7c-8d8e-9f0a1b2c3d4e
|
|
errors:
|
|
- in: body
|
|
pointer: ''
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
AssessmentItemNotCurrent:
|
|
summary: The answered item is not the current item, or it already has another answer
|
|
value:
|
|
type: urn:lincodex:problem:state_conflict
|
|
title: Resource state conflict
|
|
status: 409
|
|
code: state_conflict
|
|
detail: The resource is in a state that does not allow this operation.
|
|
trace_id: 2c3d4e5f-6a7b-4c8d-9e9f-0a1b2c3d4e5f
|
|
AssessmentStaleVersion:
|
|
summary: The command carried a stale expected_version
|
|
description: Another tab or device changed the attempt after the client read version 1. Nothing was stored; the client reads the attempt again and continues from its current item. The repository answers a stale version with 412, not 409.
|
|
value:
|
|
type: urn:lincodex:problem:version_conflict
|
|
title: Resource version conflict
|
|
status: 412
|
|
code: version_conflict
|
|
detail: The resource changed after it was read. Read it again before retrying.
|
|
trace_id: 5f6a7b8c-9d0e-4f1a-8b2c-3d4e5f6a7b8c
|
|
AssessmentFinalization:
|
|
summary: Finalize version 20
|
|
value:
|
|
expected_version: 20
|
|
AssessmentFinalizeNotReady:
|
|
summary: Premature finalize; the problem does not list the unfinished parts
|
|
description: 'Problem has no extension fields. The client reads what remains from the attempt: `state`, `progress`, `current_item`, and `practices`.'
|
|
value:
|
|
type: urn:lincodex:problem:state_conflict
|
|
title: Resource state conflict
|
|
status: 409
|
|
code: state_conflict
|
|
detail: The resource is in a state that does not allow this operation.
|
|
trace_id: 6a7b8c9d-0e1f-4a2b-8c3d-4e5f6a7b8c9e
|
|
AssessmentDemoBasicResult:
|
|
summary: demo_basic result with a confirmed grade and no uncertainty
|
|
description: demo_basic computes no ability estimate, so `uncertainty` and `strength` are null rather than zero, and no percentile is shown. The pass mark comes from basic grading policy version 1, and the limitations name the uncalibrated thresholds, the demo bank, and the missing practice. A first confirmation is not a promotion, so the higher grade can be tested at once. The result never changes; a repeated finalize returns the completed attempt, and this read returns the same result.
|
|
value:
|
|
attempt_id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
|
specialization: backend
|
|
target_grade: junior
|
|
task_language: go
|
|
mode: demo_basic
|
|
versions:
|
|
policy_version: 1
|
|
bank_version: backend-demo.2026-10.1
|
|
algorithm_version: basic-raw-score.1
|
|
outcome: confirmed
|
|
not_determined_reason: null
|
|
confirmed_grade: junior
|
|
previous_confirmed_grade: null
|
|
strength: null
|
|
calibration_status: uncalibrated
|
|
limitations:
|
|
- uncalibrated_thresholds
|
|
- demo_bank
|
|
- practice_not_included
|
|
- unproctored
|
|
uncertainty: null
|
|
basic_score:
|
|
points: 9
|
|
max_points: 12
|
|
pass_points: 8
|
|
practices: []
|
|
gaps: []
|
|
durations:
|
|
items_seconds: 1260
|
|
practice_seconds: null
|
|
next_steps:
|
|
- action: take_higher_grade
|
|
grade: middle
|
|
available_at: null
|
|
decided_at: '2026-10-08T10:24:00Z'
|
|
AssessmentAdaptiveResult:
|
|
summary: Adaptive promotion confirmed with medium strength
|
|
description: Illustrative values, continuing AssessmentAttemptAdditionalPracticePending. The additional practice raised P_G to 0.84, in the medium band of the policy version, so the grade is confirmed with medium strength. The candidate already had junior, so this is a promotion, and the next one waits for the promotion interval. The thresholds are uncalibrated until the pilot.
|
|
value:
|
|
attempt_id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: python
|
|
mode: adaptive
|
|
versions:
|
|
policy_version: 2
|
|
bank_version: backend.2026-11.3
|
|
algorithm_version: irt-1pl-eap.1
|
|
outcome: confirmed
|
|
not_determined_reason: null
|
|
confirmed_grade: middle
|
|
previous_confirmed_grade: junior
|
|
strength: medium
|
|
calibration_status: uncalibrated
|
|
limitations:
|
|
- uncalibrated_thresholds
|
|
- unproctored
|
|
uncertainty:
|
|
theta: 0.62
|
|
standard_error: 0.24
|
|
interval_95:
|
|
low: 0.15
|
|
high: 1.09
|
|
p_grade: 0.84
|
|
basic_score: null
|
|
practices:
|
|
- kind: main
|
|
verdict:
|
|
score: 2
|
|
max_score: 3
|
|
groups:
|
|
- group: 1
|
|
passed: true
|
|
- group: 2
|
|
passed: true
|
|
- group: 3
|
|
passed: false
|
|
- kind: additional
|
|
verdict:
|
|
score: 3
|
|
max_score: 3
|
|
groups:
|
|
- group: 1
|
|
passed: true
|
|
- group: 2
|
|
passed: true
|
|
- group: 3
|
|
passed: true
|
|
gaps:
|
|
- domain: concurrency
|
|
title: Конкурентность
|
|
durations:
|
|
items_seconds: 1980
|
|
practice_seconds: 1500
|
|
next_steps:
|
|
- action: take_higher_grade
|
|
grade: senior
|
|
available_at: '2027-02-18T10:30:00Z'
|
|
decided_at: '2026-11-20T10:30:00Z'
|
|
AssessmentNotConfirmedResult:
|
|
summary: Adaptive attempt not confirmed after the additional practice
|
|
description: P_G stayed below 0.80 after the additional practice, so middle is not confirmed, and the candidate keeps no confirmed grade. After a failure, including the first test, junior can be tested at once; accepting junior on the evidence of this attempt is offered; middle opens again after the same-grade retry interval.
|
|
value:
|
|
attempt_id: 01928f7d-7777-7a2b-8c3d-4e5f6a7b8c9d
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: go
|
|
mode: adaptive
|
|
versions:
|
|
policy_version: 2
|
|
bank_version: backend.2026-11.3
|
|
algorithm_version: irt-1pl-eap.1
|
|
outcome: not_confirmed
|
|
not_determined_reason: null
|
|
confirmed_grade: null
|
|
previous_confirmed_grade: null
|
|
strength: null
|
|
calibration_status: uncalibrated
|
|
limitations:
|
|
- uncalibrated_thresholds
|
|
- unproctored
|
|
uncertainty:
|
|
theta: 0.21
|
|
standard_error: 0.25
|
|
interval_95:
|
|
low: -0.28
|
|
high: 0.7
|
|
p_grade: 0.62
|
|
basic_score: null
|
|
practices:
|
|
- kind: main
|
|
verdict:
|
|
score: 1
|
|
max_score: 3
|
|
groups:
|
|
- group: 1
|
|
passed: true
|
|
- group: 2
|
|
passed: false
|
|
- group: 3
|
|
passed: false
|
|
- kind: additional
|
|
verdict:
|
|
score: 1
|
|
max_score: 3
|
|
groups:
|
|
- group: 1
|
|
passed: true
|
|
- group: 2
|
|
passed: false
|
|
- group: 3
|
|
passed: false
|
|
gaps:
|
|
- domain: databases
|
|
title: Базы данных
|
|
durations:
|
|
items_seconds: 2100
|
|
practice_seconds: 1800
|
|
next_steps:
|
|
- action: take_lower_grade
|
|
grade: junior
|
|
available_at: null
|
|
- action: accept_lower_grade
|
|
grade: junior
|
|
available_at: null
|
|
- action: retake_same_grade
|
|
grade: middle
|
|
available_at: '2026-12-22T11:00:00Z'
|
|
decided_at: '2026-11-22T11:00:00Z'
|
|
AssessmentInsufficientBankResult:
|
|
summary: Attempt without a decision because the bank was insufficient
|
|
value:
|
|
attempt_id: 01928f7c-5555-7a2b-8c3d-4e5f6a7b8c9d
|
|
specialization: network_engineer
|
|
target_grade: middle
|
|
task_language: null
|
|
mode: adaptive
|
|
versions:
|
|
policy_version: 2
|
|
bank_version: network.2026-11.1
|
|
algorithm_version: irt-1pl-eap.1
|
|
outcome: not_determined
|
|
not_determined_reason: insufficient_bank
|
|
confirmed_grade: null
|
|
previous_confirmed_grade: junior
|
|
strength: null
|
|
calibration_status: uncalibrated
|
|
limitations:
|
|
- uncalibrated_thresholds
|
|
- unproctored
|
|
uncertainty: null
|
|
basic_score: null
|
|
practices: []
|
|
gaps: []
|
|
durations:
|
|
items_seconds: 1860
|
|
practice_seconds: null
|
|
next_steps: []
|
|
decided_at: '2026-11-21T12:31:00Z'
|
|
AssessmentResultNotReady:
|
|
summary: The attempt has no result yet
|
|
value:
|
|
type: urn:lincodex:problem:state_conflict
|
|
title: Resource state conflict
|
|
status: 409
|
|
code: state_conflict
|
|
detail: The resource is in a state that does not allow this operation.
|
|
trace_id: 4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b
|
|
NeedListPage:
|
|
summary: The last page of the needs of an organization
|
|
value:
|
|
items:
|
|
- id: 01928f7a-3c4d-7e5f-8a6b-7c8d9e0f1a23
|
|
vacancy_id: null
|
|
title: Backend в команду платежей
|
|
version: 2
|
|
specialization:
|
|
status: confirmed
|
|
value: backend
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: Ищем бэкенд-разработчика
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
grade:
|
|
status: confirmed
|
|
value: middle
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
readiness:
|
|
status: complete
|
|
missing_fields: []
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T09:20:00Z'
|
|
- id: 01928f7a-2b3c-7d4e-9f5a-6b7c8d9e0f12
|
|
vacancy_id: null
|
|
title: Junior Go-разработчик для сервиса уведомлений
|
|
version: 1
|
|
specialization:
|
|
status: confirmed
|
|
value: backend
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
grade:
|
|
status: confirmed
|
|
value: junior
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
readiness:
|
|
status: complete
|
|
missing_fields: []
|
|
created_at: '2026-10-06T08:15:00Z'
|
|
updated_at: '2026-10-06T08:15:00Z'
|
|
page:
|
|
has_more: false
|
|
next_cursor: null
|
|
NeedCreateManual:
|
|
summary: A manual need without a vacancy and without a text
|
|
description: Every field comes from the form as a decision with status confirmed, so every value is a confirmed manual value. There is no vacancy_id and no source_text; the domain is not given and stays unknown.
|
|
value:
|
|
title: Junior Go-разработчик для сервиса уведомлений
|
|
specialization:
|
|
value: backend
|
|
status: confirmed
|
|
grade:
|
|
value: junior
|
|
status: confirmed
|
|
required_skills:
|
|
- name: Go
|
|
status: confirmed
|
|
- name: PostgreSQL
|
|
status: confirmed
|
|
desired_skills:
|
|
- name: Docker
|
|
status: confirmed
|
|
tasks:
|
|
- text: Поддерживать и развивать сервис уведомлений
|
|
status: confirmed
|
|
work_formats:
|
|
value:
|
|
- hybrid
|
|
status: confirmed
|
|
location:
|
|
value: Москва
|
|
status: confirmed
|
|
salary:
|
|
value:
|
|
salary_from: 120000
|
|
salary_to: 160000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
status: confirmed
|
|
NeedCreateFromText:
|
|
summary: A need created from a pasted description
|
|
description: Only the title and the text are given. The server extracts suggestions from the text; nothing is confirmed until a member confirms it.
|
|
value:
|
|
title: Backend в команду платежей
|
|
source_text: 'Ищем бэкенд-разработчика в команду платежей. Обязательно: Go, PostgreSQL и Temporal. Желательно опыт с Kafka. Задачи: развивать сервис выплат и переводить его на событийную модель. Работа удаленно.'
|
|
NeedManualWithoutVacancy:
|
|
summary: A complete manual need without a vacancy, with computed recommendations
|
|
description: The need created by NeedCreateManual. Every value is confirmed and manual, so the quote, extracted_in_version, and extraction_version are null; the domain was not given and stays unknown with null value and source rather than a guessed one. The hybrid format makes the location critical, and it is confirmed. The range of 120000-160000 has a width of about 29%. The first category scores 0.75 with Overlap 1, a money share rounded down to 0.5, and Supply 0.5 for 15 available candidates. The other two have fewer than five candidates, so their score is null and Supply enters their ranking as 0. The recommendation values are illustrative and say nothing about a deployed policy or real candidates.
|
|
value:
|
|
id: 01928f7a-2b3c-7d4e-9f5a-6b7c8d9e0f12
|
|
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
vacancy_id: null
|
|
title: Junior Go-разработчик для сервиса уведомлений
|
|
source_text: null
|
|
version: 1
|
|
requirements_version: 1
|
|
requirements:
|
|
specialization:
|
|
status: confirmed
|
|
value: backend
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
grade:
|
|
status: confirmed
|
|
value: junior
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
required_skills:
|
|
- name: Go
|
|
taxonomy_code: go
|
|
status: confirmed
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
- name: PostgreSQL
|
|
taxonomy_code: postgresql
|
|
status: confirmed
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
desired_skills:
|
|
- name: Docker
|
|
taxonomy_code: docker
|
|
status: confirmed
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
tasks:
|
|
- text: Поддерживать и развивать сервис уведомлений
|
|
status: confirmed
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
domain:
|
|
status: unknown
|
|
value: null
|
|
source: null
|
|
work_formats:
|
|
status: confirmed
|
|
value:
|
|
- hybrid
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
location:
|
|
status: confirmed
|
|
value: Москва
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
salary:
|
|
status: confirmed
|
|
value:
|
|
salary_from: 120000
|
|
salary_to: 160000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
readiness:
|
|
status: complete
|
|
missing_fields: []
|
|
recommendations:
|
|
status: computed
|
|
requirements_version: 1
|
|
policy_version: 1
|
|
algorithm_version: need-rec.2026-10.1
|
|
computed_at: '2026-10-06T08:15:02Z'
|
|
categories:
|
|
- specialization: backend
|
|
grade: junior
|
|
score: 0.75
|
|
skill_overlap:
|
|
share: 1
|
|
covered_skills:
|
|
- Go
|
|
- PostgreSQL
|
|
- Docker
|
|
uncovered_skills: []
|
|
money:
|
|
status: computed
|
|
share: 0.5
|
|
supply: from_5_to_29
|
|
- specialization: backend
|
|
grade: intern
|
|
score: null
|
|
skill_overlap:
|
|
share: 0.8
|
|
covered_skills:
|
|
- Go
|
|
- PostgreSQL
|
|
uncovered_skills:
|
|
- Docker
|
|
money:
|
|
status: insufficient_data
|
|
share: null
|
|
supply: fewer_than_5
|
|
- specialization: devops_sre
|
|
grade: junior
|
|
score: null
|
|
skill_overlap:
|
|
share: 0.2
|
|
covered_skills:
|
|
- Docker
|
|
uncovered_skills:
|
|
- Go
|
|
- PostgreSQL
|
|
money:
|
|
status: insufficient_data
|
|
share: null
|
|
supply: fewer_than_5
|
|
created_at: '2026-10-06T08:15:00Z'
|
|
updated_at: '2026-10-06T08:15:00Z'
|
|
NeedExtractedWithUnknownSkill:
|
|
summary: A need from text with suggestions, an unknown skill, and missing fields
|
|
description: 'The need created by NeedCreateFromText. Every value found in the text is extracted with its quote from the text of version 1 and the extractor version, and waits for confirmation. Temporal is not in the skill taxonomy, so its taxonomy_code is null instead of a guessed code. The text names no grade, place, or salary: they stay unknown with null value and source, and the critical ones are listed in missing_fields with a question. Without a confirmed skill there are no recommendations yet.'
|
|
value:
|
|
id: 01928f7a-3c4d-7e5f-8a6b-7c8d9e0f1a23
|
|
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
vacancy_id: null
|
|
title: Backend в команду платежей
|
|
source_text: 'Ищем бэкенд-разработчика в команду платежей. Обязательно: Go, PostgreSQL и Temporal. Желательно опыт с Kafka. Задачи: развивать сервис выплат и переводить его на событийную модель. Работа удаленно.'
|
|
version: 1
|
|
requirements_version: 1
|
|
requirements:
|
|
specialization:
|
|
status: extracted
|
|
value: backend
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: Ищем бэкенд-разработчика
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
grade:
|
|
status: unknown
|
|
value: null
|
|
source: null
|
|
required_skills:
|
|
- name: Go
|
|
taxonomy_code: go
|
|
status: extracted
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: 'Обязательно: Go, PostgreSQL и Temporal'
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
- name: PostgreSQL
|
|
taxonomy_code: postgresql
|
|
status: extracted
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: 'Обязательно: Go, PostgreSQL и Temporal'
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
- name: Temporal
|
|
taxonomy_code: null
|
|
status: extracted
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: 'Обязательно: Go, PostgreSQL и Temporal'
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
desired_skills:
|
|
- name: Kafka
|
|
taxonomy_code: kafka
|
|
status: extracted
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: Желательно опыт с Kafka
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
tasks:
|
|
- text: Развивать сервис выплат и переводить его на событийную модель
|
|
status: extracted
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: 'Задачи: развивать сервис выплат и переводить его на событийную модель'
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
domain:
|
|
status: extracted
|
|
value: платежи
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: в команду платежей
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
work_formats:
|
|
status: extracted
|
|
value:
|
|
- remote
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: Работа удаленно
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
location:
|
|
status: unknown
|
|
value: null
|
|
source: null
|
|
salary:
|
|
status: unknown
|
|
value: null
|
|
source: null
|
|
readiness:
|
|
status: incomplete
|
|
missing_fields:
|
|
- field: specialization
|
|
reason: unconfirmed
|
|
question: Подтвердите специализацию, найденную в описании.
|
|
- field: grade
|
|
reason: unknown
|
|
question: 'Какой грейд нужен: Intern, Junior, Middle или Senior?'
|
|
- field: required_skills
|
|
reason: unconfirmed
|
|
question: Подтвердите обязательные навыки, найденные в описании.
|
|
- field: work_formats
|
|
reason: unconfirmed
|
|
question: Подтвердите формат работы, найденный в описании.
|
|
- field: salary
|
|
reason: unknown
|
|
question: 'Какую вилку в рублях вы предлагаете и в какой базе: на руки или до вычета НДФЛ?'
|
|
recommendations:
|
|
status: not_available
|
|
requirements_version: 1
|
|
policy_version: null
|
|
algorithm_version: null
|
|
computed_at: null
|
|
categories: []
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T09:00:00Z'
|
|
NeedSalaryRangeReversed:
|
|
summary: The lower salary bound is above the upper one
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 6b7c8d9e-0f1a-4b2c-8d3e-4f5a6b7c8d9f
|
|
errors:
|
|
- in: body
|
|
pointer: /salary/value/salary_to
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
NeedSalaryEqualBounds:
|
|
summary: Equal salary bounds; PRD FR13 requires salary_from < salary_to
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
|
|
errors:
|
|
- in: body
|
|
pointer: /salary/value/salary_to
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
NeedSalaryRangeTooWide:
|
|
summary: A salary range wider than 40% of its midpoint, such as 100000-200000
|
|
description: The width (200000 - 100000) / 150000 is about 67%. A range narrower than 10%, such as 100000-105000, gets the same answer.
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e
|
|
errors:
|
|
- in: body
|
|
pointer: /salary/value/salary_to
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
NeedSalaryWithoutTaxBasis:
|
|
summary: A salary range without its tax basis
|
|
description: The decoder does not record the path of a missing field in a nested object, so the pointer is the whole body.
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 7c8d9e0f-1a2b-4c3d-9e4f-5a6b7c8d9e0a
|
|
errors:
|
|
- in: body
|
|
pointer: ''
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
NeedExtractedValueMismatch:
|
|
summary: Status extracted with a value that is not the stored suggestion
|
|
description: A request may keep only the stored suggestion unconfirmed. To set another value, it sends status confirmed.
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 3c4d5e6f-7a8b-4c9d-8e0f-2a3b4c5d6e7f
|
|
errors:
|
|
- in: body
|
|
pointer: /grade/status
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
NeedUnknownField:
|
|
summary: The client sent its own recommendation score
|
|
description: Recommendations, membership, and candidate minimums are never request fields; any unknown field fails validation.
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 8d9e0f1a-2b3c-4d4e-8f5a-6b7c8d9e0f1b
|
|
errors:
|
|
- in: body
|
|
pointer: ''
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
NeedMissingExpectedVersion:
|
|
summary: A change without expected_version
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 9e0f1a2b-3c4d-4e5f-9a6b-7c8d9e0f1a2c
|
|
errors:
|
|
- in: body
|
|
pointer: /expected_version
|
|
code: required
|
|
message: The value is required.
|
|
NeedConfirmedAfterUpdate:
|
|
summary: The need after the confirmation, as version 2
|
|
description: Confirmed suggestions keep the origin extracted_from_text, their quotes, and extracted_in_version 1; the grade and the salary are manual. A confirmed requirement changed, so requirements_version is 2 as well. Kafka and the domain are still open suggestions; Kafka does not count in the recommendations, and Temporal stays without a taxonomy code, so no category covers it. The place is unknown but not critical, because the only format is remote. The range of 250000-320000 has a width of about 25%. Scores use the overlap 4/6, the money share rounded down to a quarter or the neutral 0.5, and the exact Supply of groups of five or more. The recommendation values are illustrative.
|
|
value:
|
|
id: 01928f7a-3c4d-7e5f-8a6b-7c8d9e0f1a23
|
|
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
vacancy_id: null
|
|
title: Backend в команду платежей
|
|
source_text: 'Ищем бэкенд-разработчика в команду платежей. Обязательно: Go, PostgreSQL и Temporal. Желательно опыт с Kafka. Задачи: развивать сервис выплат и переводить его на событийную модель. Работа удаленно.'
|
|
version: 2
|
|
requirements_version: 2
|
|
requirements:
|
|
specialization:
|
|
status: confirmed
|
|
value: backend
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: Ищем бэкенд-разработчика
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
grade:
|
|
status: confirmed
|
|
value: middle
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
required_skills:
|
|
- name: Go
|
|
taxonomy_code: go
|
|
status: confirmed
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: 'Обязательно: Go, PostgreSQL и Temporal'
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
- name: PostgreSQL
|
|
taxonomy_code: postgresql
|
|
status: confirmed
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: 'Обязательно: Go, PostgreSQL и Temporal'
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
- name: Temporal
|
|
taxonomy_code: null
|
|
status: confirmed
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: 'Обязательно: Go, PostgreSQL и Temporal'
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
desired_skills:
|
|
- name: Kafka
|
|
taxonomy_code: kafka
|
|
status: extracted
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: Желательно опыт с Kafka
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
tasks:
|
|
- text: Развивать сервис выплат и переводить его на событийную модель
|
|
status: extracted
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: 'Задачи: развивать сервис выплат и переводить его на событийную модель'
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
domain:
|
|
status: extracted
|
|
value: платежи
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: в команду платежей
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
work_formats:
|
|
status: confirmed
|
|
value:
|
|
- remote
|
|
source:
|
|
origin: extracted_from_text
|
|
quote: Работа удаленно
|
|
extracted_in_version: 1
|
|
extraction_version: need-rules.2026-10.1
|
|
location:
|
|
status: unknown
|
|
value: null
|
|
source: null
|
|
salary:
|
|
status: confirmed
|
|
value:
|
|
salary_from: 250000
|
|
salary_to: 320000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: gross
|
|
source:
|
|
origin: manual
|
|
quote: null
|
|
extracted_in_version: null
|
|
extraction_version: null
|
|
readiness:
|
|
status: complete
|
|
missing_fields: []
|
|
recommendations:
|
|
status: computed
|
|
requirements_version: 2
|
|
policy_version: 1
|
|
algorithm_version: need-rec.2026-10.1
|
|
computed_at: '2026-10-06T09:20:01Z'
|
|
categories:
|
|
- specialization: backend
|
|
grade: middle
|
|
score: 0.61
|
|
skill_overlap:
|
|
share: 0.67
|
|
covered_skills:
|
|
- Go
|
|
- PostgreSQL
|
|
uncovered_skills:
|
|
- Temporal
|
|
money:
|
|
status: computed
|
|
share: 0.25
|
|
supply: 30_or_more
|
|
- specialization: devops_sre
|
|
grade: middle
|
|
score: 0.45
|
|
skill_overlap:
|
|
share: 0.33
|
|
covered_skills:
|
|
- PostgreSQL
|
|
uncovered_skills:
|
|
- Go
|
|
- Temporal
|
|
money:
|
|
status: insufficient_data
|
|
share: null
|
|
supply: from_5_to_29
|
|
- specialization: backend
|
|
grade: senior
|
|
score: 0.41
|
|
skill_overlap:
|
|
share: 0.67
|
|
covered_skills:
|
|
- Go
|
|
- PostgreSQL
|
|
uncovered_skills:
|
|
- Temporal
|
|
money:
|
|
status: computed
|
|
share: 0
|
|
supply: from_5_to_29
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T09:20:00Z'
|
|
NeedUpdateConfirmSuggestions:
|
|
summary: Confirm suggestions, answer the missing fields, and keep two suggestions open
|
|
description: Sent over version 1 of NeedExtractedWithUnknownSkill. The specialization, the required skills, and the work format are sent with their stored values and status confirmed, so they are confirmed and keep their quotes. The grade and the salary are new manual values. Kafka and the domain are sent with status extracted and their stored values, so they stay open suggestions. The tasks are absent and stay unchanged.
|
|
value:
|
|
expected_version: 1
|
|
specialization:
|
|
value: backend
|
|
status: confirmed
|
|
grade:
|
|
value: middle
|
|
status: confirmed
|
|
required_skills:
|
|
- name: Go
|
|
status: confirmed
|
|
- name: PostgreSQL
|
|
status: confirmed
|
|
- name: Temporal
|
|
status: confirmed
|
|
desired_skills:
|
|
- name: Kafka
|
|
status: extracted
|
|
domain:
|
|
value: платежи
|
|
status: extracted
|
|
work_formats:
|
|
value:
|
|
- remote
|
|
status: confirmed
|
|
salary:
|
|
value:
|
|
salary_from: 250000
|
|
salary_to: 320000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: gross
|
|
status: confirmed
|
|
NeedStaleVersion:
|
|
summary: The change carried a stale expected_version
|
|
description: Another member or a server-side extraction changed the need after the client read it. Nothing was changed; the client reads the need again and reapplies its unsaved edits.
|
|
value:
|
|
type: urn:lincodex:problem:version_conflict
|
|
title: Resource version conflict
|
|
status: 412
|
|
code: version_conflict
|
|
detail: The resource changed after it was read. Read it again before retrying.
|
|
trace_id: 0f1a2b3c-4d5e-4f6a-8b7c-8d9e0f1a2b3d
|
|
SupportCaseListPage:
|
|
summary: The last page of the case summaries of the current account
|
|
value:
|
|
items:
|
|
- id: 01928f7a-6e7f-7a8b-9c0d-1e2f3a4b5c6d
|
|
number: SC-2026-000123
|
|
type: manual_assessment
|
|
status: waiting_expert
|
|
object: null
|
|
assessment_target:
|
|
specialization: backend
|
|
grade: middle
|
|
response_target:
|
|
kind: operational_goal
|
|
business_days: 5
|
|
due_at: '2026-10-13T09:00:00Z'
|
|
answered_at: null
|
|
late: false
|
|
policy_version: 1
|
|
decision_outcome: null
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T09:00:00Z'
|
|
- id: 01928f7a-5d6e-7f8a-9b0c-1d2e3f4a5b6c
|
|
number: SC-2026-000097
|
|
type: grade_appeal
|
|
status: resolved
|
|
object:
|
|
type: assessment_attempt
|
|
id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
|
assessment_target: null
|
|
response_target:
|
|
kind: operational_goal
|
|
business_days: 10
|
|
due_at: '2026-10-15T10:00:00Z'
|
|
answered_at: '2026-10-09T14:30:00Z'
|
|
late: false
|
|
policy_version: 1
|
|
decision_outcome: not_upheld
|
|
created_at: '2026-10-01T10:00:00Z'
|
|
updated_at: '2026-10-09T14:30:00Z'
|
|
- id: 01928f7a-4c5d-7e6f-8a9b-0c1d2e3f4a5b
|
|
number: SC-2026-000088
|
|
type: support
|
|
status: in_review
|
|
object: null
|
|
assessment_target:
|
|
specialization: backend
|
|
grade: senior
|
|
response_target:
|
|
kind: operational_goal
|
|
business_days: 3
|
|
due_at: '2026-10-02T12:00:00Z'
|
|
answered_at: '2026-10-01T09:20:00Z'
|
|
late: false
|
|
policy_version: 1
|
|
decision_outcome: null
|
|
created_at: '2026-09-29T12:00:00Z'
|
|
updated_at: '2026-10-01T09:20:00Z'
|
|
page:
|
|
has_more: false
|
|
next_cursor: null
|
|
SupportCaseCreateManualAssessment:
|
|
summary: A manual assessment of a category instead of the automated one
|
|
value:
|
|
type: manual_assessment
|
|
description: Прошу провести ручную оценку по рубрике Backend Middle вместо автоматической категоризации.
|
|
assessment_target:
|
|
specialization: backend
|
|
grade: middle
|
|
SupportCaseCreateGradeAppeal:
|
|
summary: An appeal of the result of an own attempt
|
|
value:
|
|
type: grade_appeal
|
|
description: Практика не засчитана, хотя решение проходит публичные примеры. Прошу пересмотреть результат.
|
|
object:
|
|
type: assessment_attempt
|
|
id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
|
SupportCaseCreateCategoryAppeal:
|
|
summary: An appeal of a category that a manual assessment assigned
|
|
description: The category came from an expert without an attempt, so the appeal references the resolved manual assessment case.
|
|
value:
|
|
type: grade_appeal
|
|
description: Эксперт подтвердил Junior, но в рубрике Middle я выполнил все обязательные пункты. Прошу пересмотреть.
|
|
object:
|
|
type: support_case
|
|
id: 01928f7a-6e7f-7a8b-9c0d-1e2f3a4b5c6d
|
|
SupportCaseCreateTestUnavailable:
|
|
summary: A support case about a test that is not available
|
|
value:
|
|
type: support
|
|
description: Тест на Senior пока недоступен, хотя я сдал Middle полгода назад.
|
|
assessment_target:
|
|
specialization: backend
|
|
grade: senior
|
|
SupportCaseCreateComplaint:
|
|
summary: A complaint about the salary terms of an offer
|
|
value:
|
|
type: complaint
|
|
description: После принятия приглашения компания предложила сумму ниже указанной вилки.
|
|
complaint_reason: salary_terms_violation
|
|
object:
|
|
type: invitation
|
|
id: 01928f7a-7f8a-7b9c-8d0e-1f2a3b4c5d6e
|
|
SupportCaseManualAssessmentCreated:
|
|
summary: A new manual assessment request with its rubric and response target
|
|
description: The server moves the case to waiting_expert in the same transaction as the creation, so the 201 already shows both events.
|
|
value:
|
|
id: 01928f7a-6e7f-7a8b-9c0d-1e2f3a4b5c6d
|
|
number: SC-2026-000123
|
|
type: manual_assessment
|
|
status: waiting_expert
|
|
description: Прошу провести ручную оценку по рубрике Backend Middle вместо автоматической категоризации.
|
|
object: null
|
|
assessment_target:
|
|
specialization: backend
|
|
grade: middle
|
|
complaint_reason: null
|
|
rubric_version: 3
|
|
response_target:
|
|
kind: operational_goal
|
|
business_days: 5
|
|
due_at: '2026-10-13T09:00:00Z'
|
|
answered_at: null
|
|
late: false
|
|
policy_version: 1
|
|
decision: null
|
|
history:
|
|
- sequence: 1
|
|
kind: created
|
|
actor: user
|
|
occurred_at: '2026-10-06T09:00:00Z'
|
|
status: submitted
|
|
message: null
|
|
- sequence: 2
|
|
kind: status_changed
|
|
actor: system
|
|
occurred_at: '2026-10-06T09:00:00Z'
|
|
status: waiting_expert
|
|
message: null
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T09:00:00Z'
|
|
SupportCaseBlankDescription:
|
|
summary: The description is empty or contains only whitespace
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d
|
|
errors:
|
|
- in: body
|
|
pointer: /description
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
SupportCaseUnknownType:
|
|
summary: The case type is not one of the five types
|
|
description: The variant is selected by `type` before a field path is recorded, so the pointer is the whole body.
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 6b7c8d9e-0f1a-4b2c-9d3e-4f5a6b7c8d9e
|
|
errors:
|
|
- in: body
|
|
pointer: ''
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
SupportCaseUnknownField:
|
|
summary: The client sent its own status or decision
|
|
description: Status, decision, moderator, priority, and response target are never request fields; any unknown field fails validation.
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f
|
|
errors:
|
|
- in: body
|
|
pointer: ''
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
SupportCaseMalformedReference:
|
|
summary: The object identifier is not a UUID
|
|
description: The decoder rejects the identifier inside the selected variant without recording its path, so the pointer is the whole body.
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 0f1a2b3c-4d5e-4f6a-9b7c-8d9e0f1a2b3c
|
|
errors:
|
|
- in: body
|
|
pointer: ''
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
SupportCaseComplaintNeedsInvitation:
|
|
summary: The complaint reason requires an invitation reference
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
trace_id: 8d9e0f1a-2b3c-4d4e-9f5a-6b7c8d9e0f1a
|
|
errors:
|
|
- in: body
|
|
pointer: /object/type
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
SupportCaseAppealExists:
|
|
summary: The attempt or the manual assessment already has an appeal of this type
|
|
value:
|
|
type: urn:lincodex:problem:state_conflict
|
|
title: Resource state conflict
|
|
status: 409
|
|
code: state_conflict
|
|
detail: The resource is in a state that does not allow this operation.
|
|
trace_id: 9e0f1a2b-3c4d-4e5f-8a6b-7c8d9e0f1a2b
|
|
SupportCaseGradeAppealResolved:
|
|
summary: An own grade appeal with a public decision
|
|
value:
|
|
id: 01928f7a-5d6e-7f8a-9b0c-1d2e3f4a5b6c
|
|
number: SC-2026-000097
|
|
type: grade_appeal
|
|
status: resolved
|
|
description: Практика не засчитана, хотя решение проходит публичные примеры. Прошу пересмотреть результат.
|
|
object:
|
|
type: assessment_attempt
|
|
id: 01928f7a-3c4d-7e5f-8a9b-0c1d2e3f4a5b
|
|
assessment_target: null
|
|
complaint_reason: null
|
|
rubric_version: null
|
|
response_target:
|
|
kind: operational_goal
|
|
business_days: 10
|
|
due_at: '2026-10-15T10:00:00Z'
|
|
answered_at: '2026-10-09T14:30:00Z'
|
|
late: false
|
|
policy_version: 1
|
|
decision:
|
|
outcome: not_upheld
|
|
reason: Решение не проходит вторую группу скрытых проверок на пустом входе. Исходный результат остается в силе; повторная попытка на тот же грейд откроется по обычным правилам.
|
|
decided_at: '2026-10-09T14:30:00Z'
|
|
history:
|
|
- sequence: 1
|
|
kind: created
|
|
actor: user
|
|
occurred_at: '2026-10-01T10:00:00Z'
|
|
status: submitted
|
|
message: null
|
|
- sequence: 2
|
|
kind: status_changed
|
|
actor: system
|
|
occurred_at: '2026-10-01T10:00:00Z'
|
|
status: waiting_expert
|
|
message: null
|
|
- sequence: 3
|
|
kind: status_changed
|
|
actor: support
|
|
occurred_at: '2026-10-07T08:15:00Z'
|
|
status: in_review
|
|
message: null
|
|
- sequence: 4
|
|
kind: decision
|
|
actor: support
|
|
occurred_at: '2026-10-09T14:30:00Z'
|
|
status: resolved
|
|
message: Решение не проходит вторую группу скрытых проверок на пустом входе. Исходный результат остается в силе; повторная попытка на тот же грейд откроется по обычным правилам.
|
|
created_at: '2026-10-01T10:00:00Z'
|
|
updated_at: '2026-10-09T14:30:00Z'
|
|
StateConflict:
|
|
summary: The resource state does not allow the operation
|
|
value:
|
|
type: urn:lincodex:problem:state_conflict
|
|
title: Resource state conflict
|
|
status: 409
|
|
code: state_conflict
|
|
detail: The resource is in a state that does not allow this operation.
|
|
trace_id: 1e2f3a4b-5c6d-4e7f-8a9b-0c1d2e3f4a5b
|
|
PayloadTooLarge:
|
|
summary: The request body exceeds the limit
|
|
value:
|
|
type: urn:lincodex:problem:payload_too_large
|
|
title: Request body too large
|
|
status: 413
|
|
code: payload_too_large
|
|
detail: Reduce the request body size and retry.
|
|
trace_id: 8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e
|
|
PreconditionRequired:
|
|
summary: The operation requires If-Match
|
|
value:
|
|
type: urn:lincodex:problem:precondition_required
|
|
title: Precondition required
|
|
status: 428
|
|
code: precondition_required
|
|
detail: Send If-Match with the ETag of the version you read.
|
|
trace_id: 5a6b7c8d-9e0f-4a1b-8c2d-4e5f6a7b8c9d
|