16725 lines
807 KiB
YAML
16725 lines
807 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: the questionnaire with the chosen specializations and self-assessed grades, and the private profile with full name, contacts, stack, roles, experience, soft skills, and desired terms. 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: organization
|
|
description: 'Organizations of employer accounts: the profile with its contacts and representatives, the verification level that only the server sets, and the memberships that give an account its role in an organization. The organization in the path is authoritative and is checked against an active membership on every request; no body carries a role, a membership, or a verification level.'
|
|
- name: need
|
|
description: 'Hiring needs of an organization: requirements with their confirmation 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: invitation
|
|
description: 'Invitations from an organization to one candidate: drafts with complete terms, immutable terms versions, sending, the candidate''s inbox, acceptance with the consent C4, structured declines, withdrawal and cancellation, and the contact grant. Contacts are readable only through an active grant, in a response separate from the terms.'
|
|
- name: privacy
|
|
description: 'Visibility of the current candidate: the publication of the anonymous card (a setting that refers to the C2 consent of the ledger and never replaces it), the search status that is not a consent, the organizations that the candidate hides the profile from, the preview of the card, and the history of the settings and of the accesses. Everything is closed by default, and no change makes a candidate more visible than they chose. No schema here reaches a contact, a name, or the lowest salary.'
|
|
- name: evidence
|
|
description: 'Skill evidence derived from confirmed assessment results: one fact per source event with its skills, trust level, attribution, date, and visibility. The candidate reads their own facts; an organization reads only the permitted projection of a currently visible card. Raw answers, failures, and anti-cheat data are never part of it.'
|
|
- name: notification
|
|
description: 'The in-platform inbox of the current account: references to delivered events with a read state, in the candidate cabinet and in the cabinet of one organization. The inbox is the source of the delivery state inside the platform and never depends on email. It stores no text: the content of every item is resolved from the current source for the recipient on each read, and an item whose source is gone or no longer visible stays in the list without content.'
|
|
- name: consent
|
|
description: 'The consent ledger of the current account: the independent consents C1-C5 with their text versions, sources, states, and revocations. The ledger is append-only and returns only the caller''s own records.'
|
|
- 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/me/consent-texts/{purpose}:
|
|
get:
|
|
operationId: GetMyConsentText
|
|
summary: Read a current consent text for account settings.
|
|
description: 'Requires a verified session. Returns the current published text and version of c1, c2, c3, or c5 so the user can read the exact text before an explicit settings grant. C4 is excluded: its text includes an organization snapshot and it is granted only during invitation acceptance. The response is private and is not cached.'
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- consent
|
|
parameters:
|
|
- name: purpose
|
|
in: path
|
|
required: true
|
|
description: Consent whose current text is requested.
|
|
schema:
|
|
$ref: '#/components/schemas/ConsentSettingsPurpose'
|
|
responses:
|
|
'200':
|
|
description: The current published consent text.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ConsentText'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
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 plus the pending registration credentials, 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 advances the registration version, replaces the C1 record, invalidates every earlier verification token, and queues a message with a new token carrying the pending password hash, scenario, and onboarding step. The account's saved credentials and scenario change only when the address owner confirms that token with its registration password, so a pre-registration with someone else's password cannot take over the account.
|
|
- 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 of the current registration answers verification_token_expired; an unknown, used, replaced, or superseded token answers verification_token_invalid, even when that token is also expired. Neither refusal changes anything. For both, the client offers a new link and sign-in, because the address may already be verified.
|
|
|
|
Confirmation also requires the password chosen for the registration that issued this token. A token from a replaced registration cannot apply another registration's password or scenario. The server checks the password against the token's pending password hash before consuming the token, then applies that token's password, scenario, and onboarding step only if the current registration's C1 consent matches its registration version. A wrong password or token without pending registration data answers verification_token_invalid and leaves the account and token unchanged.
|
|
|
|
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. Missing Origin, the special value `null`, or an Origin other than the configured public application origin answers csrf_check_failed.
|
|
security: []
|
|
tags:
|
|
- identity
|
|
parameters:
|
|
- name: Origin
|
|
in: header
|
|
required: false
|
|
description: The exact configured public application origin. This optional parameter is read by the server as empty when absent, so the operation answers csrf_check_failed rather than treating a missing Origin as an allowed request.
|
|
schema:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 2048
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/EmailVerificationRequest'
|
|
examples:
|
|
token:
|
|
summary: Token from the link and password chosen during registration
|
|
value:
|
|
token: q3Zt9b2Kx7LmP4vR8sW1yC6nD0fH5jA2eG9uI3oT7kE
|
|
password: correct horse battery staple
|
|
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/profile:
|
|
get:
|
|
operationId: GetMyProfile
|
|
summary: Read the private profile 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 profile yet gets 200 with version 0, every single field `unknown`, and empty lists rather than 404, so the client reads the version for the first save in the same way as for later ones and a missing profile is not an error state.
|
|
|
|
The profile is personal data that only its owner reads: full name, contacts, work history, and the lowest salary. It is a private resource and never an organization-visible one; organizations see a candidate through the anonymous card and, after an accepted invitation, through the contact grant, and no organization contract refers to this schema. The response is `Cache-Control: no-store`, and the server never writes its values to logs, metrics, URLs, or events.
|
|
|
|
Every value carries its confirmation state and provenance, and every claim has trust level 0. The self-assessed grade of a role is separate from `confirmed_categories`, which only assessment results establish and which no request writes. The profile needs no file, no ML extraction, and no FSP account.
|
|
|
|
`experience_overlaps` lists every pair of entries whose inclusive month ranges overlap. Its indices refer to this response's `experience` array and are scoped to the same `version`; each pair is either `needs_confirmation` or `confirmed`.
|
|
|
|
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- candidate
|
|
responses:
|
|
'200':
|
|
description: The private profile of the current candidate.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CandidateProfile'
|
|
examples:
|
|
new_candidate:
|
|
$ref: '#/components/examples/NewCandidateProfile'
|
|
backend_manual_with_suggestion:
|
|
$ref: '#/components/examples/BackendCandidateProfile'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
put:
|
|
operationId: SaveMyProfile
|
|
summary: Replace the private profile 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 of every field and list; see CandidateProfileUpdate for the decisions that it carries. It replaces the stored profile as a whole.
|
|
|
|
Every field is optional in substance: a profile can be saved with any subset filled and the rest null or empty, so no value requires a resume, the ML service, an FSP account, or any other file or link. A successful save advances an account whose current onboarding step is candidate_profile to candidate_questionnaire, including a no-op save; it never moves a later step backwards. This update is atomic with the profile and its history.
|
|
|
|
Provenance is the server's: a value typed in the form is `manual`, confirming a stored suggestion keeps its origin, and every claim keeps trust level 0. The body has no origin, trust level, confirmation time, confirmed grade, or category, and unknown fields are rejected. A self-assessed grade never becomes a confirmed grade or a category.
|
|
|
|
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, and the client reads the profile again and reapplies its edits, so a concurrent edit from another tab or device is never lost silently. 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; the status and code are the same as for a failed If-Match.
|
|
|
|
The operation needs no Idempotency-Key: it replaces the whole state and is idempotent. A body whose values equal the stored ones, with the same decisions, changes nothing, keeps the version, and answers 200 with the current profile even when `expected_version` is older, so a retry after a lost response of a successful save succeeds instead of failing with 412. A version above the current one never existed and always answers 412 version_conflict, even for an unchanged body.
|
|
|
|
The save replaces the stored claims as a whole. A suggestion that an import stored and that the client did not render and send back with the decision `extracted` is dropped by the save; a client therefore sends every suggestion that it received, and a client that read an older version gets 412 instead of silently dropping a suggestion it never saw.
|
|
|
|
Experience periods use inclusive calendar months. An overlap is allowed only when `confirmed_parallel_periods` explicitly acknowledges that the two date ranges are genuine parallel work. Each acknowledgement names two distinct experience indices and repeats their exact normalized `started_on` and `ended_on` values; both indices and periods must match the submitted array and `expected_version`. A new or changed period needs an acknowledgement in that PUT. The server carries an earlier acknowledgement only when the same two indices still contain the same dates; reordering or changing either date requires a new acknowledgement. Editing other experience fields does not invalidate a matching date-pair acknowledgement. A missing acknowledgement answers 400 with pointers to the period fields and changes nothing. Duplicate, out-of-range, self, and non-overlapping acknowledgements are invalid.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden for an employer), a version above the current one (412), domain rules that depend on the body alone (400), then the rules that depend on the stored claims against the version: a decision `extracted` for a value that is not a stored suggestion answers 412 when `expected_version` is stale, because another save may have confirmed that value, and 400 when it is current; an unchanged body (200); any other change over a stale version (412). The schema rejects an unknown field, an unknown specialization or grade, a phone number outside E.164, a Telegram username without the leading @, an email that is not an address, a month outside `YYYY-MM`, a salary that is not a positive multiple of 1000, and more items than a list allows. The server also rejects a repeated tag, skill, or role specialization, a period that ends before it starts or lies in the future, a changed overlap without explicit confirmation, and a decision `extracted` for a value that is not a stored suggestion, with 400 validation_failed and pointers to the items, for example `/roles/1/specialization` or `/stack/1/status`. Error bodies never repeat a submitted value.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- candidate
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CandidateProfileUpdate'
|
|
examples:
|
|
backend_manual:
|
|
$ref: '#/components/examples/BackendCandidateProfileUpdate'
|
|
responses:
|
|
'200':
|
|
description: The saved profile with its new version, or the current profile when the body changes nothing.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CandidateProfile'
|
|
examples:
|
|
backend_manual_with_suggestion:
|
|
$ref: '#/components/examples/BackendCandidateProfile'
|
|
'400':
|
|
$ref: '#/components/responses/ProfileValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'412':
|
|
$ref: '#/components/responses/ProfileVersionConflict'
|
|
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-results:
|
|
get:
|
|
operationId: ListMyAssessmentResults
|
|
summary: List immutable real assessment results of the current candidate.
|
|
description: |-
|
|
Requires a candidate session. Returns only completed root and corrective results owned by this candidate, newest first by decided_at and attempt_id. demo_express training results never appear. The cursor is opaque and bound to this candidate and listing; a malformed or foreign cursor returns 400 validation_failed.
|
|
|
|
A v2 result includes the category decision captured when that attempt ended, including the confirmed grade then in force. Legacy v1 results omit category_decision because a later category must not be projected backward. Later policy, bank, review, or category changes do not alter either result. Employers cannot read this history; their separate projection contains only the current permitted category and no answers.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- assessment
|
|
parameters:
|
|
- name: limit
|
|
in: query
|
|
required: false
|
|
description: Maximum number of results per page.
|
|
schema:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 50
|
|
default: 20
|
|
- $ref: '#/components/parameters/PageCursor'
|
|
responses:
|
|
'200':
|
|
description: One owner-scoped page of immutable results.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentResultHistoryPage'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/assessment-signal-notice:
|
|
get:
|
|
operationId: GetMyAssessmentSignalNotice
|
|
summary: Read whether the current candidate acknowledged the signal notice.
|
|
description: |-
|
|
Requires the session cookie of a candidate account with a confirmed email; the candidate comes from the session. Returns the notice version that the server requires now and whether this candidate acknowledged it. The notice lists the signals that are collected during a real assessment attempt and states that images, sound, and clipboard contents are not collected. Client signals are the time away from the tab or window, copy, paste and cut with a size only, and exits from fullscreen mode. Server signals are the response time of each item measured by the server, a change of network address during the attempt, parallel sessions, and the comparison of answers to variants of the same task by candidates. The server stores for these only one-way keyed digests: it stores no network address, no session token, and no answer text. Client signals are stored only while the C3 consent is current. The client shows it before a real attempt starts and does not start the attempt until the notice is acknowledged.
|
|
|
|
The acknowledgement is stored on the server per account and notice version, so it survives a reload and a new browser. It is not a consent and never changes C3: the signal operation still requires a current C3 consent, and an unacknowledged notice does not make that operation fail. The demo_express training mode collects no signals and needs no acknowledgement.
|
|
|
|
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account or an unconfirmed email answers 403 forbidden.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- assessment
|
|
responses:
|
|
'200':
|
|
description: The notice version and the acknowledgement state of the current candidate.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentSignalNotice'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
put:
|
|
operationId: AcknowledgeMyAssessmentSignalNotice
|
|
summary: Record that the current candidate read the signal notice.
|
|
description: |-
|
|
Requires the session cookie of a candidate account with a confirmed email, the CSRF token of that session in X-CSRF-Token, and an allowed Origin. The body carries the notice version the candidate was shown. The server stores the acknowledgement for the account and that version; the response carries the server time of the first acknowledgement.
|
|
|
|
The operation needs no Idempotency-Key: it is idempotent. Repeating it for an acknowledged version changes nothing, keeps the first time, and answers 200, so a retry after a lost response succeeds. A version other than the one the server requires answers 409 state_conflict and stores nothing; the client reads the notice again.
|
|
|
|
The acknowledgement is not a consent. It does not grant, replace, or hide C3, and it does not affect the signal operation or any score, category, or quota. The body carries no signal, answer, or clipboard data.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account (403 forbidden), then the version (409).
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- assessment
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentSignalNoticeAcknowledgement'
|
|
responses:
|
|
'200':
|
|
description: The stored acknowledgement, new or repeated.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentSignalNotice'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'409':
|
|
$ref: '#/components/responses/StateConflict'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/assessment-attempts:
|
|
post:
|
|
operationId: CreateMyAssessmentAttempt
|
|
summary: Start a real, corrective, or training 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 request is one of three disjoint shapes. A real assessment names a specialization, target grade, and task language; the server picks `demo_basic` or `adaptive` and fixes the policy, bank, and algorithm versions, limits, and item variants. A corrective real assessment also names `root_attempt_id`; the server verifies the lower-grade chain and reuses its fixed quota and deadline. The client never sends a real mode, a seed, a version, or a chain deadline. Explicit `demo_express` starts a separate interactive training run that lasts 3 to 5 minutes, has no category or target grade, and creates no qualification evidence or percentile. Creation starts session 1. The self-assessed grade only chooses where a real 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 real attempt. A new root attempt cannot start while one is active, during a retry or promotion interval, past the root quota, or when the bank is insufficient; each such preflight refusal answers 409 state_conflict and creates nothing or consumes no root slot. Starting a root attempt reserves one slot in the root quota. A corrective attempt must reference its root, target a strictly lower grade not already attempted in that chain, and remain inside the root's fixed quota and deadline (72 hours from the root start in the current policy). It gets its own item, practice, and session limits, but spends no additional root slot and cannot reset the chain deadline or any 30/90-day timer. After a failure, including the first test, a lower grade can be tested at once. An expired or incomplete attempt does not create a free new chain; an insufficient bank or sandbox failure does not grant another root slot. `demo_express` is outside real-assessment availability, quotas, retry intervals, and qualification history.
|
|
|
|
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 work command. For a corrective attempt, `expires_at` is no later than the root's immutable `chain_deadline`. Within these limits the attempt is also bounded by the item limit of its 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'
|
|
corrective_backend_junior_go:
|
|
summary: Start a lower-grade assessment inside an existing correction chain
|
|
value:
|
|
kind: corrective
|
|
specialization: backend
|
|
target_grade: junior
|
|
task_language: go
|
|
root_attempt_id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
|
demo_express:
|
|
summary: Start a short educational training run
|
|
value:
|
|
kind: demo_express
|
|
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'
|
|
corrective_created:
|
|
$ref: '#/components/examples/AssessmentCorrectiveAttemptCreated'
|
|
demo_express_created:
|
|
$ref: '#/components/examples/AssessmentExpressAttemptCreated'
|
|
'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 an assessment attempt of the current candidate.
|
|
description: |-
|
|
Requires the session cookie of a candidate account. Returns the stored attempt projection with its state, fixed versions, time and session limits, progress, the item to answer now, and the practices. This GET is read-only: it never starts or resumes a work session, consumes session quota, advances the version, or commits expiry or finalization. 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. After `idle_timeout_seconds`, the candidate explicitly starts or resumes work with StartMyAssessmentAttemptSession. 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.
|
|
|
|
When the deadline passes, this read still returns the stored state and deadline. A command or background transition commits the due outcome; if the stored state is still active, GetMyAssessmentResult answers 409 until that transition is committed. The client polls this operation while a practice is `pending`, but polling alone never changes attempt state.
|
|
|
|
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, qualification evidence, or 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}/sessions:
|
|
post:
|
|
operationId: StartMyAssessmentAttemptSession
|
|
summary: Start or resume a work session for the current candidate's attempt.
|
|
description: |-
|
|
Requires a candidate session, its CSRF token in X-CSRF-Token, an allowed Origin, and an Idempotency-Key. The body carries the attempt version the candidate last read. The server checks ownership, idempotency, and `expected_version` atomically before starting a session; a stale version answers 412 and consumes no session. Repeating the same key and body within 24 hours replays the stored response.
|
|
|
|
Creation starts session 1. After `idle_timeout_seconds` of inactivity, the candidate uses this command to start the next session. Calling it while a session is already active returns the current attempt without consuming another session or advancing its version. Starting a session advances the version once. The command cannot extend `expires_at` or `chain_deadline`.
|
|
|
|
If the attempt deadline or session budget has passed, this command commits the due terminal transition and returns the resulting attempt. A pending practice submitted before the limit is graded first. `GetMyAssessmentAttempt` and `GetMyAssessmentResult` remain read-only: they never start a session or commit a due transition. A background transition may persist a due outcome independently; after that, this command returns the stored terminal attempt without changing it.
|
|
|
|
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. An employer account answers 403 forbidden; no operation gives an employer answers, qualification evidence, or attempt history.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- assessment
|
|
parameters:
|
|
- $ref: '#/components/parameters/AssessmentAttemptId'
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentAttemptSessionStart'
|
|
example:
|
|
expected_version: 7
|
|
responses:
|
|
'200':
|
|
description: The current attempt after starting or resuming work, or after a due terminal transition was committed. A replay returns the stored body.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentAttempt'
|
|
examples:
|
|
resumed:
|
|
$ref: '#/components/examples/AssessmentAttemptResumed'
|
|
terminal:
|
|
$ref: '#/components/examples/AssessmentAttemptCompleted'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'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}/signals:
|
|
post:
|
|
operationId: RecordMyAssessmentAttemptSignals
|
|
summary: Store a bounded batch of client-reported assessment signals.
|
|
description: |-
|
|
Requires a candidate session, its CSRF token in X-CSRF-Token, an allowed Origin, and an Idempotency-Key. The attempt must belong to the candidate, be a real root or corrective attempt, remain active, and have a current C3 consent. The server locks C3 before locking the attempt, checks every item_instance_id against that attempt, and commits the receipt and any events in one transaction. A terminal, expired, or demo_express attempt accepts no new evidence; demo_express remains a separate training mode and receives no signal storage or grade effect.
|
|
|
|
The contract accepts only focus-loss duration, copy/paste/cut byte counts, fullscreen exits, item identifiers, and untrusted client timestamps. It never accepts answer text, clipboard contents, arbitrary strings, camera, microphone, screen recordings, screenshots, or organization identifiers. Client timestamps must be within five minutes before attempt creation and five minutes after the database receipt clock. Server receipt time controls rolling rate limits. Signal events are removed with the assessment attempt or account; this release does not promise an independent expiry schedule. Signals do not change scores, categories, quotas, or candidate/employer result responses.
|
|
|
|
A batch has at most 50 events and the raw request body is limited to 32 KiB before decoding. At most 30 new receipts per candidate and attempt are accepted in a rolling minute; an over-limit request answers 429 and does not consume its idempotency key. Storage is capped at 10,000 events per attempt. If the whole batch would exceed that cap, the server stores no events from it and replays a `saturated` receipt. Repeating the same key and body within 24 hours returns the original receipt without storing another batch; using that key with another body answers 422.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- assessment
|
|
parameters:
|
|
- $ref: '#/components/parameters/AssessmentAttemptId'
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentSignalBatch'
|
|
responses:
|
|
'200':
|
|
description: The stored or replayed receipt. A saturated receipt explicitly says that none of this batch's events was stored.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AssessmentSignalReceipt'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/StateConflict'
|
|
'413':
|
|
$ref: '#/components/responses/PayloadTooLarge'
|
|
'422':
|
|
$ref: '#/components/responses/UnprocessableContent'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
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.
|
|
|
|
A work command requires an active session. After `idle_timeout_seconds` of inactivity, the candidate calls StartMyAssessmentAttemptSession to explicitly start or resume a session; this answer command never starts one or consumes session quota. Reading the attempt or result is always read-only. A command that finds a due deadline transition may commit it before returning; a command that finds an expired idle session answers 409 until the candidate explicitly starts the next session.
|
|
|
|
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; a due deadline transition may be committed, but this request never starts a work session), 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 work session ended, 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.
|
|
|
|
Finalize is a work command and requires an active session. After `idle_timeout_seconds` of inactivity, the candidate first calls StartMyAssessmentAttemptSession with the latest `expected_version`; finalize never starts a session. GET attempt and result operations do not change state. A command or background transition may commit a due deadline outcome.
|
|
|
|
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, a command or background transition finalizes `ready_to_finalize` without offering an additional practice. A finalize after this transition answers 200 with the stored `completed` attempt; a GET never commits it.
|
|
|
|
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. When required questions are unfinished, the problem includes their frozen IDs in `pending_item_ids`; other state conflicts omit that field. 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; a due deadline transition may be committed, but this request never starts a work session), the repeat on a `completed` attempt (200), the version (412), then the state (409 state_conflict, including an ended idle session). 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`. A real result records the mode, policy, bank, and algorithm versions, decision, previously confirmed grade, calibration status and limitations, uncertainty where the method computes it, practice verdicts, weak domains, working time as a separate label, and allowed next steps. A corrective result also carries the root attempt and its immutable chain deadline. A `demo_express` result is a short educational summary only: it has no category, percentile, confirmed grade, score, uncertainty, or qualification evidence. A later policy, bank, or algorithm version never changes a result.
|
|
|
|
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. This GET is read-only and never commits a due transition. If a deadline has passed but the due transition is not yet stored by a command or background worker, the attempt remains active for this read and answers 409; wait for the transition and retry. 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'
|
|
corrective:
|
|
$ref: '#/components/examples/AssessmentCorrectiveResult'
|
|
demo_express:
|
|
$ref: '#/components/examples/AssessmentExpressResult'
|
|
'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/me/organizations:
|
|
get:
|
|
operationId: ListMyOrganizations
|
|
summary: List the organizations available to the current account.
|
|
description: |-
|
|
Requires the session cookie of an employer account. The account comes from the session, never from a request parameter, so the response holds only the caller's own memberships and no request can name another account.
|
|
|
|
Returns a page of the organizations in which the caller has an `active` membership, newest membership first with the organization identifier as the tie-breaker, with cursor pagination. Each item names the organization (`OrganizationSummary`) and holds the caller's role and state in it (`OrganizationMembership`). A membership in another state (`suspended`, `removed`, `left`) does not list its organization, so an organization the caller cannot enter is never named, and one that the caller was removed from disappears from the list at once.
|
|
|
|
The list is the directory of the active organization context. The context is not stored on the server: every organization-scoped operation names its organization in the path `org_id`, and the server checks that identifier against the caller's active membership on every request, so a switch between organizations is a different `org_id` in the client's routes and cannot outlive a revoked membership. A client picks the context from this list, may remember the last choice in the browser as a convenience, and must read the list again after any answer 404 `not_found` from an organization path. An account with several memberships sees all of them here and works in one at a time; the rights and the data of the organizations stay separate.
|
|
|
|
Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated; a candidate account answers 403 forbidden. An employer account without an organization gets an empty page, which tells the client to offer CreateOrganization. A malformed `limit` or `cursor` answers 400 validation_failed.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- organization
|
|
parameters:
|
|
- $ref: '#/components/parameters/PageLimit'
|
|
- $ref: '#/components/parameters/PageCursor'
|
|
responses:
|
|
'200':
|
|
description: A page of the organizations available to the current account.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/MyOrganizationList'
|
|
examples:
|
|
one_organization:
|
|
$ref: '#/components/examples/MyOrganizationListPage'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/organizations:
|
|
post:
|
|
operationId: CreateOrganization
|
|
summary: Create an organization; the caller becomes its owner.
|
|
description: |-
|
|
Requires the session cookie of an employer account with a confirmed email, the CSRF token of that session in X-CSRF-Token, an allowed Origin, and an Idempotency-Key. The owner is the account of the session: the body has no owner, membership, role, verification, or version field, and unknown fields fail validation.
|
|
|
|
The server creates the organization and the owner membership of the caller (role `owner`, state `active`) in one transaction, so an organization never exists without its owner. The organization starts at the verification level `e0` with the basis `confirmed_email`. The level cannot be requested: the creator of a company with a corporate domain, a long description, or many representatives still gets `e0`, and `e1`, `e2`, and `e3` come only from verification processes of the server that do not exist yet. Only `name` is required; the rest of the card can be completed with UpdateOrganization.
|
|
|
|
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 organization. A different body with the same key answers 422 idempotency_key_reused. 400 is never stored, so a corrected retry is evaluated again. Two requests with different keys are two organizations; the product may limit the number of organizations per account (open question), which would answer 409 `state_conflict` without a change of the schema.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden for a candidate account), the Idempotency-Key (422, 409 idempotency_in_progress, replay), domain rules (400 with a pointer such as `/contacts/website` for a website that is not an https URL of a host name, `/name` for a name with surrounding whitespace). The general rate limit can answer 429 with Retry-After before any check; 429 is never stored.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- organization
|
|
parameters:
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrganizationCreate'
|
|
examples:
|
|
name_only:
|
|
$ref: '#/components/examples/OrganizationCreateNameOnly'
|
|
complete_card:
|
|
$ref: '#/components/examples/OrganizationCreateCompleteCard'
|
|
responses:
|
|
'201':
|
|
description: The organization was created with the caller as its owner, 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/Organization'
|
|
examples:
|
|
name_only:
|
|
$ref: '#/components/examples/OrganizationNameOnly'
|
|
complete_card:
|
|
$ref: '#/components/examples/OrganizationCompleteCard'
|
|
'400':
|
|
$ref: '#/components/responses/OrganizationValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'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}:
|
|
get:
|
|
operationId: GetOrganization
|
|
summary: Read an organization managed by the caller.
|
|
description: |-
|
|
Requires the session cookie of a verified employer account with an active owner membership in `org_id`. The organization comes from the path and is checked against the membership that the server holds for the session account on every request; the identifier itself grants nothing.
|
|
|
|
Returns the profile with its current `version`, the verification level (`verification`), and the card as a candidate sees it (`candidate_card`). The verification level is always the one the server holds: it never rises because the profile is complete, because the organization has members, or because of an email domain. The role of the caller is not part of this resource; ListMyOrganizations returns it with the membership.
|
|
|
|
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, including a `suspended`, `removed`, or `left` one, and an unknown organization all answer 404 not_found, so organizations cannot be enumerated. An active member whose role is not `owner` answers 403 forbidden. A malformed `org_id` answers 400 validation_failed with the path pointer.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- organization
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
responses:
|
|
'200':
|
|
description: The organization.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/Organization'
|
|
examples:
|
|
name_only:
|
|
$ref: '#/components/examples/OrganizationNameOnly'
|
|
complete_card:
|
|
$ref: '#/components/examples/OrganizationCompleteCard'
|
|
'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: UpdateOrganization
|
|
summary: Change the profile of an organization.
|
|
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. Only the owner manages the organization (the FR07 matrix gives this to no other role), so a member with another role answers 403 forbidden. The role comes from the server-side membership; the body has no organization, membership, role, owner, or verification field.
|
|
|
|
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; `contacts` and `representatives` are replaced entirely and never merged. `description` and `sphere` sent as null become unset; `name`, `contacts`, and `representatives` cannot be null.
|
|
|
|
The body can change the profile only. The verification level, its basis, the card, the members, and every role are not fields of it, and unknown fields fail validation, so the owner can neither raise the trust level of the organization nor the rights of anyone by editing the profile; a longer description, a verified-looking website, or a new representative leaves the level unchanged. The level and the roles change only through processes of the server.
|
|
|
|
Versions: every committed change creates version `expected_version + 1` and answers 200 with the organization. `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 organization again and reapplies its 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 needs. A body that changes nothing when applied to the current profile keeps the version and answers 200 with the current organization even when `expected_version` is older, so the operation needs no Idempotency-Key and a retry of a change that already succeeded is harmless.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden for a candidate account), membership (404 not_found) and role (403 forbidden), a body that changes nothing (200), the version (412), domain rules (400 with a pointer such as `/contacts/website`, `/name`, or `/representatives/0/job_title`). The general rate limit can answer 429 with Retry-After before any check.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- organization
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrganizationUpdate'
|
|
examples:
|
|
complete_card:
|
|
$ref: '#/components/examples/OrganizationUpdateCompleteCard'
|
|
responses:
|
|
'200':
|
|
description: The organization after the change, or the current organization when the body changes nothing.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/Organization'
|
|
examples:
|
|
complete_card:
|
|
$ref: '#/components/examples/OrganizationCompleteCard'
|
|
'400':
|
|
$ref: '#/components/responses/OrganizationValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'412':
|
|
$ref: '#/components/responses/OrganizationVersionConflict'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
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, enforcement planned). 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 organization risk signals.
|
|
|
|
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, enforcement planned). 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 organization risk signals.
|
|
|
|
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/organizations/{org_id}/matches:
|
|
post:
|
|
operationId: SearchOrganizationMatches
|
|
summary: Search the current organization-visible candidate bank.
|
|
description: |-
|
|
Requires the session cookie of an employer account with an active owner membership in `org_id`, the CSRF token of that session in X-CSRF-Token, and an allowed Origin. The organization comes from the path and the active server-side membership. Hidden profiles, revoked or missing C2 publication, and the organization's visibility restrictions are applied before any result is returned.
|
|
|
|
The body selects either a Need's `requirements_version` snapshot or the current organization-visible bank with explicit filters. A need reference uses `Need.requirements_version`, not the general `Need.version`; title or suggestion-only edits do not change the confirmed-requirements snapshot. An empty bank filter searches all otherwise eligible specializations, returning each specialization separately.
|
|
|
|
A search reveals card content, so it is charged like card reads. The whole visible bank is ranked, but each group returns at most the versioned per-group limit and no total is returned. In the order `main`, `near`, `unconfirmed`, each newly revealed candidate is counted as a distinct card view of the organization (a candidate it already viewed inside the window costs nothing again, so repeating the search or opening the card afterwards does not charge twice) and appears in the candidate's access history with the fields actually returned. When the allowance ends, the entries already counted are returned and `truncated` is true; the flag is also true when a group exceeded its limit, and it carries no count. No new error is returned for an exhausted allowance.
|
|
|
|
Every entry is one candidate specialization. A confirmed result in Backend never confirms Networks for the same candidate. The `main`, `near`, and `unconfirmed` arrays are separate groups. A confirmed category with required-skill coverage below 0.25 belongs to `near`; other confirmed entries belong to `main` (FR09). Entries in `unconfirmed` are ordered by Fit, then coverage, then a stable internal tie-breaker that is never returned. Their category and strength remain null, and they have no theta, T, P, or test percentile. The search result uses the organization-scoped opaque `candidate_handle` as its display pseudonym and invitation reference, never a candidate account or profile identifier.
|
|
|
|
The card context is limited to safe public fields: recognized stack tags, coarse experience, accepted work formats, and coarse salary compatibility. It contains no contact, candidate location, salary amount or minimum, raw answer, arbitrary profile text, or reason for withheld FSP data. Evidence explanations use bounded codes, not free text. When ML is unavailable, semantic similarity uses the neutral 0.5 specified by FR09 and `unknown_flags` names `ml_unavailable`. For fewer than 30 comparable real candidates, the search uses neutral T = 0.5, returns no percentile value, and names `cohort_below_30`. When the comparable real cohort of a category reaches the minimum, the percentile is still not computed (the organization-safe projection carries no theta), T stays the neutral 0.5, the percentile stays null, and `unknown_flags` names `percentile_not_computed`; the search does not fail.
|
|
|
|
A missing, unknown, expired, or revoked session answers 401 unauthenticated; a candidate account answers 403 forbidden; an unknown organization or account without active membership answers 404 not_found. The response is `Cache-Control: no-store`.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- organization
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/MatchSearchRequest'
|
|
examples:
|
|
by_need:
|
|
$ref: '#/components/examples/SearchByNeed'
|
|
by_bank_filters:
|
|
$ref: '#/components/examples/SearchByBank'
|
|
responses:
|
|
'200':
|
|
description: Organization-visible candidates in separate match groups.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/MatchSearchResponse'
|
|
examples:
|
|
three_groups:
|
|
$ref: '#/components/examples/ThreeGroups'
|
|
empty:
|
|
$ref: '#/components/examples/Empty'
|
|
ml_unavailable:
|
|
$ref: '#/components/examples/MLUnavailable'
|
|
cohort_below_30:
|
|
$ref: '#/components/examples/CohortBelow30'
|
|
truncated:
|
|
$ref: '#/components/examples/Truncated'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/organizations/{org_id}/candidate-cards/{candidate_handle}:
|
|
get:
|
|
operationId: GetOrganizationCandidateCard
|
|
summary: Read one currently visible anonymous candidate card.
|
|
description: |-
|
|
Requires the session cookie of an employer account with an active membership in `org_id`. The organization and membership come from the current server-side session and path, never from cached search data.
|
|
|
|
`candidate_handle` is the organization-scoped opaque alias issued by the current anonymous-card projection. The server resolves it against the current visible cohort, rechecks active membership, effective C2 publication, and the candidate's hiding settings on every request, and applies the cohort suppression rules again. It does not use a previously cached candidate ID. An unknown handle, a handle from another organization, a closed or revoked publication, a profile hidden from this organization, and a profile suppressed by the minimum cohort all answer the same 404 not_found.
|
|
|
|
The response contains only the anonymous card allowlist. It has no contact values. Contacts, if ever available, are a separate operation and require the current explicit C4 grant and contact-access policy; a workflow status alone never grants contact access. Closing C2 or hiding the profile blocks this read immediately. Republishing does not reopen an earlier contact grant.
|
|
|
|
Every allowed employer card read is recorded in the access history and consumes the organization's current product-policy card-view quota. A repeated view within the quota window is allowed by the existing distinct-card quota rule. When the quota is exhausted the operation answers 429 with Retry-After. The response is `Cache-Control: no-store`.
|
|
|
|
A missing, unknown, expired, or revoked session answers 401 unauthenticated; a candidate account answers 403 forbidden; an unknown organization or account without an active membership answers 404 not_found. An `org_id` that is not a UUID or a malformed candidate handle answers 400 validation_failed.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- privacy
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/CandidateHandle'
|
|
responses:
|
|
'200':
|
|
description: The current anonymous card for this organization.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/AnonymousCardContent'
|
|
examples:
|
|
published:
|
|
$ref: '#/components/examples/OrganizationAnonymousCandidateCard'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/organizations/{org_id}/candidate-cards/{candidate_handle}/evidence:
|
|
get:
|
|
operationId: GetOrganizationCandidateEvidence
|
|
summary: Read the permitted skill evidence of one currently visible candidate card.
|
|
description: |-
|
|
Requires the session cookie of an employer account with an active membership in `org_id`. The organization and membership come from the current server-side session and path, never from cached search data.
|
|
|
|
`candidate_handle` is the organization-scoped opaque alias issued by the current anonymous-card projection. The server runs the same checks as the card read on every request: active membership, effective C2 publication, the candidate's hiding of this organization, and the minimum cohort. In addition the card must publish the `categories` field and show at least one category after the cohort rules, because the evidence explains those categories and discloses nothing beyond them. An unknown handle, a handle of another organization, a closed or revoked publication, a profile hidden from this organization, a profile suppressed by the minimum cohort, and a card without categories all answer the same 404 not_found. Closing C2 or hiding the organization blocks this read immediately, and a cached response proves nothing.
|
|
|
|
The response lists, for each category of the card, the one visible fact that supports its confirmed grade: the earliest assessment that passed exactly that grade, so a lower grade or a retake adds nothing. A fact the candidate hid is absent. Each fact carries only the skill, the passed grade, the trust level, the year of the assessment, and the basis and calibration of the method (`synthetic_demo`, `uncalibrated`), which are the same for every candidate and say that the fact is a demonstration, not a validated measurement. It carries no identifier of the fact, event, result, or candidate, no month or exact time, and never an answer, item, score, failed attempt, review band, or anti-cheat signal. An express training run and a failed attempt create no fact. The answer has no key that joins it to a person, but it is not unlinkable: with the other values of the card it can narrow a small pool of candidates.
|
|
|
|
Reading the evidence is a view of the candidate card: it consumes the organization's current card-view quota with the same distinct-card rule and is recorded in the access history with the `categories` field. When the quota is exhausted the operation answers 429 with Retry-After. The response is `Cache-Control: no-store`.
|
|
|
|
A missing, unknown, expired, or revoked session answers 401 unauthenticated; a candidate account answers 403 forbidden; an unknown organization or account without an active membership answers 404 not_found. An `org_id` that is not a UUID or a malformed candidate handle answers 400 validation_failed.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- evidence
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/CandidateHandle'
|
|
responses:
|
|
'200':
|
|
description: The permitted evidence of this candidate card for this organization.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrganizationEvidence'
|
|
examples:
|
|
permitted:
|
|
$ref: '#/components/examples/OrganizationCandidateEvidence'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/organizations/{org_id}/invitations:
|
|
get:
|
|
operationId: ListOrganizationInvitations
|
|
summary: List the invitations 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 invitations, as with needs; the other roles of the PRD FR07 matrix are planned and change no field of this contract.
|
|
|
|
Returns a page of invitation summaries in every state, drafts included, newest first by creation time with the identifier as the tie-breaker, with cursor pagination. A summary names the candidate only by the opaque `candidate_handle` and has the state, the versions, the role, the salary range, the deadline, and the contact access without any contact value. A declined invitation shows the state `declined` without the reason or the comment. Filters by state and need are planned and add optional parameters.
|
|
|
|
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 invitations answers 403 forbidden. A malformed `org_id`, `limit`, or `cursor` answers 400 validation_failed.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/PageLimit'
|
|
- $ref: '#/components/parameters/PageCursor'
|
|
responses:
|
|
'200':
|
|
description: A page of the invitations of the organization.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrganizationInvitationList'
|
|
examples:
|
|
last_page:
|
|
$ref: '#/components/examples/OrganizationInvitationListPage'
|
|
'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: CreateOrganizationInvitation
|
|
summary: Create an invitation draft for one candidate.
|
|
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 an invitation.
|
|
|
|
The draft is addressed to one person from a search result of this organization: `candidate_handle` is the opaque handle of that card, never an email address, a phone number, or an account identifier. The server resolves the handle for this organization only. An unknown handle, a handle of another organization, and a profile that the organization may no longer see, because the candidate revoked the publication C2 or hid the profile from it, all answer 400 with the pointer `/candidate_handle`, so a handle never reveals which case applies. `need` is optional: a direct invitation has none, and a need given must be a need of the organization with a `requirements_version` that it has had, otherwise 400 with the pointer `/need`. `response_period_days` is 3, 7, or 14 and defaults to 7.
|
|
|
|
The terms are complete from the start (PRD FR12): the role, the specialization and the grade, the offer type, the tasks, the team, the technology stack, the work formats and the place of work, the communication method, the salary range in RUB with its tax basis, and the package. Each package condition is either `provided` with a description or explicitly `not_provided`; leaving one out fails validation. A draft without the tax basis or the communication method therefore cannot exist. The draft is created as version 1 with terms version 1, and the candidate does not see it until SendOrganizationInvitation.
|
|
|
|
Salary: SalaryRange applies the same rules as for a need: whole rubles, positive multiples of 1000, `salary_from < salary_to`, and a width from 10% to 40% of the midpoint, checked by the server in integer arithmetic. The response carries `salary_fit`, the coarse indicator of PRD FR13 against the candidate's hidden minimum; the exact minimum appears in no response. The server never rejects a range because of the minimum, since a rejection would reveal it. Creating a draft is an indicator-relevant setting: it counts against the limit shared by the whole organization with the ranges of needs, at most three settings a day, and against the withheld counter, after five settings within seven days the indicator is `withheld` for seven days from the fifth, on every draft and invitation of the organization (PRD FR13, enforcement planned; see InvitationSalaryFit). Over the limit the server answers 429 with Retry-After and creates nothing.
|
|
|
|
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 draft. A different body with the same key answers 422 idempotency_key_reused. 400 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 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: `/candidate_handle`, `/need`, `/terms/salary/salary_to` for a reversed range or a width outside 10-40%, `/terms/location` for the `office` or `hybrid` format without a place of work, or `/terms/tech_stack/1` for a repeated technology), then the salary limit (429). The schema already rejects a missing term or package condition, a salary bound that is not a positive multiple of 1000, an unknown currency, period, or tax basis, and unknown fields such as `state`, `version`, `salary_fit`, `candidate_email`, or `salary_minimum`. The general rate limit can answer 429 with Retry-After before any check.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrganizationInvitationCreate'
|
|
examples:
|
|
valid_invitation:
|
|
$ref: '#/components/examples/InvitationCreateFromNeed'
|
|
responses:
|
|
'201':
|
|
description: The draft was created as version 1 with terms 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/OrganizationInvitation'
|
|
examples:
|
|
draft:
|
|
$ref: '#/components/examples/OrganizationInvitationDraft'
|
|
'400':
|
|
$ref: '#/components/responses/InvitationValidationFailed'
|
|
'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}/invitations/{invitation_id}:
|
|
get:
|
|
operationId: GetOrganizationInvitation
|
|
summary: Read an invitation 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 invitations.
|
|
|
|
Returns the invitation with the current terms version, the state, the deadline, the coarse salary indicator `salary_fit`, and `contact_access`. The candidate appears only as the opaque `candidate_handle`: before and after an acceptance this response never carries the candidate's name, email address, phone number, or other contact, the exact salary minimum, or the reason and comment of a decline. Contact values come only from GetOrganizationInvitationContacts while `contact_access.status` is `available`. Reading earlier terms versions is planned as a separate operation.
|
|
|
|
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 invitation, and an invitation of another organization all answer 404 not_found, so identifiers cannot be probed; a member whose role does not allow reading the invitation answers 403 forbidden. An `org_id` or `invitation_id` that is not a UUID answers 400 validation_failed with the path pointer.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/InvitationId'
|
|
responses:
|
|
'200':
|
|
description: The invitation in its current state.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrganizationInvitation'
|
|
examples:
|
|
draft:
|
|
$ref: '#/components/examples/OrganizationInvitationDraft'
|
|
delivered:
|
|
$ref: '#/components/examples/OrganizationInvitationDelivered'
|
|
accepted:
|
|
$ref: '#/components/examples/OrganizationInvitationAccepted'
|
|
'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: UpdateOrganizationInvitation
|
|
summary: Change the terms, the need link, or the response period of a draft.
|
|
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 body has no organization, membership, or role field. In the MVP only the owner of the organization changes drafts.
|
|
|
|
Only a `draft` can change; any other state answers 409 state_conflict. After sending, the only change of the terms is the one raise of the upper salary bound through RaiseOrganizationInvitationSalary. The candidate of a draft cannot change: a draft for another candidate is a new draft.
|
|
|
|
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. `terms` is always sent complete and replaces the terms as a whole, with the same validation as on creation, so a package condition is never dropped by omission. `need` sent as null unlinks the need.
|
|
|
|
Versions: every committed change creates version `expected_version + 1`; a change of the terms also creates the next terms version, an immutable snapshot, and a change of anything else keeps the terms version. `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 invitation again. The version travels in the body because the generated client cannot read the ETag response header yet. 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 invitation even when `expected_version` is older.
|
|
|
|
Salary limit: every change that can move `salary_fit` is an indicator-relevant setting: a change of either salary bound, of the tax basis, or of `work_formats`, because the indicator compares with the candidate's minimum for the offered formats, and switching formats or the basis would otherwise probe the minimum for free. Such a change counts against the limit shared by the organization with needs and other drafts, at most three settings a day, and against the withheld counter, which withholds `salary_fit` for seven days from the fifth setting within seven days (PRD FR13, enforcement planned; see InvitationSalaryFit). Over the limit the server answers 429 with Retry-After and changes nothing. A change that keeps the range, the basis, and the formats does not count. The operation follows the convention of UpdateOrganizationNeed: no Idempotency-Key, and a body that changes nothing answers 200.
|
|
|
|
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 invitation (404 not_found), a body that changes nothing (200), the version (412), the state (409 state_conflict), domain rules (400 with the pointers of CreateOrganizationInvitation), then the salary limit (429).
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/InvitationId'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrganizationInvitationUpdate'
|
|
examples:
|
|
change_terms:
|
|
$ref: '#/components/examples/InvitationUpdateTerms'
|
|
responses:
|
|
'200':
|
|
description: The draft after the change, or the current draft when the body changes nothing.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrganizationInvitation'
|
|
examples:
|
|
updated:
|
|
$ref: '#/components/examples/OrganizationInvitationDraftUpdated'
|
|
'400':
|
|
$ref: '#/components/responses/InvitationValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/StateConflict'
|
|
'412':
|
|
$ref: '#/components/responses/InvitationVersionConflict'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/organizations/{org_id}/invitations/{invitation_id}/send:
|
|
post:
|
|
operationId: SendOrganizationInvitation
|
|
summary: Send a draft to the candidate's inbox.
|
|
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. In the MVP only the owner of the organization sends invitations.
|
|
|
|
Sends the current terms version of a `draft`. Sending is internal and never visible as a state: in one transaction the server records the delivery, creates the candidate's inbox entry, starts the deadline `response_deadline_at = delivered_at + response_period_days`, spends one invitation of the weekly organization quota, and writes the outbox event for the notification, then answers 200 with the state `delivered`. A successful answer therefore means the candidate can already read the invitation; an email is a separate notification that never blocks or delays it, and its retries never move the deadline. No contact of the candidate is disclosed by sending.
|
|
|
|
The server checks again that the candidate is still visible to the organization: a revoked publication C2 or a profile hidden from the organization answers 409 state_conflict without telling which. It also enforces the limits of the product policy: at most 20 invitations waiting for an answer per need (`delivered`, `viewed`, `counter`) and the 30-day pause for the pair of the organization and the candidate after a decline or a no deal, regardless of the member or the need, both with 409 state_conflict; and the rolling weekly quota of the organization, with 429 and Retry-After. The organization quota, the pending limit, and the pause after a decline are enforced; the pause after a no deal is planned, because no operation produces the state `no_deal` yet.
|
|
|
|
Repeats return the same result: a retry with the same Idempotency-Key replays the stored response, and a send of an invitation that was already sent answers 200 with the invitation in its current state even with a new key or an older `expected_version`; the quota is spent once. A stale `expected_version` on a draft answers 412 version_conflict, so the organization never sends terms it did not read.
|
|
|
|
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), the invitation (404 not_found), the repeat of a completed send (200), the version (412), the state, the visibility of the candidate, the pending limit and the pause (409 state_conflict), then the quota (429). 404 and 409 state_conflict are stored under the key; 400, 412, and 429 are not.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/InvitationId'
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/InvitationCommand'
|
|
examples:
|
|
send:
|
|
$ref: '#/components/examples/InvitationSendCommand'
|
|
responses:
|
|
'200':
|
|
description: The invitation in the candidate's inbox with the state `delivered` and its deadline, or the invitation in its current state when it was already sent.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrganizationInvitation'
|
|
examples:
|
|
delivered:
|
|
$ref: '#/components/examples/OrganizationInvitationDelivered'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/InvitationCommandConflict'
|
|
'412':
|
|
$ref: '#/components/responses/InvitationVersionConflict'
|
|
'422':
|
|
$ref: '#/components/responses/UnprocessableContent'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/organizations/{org_id}/invitations/{invitation_id}/salary-raise:
|
|
post:
|
|
operationId: RaiseOrganizationInvitationSalary
|
|
summary: Raise the upper salary bound of a sent invitation once.
|
|
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. In the MVP only the owner of the organization changes invitations.
|
|
|
|
After sending, the salary base is fixed and the lower bound never decreases; the upper bound may be raised exactly once in the whole history of the invitation (PRD FR13). The body carries only the new `salary_to`, so the request cannot change the lower bound, the currency, the period, or the tax basis. The new bound must be above the current one and keep the width of the range from 10% to 40% of its midpoint, otherwise 400 validation_failed with the pointer `/salary_to`. The raise creates the next terms version with every other term unchanged and the next invitation version; the candidate sees the new terms, and an acceptance that names the previous terms version answers 412 version_conflict. The deadline does not change. The raise follows its own once-only rule and does not count against the organization-wide daily limit of three range settings, but it counts against the withheld counter of `salary_fit` (five settings within seven days), because it moves the upper bound that the indicator compares.
|
|
|
|
Allowed in `delivered`, `viewed`, and `accepted`, and in the planned states `counter`, `interview_scheduled`, `interviewed`, and `no_deal`, where FR13 lets a raise open an early repeated final. During `negotiation`, after `terms_agreed`, in a terminal state, in a `draft` (change the draft instead), and after the raise was used, the server answers 409 state_conflict. A raise after an acceptance changes neither the accepted terms version of the grant nor the grant.
|
|
|
|
Repeats return the same result: a retry with the same Idempotency-Key replays the stored response, and a raise to the same `salary_to` that was already applied answers 200 with the current invitation even with a new key or an older `expected_version`.
|
|
|
|
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), the invitation (404 not_found, after any due expiry), the repeat of an applied raise (200), a terminal state (409 state_conflict, whatever the version), the version (412), any other state that does not allow a raise and the used raise (409 state_conflict), then the bound and the width (400). The general rate limit can answer 429 with Retry-After before any check. 404 and 409 state_conflict are stored under the key; 400, 412, and 429 are not.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/InvitationId'
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/InvitationSalaryRaise'
|
|
examples:
|
|
raise:
|
|
$ref: '#/components/examples/InvitationSalaryRaiseCommand'
|
|
responses:
|
|
'200':
|
|
description: The invitation with the raised upper bound and the next terms version, or the current invitation when the same raise was already applied.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrganizationInvitation'
|
|
examples:
|
|
raised:
|
|
$ref: '#/components/examples/OrganizationInvitationSalaryRaised'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/InvitationCommandConflict'
|
|
'412':
|
|
$ref: '#/components/responses/InvitationVersionConflict'
|
|
'422':
|
|
$ref: '#/components/responses/UnprocessableContent'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/organizations/{org_id}/invitations/{invitation_id}/withdraw:
|
|
post:
|
|
operationId: WithdrawOrganizationInvitation
|
|
summary: Withdraw an invitation.
|
|
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. In the MVP only the owner of the organization withdraws invitations.
|
|
|
|
Moves an unfinished invitation to the terminal state `withdrawn` (PRD FR12): a `draft`, which the candidate never sees, a `delivered` or `viewed` invitation before the answer, an `accepted` one, and the planned stages up to `negotiation`. The process closes and no further transition happens in it. Withdrawing a delivered invitation frees its place in the pending limit of the need but never returns the weekly quota. Withdrawing never revokes the consent C4 or a grant that already exists: an accepted invitation keeps its `contact_access`, because only the candidate closes the access, by revoking C4, cancelling the participation, or closing the visibility.
|
|
|
|
`withdrawn` differs from `cancelled_by_candidate`: the organization withdraws, and the grant stays; the candidate cancels through CancelMyInvitation, and the grant of this invitation is revoked. A terminal invitation (`declined`, `expired`, `cancelled_by_candidate`) answers 409 state_conflict, even with a stale `expected_version`, so the organization sees the final state at once.
|
|
|
|
Repeats return the same result: a retry with the same Idempotency-Key replays the stored response, and a withdrawal of an invitation that is already `withdrawn` answers 200 with it even with a new key or an older `expected_version`.
|
|
|
|
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), the invitation (404 not_found, after any due expiry), the repeat on a withdrawn invitation (200), a terminal state (409 state_conflict, whatever the version), then the version (412). The general rate limit can answer 429 with Retry-After before any check. 404 and 409 state_conflict are stored under the key; 400, 412, and 429 are not.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/InvitationId'
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/InvitationCommand'
|
|
examples:
|
|
withdraw:
|
|
$ref: '#/components/examples/InvitationWithdrawCommand'
|
|
responses:
|
|
'200':
|
|
description: The invitation in the state `withdrawn`.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/OrganizationInvitation'
|
|
examples:
|
|
withdrawn:
|
|
$ref: '#/components/examples/OrganizationInvitationWithdrawn'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/InvitationCommandConflict'
|
|
'412':
|
|
$ref: '#/components/responses/InvitationVersionConflict'
|
|
'422':
|
|
$ref: '#/components/responses/UnprocessableContent'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/organizations/{org_id}/invitations/{invitation_id}/contacts:
|
|
get:
|
|
operationId: GetOrganizationInvitationContacts
|
|
summary: Read the contacts that the candidate disclosed to the organization.
|
|
description: |-
|
|
Requires the session cookie of an employer account with an active membership in `org_id`. In the MVP only the owner of the organization reads contacts; the other roles of PRD FR07 are planned.
|
|
|
|
This is the only operation that returns contact values, and its response is separate from the terms and from the invitation. It answers only while a grant created by the acceptance of this invitation is active and the read is allowed now: on every request the server checks the membership, the consent C4 for this organization, the grant and its fields, and the current visibility of the profile (C2 and the organizations the candidate hid the profile from), with no cache in between, so a revocation closes the next read at once. The response holds exactly the fields that the grant covers; every other field is null. A grant of organization A never answers for organization B.
|
|
|
|
Without such a grant the contacts do not exist for the caller, and the operation answers 404 not_found, the same as for an unknown invitation: before an acceptance, after a decline or an expiry, after the candidate revoked C4 or cancelled the participation, after the candidate closed the visibility, and while a grant created when the profile was not published or was hidden from the organization stays blocked. The answer does not tell which applies; `contact_access` of GetOrganizationInvitation tells the organization whether access is `not_granted`, `available`, or `closed`, without the reason, and the candidate sees `readable` and `blocked_by` on the grant. Withdrawing the invitation keeps an existing grant. A later publication of the profile never reopens a closed grant; only a new explicit C4 creates a new one.
|
|
|
|
Every successful read is recorded in the access audit (planned with the contact access history), and the response has `Cache-Control: no-store`.
|
|
|
|
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 invitation, an invitation of another organization, and an invitation without an active readable grant all answer 404 not_found; a member whose role does not allow reading contacts answers 403 forbidden. An `org_id` or `invitation_id` that is not a UUID answers 400 validation_failed with the path pointer.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/InvitationId'
|
|
responses:
|
|
'200':
|
|
description: The contacts that the active grant of this invitation covers.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ContactDisclosure'
|
|
examples:
|
|
email_only:
|
|
$ref: '#/components/examples/InvitationContactsEmailOnly'
|
|
'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'
|
|
/api/v1/me/invitations:
|
|
get:
|
|
operationId: ListMyInvitations
|
|
summary: List the invitations addressed to the current candidate.
|
|
description: |-
|
|
Requires the session cookie of a candidate account. The candidate comes from the session, never from a request parameter. Returns a page of the candidate's inbox, newest first by delivery time with the identifier as the tie-breaker, with cursor pagination: every invitation that was delivered to this candidate, in any later state, including withdrawn and expired ones. Drafts and invitations addressed to other candidates are never listed.
|
|
|
|
A summary has the organization, the state, the versions, the role, the salary range, the work formats, and the deadline. Listing never records a view: the state `delivered` stays until ViewMyInvitation records that the candidate opened the terms. Responsiveness metrics of the organization and filters by state are planned and add fields or optional parameters.
|
|
|
|
Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden. A malformed `limit` or `cursor` answers 400 validation_failed.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/PageLimit'
|
|
- $ref: '#/components/parameters/PageCursor'
|
|
responses:
|
|
'200':
|
|
description: A page of the invitations of the current candidate.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CandidateInvitationList'
|
|
examples:
|
|
last_page:
|
|
$ref: '#/components/examples/CandidateInvitationListPage'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/invitations/{invitation_id}:
|
|
get:
|
|
operationId: GetMyInvitation
|
|
summary: Open the terms of an invitation addressed to the current candidate.
|
|
description: |-
|
|
Requires the session cookie of a candidate account. The candidate comes from the session; the invitation must be addressed to this candidate.
|
|
|
|
Returns the organization, the current terms version with the full terms, the state, and the deadline. While an acceptance is possible (`delivered` or `viewed` before the deadline), `contact_consent` holds the published text of the consent C4 for this organization and the kinds of contact that the profile holds, with nothing preselected; otherwise it is null. It is null as well when the profile holds no contact: a grant must cover at least one field, so the client asks the candidate to add a contact to the profile before accepting. After an answer the response holds the candidate's own decline or the contact grant that the acceptance created, with the selected kinds, its status, and whether the organization can read it now (`readable`, with `blocked_by` `visibility` when the profile is not published or is hidden from the organization), never contact values. The response never carries the candidate's handle, the need of the organization, the salary indicator of the organization, or any contact or salary minimum of the candidate.
|
|
|
|
Reading has no side effect on the invitation: it never records a view. The client records that the candidate opened the terms with ViewMyInvitation, an explicit command, so a prefetch, a retry, or a cache refresh never changes the state that the organization sees. The only change a read can cause is the due expiry: a read at the deadline or later first applies the server transition to `expired` with `invitation_timeout`, which would happen without the read as well, and the response shows it. Reading earlier terms versions is planned as a separate operation.
|
|
|
|
Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden; a draft, an invitation addressed to another candidate, and an unknown identifier all answer 404 not_found, so identifiers cannot be enumerated. An `invitation_id` that is not a UUID answers 400 validation_failed with the path pointer.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/MyInvitationId'
|
|
responses:
|
|
'200':
|
|
description: The invitation in its current state.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CandidateInvitation'
|
|
examples:
|
|
delivered:
|
|
$ref: '#/components/examples/CandidateInvitationDelivered'
|
|
viewed:
|
|
$ref: '#/components/examples/CandidateInvitationViewed'
|
|
accepted:
|
|
$ref: '#/components/examples/CandidateInvitationAccepted'
|
|
declined:
|
|
$ref: '#/components/examples/CandidateInvitationDeclined'
|
|
'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'
|
|
/api/v1/me/invitations/{invitation_id}/view:
|
|
post:
|
|
operationId: ViewMyInvitation
|
|
summary: Record that the current candidate opened the terms of an invitation.
|
|
description: |-
|
|
Requires the session cookie of a candidate account, the CSRF token of that session in X-CSRF-Token, and an allowed Origin. The candidate comes from the session. The request has no body.
|
|
|
|
The view transition of PRD FR12 is an explicit command, so reading the invitation with GetMyInvitation stays free of side effects. The client sends it when the candidate opens the terms screen. For a `delivered` invitation the server moves it to `viewed`, sets `viewed_at`, advances `version`, and keeps the deadline. In any other state, including `viewed`, `accepted`, and the terminal states, it changes nothing and answers 200 with the current invitation. A view never reopens, extends, or answers an invitation, and the organization sees only the state `viewed` and `viewed_at`.
|
|
|
|
The command is idempotent by its effect: the first view wins and every repeat returns the current invitation. It therefore needs no Idempotency-Key and no `expected_version`: a view must never fail because the invitation changed after the client read it, for example after a salary raise. A view at the deadline or later first applies the due expiry and answers 200 with `expired`.
|
|
|
|
The general rate limit can answer 429 with Retry-After before any check.
|
|
|
|
Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated; a missing or wrong CSRF token or a disallowed Origin answers 403 csrf_check_failed; an employer account answers 403 forbidden; a draft, an invitation addressed to another candidate, and an unknown identifier all answer 404 not_found. An `invitation_id` that is not a UUID answers 400 validation_failed with the path pointer.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/MyInvitationId'
|
|
responses:
|
|
'200':
|
|
description: The invitation, now `viewed` when it was `delivered`, otherwise in its current state.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CandidateInvitation'
|
|
examples:
|
|
viewed:
|
|
$ref: '#/components/examples/CandidateInvitationViewed'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/invitations/{invitation_id}/accept:
|
|
post:
|
|
operationId: AcceptMyInvitation
|
|
summary: Accept the current terms and disclose the selected contacts.
|
|
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 candidate comes from the session.
|
|
|
|
Only an acceptance of the current terms version with the consent C4 creates access to contacts (PRD FR12). The body names the `terms_version` the candidate read and accepts, the `expected_version` of the invitation, and `consent_c4`: the C4 text version that the candidate saw, `accepted: true`, and the contact fields the candidate selected. At least one field is required and nothing is preselected or defaulted, so a grant never covers a field the candidate did not choose. The fields come only from the candidate's profile; the request never carries contact values.
|
|
|
|
Allowed in `delivered` and `viewed` before `response_deadline_at`; accepting directly from `delivered` is allowed, as in the PRD FR12 transition table. In one transaction the server moves the invitation to `accepted`, records the consent C4 in the consent ledger with the organization, the fields, the invitation, the terms version, and the text version and its hash, creates the contact grant for exactly those fields, and writes the audit event. The response is the invitation with `contact_grant`. The acceptance never publishes the profile (C2) and never bypasses a profile hidden from the organization: the grant alone does not guarantee a read, and the organization reads only while the visibility allows it.
|
|
|
|
412 or 409: a `terms_version` or `expected_version` that is not current answers 412 version_conflict, the repository status for a stale version, and records nothing; this is the stale terms case, for example after the organization raised the salary, and the client reads the invitation again and shows the new terms for a new decision. A state that does not allow an acceptance answers 409 state_conflict: `withdrawn`, `expired`, `declined`, `cancelled_by_candidate`, the planned `counter`, or a command received at the deadline or later, which is late. A terminal state and a passed deadline are checked before the versions: the server first applies the due expiry, and the client then gets 409 for a withdrawn, expired, or late invitation even when its versions are stale, so it shows the final state instead of rereading and retrying. The repository rule keeps 412 for any stale version, so clients branch on `version_conflict` to reread and on `state_conflict` to show the final state.
|
|
|
|
Repeats return the same result: a retry with the same Idempotency-Key replays the stored response, and an acceptance of an invitation that is already `accepted` whose `terms_version` and set of fields equal those of its `contact_grant`, the terms version and fields that the candidate accepted, answers 200 with it even with a new key, an older `expected_version`, or a current `terms_version` that a later raise advanced; no second consent, grant, or audit event is created. A different terms version or field set on an accepted invitation answers 409 state_conflict; changing the disclosed fields is a matter of the consent operations. Of two concurrent acceptances only one makes the transition.
|
|
|
|
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), the invitation (404 not_found, after any due expiry), the repeat on an accepted invitation (200), a terminal state or a passed deadline (409 state_conflict, whatever the versions), the versions (412), any other state that does not allow an acceptance (409 state_conflict), then the consent rules (400 with the pointer `/consent_c4/text_version` for a text version that is not the published one, or `/consent_c4/fields/0` for a field that the profile does not hold). The schema rejects a missing `terms_version`, an empty or repeated field list, an unknown field kind, `accepted` other than true, and unknown fields such as `email` or `phone`. The general rate limit can answer 429 with Retry-After before any check. 404 and 409 state_conflict are stored under the key; 400, 412, and 429 are not.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/MyInvitationId'
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/InvitationAcceptance'
|
|
examples:
|
|
email_only:
|
|
$ref: '#/components/examples/InvitationAcceptEmailOnly'
|
|
stale_terms:
|
|
$ref: '#/components/examples/InvitationAcceptStaleTerms'
|
|
responses:
|
|
'200':
|
|
description: The accepted invitation with the contact grant, or the same invitation when this acceptance was already made.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CandidateInvitation'
|
|
examples:
|
|
accepted:
|
|
$ref: '#/components/examples/CandidateInvitationAccepted'
|
|
visibility_blocked:
|
|
$ref: '#/components/examples/CandidateInvitationAcceptedVisibilityBlocked'
|
|
'400':
|
|
$ref: '#/components/responses/InvitationAcceptValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/InvitationCommandConflict'
|
|
'412':
|
|
$ref: '#/components/responses/InvitationVersionConflict'
|
|
'422':
|
|
$ref: '#/components/responses/UnprocessableContent'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/invitations/{invitation_id}/decline:
|
|
post:
|
|
operationId: DeclineMyInvitation
|
|
summary: Decline an invitation with a structured reason.
|
|
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 candidate comes from the session.
|
|
|
|
Allowed in `delivered`, `viewed`, and the planned `counter`, before `response_deadline_at`. Moves the invitation to the terminal state `declined` with the reason and the optional comment; no consent and no access arise (PRD FR12). A timely decline counts as an answer for the responsiveness metrics, not as a consent or a hire. The reason is one of InvitationDeclineReason, including the neutral `other`; no reason requires a comment.
|
|
|
|
Visibility: the organization sees only the state `declined` and `responded_at`. It never sees the reason or the comment of an individual decline, because a reason such as `salary` would tell it that the hidden minimum is above the range. Reasons feed only aggregates with a minimum group size (planned); the comment is never shown to the organization, published, logged, or sent in a notification. The candidate reads both back in `decline`. A new invitation of the same organization to this candidate is possible only after the 30-day pause.
|
|
|
|
Repeats return the same result: a retry with the same Idempotency-Key replays the stored response, and a decline of an invitation that is already `declined` with the same reason and comment answers 200 with it even with a new key or an older `expected_version`. A terminal state, another reason or comment on a declined invitation, and a command at the deadline or later answer 409 state_conflict even with a stale `expected_version`; otherwise a stale `expected_version` answers 412 version_conflict.
|
|
|
|
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), the invitation (404 not_found, after any due expiry), the repeat on a declined invitation (200), a terminal state or a passed deadline (409 state_conflict, whatever the version), the version (412), then any other state that does not allow a decline (409 state_conflict). The schema rejects an unknown reason, an empty comment or one of only white space, a comment over 500 characters, and unknown fields. The general rate limit can answer 429 with Retry-After before any check. 404 and 409 state_conflict are stored under the key; 400, 412, and 429 are not.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/MyInvitationId'
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/InvitationDeclineRequest'
|
|
examples:
|
|
other_without_comment:
|
|
$ref: '#/components/examples/InvitationDeclineOther'
|
|
with_comment:
|
|
$ref: '#/components/examples/InvitationDeclineWithComment'
|
|
responses:
|
|
'200':
|
|
description: The declined invitation with the candidate's own reason, or the same invitation when this decline was already made.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CandidateInvitation'
|
|
examples:
|
|
declined:
|
|
$ref: '#/components/examples/CandidateInvitationDeclined'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/InvitationCommandConflict'
|
|
'412':
|
|
$ref: '#/components/responses/InvitationVersionConflict'
|
|
'422':
|
|
$ref: '#/components/responses/UnprocessableContent'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/invitations/{invitation_id}/cancel:
|
|
post:
|
|
operationId: CancelMyInvitation
|
|
summary: Cancel the participation in an invitation and revoke its contact grant.
|
|
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 candidate comes from the session.
|
|
|
|
Moves an unfinished invitation to the terminal state `cancelled_by_candidate` (PRD FR12): `delivered`, `viewed`, `accepted`, and the planned stages up to `negotiation`. The process closes. In the same transaction the server revokes the contact grant that the acceptance of this invitation created, with the reason `participation_cancelled`, so the next contact read of the organization answers 404. Grants of other invitations or applications stay; revoking the consent C4 for the organization as a whole, which closes all of them, belongs to the consent operations.
|
|
|
|
Cancel differs from decline and withdraw: a decline is the structured answer before an acceptance and counts as a response; a cancellation leaves the process at any unfinished stage, mostly after an acceptance, and carries no reason; a withdrawal is the organization's command and keeps the grant. Before an answer the client offers the decline.
|
|
|
|
Repeats return the same result: a retry with the same Idempotency-Key replays the stored response, and a cancellation of an invitation that is already `cancelled_by_candidate` answers 200 with it even with a new key or an older `expected_version`. A terminal state other than `cancelled_by_candidate` answers 409 state_conflict even with a stale `expected_version`; otherwise a stale `expected_version` answers 412 version_conflict. The deadline does not limit a cancellation.
|
|
|
|
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), the invitation (404 not_found, after any due expiry), the repeat on a cancelled invitation (200), a terminal state (409 state_conflict, whatever the version), then the version (412). The general rate limit can answer 429 with Retry-After before any check. 404 and 409 state_conflict are stored under the key; 400, 412, and 429 are not.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- invitation
|
|
parameters:
|
|
- $ref: '#/components/parameters/MyInvitationId'
|
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/InvitationCommand'
|
|
examples:
|
|
cancel:
|
|
$ref: '#/components/examples/InvitationCancelCommand'
|
|
responses:
|
|
'200':
|
|
description: The invitation in the state `cancelled_by_candidate` with its grant revoked.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CandidateInvitation'
|
|
examples:
|
|
cancelled:
|
|
$ref: '#/components/examples/CandidateInvitationCancelled'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/InvitationCommandConflict'
|
|
'412':
|
|
$ref: '#/components/responses/InvitationVersionConflict'
|
|
'422':
|
|
$ref: '#/components/responses/UnprocessableContent'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/notifications:
|
|
get:
|
|
operationId: ListMyNotifications
|
|
summary: List the inbox of the current candidate.
|
|
description: |-
|
|
Requires the session cookie of a candidate account with a confirmed email. The recipient comes from the session, never from a request parameter, so the response holds only the caller's own items. Returns a page, newest delivery first with the identifier as the tie-breaker, with cursor pagination. The response is `Cache-Control: no-store`.
|
|
|
|
The inbox is the in-platform delivery state of a notification. An item exists as soon as the event reached the platform, whether or not any email was sent, and an email that failed or was never sent does not block it. The inbox stores a reference to the event, not its text: the `content` of every item is resolved from the current source for this recipient on this read. When the source is gone or the recipient may not see it now (for example the candidate hid the organization), the item stays in the list with `content` null, and no earlier text is shown. An event that is delivered twice is one item.
|
|
|
|
Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden. A malformed `limit` or `cursor`, or a cursor of another account, answers 400 validation_failed.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- notification
|
|
parameters:
|
|
- $ref: '#/components/parameters/PageLimit'
|
|
- $ref: '#/components/parameters/PageCursor'
|
|
responses:
|
|
'200':
|
|
description: A page of the inbox of the current candidate.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/NotificationList'
|
|
examples:
|
|
page:
|
|
$ref: '#/components/examples/NotificationListPage'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/notifications/{notification_id}/read:
|
|
post:
|
|
operationId: MarkMyNotificationRead
|
|
summary: Mark an item of the inbox of the current candidate as read.
|
|
description: |-
|
|
Requires the session cookie of a candidate account with a confirmed email, the CSRF token of that session in X-CSRF-Token, and an allowed Origin. The recipient comes from the session. The request has no body.
|
|
|
|
The command is idempotent by its effect: the first mark stores the read time and every repeat returns that first time, so it needs no Idempotency-Key. It never reads the source and returns no content, so marking an item whose content is no longer available still works. It changes no other item.
|
|
|
|
The general rate limit can answer 429 with Retry-After before any check.
|
|
|
|
Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated; a missing or wrong CSRF token or a disallowed Origin answers 403 csrf_check_failed; an employer account answers 403 forbidden; an item of another account and an unknown identifier both answer 404 not_found, so identifiers cannot be enumerated. A `notification_id` that is not a UUID answers 400 validation_failed with the path pointer.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- notification
|
|
parameters:
|
|
- $ref: '#/components/parameters/NotificationId'
|
|
responses:
|
|
'200':
|
|
description: The read state of the item, newly set or repeated.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/NotificationReadReceipt'
|
|
examples:
|
|
read:
|
|
$ref: '#/components/examples/NotificationReadReceipt'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/organizations/{org_id}/notifications:
|
|
get:
|
|
operationId: ListOrganizationNotifications
|
|
summary: List the inbox of the current employer in one organization.
|
|
description: |-
|
|
Requires the session cookie of an employer account with a confirmed email and an active membership in `org_id`, whatever its role. The recipient comes from the session and the organization from the path and the membership that the server holds, never from the request. Returns only the items addressed to the caller in this organization, newest delivery first with the identifier as the tie-breaker, with cursor pagination. An item of the same account in another organization, and an item of another member, are never listed. The response is `Cache-Control: no-store`.
|
|
|
|
Items follow the rules of ListMyNotifications: the inbox stores a reference to the event, an email never blocks an item, and the `content` of every item is resolved from the current source for this recipient on this read. An employer sees content only while the membership is active.
|
|
|
|
Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated; a candidate account answers 403 forbidden, and an employer account with an unconfirmed email answers 403 email_not_verified; an account without an active membership in the organization and an unknown organization both answer 404 not_found, so organizations cannot be enumerated. A malformed `org_id`, `limit`, or `cursor`, or a cursor of another account or organization, answers 400 validation_failed.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- notification
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/PageLimit'
|
|
- $ref: '#/components/parameters/PageCursor'
|
|
responses:
|
|
'200':
|
|
description: A page of the inbox of the current employer in the organization.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/NotificationList'
|
|
examples:
|
|
page:
|
|
$ref: '#/components/examples/NotificationListPage'
|
|
'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'
|
|
/api/v1/organizations/{org_id}/notifications/{notification_id}/read:
|
|
post:
|
|
operationId: MarkOrganizationNotificationRead
|
|
summary: Mark an item of the inbox of the current employer in one organization as read.
|
|
description: |-
|
|
Requires the session cookie of an employer account with a confirmed email and an active membership in `org_id`, whatever its role, the CSRF token of that session in X-CSRF-Token, and an allowed Origin. The recipient comes from the session and the organization from the path and the server-side membership. The request has no body.
|
|
|
|
The command is idempotent by its effect and returns no content, like MarkMyNotificationRead. The item must belong to the caller in this organization.
|
|
|
|
The general rate limit can answer 429 with Retry-After before any check.
|
|
|
|
Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated; a missing or wrong CSRF token or a disallowed Origin answers 403 csrf_check_failed; a candidate account answers 403 forbidden, and an employer account with an unconfirmed email answers 403 email_not_verified; an account without an active membership in the organization, an unknown organization, an item of another account, an item of another organization, and an unknown identifier all answer 404 not_found. A malformed `org_id` or `notification_id` answers 400 validation_failed with the path pointer.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- notification
|
|
parameters:
|
|
- $ref: '#/components/parameters/OrganizationId'
|
|
- $ref: '#/components/parameters/NotificationId'
|
|
responses:
|
|
'200':
|
|
description: The read state of the item, newly set or repeated.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/NotificationReadReceipt'
|
|
examples:
|
|
read:
|
|
$ref: '#/components/examples/NotificationReadReceipt'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/consents:
|
|
get:
|
|
operationId: ListMyConsents
|
|
summary: List the consents of the current account with their history.
|
|
description: |-
|
|
Requires the session cookie of a candidate or an employer account. The subject comes from the session, never from a request parameter, so the response holds only the caller's own consents: no request can name another account, and records of other accounts are never listed. Returns a page of the consent ledger of the account, newest grant first with the identifier as the tie-breaker, with cursor pagination.
|
|
|
|
The ledger is append-only. Every grant is a record with its purpose, the accepted text version, the source, and the grant time; the server also stores the hash of exactly the text the subject saw. A newer text version of the same purpose is a new record, and the earlier one becomes `superseded` without any change. A revocation stamps every unrevoked record of the purpose, and for c4 of one organization, once; a later grant is a new record. Purposes are independent.
|
|
|
|
Without `state` the page lists the whole history; `state=active` lists the consents that hold now, one per purpose for c1, c2, c3, and c5 and one per accepted invitation for c4. A c4 record names the organization with the name its consent text showed (a snapshot that a later rename does not change), the selected contact fields, and the invitation with its terms version; it never carries a contact value. A c2 record proves the consent to the publication text; the published field set and its changes are evidence of the publication history.
|
|
|
|
Settings grants of c1, c2, c3, and c5 require the currently published text and an explicit acceptance. Revoking c2, c3, or c5 is available in settings; c1 creates a durable account-deletion request, and c4 is revoked only for one organization. C4 is granted only in AcceptMyInvitation.
|
|
|
|
Access: a missing, unknown, expired, or revoked session answers 401 unauthenticated. A malformed `limit`, `cursor`, or `state` answers 400 validation_failed.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- consent
|
|
parameters:
|
|
- name: state
|
|
in: query
|
|
required: false
|
|
description: Lists only the records in this state; omit it for the whole history.
|
|
schema:
|
|
$ref: '#/components/schemas/ConsentState'
|
|
- $ref: '#/components/parameters/PageLimit'
|
|
- $ref: '#/components/parameters/PageCursor'
|
|
responses:
|
|
'200':
|
|
description: A page of the consent ledger of the current account.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ConsentRecordList'
|
|
examples:
|
|
history:
|
|
$ref: '#/components/examples/ConsentRecordListPage'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/consents/{purpose}:
|
|
put:
|
|
operationId: GrantMyConsent
|
|
summary: Record an explicit consent grant from settings.
|
|
description: |-
|
|
Requires a verified session, its CSRF token in X-CSRF-Token, and the exact configured Origin. The subject comes from the session. The body names the current text version the user read and requires `accepted: true`; the server verifies that version is still current and stores the hash of the exact text. A stale version answers 400 validation_failed at `/text_version`, without writing a grant.
|
|
|
|
C1 is available to candidate and employer accounts. C2, C3, and C5 are available only to candidate accounts. C4 is excluded and can be granted only by accepting an invitation. A repeated grant of the same current version returns the existing record; after revocation a grant creates a new record and never reopens a publication or restores an older grant.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- consent
|
|
parameters:
|
|
- name: purpose
|
|
in: path
|
|
required: true
|
|
description: Independent consent being granted. C4 is not available here.
|
|
schema:
|
|
$ref: '#/components/schemas/ConsentSettingsPurpose'
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ConsentSettingsGrantRequest'
|
|
responses:
|
|
'200':
|
|
description: The created or existing consent record.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ConsentRecord'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
description: CSRF or Origin validation failed, or an employer tried to grant a candidate-only purpose.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
csrf:
|
|
$ref: '#/components/examples/CsrfCheckFailed'
|
|
forbidden:
|
|
$ref: '#/components/examples/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
delete:
|
|
operationId: RevokeMyConsent
|
|
summary: Revoke a non-scoped consent from settings.
|
|
description: |-
|
|
Requires a verified candidate session, its CSRF token in X-CSRF-Token, and the exact configured Origin. The subject comes from the session. Revokes every unrevoked record of c2, c3, or c5, including superseded records, and never changes another purpose. Repeating a revocation is harmless and creates no duplicate event.
|
|
|
|
Revoking c2 immediately closes the stored publication and records privacy history in the same transaction; a downstream revocation intent is written to the outbox. A later c2 grant does not reopen publication or restore old grants. Revoking c3 does not block the manual assessment path. Revoking c5 makes the consent gate deny further FSP import and writes a durable stop/delete intent; an external FSP deletion adapter is not available yet.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- consent
|
|
parameters:
|
|
- name: purpose
|
|
in: path
|
|
required: true
|
|
description: Consent being revoked. C1 has a deletion-request operation and C4 requires an organization scope.
|
|
schema:
|
|
$ref: '#/components/schemas/ConsentSettingsRevokePurpose'
|
|
responses:
|
|
'204':
|
|
description: Consent revoked, or it was already revoked.
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
description: CSRF or Origin validation failed, or an employer account tried to revoke candidate consent.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
csrf:
|
|
$ref: '#/components/examples/CsrfCheckFailed'
|
|
forbidden:
|
|
$ref: '#/components/examples/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/consents/c4/organizations/{org_id}:
|
|
delete:
|
|
operationId: RevokeMyOrganizationContactConsent
|
|
summary: Revoke C4 for one organization.
|
|
description: Requires a verified candidate session, its CSRF token in X-CSRF-Token, and the exact configured Origin. The subject comes from the session; `org_id` is the only scope the caller may choose. The server revokes every unrevoked C4 record for this subject and organization, using the fields stored on those records to request downstream grant revocation. It does not affect another organization. Repeating the request is harmless and creates no duplicate event.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- consent
|
|
parameters:
|
|
- name: org_id
|
|
in: path
|
|
required: true
|
|
description: Organization whose stored C4 grants this account revokes. A well-formed identifier outside the account's stored records changes nothing and does not reveal whether that organization exists.
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
responses:
|
|
'204':
|
|
description: C4 revoked for this organization, or no active C4 was present.
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
description: CSRF or Origin validation failed, or the caller is not a candidate.
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
csrf:
|
|
$ref: '#/components/examples/CsrfCheckFailed'
|
|
forbidden:
|
|
$ref: '#/components/examples/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/account-deletion-requests:
|
|
post:
|
|
operationId: RequestMyAccountDeletion
|
|
summary: Revoke C1 and request account deletion.
|
|
description: Requires a verified session, its CSRF token in X-CSRF-Token, and the exact configured Origin. The subject comes from the session. In one transaction, revokes any active C1 record, creates or returns the subject's active durable deletion request, and writes the outbox intent. The API does not delete the account synchronously. Repeating the request returns the same active request; a later C1 grant never cancels it.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- consent
|
|
responses:
|
|
'202':
|
|
description: The durable account-deletion request is queued for processing.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ConsentDeletionRequest'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
description: CSRF or Origin validation failed.
|
|
$ref: '#/components/responses/CsrfCheckFailed'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/privacy:
|
|
get:
|
|
operationId: GetMyPrivacySettings
|
|
summary: Read the visibility settings of the current candidate.
|
|
description: |-
|
|
Requires the session cookie of a candidate account. The candidate comes from the session, never from a request parameter. Returns the publication of the candidate card, the search status, and the number of hidden organizations in one read. The response is `Cache-Control: no-store`.
|
|
|
|
A profile is closed by default. A candidate who never published reads `publication.state` `closed` with `closed_reason` `never_published`, an empty field set, and version 0; creating or saving the profile (`SaveMyProfile`) never publishes it, and no operation of the profile, the questionnaire, or an assessment changes these settings. The C2 consent, the search status, and the hidden organizations are three independent settings: the C2 record in the consent ledger proves that the candidate accepted the publication text, the publication records which fields are published, and the search status is a statement of the candidate that is not a consent. A change of one never changes another, and none of them ever makes the candidate more visible by itself: the search status lapses to the non-public `not_looking`, a revoked C2 closes the card, and a new C2 grant publishes nothing.
|
|
|
|
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- privacy
|
|
responses:
|
|
'200':
|
|
description: The visibility settings of the current candidate.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/PrivacySettings'
|
|
examples:
|
|
new_candidate:
|
|
$ref: '#/components/examples/NewCandidatePrivacySettings'
|
|
published_and_looking:
|
|
$ref: '#/components/examples/PublishedCandidatePrivacySettings'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/privacy/publication:
|
|
put:
|
|
operationId: SetMyPublication
|
|
summary: Publish or close the anonymous candidate card.
|
|
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 publication setting: `state` `published` with the non-empty set of card fields, or `closed` with an empty set. It changes only the publication; the search status and the hidden organizations stay as they were.
|
|
|
|
Publication is not a consent and does not duplicate one. The consent C2 lives in the consent ledger (`ListMyConsents`); this setting refers to it. Publishing requires an active, unrevoked C2 record of the account and binds the publication to that record, so a client sends no consent identifier and cannot forge one. Without one the server answers 409 state_conflict with the entry `{in: body, pointer: /state, code: consent_required}` in `errors`, which tells it apart from every other conflict, and changes nothing: the client gives C2 first (planned in the consent settings) and then publishes. The server takes the C2 record under a share lock in the transaction that writes the publication, so a revocation that races with a publication either commits first (the publication is refused) or closes the card right after. A revocation of C2 closes the card at once, because `state` is computed from the unrevoked record; a later C2 grant never reopens it, and the candidate publishes again under the new record. The revocation path itself closes the stored publication and revokes the contact grants in its own transaction. A closing sent over a stored publication whose C2 was revoked is a real change: it stores the closing, records `publication_closed`, and revokes the grants as any closing does. Publishing, like every visibility change, needs a verified email (a usecase requirement; the unverified account cleanup deletes only accounts without such records). Publishing never adds a field that the body did not name, and a new `CardField` value is never published for a candidate who did not choose it.
|
|
|
|
The field set contains only the groups of `CardField`. The full name, contacts, and the lowest salary have no value there, so no body can publish them. Only values that the candidate confirmed ever reach the card. Contacts reach an organization only through the contact grant (C4), and a profile that is published or closed changes none of the grants that exist; closing the publication, and hiding an organization that holds a grant, revoke the contact grants concerned with the reason `visibility_closed` in the same transaction as the change (planned together with the operations, see the invitation contract).
|
|
|
|
Optimistic concurrency uses `expected_version` in the body: the client sends the `version` it read, 0 for the first publication. If it is not the current version the server answers 412 version_conflict and changes nothing. The version travels in the body rather than in If-Match because the generated client cannot read the ETag header yet. A body that equals the stored setting changes nothing, keeps the version, and answers 200 even when `expected_version` is older, so a retry after a lost response succeeds without an Idempotency-Key. A version above the current one never existed and always answers 412. Every change is recorded in the settings history with its time, the fields, and the C2 record.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden for an employer), a version above the current one (412), rules that depend on the body alone (400), an unchanged body (200), a stale version (412), then the active C2 for a publication (409 state_conflict). The schema rejects an unknown field, a repeated or unknown card field, and more fields than there are groups; a published state with no field, and a closed state with a field, answer 400 validation_failed with the pointer `/fields`. Error bodies never repeat a submitted value.
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- privacy
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/PublicationUpdate'
|
|
examples:
|
|
publish:
|
|
$ref: '#/components/examples/PublicationUpdatePublish'
|
|
close:
|
|
$ref: '#/components/examples/PublicationUpdateClose'
|
|
responses:
|
|
'200':
|
|
description: The saved publication with its new version, or the current one when the body changes nothing.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/Publication'
|
|
examples:
|
|
published:
|
|
$ref: '#/components/examples/PublishedPublication'
|
|
'400':
|
|
$ref: '#/components/responses/PrivacyValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'409':
|
|
$ref: '#/components/responses/PublicationConsentRequired'
|
|
'412':
|
|
$ref: '#/components/responses/PrivacyVersionConflict'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/privacy/preview:
|
|
get:
|
|
operationId: GetMyCardPreview
|
|
summary: Preview the anonymous card that organizations would read.
|
|
description: |-
|
|
Requires the session cookie of a candidate account. Returns a private preview of the permitted anonymous-card fields from the current profile, publication, and consent ledger. The response is `Cache-Control: no-store`.
|
|
|
|
The preview creates no view or access record and is never shown to an organization. While the profile is closed `card` is null. Its pseudonym uses a separate preview context and is not an organization's pseudonym. Organization-specific visibility filters and cohort checks can further generalize or suppress the card when an organization reads it.
|
|
|
|
`card` is the closed `AnonymousCardContent` projection. It reaches no private profile or contact schema and contains no name, email, phone, Telegram name, employer, salary figure, account identifier, or profile identifier. Unpublished or unknown values are null. Only allowed canonical skills and generalized experience are exposed; arbitrary profile text and imported excerpts never appear. `categories` contains only confirmed assessment results. Self-assessed grades and work formats appear only through their separate explicit publication choices, and self-assessment never becomes a confirmed category. Salary compatibility is nullable and contains no salary amount.
|
|
|
|
`evidence` shows what an organization would read in the evidence section of the card (`GetOrganizationCandidateEvidence`): for each category of the card, the one assessment fact that supports its confirmed grade, with its skill, the passed grade, the trust level, the year, and the basis and calibration (`synthetic_demo`, `uncalibrated`). It is null while `card` is null, and an empty list when the card shows no category or no visible fact supports one. The preview applies no organization or cohort, so an organization can still receive less.
|
|
|
|
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- privacy
|
|
responses:
|
|
'200':
|
|
description: The anonymous card as organizations would read it now.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CardPreview'
|
|
examples:
|
|
published:
|
|
$ref: '#/components/examples/PublishedCardPreview'
|
|
closed:
|
|
$ref: '#/components/examples/ClosedCardPreview'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/privacy/search-status:
|
|
put:
|
|
operationId: SetMySearchStatus
|
|
summary: Set or confirm the search status 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 status: `looking` ("Ищу") or `not_looking`. The status is a statement of the candidate and never a consent. It changes neither the C2 consent, nor the publication, nor the hidden organizations, and it does not close or open any contact grant; a candidate whose profile is closed who sets `looking` becomes visible to no one.
|
|
|
|
`looking` stores the moment of the confirmation and a lapse time. The server takes the interval from the `search_status` section of the effective product policy (30 days in the demo policy, `searching_confirmation_interval_days`), stores the policy version it used, and fixes the lapse time then, so a later policy change moves no stored time. Setting `looking` again is the confirmation: it replaces the confirmation time with now and advances the version, also after a lapse. The body carries no time, interval, or policy version.
|
|
|
|
After the lapse time the status holds as `not_looking` with `lapsed` true on the next read. The lapse is computed and written nowhere, so it needs no job, it can never make the candidate more visible, and it never touches the publication or the hidden organizations. A reminder before the lapse is a planned notification, not a part of this operation.
|
|
|
|
Optimistic concurrency uses `expected_version` in the body, 0 for a candidate who never set the status; a stale or non-existent version answers 412 version_conflict and changes nothing. `not_looking` over a stored `not_looking` changes nothing and answers 200 even with a stale version. `looking` always changes the stored confirmation, so a retry of a confirmation whose response was lost with the old version answers 412 and the client reads the status again.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation (400), account scenario (403 forbidden for an employer), a version above the current one (412), an unchanged `not_looking` (200), then a stale version (412).
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- privacy
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/SearchStatusUpdate'
|
|
examples:
|
|
looking:
|
|
$ref: '#/components/examples/SearchStatusUpdateLooking'
|
|
responses:
|
|
'200':
|
|
description: The saved search status with its new version, or the current one when the body changes nothing.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/SearchStatus'
|
|
examples:
|
|
looking:
|
|
$ref: '#/components/examples/LookingSearchStatus'
|
|
lapsed:
|
|
$ref: '#/components/examples/LapsedSearchStatus'
|
|
'400':
|
|
$ref: '#/components/responses/PrivacyValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'412':
|
|
$ref: '#/components/responses/PrivacyVersionConflict'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/privacy/hidden-organizations:
|
|
get:
|
|
operationId: ListMyHiddenOrganizations
|
|
summary: List the organizations that the candidate hides the profile from.
|
|
description: |-
|
|
Requires the session cookie of a candidate account. The candidate comes from the session, so the response holds only the caller's own records and no request can name another account. Returns a page of the hidden organizations, newest first with the organization identifier as the tie-breaker, with cursor pagination. The response is `Cache-Control: no-store`.
|
|
|
|
The records belong to the candidate. An organization never reads them, never learns that it is hidden, and sees a hidden candidate exactly as it sees one who is not published: no search result, no card, no contact read.
|
|
|
|
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden. A malformed `limit` or `cursor` answers 400 validation_failed.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- privacy
|
|
parameters:
|
|
- $ref: '#/components/parameters/PageLimit'
|
|
- $ref: '#/components/parameters/PageCursor'
|
|
responses:
|
|
'200':
|
|
description: A page of the hidden organizations of the current candidate.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/HiddenOrganizationList'
|
|
examples:
|
|
page:
|
|
$ref: '#/components/examples/HiddenOrganizationListPage'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/privacy/hidden-organizations/{org_id}:
|
|
put:
|
|
operationId: HideOrganization
|
|
summary: Hide the candidate profile from one organization.
|
|
description: |-
|
|
Requires the session cookie of a candidate account, the CSRF token of that session in X-CSRF-Token, and an allowed Origin. The request has no body: the path names the organization and the candidate comes from the session. The hiding is a record that belongs to the candidate and references the organization; it changes neither the C2 consent, nor the publication, nor the search status.
|
|
|
|
The operation sets a state, so it is idempotent and needs no Idempotency-Key: hiding an organization that is already hidden answers 200 with the existing record and its original `hidden_at`, changes nothing, and writes no history record. There is one record per candidate and organization.
|
|
|
|
Anti-enumeration: an organization that does not exist and an organization that the candidate cannot see answer the same 404 not_found, with the same body and without a timing or an error code that tells them apart, so the operation is not a way to ask whether an identifier belongs to an organization. The candidate may name an organization in their own card-access history or an existing hidden-organization record. Invitation visibility will be added with the invitation workflow, and a candidate lookup remains planned. The response names the organization only after that check, with its current name. The identifiers are random, the general rate limit applies and can answer 429 with Retry-After before any check, and the record never reveals to an organization that a candidate hides it.
|
|
|
|
A candidate hides at most 1000 organizations; hiding one more answers 409 state_conflict with the entry `{in: path, pointer: /org_id, code: limit_reached}` in `errors`, which tells it apart from other conflicts, and changes nothing, and a repeat of an existing hiding is never refused for the limit.
|
|
|
|
Hiding an organization that holds an active contact grant of the candidate revokes that grant with the reason `visibility_closed` in the same transaction (planned together with the invitation operations). Lifting the hiding never reopens a grant.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation of the path (400), account scenario (403 forbidden for an employer), the organization and its visibility to the candidate (404 not_found), then the repeat (200), then the limit (409 state_conflict). Like every visibility change, hiding needs a verified email (a usecase requirement).
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- privacy
|
|
parameters:
|
|
- $ref: '#/components/parameters/HiddenOrganizationId'
|
|
responses:
|
|
'200':
|
|
description: 'The organization is hidden from the candidate profile: the new record or the one that existed.'
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/HiddenOrganization'
|
|
examples:
|
|
hidden:
|
|
$ref: '#/components/examples/HiddenOrganizationRecord'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
'404':
|
|
$ref: '#/components/responses/NotFound'
|
|
'409':
|
|
$ref: '#/components/responses/HiddenOrganizationLimit'
|
|
'429':
|
|
$ref: '#/components/responses/TooManyRequests'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
delete:
|
|
operationId: UnhideOrganization
|
|
summary: Lift the hiding of the candidate profile from one organization.
|
|
description: |-
|
|
Requires the session cookie of a candidate account, the CSRF token of that session in X-CSRF-Token, and an allowed Origin. Deletes the hiding record of the candidate for the organization in the path. The request is idempotent: it answers 204 whether the organization was hidden, was not hidden, or does not exist, so the operation reveals nothing about the organization, and a repeat after a lost response succeeds. The record is deleted, the settings history keeps the event `organization_unhidden` only when a record was deleted.
|
|
|
|
Lifting the hiding makes the candidate readable by that organization again only if the profile is published and the organization otherwise may read it. It changes neither the C2 consent, nor the publication, nor the search status, and it never reopens a contact grant that the hiding closed.
|
|
|
|
Order of checks: session (401), CSRF and Origin (403 csrf_check_failed), request validation of the path (400), account scenario (403 forbidden for an employer), then the deletion (204).
|
|
security:
|
|
- sessionCookie: []
|
|
sessionCsrf: []
|
|
tags:
|
|
- privacy
|
|
parameters:
|
|
- $ref: '#/components/parameters/HiddenOrganizationId'
|
|
responses:
|
|
'204':
|
|
description: The organization is not hidden from the candidate profile.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/CsrfCheckFailedOrForbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/privacy/history:
|
|
get:
|
|
operationId: ListMyPrivacyHistory
|
|
summary: List the changes of the visibility settings of the current candidate.
|
|
description: |-
|
|
Requires the session cookie of a candidate account. The candidate comes from the session, so the response holds only the caller's own records. Returns a page of the settings history, newest first with the event identifier as the tie-breaker, with cursor pagination. The response is `Cache-Control: no-store`.
|
|
|
|
The history is append-only evidence of what the candidate published, hid, and announced, and when. A publication event keeps the published fields and the C2 record behind them, which is what the consent ledger deliberately does not carry (the C2 record proves the consent to the text, not the field set). A revocation of C2 and a lapse of the search status are computed and are not events here; the consent history shows the revocation. The history never contains a profile value.
|
|
|
|
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden. A malformed `limit` or `cursor` answers 400 validation_failed.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- privacy
|
|
parameters:
|
|
- $ref: '#/components/parameters/PageLimit'
|
|
- $ref: '#/components/parameters/PageCursor'
|
|
responses:
|
|
'200':
|
|
description: A page of the settings history of the current candidate.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/PrivacyEventList'
|
|
examples:
|
|
page:
|
|
$ref: '#/components/examples/PrivacyEventListPage'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/privacy/access-history:
|
|
get:
|
|
operationId: ListMyCardAccessHistory
|
|
summary: List the accesses of organizations to the card of the current candidate.
|
|
description: |-
|
|
Requires the session cookie of a candidate account. The candidate comes from the session, so the response holds only accesses to the caller's own card. Returns a page, newest first with the record identifier as the tie-breaker, with cursor pagination. The response is `Cache-Control: no-store`.
|
|
|
|
An access is a view of the anonymous card by an organization (`card_viewed`) or a read of the contacts through an active contact grant (`contact_read`). Reading the history is not an access and writes nothing. A retained access record permits the candidate to see the organization's identifier and current name and to hide their profile from it. The nullable organization field is preserved for records whose organization cannot be presented. The entries carry no employee identity, search query, filter, or ranking of the organization. Hiding an organization prevents future reads; it does not erase earlier permitted accesses from the history.
|
|
|
|
Successful organization card reads are recorded transactionally with the visibility and quota checks. Contact-read records require the invitation grant workflow, which is not implemented yet; an accepted workflow status alone never authorizes contact access.
|
|
|
|
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden. A malformed `limit` or `cursor` answers 400 validation_failed.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- privacy
|
|
parameters:
|
|
- $ref: '#/components/parameters/PageLimit'
|
|
- $ref: '#/components/parameters/PageCursor'
|
|
responses:
|
|
'200':
|
|
description: A page of the accesses to the card of the current candidate.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/CardAccessList'
|
|
examples:
|
|
page:
|
|
$ref: '#/components/examples/CardAccessListPage'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
default:
|
|
$ref: '#/components/responses/Problem'
|
|
/api/v1/me/evidence:
|
|
get:
|
|
operationId: ListMyEvidence
|
|
summary: List the skill evidence of the current candidate.
|
|
description: |-
|
|
Requires the session cookie of a candidate account. The candidate comes from the session, so the response holds only the caller's own facts. Returns a page, newest event first with the fact identifier as the tie-breaker, with cursor pagination. The response is `Cache-Control: no-store`.
|
|
|
|
A fact is derived from the immutable result of a confirmed real assessment (root or corrective), in the same transaction that stores the result. Each fact names its source (the event and the result, which the candidate can open at `GetMyAssessmentResult`), the skills of the event, the grade that was passed with its basis and calibration, the attribution, the date, the visibility, and the trust level. An online assessment without a reliable confirmation of the identity has trust 1. One source event is one fact: its skills are tags of that fact, so several tags never make several facts.
|
|
|
|
The list never carries raw answers, items, scores, failed attempts, or anti-cheat data. A failed attempt, a result without a reviewed category source, and an express training run (`demo_express`) create no fact, so reading the list before and after an express run shows no new fact. The list includes facts the candidate hid, with `visibility` `hidden`.
|
|
|
|
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account, or a candidate with an unverified email, answers 403 forbidden. A malformed `limit` or `cursor`, or a cursor of another candidate, answers 400 validation_failed.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- evidence
|
|
parameters:
|
|
- $ref: '#/components/parameters/PageLimit'
|
|
- $ref: '#/components/parameters/PageCursor'
|
|
responses:
|
|
'200':
|
|
description: A page of the skill evidence of the current candidate.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: '#/components/headers/CacheControlNoStore'
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/EvidenceFactList'
|
|
examples:
|
|
page:
|
|
$ref: '#/components/examples/EvidenceFactListPage'
|
|
'400':
|
|
$ref: '#/components/responses/ValidationFailed'
|
|
'401':
|
|
$ref: '#/components/responses/Unauthenticated'
|
|
'403':
|
|
$ref: '#/components/responses/Forbidden'
|
|
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 shows the candidate its profile, and to an employer account when the account has an active membership in it. Invitations are in the contract but not implemented yet, so until they are, every `invitation` reference answers 404 not_found; anti-cheat review decisions are not either, so until review decisions are implemented, 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 pointer `/object/id`. 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. The contract answers 404, 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. validation_failed always carries them; state_conflict may carry one as a disambiguator when one code covers several conflicts (for example consent_required and limit_reached). Other codes omit it. A problem writer must not strip errors from a non-validation response.
|
|
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), and, on a state_conflict, `consent_required` (the operation needs a consent that is not active) and `limit_reached` (a per-account bound is reached). 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. A successful SaveMyQuestionnaire moves the account from candidate_questionnaire to this step and leaves every other saved step unchanged.
|
|
- 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
|
|
ConsentSettingsPurpose:
|
|
type: string
|
|
description: Consent text that an authenticated account can read and accept in settings. C4 is scoped to an invitation and organization, so it is not available through the general settings flow.
|
|
enum:
|
|
- c1
|
|
- c2
|
|
- c3
|
|
- c5
|
|
ConsentSettingsRevokePurpose:
|
|
type: string
|
|
description: Consent that can be revoked through the general settings flow. C1 uses the account deletion request, and C4 must be revoked for one organization.
|
|
enum:
|
|
- c2
|
|
- c3
|
|
- c5
|
|
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/ConsentPurposeCode'
|
|
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: One-time token copied from the verification link and the password chosen for the registration that issued it. The password is never included in the link.
|
|
additionalProperties: false
|
|
required:
|
|
- token
|
|
- password
|
|
properties:
|
|
token:
|
|
$ref: '#/components/schemas/VerificationToken'
|
|
password:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 128
|
|
description: Password chosen for the registration that issued this token. It is sent in the request body and never appears in the verification link. The server applies NFKC normalization and the login length bounds, without reapplying the current new-registration blocklist.
|
|
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 (`ProfileTerms`). The acceptable work formats live only here: the profile does not repeat them.'
|
|
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. The work history entries of the candidate profile (`ProfileExperienceItem`) are a different, detailed claim: the two are saved separately and the server neither adds the entries up nor fills them from these totals.'
|
|
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. The candidate profile states the same kind of claim in the `roles` of `CandidateProfile` (`ProfileRoleItem.self_assessed_grade`): the questionnaire value starts the assessment and the profile value is what the profile shows, the two are saved separately, and neither is ever a confirmed grade.'
|
|
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'
|
|
ProfileVersion:
|
|
type: integer
|
|
format: int64
|
|
minimum: 0
|
|
description: Version of the candidate profile. A candidate who has not saved the profile has version 0; every save that changes the profile advances it by one. The client sends the version it read as `expected_version`.
|
|
examples:
|
|
- 4
|
|
ProfileItemStatus:
|
|
type: string
|
|
description: |-
|
|
Confirmation state of a profile list item, and the decision that a request sends for a field or an item.
|
|
|
|
- confirmed: the candidate typed the value or confirmed a suggestion. Only confirmed values leave the profile, for example into a disclosure.
|
|
- extracted: a suggestion that the server took from an imported document or source. Nobody has confirmed it yet, so it is a claim of trust level 0 that no other feature uses.
|
|
|
|
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; a client that submits an unchanged form therefore confirms nothing by accident. An item is never `unknown`: a missing item is simply absent from the list.
|
|
enum:
|
|
- confirmed
|
|
- extracted
|
|
ProfileClaimStatus:
|
|
type: string
|
|
description: |-
|
|
Confirmation state of a single profile field.
|
|
|
|
- confirmed: the candidate typed the value or confirmed a suggestion.
|
|
- extracted: the server proposed the value from an imported document or source and the candidate has not confirmed it. It is a claim of trust level 0.
|
|
- 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 zero salary or a relocation answer.
|
|
enum:
|
|
- confirmed
|
|
- extracted
|
|
- unknown
|
|
ProfileClaimOrigin:
|
|
type: string
|
|
description: |-
|
|
Where the value of a profile field or item came from. The server sets it; a request never sends it.
|
|
|
|
- manual: the candidate typed the value in the form. `quote` and `extraction_version` are null.
|
|
- extracted_from_resume: planned; the server extracted the value from an uploaded resume with the deterministic rules or the ML service. No MVP operation produces it, and no profile requires a resume.
|
|
- imported: planned; the value was copied from an external source such as the FSP account of the candidate. No MVP operation produces it, and no profile requires such a link.
|
|
|
|
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_resume
|
|
- imported
|
|
ProfileClaimTrustLevel:
|
|
type: integer
|
|
format: int32
|
|
minimum: 0
|
|
maximum: 0
|
|
description: 'Trust level of a profile claim. Every claim of the profile has trust level 0, whatever its origin: a manual value, an imported value, and a value that the candidate confirmed are all unverified statements. Confirming a suggestion changes its status, never its trust level. Higher levels belong to evidence, such as an assessment result or a confirmation by a third party, which are separate resources and never write a level into a profile claim.'
|
|
examples:
|
|
- 0
|
|
ProfileClaimQuote:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 300
|
|
description: Exact excerpt of the imported document that the value was extracted from, so the candidate can check it. It may contain personal data of the candidate. It may contain line breaks. Plain text; clients show it as text, never as HTML.
|
|
ProfileClaimSource:
|
|
type: object
|
|
description: 'Provenance and confirmation of one profile value: its origin, the trust level, the excerpt it was extracted from, the extractor version, and the time the candidate confirmed it. Read-only; the server derives it and a request cannot set it. The imported document or source itself is not referenced: the profile never requires a file, the ML service, or an FSP account, and a later link to them is an additive field.'
|
|
additionalProperties: false
|
|
required:
|
|
- origin
|
|
- trust_level
|
|
- quote
|
|
- extraction_version
|
|
- confirmed_at
|
|
properties:
|
|
origin:
|
|
$ref: '#/components/schemas/ProfileClaimOrigin'
|
|
trust_level:
|
|
$ref: '#/components/schemas/ProfileClaimTrustLevel'
|
|
quote:
|
|
description: Excerpt of the imported document 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/ProfileClaimQuote'
|
|
- 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'
|
|
confirmed_at:
|
|
description: Time the candidate typed or confirmed the value, or null while the value is an unconfirmed suggestion.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
ProfileLocationName:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 100
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: City or region where the candidate lives or wants to work, as free text. It is personal data of the candidate and never a street address. It has no leading or trailing whitespace and no line breaks. Plain text; clients show it as text, never as HTML.
|
|
ProfileSalaryMinimum:
|
|
type: object
|
|
description: 'The lowest salary that the candidate accepts, in whole rubles with its base: the currency, the pay period, and the tax basis. It is private to the candidate: no organization reads it, and the invitation only shows a compatibility indicator that the server derives from it. It is personal data. The amount is a positive multiple of 1000.'
|
|
additionalProperties: false
|
|
required:
|
|
- amount
|
|
- currency
|
|
- period
|
|
- tax_basis
|
|
properties:
|
|
amount:
|
|
$ref: '#/components/schemas/RubAmount'
|
|
currency:
|
|
$ref: '#/components/schemas/CurrencyCode'
|
|
period:
|
|
$ref: '#/components/schemas/SalaryPeriod'
|
|
tax_basis:
|
|
$ref: '#/components/schemas/SalaryTaxBasis'
|
|
ProfileSoftSkill:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 50
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: Soft skill as the candidate wrote it, for example "Mentoring" or "Negotiation". The platform has no soft skill taxonomy, so the text is free; it never changes a category or a grade. It has no leading or trailing whitespace and no line breaks. The server compares skills without regard to letter case. Plain text; clients show it as text, never as HTML.
|
|
ProfileEmployerName:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 200
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: Name of the employer in one experience entry, as the candidate wrote it. It is personal data of the candidate's career. It has no leading or trailing whitespace and no line breaks. Plain text; clients show it as text, never as HTML.
|
|
ProfileExperienceSummary:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 1000
|
|
description: Tasks and results of the candidate in one experience entry. It describes the work rather than a job title. It may contain line breaks and personal data of the candidate; it must not contain personal data of other people. Plain text; clients show it as text, never as HTML.
|
|
ProfileYearMonth:
|
|
type: string
|
|
minLength: 7
|
|
maxLength: 7
|
|
pattern: ^[0-9]{4}-(0[1-9]|1[0-2])$
|
|
description: Calendar month in the `YYYY-MM` format, for example 2024-03. An experience period has month precision only, so the contract holds no exact date of employment. The server rejects a month that lies in the future.
|
|
examples:
|
|
- 2024-03
|
|
ProfileFullNameClaim:
|
|
type: object
|
|
description: Full name of the candidate with its confirmation state and provenance. The value is personal data. It is disclosed to one organization only through the contact grant of the consent C4 and never appears in an organization-visible schema. `value` and `source` are null exactly when `status` is `unknown`.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- value
|
|
- source
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/ProfileClaimStatus'
|
|
value:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ContactFullName'
|
|
- type: 'null'
|
|
source:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileClaimSource'
|
|
- type: 'null'
|
|
ProfileEmailClaim:
|
|
type: object
|
|
description: 'Contact email of the candidate with its confirmation state and provenance. It is personal data. It is a contact channel that the candidate gives, not the login of the account: the two may differ, the server never sends mail to it and never verifies it. `value` and `source` are null exactly when `status` is `unknown`.'
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- value
|
|
- source
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/ProfileClaimStatus'
|
|
value:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/EmailAddress'
|
|
- type: 'null'
|
|
source:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileClaimSource'
|
|
- type: 'null'
|
|
ProfilePhoneClaim:
|
|
type: object
|
|
description: Contact phone number of the candidate with its confirmation state and provenance. It is personal data, stored in the E.164 format of the contact disclosure. `value` and `source` are null exactly when `status` is `unknown`.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- value
|
|
- source
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/ProfileClaimStatus'
|
|
value:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ContactPhoneNumber'
|
|
- type: 'null'
|
|
source:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileClaimSource'
|
|
- type: 'null'
|
|
ProfileTelegramClaim:
|
|
type: object
|
|
description: Telegram username of the candidate with its confirmation state and provenance. It is personal data, stored with the leading @ of the contact disclosure. `value` and `source` are null exactly when `status` is `unknown`.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- value
|
|
- source
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/ProfileClaimStatus'
|
|
value:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ContactTelegramUsername'
|
|
- type: 'null'
|
|
source:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileClaimSource'
|
|
- type: 'null'
|
|
ProfileLocationClaim:
|
|
type: object
|
|
description: Place of the candidate with its confirmation state and provenance. It is personal data. `value` and `source` are null exactly when `status` is `unknown`.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- value
|
|
- source
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/ProfileClaimStatus'
|
|
value:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileLocationName'
|
|
- type: 'null'
|
|
source:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileClaimSource'
|
|
- type: 'null'
|
|
ProfileRelocationClaim:
|
|
type: object
|
|
description: Whether the candidate is ready to relocate, with its confirmation state and provenance. `value` and `source` are null exactly when `status` is `unknown`; the server never assumes an answer.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- value
|
|
- source
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/ProfileClaimStatus'
|
|
value:
|
|
type:
|
|
- boolean
|
|
- 'null'
|
|
source:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileClaimSource'
|
|
- type: 'null'
|
|
ProfileSalaryMinimumClaim:
|
|
type: object
|
|
description: Lowest acceptable salary with its confirmation state and provenance. It is personal data that no organization reads. `value` and `source` are null exactly when `status` is `unknown`; the server never substitutes zero or a market estimate.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- value
|
|
- source
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/ProfileClaimStatus'
|
|
value:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileSalaryMinimum'
|
|
- type: 'null'
|
|
source:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileClaimSource'
|
|
- type: 'null'
|
|
ProfileContacts:
|
|
type: object
|
|
description: Contact channels of the candidate. Each channel is a claim of its own, and the candidate fills in any subset. The kinds are the ones that the contact disclosure (consent C4) can pass on, with the same value formats, so a disclosure never has to convert or drop a stored value; adding a kind, such as a link to a code repository, is a contract change in both places. Contacts leave the profile only through a contact grant, never in a card or a search result. All values are personal data.
|
|
additionalProperties: false
|
|
required:
|
|
- email
|
|
- phone
|
|
- telegram
|
|
properties:
|
|
email:
|
|
$ref: '#/components/schemas/ProfileEmailClaim'
|
|
phone:
|
|
$ref: '#/components/schemas/ProfilePhoneClaim'
|
|
telegram:
|
|
$ref: '#/components/schemas/ProfileTelegramClaim'
|
|
ProfileTerms:
|
|
type: object
|
|
description: 'Conditions that the candidate wants: the place, readiness to relocate, and the lowest salary. Acceptable work formats are not repeated here; they are the `work_formats` of the questionnaire `WorkContext`, the only place that holds them. These are the candidate''s wishes, never the terms of an invitation, which an organization offers and which the invitation contract describes.'
|
|
additionalProperties: false
|
|
required:
|
|
- location
|
|
- relocation
|
|
- salary_minimum
|
|
properties:
|
|
location:
|
|
$ref: '#/components/schemas/ProfileLocationClaim'
|
|
relocation:
|
|
$ref: '#/components/schemas/ProfileRelocationClaim'
|
|
salary_minimum:
|
|
$ref: '#/components/schemas/ProfileSalaryMinimumClaim'
|
|
ProfileStackItem:
|
|
type: object
|
|
description: 'One technology tag of the candidate''s stack with its confirmation state and provenance. The profile stack is one list for the whole profile; the questionnaire holds the tags of each chosen specialization with the same `StackTag` meaning, and the two lists are independent: the server never copies one into the other. A tag is a descriptive attribute and never forms a category.'
|
|
additionalProperties: false
|
|
required:
|
|
- tag
|
|
- status
|
|
- source
|
|
properties:
|
|
tag:
|
|
$ref: '#/components/schemas/StackTag'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
source:
|
|
$ref: '#/components/schemas/ProfileClaimSource'
|
|
ProfileSoftSkillItem:
|
|
type: object
|
|
description: One soft skill of the candidate with its confirmation state and provenance. It is a claim; no assessment checks it.
|
|
additionalProperties: false
|
|
required:
|
|
- skill
|
|
- status
|
|
- source
|
|
properties:
|
|
skill:
|
|
$ref: '#/components/schemas/ProfileSoftSkill'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
source:
|
|
$ref: '#/components/schemas/ProfileClaimSource'
|
|
ProfileRoleItem:
|
|
type: object
|
|
description: 'One role of the candidate: a specialization of the catalog with the grade that the candidate claims for it. `self_assessed_grade` is a claim, the same one that the questionnaire calls `self_assessed_grade` for its at most two chosen specializations: it influences nothing but the display and never becomes a confirmed grade or a category. The questionnaire value starts the assessment and the profile value is what the profile shows; the two are saved separately and the server never copies one into the other. A confirmed grade comes only from an assessment result and appears in `confirmed_categories` of the profile, never in a role; unknown fields such as `confirmed_grade` or `category` are rejected.'
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- self_assessed_grade
|
|
- status
|
|
- source
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
self_assessed_grade:
|
|
description: Grade that the candidate claims in the specialization, or null when the candidate names none.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
source:
|
|
$ref: '#/components/schemas/ProfileClaimSource'
|
|
ProfileExperienceItem:
|
|
type: object
|
|
description: 'One entry of the candidate''s work history with its confirmation state and provenance. An entry describes the work by its specialization and tasks rather than by a job title, and it is a claim of trust level 0. It is different from the `CandidateExperience` of the questionnaire, which holds only the total months of commercial and academic experience of a chosen specialization as a hint for the assessment: the two are saved separately, and the server neither adds the entries up for the questionnaire nor fills the entries from it. An entry is personal data.'
|
|
additionalProperties: false
|
|
required:
|
|
- employer_name
|
|
- specialization
|
|
- started_on
|
|
- ended_on
|
|
- summary
|
|
- status
|
|
- source
|
|
properties:
|
|
employer_name:
|
|
description: Employer of the entry, or null when the candidate gives none.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileEmployerName'
|
|
- type: 'null'
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
started_on:
|
|
$ref: '#/components/schemas/ProfileYearMonth'
|
|
ended_on:
|
|
description: Last month of the work, or null when the candidate still works there. It is not earlier than `started_on`.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileYearMonth'
|
|
- type: 'null'
|
|
summary:
|
|
description: Tasks and results of the entry, or null when the candidate gives none.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileExperienceSummary'
|
|
- type: 'null'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
source:
|
|
$ref: '#/components/schemas/ProfileClaimSource'
|
|
ProfileExperienceOverlapStatus:
|
|
type: string
|
|
description: Whether the candidate confirmed that two overlapping periods are genuine parallel work.
|
|
enum:
|
|
- needs_confirmation
|
|
- confirmed
|
|
ProfileExperienceOverlap:
|
|
type: object
|
|
description: One pair of work history entries whose inclusive month ranges overlap. The indices refer to the experience array in this profile version. `confirmed` records an explicit acknowledgement for this pair of dates; otherwise the pair needs confirmation before a changed profile can be saved.
|
|
additionalProperties: false
|
|
required:
|
|
- first_index
|
|
- second_index
|
|
- status
|
|
properties:
|
|
first_index:
|
|
type: integer
|
|
minimum: 0
|
|
maximum: 19
|
|
second_index:
|
|
type: integer
|
|
minimum: 1
|
|
maximum: 19
|
|
status:
|
|
$ref: '#/components/schemas/ProfileExperienceOverlapStatus'
|
|
ProfileExperiencePeriod:
|
|
type: object
|
|
description: The exact month range of an experience entry, copied into a confirmation.
|
|
additionalProperties: false
|
|
required:
|
|
- started_on
|
|
- ended_on
|
|
properties:
|
|
started_on:
|
|
$ref: '#/components/schemas/ProfileYearMonth'
|
|
ended_on:
|
|
description: Last month of work, or null when the period is open-ended.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileYearMonth'
|
|
- type: 'null'
|
|
ProfileParallelPeriodConfirmation:
|
|
type: object
|
|
description: Explicit acknowledgement that the two indexed experience periods are genuine parallel work. The indices and exact ranges must match the submitted experience array; expected_version binds the acknowledgement to the profile version the candidate read.
|
|
additionalProperties: false
|
|
required:
|
|
- first_index
|
|
- second_index
|
|
- first_period
|
|
- second_period
|
|
properties:
|
|
first_index:
|
|
type: integer
|
|
minimum: 0
|
|
maximum: 19
|
|
second_index:
|
|
type: integer
|
|
minimum: 1
|
|
maximum: 19
|
|
first_period:
|
|
$ref: '#/components/schemas/ProfileExperiencePeriod'
|
|
second_period:
|
|
$ref: '#/components/schemas/ProfileExperiencePeriod'
|
|
ProfileConfirmedCategory:
|
|
type: object
|
|
description: 'A category that an assessment result confirmed: the specialization with the confirmed grade. It is read-only and derived by the server from the assessment results of the candidate; no request carries it and the profile storage holds no such column, so neither a form nor an import can write a confirmed grade. It is separate from the claims of the profile and from the self-assessed grades in `roles`. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category that is not a validated measurement.'
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- grade
|
|
- basis
|
|
- confirmed_at
|
|
- attempt_id
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
basis:
|
|
$ref: '#/components/schemas/EvidenceBasis'
|
|
confirmed_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
attempt_id:
|
|
type: string
|
|
format: uuid
|
|
description: Assessment attempt whose result confirmed the grade. The attempt belongs to the candidate.
|
|
CandidateProfile:
|
|
type: object
|
|
description: |-
|
|
The private profile of the current candidate: full name and contacts, stack, roles, work experience, soft skills, and desired terms, each value with its confirmation state and provenance. It is personal data that only the candidate reads. It is never an organization-visible schema: an organization sees a candidate only through the anonymous card and, after an accepted invitation, through the contact grant, and no organization schema refers to this one.
|
|
Every value is a claim of trust level 0. The `self_assessed_grade` of a role is what the candidate says; the `confirmed_categories` list is what assessment results established, and the two are never mixed. A candidate who has not saved the profile gets version 0, every single field `unknown`, empty lists, and null `updated_at`.
|
|
The profile is manual by nature and complete without a file: no field requires a resume, the ML service, or an FSP account, and a candidate with none of them has the same fields. Work formats live in the questionnaire; a candidate's assessment starts from the questionnaire, not from this profile.
|
|
additionalProperties: false
|
|
required:
|
|
- version
|
|
- full_name
|
|
- contacts
|
|
- stack
|
|
- roles
|
|
- experience
|
|
- experience_overlaps
|
|
- soft_skills
|
|
- terms
|
|
- confirmed_categories
|
|
- updated_at
|
|
properties:
|
|
version:
|
|
$ref: '#/components/schemas/ProfileVersion'
|
|
full_name:
|
|
$ref: '#/components/schemas/ProfileFullNameClaim'
|
|
contacts:
|
|
$ref: '#/components/schemas/ProfileContacts'
|
|
stack:
|
|
type: array
|
|
maxItems: 30
|
|
description: Technology tags in the order the candidate gave them, each tag at most once without regard to letter case.
|
|
items:
|
|
$ref: '#/components/schemas/ProfileStackItem'
|
|
roles:
|
|
type: array
|
|
maxItems: 9
|
|
description: Roles in the order the candidate gave them, each specialization at most once.
|
|
items:
|
|
$ref: '#/components/schemas/ProfileRoleItem'
|
|
experience:
|
|
type: array
|
|
maxItems: 20
|
|
description: Work history entries in the order the candidate gave them.
|
|
items:
|
|
$ref: '#/components/schemas/ProfileExperienceItem'
|
|
experience_overlaps:
|
|
type: array
|
|
maxItems: 190
|
|
description: Every pair of overlapping experience periods, with its confirmation status. The indices refer to this version's experience array.
|
|
items:
|
|
$ref: '#/components/schemas/ProfileExperienceOverlap'
|
|
soft_skills:
|
|
type: array
|
|
maxItems: 10
|
|
description: Soft skills in the order the candidate gave them, each skill at most once without regard to letter case.
|
|
items:
|
|
$ref: '#/components/schemas/ProfileSoftSkillItem'
|
|
terms:
|
|
$ref: '#/components/schemas/ProfileTerms'
|
|
confirmed_categories:
|
|
type: array
|
|
maxItems: 9
|
|
description: Categories that assessment results confirmed, at most one per specialization, in catalog order. Read-only and empty until an assessment confirms a grade.
|
|
items:
|
|
$ref: '#/components/schemas/ProfileConfirmedCategory'
|
|
updated_at:
|
|
description: Time of the last change, or null before the first save.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
ProfileFullNameInput:
|
|
type: object
|
|
description: Decision about the full name in a request; see CandidateProfileUpdate for the rules of `status`. The value is personal data.
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- status
|
|
properties:
|
|
value:
|
|
$ref: '#/components/schemas/ContactFullName'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
ProfileEmailInput:
|
|
type: object
|
|
description: Decision about the contact email in a request; see CandidateProfileUpdate for the rules of `status`. The value is personal data.
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- status
|
|
properties:
|
|
value:
|
|
$ref: '#/components/schemas/EmailAddress'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
ProfilePhoneInput:
|
|
type: object
|
|
description: Decision about the contact phone number in a request; see CandidateProfileUpdate for the rules of `status`. The value is personal data.
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- status
|
|
properties:
|
|
value:
|
|
$ref: '#/components/schemas/ContactPhoneNumber'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
ProfileTelegramInput:
|
|
type: object
|
|
description: Decision about the Telegram username in a request; see CandidateProfileUpdate for the rules of `status`. The value is personal data.
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- status
|
|
properties:
|
|
value:
|
|
$ref: '#/components/schemas/ContactTelegramUsername'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
ProfileLocationInput:
|
|
type: object
|
|
description: Decision about the place in a request; see CandidateProfileUpdate for the rules of `status`. The value is personal data.
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- status
|
|
properties:
|
|
value:
|
|
$ref: '#/components/schemas/ProfileLocationName'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
ProfileRelocationInput:
|
|
type: object
|
|
description: Decision about readiness to relocate in a request; see CandidateProfileUpdate for the rules of `status`.
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- status
|
|
properties:
|
|
value:
|
|
type: boolean
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
ProfileSalaryMinimumInput:
|
|
type: object
|
|
description: Decision about the lowest salary in a request; see CandidateProfileUpdate for the rules of `status`. The value is personal data.
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- status
|
|
properties:
|
|
value:
|
|
$ref: '#/components/schemas/ProfileSalaryMinimum'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
ProfileContactsInput:
|
|
type: object
|
|
description: 'Decisions about the contact channels in a request. A channel sent as null is unknown: it is removed if it was set.'
|
|
additionalProperties: false
|
|
required:
|
|
- email
|
|
- phone
|
|
- telegram
|
|
properties:
|
|
email:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileEmailInput'
|
|
- type: 'null'
|
|
phone:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfilePhoneInput'
|
|
- type: 'null'
|
|
telegram:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileTelegramInput'
|
|
- type: 'null'
|
|
ProfileTermsInput:
|
|
type: object
|
|
description: 'Decisions about the desired terms in a request. A field sent as null is unknown: it is removed if it was set.'
|
|
additionalProperties: false
|
|
required:
|
|
- location
|
|
- relocation
|
|
- salary_minimum
|
|
properties:
|
|
location:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileLocationInput'
|
|
- type: 'null'
|
|
relocation:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileRelocationInput'
|
|
- type: 'null'
|
|
salary_minimum:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileSalaryMinimumInput'
|
|
- type: 'null'
|
|
ProfileStackItemInput:
|
|
type: object
|
|
description: Decision about one stack tag in a request; see CandidateProfileUpdate for the rules of `status`.
|
|
additionalProperties: false
|
|
required:
|
|
- tag
|
|
- status
|
|
properties:
|
|
tag:
|
|
$ref: '#/components/schemas/StackTag'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
ProfileSoftSkillItemInput:
|
|
type: object
|
|
description: Decision about one soft skill in a request; see CandidateProfileUpdate for the rules of `status`.
|
|
additionalProperties: false
|
|
required:
|
|
- skill
|
|
- status
|
|
properties:
|
|
skill:
|
|
$ref: '#/components/schemas/ProfileSoftSkill'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
ProfileRoleItemInput:
|
|
type: object
|
|
description: 'Decision about one role in a request; see CandidateProfileUpdate for the rules of `status`. The object has no confirmed grade and no category: unknown fields are rejected.'
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- self_assessed_grade
|
|
- status
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
self_assessed_grade:
|
|
description: Grade that the candidate claims, or null when the candidate names none.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
ProfileExperienceItemInput:
|
|
type: object
|
|
description: Decision about one work history entry in a request; see CandidateProfileUpdate for the rules of `status`. The server also requires `ended_on` not to precede `started_on` and no month to lie in the future, and answers 400 with the pointer of the month.
|
|
additionalProperties: false
|
|
required:
|
|
- employer_name
|
|
- specialization
|
|
- started_on
|
|
- ended_on
|
|
- summary
|
|
- status
|
|
properties:
|
|
employer_name:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileEmployerName'
|
|
- type: 'null'
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
started_on:
|
|
$ref: '#/components/schemas/ProfileYearMonth'
|
|
ended_on:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileYearMonth'
|
|
- type: 'null'
|
|
summary:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileExperienceSummary'
|
|
- type: 'null'
|
|
status:
|
|
$ref: '#/components/schemas/ProfileItemStatus'
|
|
CandidateProfileUpdate:
|
|
type: object
|
|
description: |-
|
|
Complete new state of the candidate profile. It replaces every stored value as a whole: a single field sent as null is unknown and is removed, and a list replaces the stored list. The body is personal data.
|
|
Each value carries a decision `status`. `confirmed` sets a manual value or confirms a stored suggestion; confirming a suggestion with exactly its stored value keeps its origin and quote, and any other value makes the claim manual. `extracted` keeps a stored suggestion unconfirmed and is accepted only with exactly the stored value; any other use answers 400 with the pointer of that status, for example `/stack/1/status`. The provenance, the trust level, and the confirmed categories are not part of the request, and unknown fields are rejected, so a request can neither mark a claim as verified nor write a confirmed grade or a category.
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
- full_name
|
|
- contacts
|
|
- stack
|
|
- roles
|
|
- experience
|
|
- soft_skills
|
|
- terms
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/ProfileVersion'
|
|
full_name:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ProfileFullNameInput'
|
|
- type: 'null'
|
|
contacts:
|
|
$ref: '#/components/schemas/ProfileContactsInput'
|
|
stack:
|
|
type: array
|
|
maxItems: 30
|
|
description: Technology tags. The schema limits the count; the server also answers 400 with the pointer of a tag that repeats an earlier one without regard to letter case, for example `/stack/2/tag`.
|
|
items:
|
|
$ref: '#/components/schemas/ProfileStackItemInput'
|
|
roles:
|
|
type: array
|
|
maxItems: 9
|
|
description: Roles. The server answers 400 with the pointer of a role whose specialization repeats an earlier one, for example `/roles/1/specialization`.
|
|
items:
|
|
$ref: '#/components/schemas/ProfileRoleItemInput'
|
|
experience:
|
|
type: array
|
|
maxItems: 20
|
|
description: Work history entries.
|
|
items:
|
|
$ref: '#/components/schemas/ProfileExperienceItemInput'
|
|
confirmed_parallel_periods:
|
|
type: array
|
|
maxItems: 190
|
|
description: Explicit acknowledgements for overlapping periods. Each pair must use distinct in-range indices and repeat the exact normalized started_on and ended_on values of those entries in this body. A changed or reordered period needs a new acknowledgement. The server retains a previous acknowledgement only for the same indices and dates. Duplicate pairs and pairs that do not overlap are rejected.
|
|
items:
|
|
$ref: '#/components/schemas/ProfileParallelPeriodConfirmation'
|
|
soft_skills:
|
|
type: array
|
|
maxItems: 10
|
|
description: Soft skills. The server answers 400 with the pointer of a skill that repeats an earlier one without regard to letter case.
|
|
items:
|
|
$ref: '#/components/schemas/ProfileSoftSkillItemInput'
|
|
terms:
|
|
$ref: '#/components/schemas/ProfileTermsInput'
|
|
AssessmentMode:
|
|
type: string
|
|
description: |-
|
|
Method of an assessment attempt. For a real assessment, the server selects demo_basic or adaptive from the published bank. A candidate may explicitly request demo_express, which uses a separate training policy and creates no qualification evidence.
|
|
|
|
- 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.
|
|
- demo_express: an interactive 3 to 5 minute training run under a separate policy. It does not assign a category or percentile, count toward the real-assessment quota, or create qualification evidence.
|
|
|
|
Adding a value is a contract change.
|
|
enum:
|
|
- demo_basic
|
|
- demo_express
|
|
- 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, an explicit work-session start, and a server-side transition such as expiry or automatic finalization. Reads never change the attempt. 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 read returns the stored state without changing it. A command or background transition commits any due outcome and advances the version. A practice submitted before the limit and still `pending` is graded first. Then `ready_to_finalize` 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.
|
|
|
|
Session 1 starts with attempt creation. After it ends due to `idle_timeout_seconds` of inactivity, the candidate explicitly starts or resumes work with StartMyAssessmentAttemptSession. GetMyAssessmentAttempt and GetMyAssessmentResult are read-only and never start a session. The session command checks the attempt deadline and `max_sessions`; when either limit has passed, it records the due terminal transition and returns the resulting attempt. Reads of terminal attempts do not change them.
|
|
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:
|
|
description: Start a real assessment, a corrective attempt in an existing chain, or an explicit training run. The required `kind` discriminator selects one of the three request shapes; `mode` remains server-selected for real assessments.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/AssessmentQualifiedAttemptCreate'
|
|
- $ref: '#/components/schemas/AssessmentCorrectiveAttemptCreate'
|
|
- $ref: '#/components/schemas/AssessmentExpressAttemptCreate'
|
|
discriminator:
|
|
propertyName: kind
|
|
mapping:
|
|
root: '#/components/schemas/AssessmentQualifiedAttemptCreate'
|
|
corrective: '#/components/schemas/AssessmentCorrectiveAttemptCreate'
|
|
demo_express: '#/components/schemas/AssessmentExpressAttemptCreate'
|
|
AssessmentAttemptSessionStart:
|
|
type: object
|
|
description: Start or resume a work session using the attempt version last read by the candidate.
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/AssessmentAttemptVersion'
|
|
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:
|
|
description: Candidate view of a real assessment, a corrective real assessment, or a demo_express training run. The variants keep training output separate from qualification attempts.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/AssessmentQualifiedAttempt'
|
|
- $ref: '#/components/schemas/AssessmentCorrectiveAttempt'
|
|
- $ref: '#/components/schemas/AssessmentExpressAttempt'
|
|
discriminator:
|
|
propertyName: kind
|
|
mapping:
|
|
root: '#/components/schemas/AssessmentQualifiedAttempt'
|
|
corrective: '#/components/schemas/AssessmentCorrectiveAttempt'
|
|
demo_express: '#/components/schemas/AssessmentExpressAttempt'
|
|
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
|
|
x-ogen-type: lincodex/backend/internal/adapter/primary/http/apitypes.AssessmentNumber
|
|
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'
|
|
AssessmentSignalEvent:
|
|
description: One client-reported event bound to an item instance of the attempt. The timestamp is untrusted input and is used only as event metadata; server receipt time is authoritative for limits and retention.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/AssessmentFocusLossSignal'
|
|
- $ref: '#/components/schemas/AssessmentClipboardSignal'
|
|
- $ref: '#/components/schemas/AssessmentFullscreenExitSignal'
|
|
discriminator:
|
|
propertyName: kind
|
|
mapping:
|
|
focus_loss: '#/components/schemas/AssessmentFocusLossSignal'
|
|
copy: '#/components/schemas/AssessmentClipboardSignal'
|
|
paste: '#/components/schemas/AssessmentClipboardSignal'
|
|
cut: '#/components/schemas/AssessmentClipboardSignal'
|
|
fullscreen_exit: '#/components/schemas/AssessmentFullscreenExitSignal'
|
|
AssessmentFocusLossSignal:
|
|
type: object
|
|
additionalProperties: false
|
|
required:
|
|
- kind
|
|
- item_instance_id
|
|
- occurred_at
|
|
- duration_ms
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- focus_loss
|
|
item_instance_id:
|
|
$ref: '#/components/schemas/AssessmentItemId'
|
|
occurred_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
duration_ms:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 259200000
|
|
description: Client-measured duration away from the assessment tab or window, in milliseconds.
|
|
AssessmentClipboardSignal:
|
|
type: object
|
|
additionalProperties: false
|
|
required:
|
|
- kind
|
|
- item_instance_id
|
|
- occurred_at
|
|
- size_bytes
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- copy
|
|
- paste
|
|
- cut
|
|
item_instance_id:
|
|
$ref: '#/components/schemas/AssessmentItemId'
|
|
occurred_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
size_bytes:
|
|
type: integer
|
|
format: int32
|
|
minimum: 0
|
|
maximum: 2147483647
|
|
description: Size only; clipboard and selection contents are never transmitted or retained. For `paste` it is the UTF-8 byte count of the pasted plain text plus the byte size of pasted files, counted on the device from the paste event. For `copy` and `cut` it is the selection length in UTF-16 code units taken from the selection offsets of a form field, or zero when the field offsets are unavailable; it is an approximate size and the selected text is not read. The server applies no conversion and treats the value as an order-of-magnitude indicator.
|
|
AssessmentFullscreenExitSignal:
|
|
type: object
|
|
additionalProperties: false
|
|
required:
|
|
- kind
|
|
- item_instance_id
|
|
- occurred_at
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- fullscreen_exit
|
|
item_instance_id:
|
|
$ref: '#/components/schemas/AssessmentItemId'
|
|
occurred_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
AssessmentSignalBatch:
|
|
type: object
|
|
description: A bounded batch of client event metadata. The raw request body is limited to 32 KiB before decoding and the batch contains at most 50 events.
|
|
additionalProperties: false
|
|
required:
|
|
- events
|
|
properties:
|
|
events:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 50
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentSignalEvent'
|
|
AssessmentSignalReceipt:
|
|
type: object
|
|
description: Receipt for the submitted batch. It contains no signal details, score, review decision, threshold, or result band.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- accepted_events
|
|
- received_at
|
|
properties:
|
|
status:
|
|
type: string
|
|
enum:
|
|
- accepted
|
|
- saturated
|
|
description: '`saturated` means no event from this batch was stored because the attempt''s bounded evidence storage is full.'
|
|
accepted_events:
|
|
type: integer
|
|
format: int32
|
|
minimum: 0
|
|
maximum: 50
|
|
description: Number of events stored from this batch; zero when saturated.
|
|
received_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
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. One root quota slot is reserved when a real root attempt starts; corrective checks in its chain do not reserve another slot.
|
|
|
|
- expired: the time or session limit passed before the candidate finished the item part. Retry timing follows the recorded policy; a correction uses the existing root slot and does not reset the chain deadline or 30/90-day timers.
|
|
- practice_incomplete: the item part was done, but the candidate did not submit the main practice before the limit. Retry timing follows the recorded policy; a correction uses the existing root slot and does not reset the chain deadline or 30/90-day timers.
|
|
- insufficient_bank: the bank could not supply required coverage. A preflight refusal creates no attempt or root slot; a bank failure in an existing chain does not create a free new chain or another root slot.
|
|
- 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 and does not create a new root slot or a free chain.
|
|
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 real-assessment 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:
|
|
description: Immutable result of a terminal assessment attempt. The result shape distinguishes real grade decisions from demo_express training output.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/AssessmentQualifiedResult'
|
|
- $ref: '#/components/schemas/AssessmentCorrectiveResult'
|
|
- $ref: '#/components/schemas/AssessmentExpressResult'
|
|
discriminator:
|
|
propertyName: kind
|
|
mapping:
|
|
root: '#/components/schemas/AssessmentQualifiedResult'
|
|
corrective: '#/components/schemas/AssessmentCorrectiveResult'
|
|
demo_express: '#/components/schemas/AssessmentExpressResult'
|
|
AssessmentRealResult:
|
|
description: A completed root or corrective result. Training-only demo_express results are excluded from qualification history.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/AssessmentQualifiedResult'
|
|
- $ref: '#/components/schemas/AssessmentCorrectiveResult'
|
|
discriminator:
|
|
propertyName: kind
|
|
mapping:
|
|
root: '#/components/schemas/AssessmentQualifiedResult'
|
|
corrective: '#/components/schemas/AssessmentCorrectiveResult'
|
|
AssessmentCategoryDecisionView:
|
|
type: object
|
|
description: Category decision captured when this result was stored. It is absent from legacy v1 results because their current grade cannot be inferred later. It never exposes review identifiers, private answers, or the candidate's current category after this decision.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- previous_confirmed_grade
|
|
- current_confirmed_grade
|
|
- method
|
|
- source
|
|
- calibration_status
|
|
properties:
|
|
status:
|
|
type: string
|
|
enum:
|
|
- not_eligible
|
|
- not_confirmed
|
|
- assigned
|
|
- unchanged
|
|
previous_confirmed_grade:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
current_confirmed_grade:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
method:
|
|
oneOf:
|
|
- type: string
|
|
enum:
|
|
- demo_basic_pass_mark
|
|
- type: 'null'
|
|
source:
|
|
oneOf:
|
|
- type: string
|
|
enum:
|
|
- synthetic_demo
|
|
- type: 'null'
|
|
calibration_status:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/CalibrationStatus'
|
|
- type: 'null'
|
|
AssessmentResultHistoryPage:
|
|
type: object
|
|
description: Owner-only immutable root and corrective results ordered by decided_at and attempt_id descending. Legacy v1 results omit category_decision.
|
|
additionalProperties: false
|
|
required:
|
|
- items
|
|
- page
|
|
properties:
|
|
items:
|
|
type: array
|
|
maxItems: 50
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentRealResult'
|
|
page:
|
|
$ref: '#/components/schemas/PageInfo'
|
|
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: Real-assessment mode that the server would use, or null when the status is `insufficient_bank`. `demo_express` is not a category assessment and is never returned here.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/AssessmentRealMode'
|
|
- 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
|
|
- confirmed_basis
|
|
- 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'
|
|
confirmed_basis:
|
|
description: What the confirmed grade rests on, or null exactly when `confirmed_grade` is null. `synthetic_demo` marks a demonstration category, which is not a validated measurement and must not be shown as a real confirmation.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/EvidenceBasis'
|
|
- 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.'
|
|
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, enforcement planned); 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 profile analysis.
|
|
|
|
- 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 in the contract but not implemented 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; assessment experts and appeal moderators 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 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 grading policy pinned by the server at creation. The exact reviewed category opening and rubric manifest are retained privately so the expert can use the same rubric as automated assessment. Null for other types and for a manual assessment without one unique current reviewed category; the case still waits in `waiting_expert`.
|
|
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'
|
|
InvitationVersion:
|
|
type: integer
|
|
format: int64
|
|
minimum: 1
|
|
description: 'Version of an invitation. Creation makes version 1, and every committed change advances it by exactly one: a change of the draft, a send, the first view, an answer, a salary raise, a withdrawal, a cancellation, and an expiry made by the server. Every command carries the version the client read as `expected_version`; a stale value answers 412 version_conflict and changes nothing.'
|
|
examples:
|
|
- 3
|
|
InvitationTermsVersion:
|
|
type: integer
|
|
format: int64
|
|
minimum: 1
|
|
description: 'Version of the terms of an invitation. The terms of a version are an immutable snapshot: every committed change of the terms, in the draft or by the one raise of the upper salary bound after sending, creates the next terms version, and a change of anything else keeps it. An acceptance names the terms version it accepts, and the consent C4 and the contact grant record it.'
|
|
examples:
|
|
- 2
|
|
InvitationState:
|
|
type: string
|
|
description: |-
|
|
State of an invitation (PRD FR12). The internal sending step is never visible: a successful send already answers with `delivered`.
|
|
|
|
- draft: the organization prepares the terms. The candidate does not see the invitation.
|
|
- delivered: the invitation is in the candidate's inbox and the response deadline runs.
|
|
- viewed: the candidate opened the terms; ViewMyInvitation records it. The deadline is unchanged.
|
|
- counter: planned; the candidate sent the one counter offer. No MVP operation produces it.
|
|
- accepted: the candidate accepted the current terms version and gave the consent C4; the contact grant exists.
|
|
- interview_scheduled, interviewed, negotiation, terms_agreed, no_deal: planned stages after an acceptance (interview and the sealed final of FR13). No MVP operation produces them.
|
|
- declined: terminal; the candidate declined with a structured reason. No access arises.
|
|
- expired: terminal; a server deadline passed, see `expiry_reason`. No access arises.
|
|
- withdrawn: terminal; the organization withdrew the invitation. A grant that already exists is not revoked by it.
|
|
- cancelled_by_candidate: terminal; the candidate cancelled the participation. The grant of this invitation is revoked.
|
|
|
|
Planned states are listed now so that generated clients accept them when their operations arrive. Adding another value is a contract change.
|
|
enum:
|
|
- draft
|
|
- delivered
|
|
- viewed
|
|
- counter
|
|
- accepted
|
|
- interview_scheduled
|
|
- interviewed
|
|
- negotiation
|
|
- terms_agreed
|
|
- no_deal
|
|
- declined
|
|
- expired
|
|
- withdrawn
|
|
- cancelled_by_candidate
|
|
InvitationExpiryReason:
|
|
type: string
|
|
description: |-
|
|
Why an invitation expired. Set exactly when the state is `expired`, null otherwise.
|
|
|
|
- invitation_timeout: the candidate did not answer by `response_deadline_at`. No grant is created.
|
|
- negotiation_timeout: planned; the sealed final of FR13 closed without both bids. No MVP operation produces it.
|
|
enum:
|
|
- invitation_timeout
|
|
- negotiation_timeout
|
|
InvitationResponsePeriod:
|
|
type: integer
|
|
format: int32
|
|
enum:
|
|
- 3
|
|
- 7
|
|
- 14
|
|
description: 'Days the candidate has to answer, chosen by the organization in the draft from the product policy: 3, 7, or 14. The deadline starts at the first delivery and is never reset by an email, a view, or a counter offer.'
|
|
examples:
|
|
- 7
|
|
CandidateHandle:
|
|
type: string
|
|
minLength: 47
|
|
maxLength: 47
|
|
pattern: ^cv1_[A-Za-z0-9_-]{43}$
|
|
description: Opaque reference to a candidate as one organization sees it, taken from the organization-scoped anonymous card. It is a versioned HMAC alias, not a candidate account or profile identifier; it contains no contact information and is meaningless to another organization. The server resolves it only against the current visible cohort of the organization in the path. Clients never parse or construct it. It is shared by the candidate-card read and invitations.
|
|
examples:
|
|
- cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
InvitationRoleTitle:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 200
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: Name of the offered role, for example "Middle Go developer in the payments team". It has no leading or trailing whitespace and no line breaks. Plain text; clients show it as text, never as HTML.
|
|
InvitationTeamDescription:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 1000
|
|
pattern: \S
|
|
description: Description of the team the candidate would join, such as its size, roles, and way of working. It may contain line breaks and has at least one character that is not white space. Plain text; clients show it as text, never as HTML. It describes the job and must not contain personal data of employees or candidates.
|
|
InvitationOfferType:
|
|
type: string
|
|
description: |-
|
|
Type of the offer.
|
|
|
|
- full_time: employment with a full working week.
|
|
- part_time: employment with a part-time working week.
|
|
- contract: a fixed-term or project contract outside employment.
|
|
- internship: an internship.
|
|
|
|
Adding a value is a contract change.
|
|
enum:
|
|
- full_time
|
|
- part_time
|
|
- contract
|
|
- internship
|
|
InvitationCommunicationChannel:
|
|
type: string
|
|
description: |-
|
|
Channel through which the organization will contact the candidate after an acceptance.
|
|
|
|
- email: a letter to the email address the candidate disclosed.
|
|
- phone: a call or a text to the phone number the candidate disclosed.
|
|
- telegram: a message to the Telegram username the candidate disclosed.
|
|
- video_call: an invitation to a video call, sent through one of the disclosed contacts.
|
|
|
|
The channel describes the organization's plan; the candidate decides which contacts to disclose, and the server never requires that the disclosed fields include the channel.
|
|
enum:
|
|
- email
|
|
- phone
|
|
- telegram
|
|
- video_call
|
|
InvitationCommunicationMethod:
|
|
type: object
|
|
description: How the organization will contact the candidate after an acceptance. It is part of the terms, so the candidate sees it before choosing which contacts to disclose. An invitation without it cannot exist, because the terms require it.
|
|
additionalProperties: false
|
|
required:
|
|
- channel
|
|
- details
|
|
properties:
|
|
channel:
|
|
$ref: '#/components/schemas/InvitationCommunicationChannel'
|
|
details:
|
|
description: Optional short note, for example the first step or the expected time of the first contact, or null. Plain text without line breaks; it never contains a link or a contact of an employee.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationCommunicationNote'
|
|
- type: 'null'
|
|
InvitationCommunicationNote:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 300
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: Short note on the communication method, for example "A 30-minute call with the team lead within three working days". It has no leading or trailing whitespace and no line breaks. Plain text; clients show it as text, never as HTML.
|
|
InvitationPackageItemText:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 300
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: Short description of a condition, for example "Quarterly bonus up to 20% of the salary". It has no leading or trailing whitespace and no line breaks. Plain text; clients show it as text, never as HTML.
|
|
InvitationPackageItemProvided:
|
|
type: object
|
|
description: The condition is part of the offer, with its description.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- description
|
|
properties:
|
|
status:
|
|
type: string
|
|
enum:
|
|
- provided
|
|
description:
|
|
$ref: '#/components/schemas/InvitationPackageItemText'
|
|
InvitationPackageItemNotProvided:
|
|
type: object
|
|
description: The organization states explicitly that the offer does not include the condition ("Не предусмотрено" in the interface). It has no description.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
properties:
|
|
status:
|
|
type: string
|
|
enum:
|
|
- not_provided
|
|
InvitationPackageItem:
|
|
description: 'One required condition of the package, selected by `status`: `provided` with a description, or `not_provided` without one. Not providing a condition is an explicit choice: the field is required in the package, so an absent field fails validation instead of meaning "not provided": it answers 400 `required` with its pointer, such as `/terms/package/training`. A `provided` item without a description answers `required` with the pointer of the description, and a `not_provided` item with a description answers `invalid` with the pointer of the item. ogen selects the variant by the value of `status`.'
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationPackageItemProvided'
|
|
- $ref: '#/components/schemas/InvitationPackageItemNotProvided'
|
|
InvitationPackage:
|
|
type: object
|
|
description: 'Required section of the package (PRD FR12): the bonus, the equipment, the training, and the voluntary health insurance (ДМС). Every field is required and is either provided with a description or explicitly not provided. The work format of the package is the required `work_formats` term, which has no "not provided" variant. Adding a required condition is a breaking change; an optional one is additive.'
|
|
additionalProperties: false
|
|
required:
|
|
- bonus
|
|
- equipment
|
|
- training
|
|
- health_insurance
|
|
properties:
|
|
bonus:
|
|
$ref: '#/components/schemas/InvitationPackageItem'
|
|
equipment:
|
|
$ref: '#/components/schemas/InvitationPackageItem'
|
|
training:
|
|
$ref: '#/components/schemas/InvitationPackageItem'
|
|
health_insurance:
|
|
$ref: '#/components/schemas/InvitationPackageItem'
|
|
InvitationTerms:
|
|
type: object
|
|
description: 'Terms of an invitation: everything the candidate sees before deciding and before any contact is disclosed. The same schema is the request field of a draft and the stored snapshot of a terms version, so a response can be sent back unchanged. Every field is required; a field that may have no value says so with an explicit variant (`location` null for a remote role, a package item `not_provided`). The terms never contain data of the candidate: no contact, no salary minimum, and no indicator derived from it. The server checks the cross-field rules after the schema and answers 400 validation_failed with the pointer of the field: the salary rules of SalaryRange with `/terms/salary/salary_to`, a missing place of work for the `office` or `hybrid` format with `/terms/location`, and a repeated technology in `tech_stack` with the pointer of the later item.'
|
|
additionalProperties: false
|
|
required:
|
|
- role_title
|
|
- specialization
|
|
- grade
|
|
- offer_type
|
|
- tasks
|
|
- team
|
|
- tech_stack
|
|
- work_formats
|
|
- location
|
|
- communication_method
|
|
- salary
|
|
- package
|
|
properties:
|
|
role_title:
|
|
$ref: '#/components/schemas/InvitationRoleTitle'
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
offer_type:
|
|
$ref: '#/components/schemas/InvitationOfferType'
|
|
tasks:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 20
|
|
description: Work tasks of the role in the order given.
|
|
items:
|
|
$ref: '#/components/schemas/NeedTaskText'
|
|
team:
|
|
$ref: '#/components/schemas/InvitationTeamDescription'
|
|
tech_stack:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 30
|
|
uniqueItems: true
|
|
description: Technologies of the role. The server compares names without regard to letter case.
|
|
items:
|
|
$ref: '#/components/schemas/SkillName'
|
|
work_formats:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 3
|
|
uniqueItems: true
|
|
description: Work formats the organization offers; the candidate may choose any of them.
|
|
items:
|
|
$ref: '#/components/schemas/WorkFormat'
|
|
location:
|
|
description: Place of work for the `office` or `hybrid` format, or null when the only format is `remote`. It is required with either of those formats.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NeedLocationName'
|
|
- type: 'null'
|
|
communication_method:
|
|
$ref: '#/components/schemas/InvitationCommunicationMethod'
|
|
salary:
|
|
$ref: '#/components/schemas/SalaryRange'
|
|
package:
|
|
$ref: '#/components/schemas/InvitationPackage'
|
|
InvitationNeedReference:
|
|
type: object
|
|
description: 'Need of the same organization that the invitation was built from, with the requirements version used. A direct invitation has no need. The link is informational: the invitation keeps its own terms, which may differ from the need, and a later change of the need never changes them.'
|
|
additionalProperties: false
|
|
required:
|
|
- need_id
|
|
- requirements_version
|
|
properties:
|
|
need_id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of a need of the organization in the path.
|
|
requirements_version:
|
|
description: '`requirements_version` of the need that the invitation refers to; it must be a version that the need has had.'
|
|
allOf:
|
|
- $ref: '#/components/schemas/NeedVersion'
|
|
InvitationSalaryFit:
|
|
type: string
|
|
description: |-
|
|
Coarse indicator for the organization of how the salary range relates to the candidate's hidden minimum (PRD FR13). It is the only information about the minimum that the organization receives; the exact minimum never appears in any response, log, or problem. The server compares the upper bound `B` with the lowest minimum the candidate set for the offered work formats, in integer arithmetic and only in the same tax basis.
|
|
|
|
- within_range: the minimum is not above `B`.
|
|
- up_to_10_percent_above: the minimum is above `B` by at most 10%, that is `10 * minimum <= 11 * B`.
|
|
- above: the minimum is more than 10% above `B`.
|
|
- withheld: the organization made five indicator-relevant settings within seven days, so the indicator is off for seven days from the fifth. The response to the fifth setting already carries `withheld`, and so does every draft and invitation of the organization, existing ones included, until the period ends.
|
|
- not_available: the candidate set no minimum for the offered formats, or set it in the other tax basis.
|
|
|
|
Every change that can move this indicator is an indicator-relevant setting: the range set on creation, and in a draft a change of either bound, of the tax basis, or of `work_formats`, since the minimum depends on the format. Each counts against the organization-wide limit of three settings a day (429) and against the withheld counter of five settings within seven days, together with the ranges of needs. The one raise of the upper bound of a sent invitation counts against the withheld counter but not against the daily limit, because FR13 gives it its own once-only rule. Switching the tax basis turns `not_available` into a band or back and so tells the organization the basis of the minimum; this is accepted, and the switch counts against the limit like any other setting.
|
|
|
|
The server never rejects or changes a range because of the minimum: a rejection would itself reveal it.
|
|
enum:
|
|
- within_range
|
|
- up_to_10_percent_above
|
|
- above
|
|
- withheld
|
|
- not_available
|
|
InvitationContactAccessState:
|
|
type: string
|
|
description: |-
|
|
Whether the organization may read the candidate's contacts through GetOrganizationInvitationContacts now.
|
|
|
|
- not_granted: the candidate has not accepted this invitation, so no grant exists.
|
|
- available: a grant from this invitation is active and the current consent and visibility allow the read.
|
|
- closed: a grant from this invitation exists but does not allow the read now: it was revoked (the candidate revoked C4, cancelled the participation, or revoked the publication C2 or hid the profile after the acceptance), or it was created while the visibility already did not allow the read. The organization is not told which. A revoked grant never becomes `available` again; a grant blocked from the start becomes `available` once the candidate's visibility allows the read, which only follows the candidate's own choice to publish the profile or unhide it for the organization. Since every visibility change after a grant exists revokes the grant, a later toggle is never visible to the organization.
|
|
enum:
|
|
- not_granted
|
|
- available
|
|
- closed
|
|
InvitationContactAccess:
|
|
type: object
|
|
description: Contact access of the organization through this invitation, without any contact value. The values come only from GetOrganizationInvitationContacts.
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
- fields
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/InvitationContactAccessState'
|
|
fields:
|
|
type: array
|
|
maxItems: 4
|
|
uniqueItems: true
|
|
description: Kinds of contact that the read returns while `status` is `available`; empty otherwise.
|
|
items:
|
|
$ref: '#/components/schemas/ContactFieldKind'
|
|
InvitationOrganization:
|
|
type: object
|
|
description: Organization that sent the invitation, as the candidate sees it before deciding. The card that a candidate sees is `CandidateOrganizationCard` of the organization contract; returning it with the invitation is planned as an additive field, and this object only names the organization.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- name
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the organization.
|
|
name:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 200
|
|
description: Public name of the organization. Plain text; clients show it as text, never as HTML.
|
|
InvitationDeclineReason:
|
|
type: string
|
|
description: |-
|
|
Structured reason of a decline. Every reason is neutral and none requires a comment.
|
|
|
|
- salary: the salary range does not fit.
|
|
- tasks: the role or the tasks do not fit.
|
|
- stack: the technologies do not fit.
|
|
- work_format: the work format or the place of work does not fit.
|
|
- package: the package does not fit.
|
|
- company: the company or its domain does not fit.
|
|
- not_looking: the candidate is not looking for a job now.
|
|
- other_offer: the candidate accepted another offer.
|
|
- other: another reason ("Другое"); a comment stays optional.
|
|
|
|
The organization never sees the reason of an individual decline: a reason such as `salary` would tell it that the hidden minimum is above the range. Reasons feed only the aggregates of FR12 with a minimum group size (planned). Adding a value is a contract change.
|
|
enum:
|
|
- salary
|
|
- tasks
|
|
- stack
|
|
- work_format
|
|
- package
|
|
- company
|
|
- not_looking
|
|
- other_offer
|
|
- other
|
|
InvitationDeclineComment:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 500
|
|
pattern: \S
|
|
description: Optional comment of the candidate on the offer. It may contain line breaks and has at least one character that is not white space. It is never shown to the organization, never published, and never written to logs or notifications; only the candidate reads it back. Plain text; clients show it as text, never as HTML.
|
|
InvitationDeclineRecord:
|
|
type: object
|
|
description: The candidate's own decline, as the candidate reads it back.
|
|
additionalProperties: false
|
|
required:
|
|
- reason
|
|
- comment
|
|
- declined_at
|
|
properties:
|
|
reason:
|
|
$ref: '#/components/schemas/InvitationDeclineReason'
|
|
comment:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationDeclineComment'
|
|
- type: 'null'
|
|
declined_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
OrganizationInvitation:
|
|
type: object
|
|
description: 'Invitation as the organization reads it: the candidate handle, the current terms version, the state, the coarse salary indicator, and the contact access without contact values. It never contains the candidate''s name, email address, phone number, or other contact, the exact salary minimum, or the reason and comment of a decline.'
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- organization_id
|
|
- candidate_handle
|
|
- need
|
|
- state
|
|
- expiry_reason
|
|
- version
|
|
- terms_version
|
|
- terms
|
|
- response_period_days
|
|
- response_deadline_at
|
|
- salary_raise_used
|
|
- salary_fit
|
|
- contact_access
|
|
- created_at
|
|
- updated_at
|
|
- delivered_at
|
|
- viewed_at
|
|
- responded_at
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the invitation.
|
|
organization_id:
|
|
type: string
|
|
format: uuid
|
|
description: Organization that owns the invitation, equal to `org_id` of the path. It never changes.
|
|
candidate_handle:
|
|
$ref: '#/components/schemas/CandidateHandle'
|
|
need:
|
|
description: Need the invitation was built from, or null for a direct invitation.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationNeedReference'
|
|
- type: 'null'
|
|
state:
|
|
$ref: '#/components/schemas/InvitationState'
|
|
expiry_reason:
|
|
description: Reason of an expiry, or null unless `state` is `expired`.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationExpiryReason'
|
|
- type: 'null'
|
|
version:
|
|
$ref: '#/components/schemas/InvitationVersion'
|
|
terms_version:
|
|
$ref: '#/components/schemas/InvitationTermsVersion'
|
|
terms:
|
|
$ref: '#/components/schemas/InvitationTerms'
|
|
response_period_days:
|
|
$ref: '#/components/schemas/InvitationResponsePeriod'
|
|
response_deadline_at:
|
|
description: Moment when the candidate's time to answer ends, set at the first delivery to `delivered_at` plus `response_period_days`, or null for a draft. A command received at this moment or later is late. After an acceptance the deadline no longer applies.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
salary_raise_used:
|
|
type: boolean
|
|
description: Whether the one raise of the upper salary bound after sending (PRD FR13) has been used. It counts the whole history of the invitation.
|
|
salary_fit:
|
|
$ref: '#/components/schemas/InvitationSalaryFit'
|
|
contact_access:
|
|
$ref: '#/components/schemas/InvitationContactAccess'
|
|
created_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
updated_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
delivered_at:
|
|
description: Moment of delivery to the candidate's inbox, or null for a draft.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
viewed_at:
|
|
description: Moment when the candidate first opened the terms, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
responded_at:
|
|
description: Moment of the candidate's acceptance or decline, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
OrganizationInvitationSummary:
|
|
type: object
|
|
description: 'Invitation in the organization''s list: its identity, state, versions, role, salary range, deadline, and contact access. Read the invitation for the full terms and the salary indicator.'
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- candidate_handle
|
|
- need
|
|
- state
|
|
- expiry_reason
|
|
- version
|
|
- terms_version
|
|
- role_title
|
|
- salary
|
|
- response_deadline_at
|
|
- contact_access
|
|
- created_at
|
|
- updated_at
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the invitation.
|
|
candidate_handle:
|
|
$ref: '#/components/schemas/CandidateHandle'
|
|
need:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationNeedReference'
|
|
- type: 'null'
|
|
state:
|
|
$ref: '#/components/schemas/InvitationState'
|
|
expiry_reason:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationExpiryReason'
|
|
- type: 'null'
|
|
version:
|
|
$ref: '#/components/schemas/InvitationVersion'
|
|
terms_version:
|
|
$ref: '#/components/schemas/InvitationTermsVersion'
|
|
role_title:
|
|
$ref: '#/components/schemas/InvitationRoleTitle'
|
|
salary:
|
|
$ref: '#/components/schemas/SalaryRange'
|
|
response_deadline_at:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
contact_access:
|
|
$ref: '#/components/schemas/InvitationContactAccess'
|
|
created_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
updated_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
OrganizationInvitationList:
|
|
type: object
|
|
description: One page of the invitations of an organization, newest first by creation time.
|
|
additionalProperties: false
|
|
required:
|
|
- items
|
|
- page
|
|
properties:
|
|
items:
|
|
type: array
|
|
maxItems: 100
|
|
description: Invitations of the page.
|
|
items:
|
|
$ref: '#/components/schemas/OrganizationInvitationSummary'
|
|
page:
|
|
$ref: '#/components/schemas/PageInfo'
|
|
OrganizationInvitationCreate:
|
|
type: object
|
|
description: New draft for one candidate. The candidate is named only by the handle from a search result of this organization, never by an email address, a phone number, or an account identifier. The terms are complete from the start, so a draft without the tax basis or the communication method cannot exist. Unknown fields are rejected, so a request cannot set the state, a version, a deadline, the salary indicator, contact access, or a candidate's minimum or contact.
|
|
additionalProperties: false
|
|
required:
|
|
- candidate_handle
|
|
- terms
|
|
properties:
|
|
candidate_handle:
|
|
$ref: '#/components/schemas/CandidateHandle'
|
|
need:
|
|
description: Need of the organization the invitation is built from, or null or absent for a direct invitation.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationNeedReference'
|
|
- type: 'null'
|
|
response_period_days:
|
|
description: Days to answer; absent means 7, the default of the product policy.
|
|
allOf:
|
|
- $ref: '#/components/schemas/InvitationResponsePeriod'
|
|
terms:
|
|
$ref: '#/components/schemas/InvitationTerms'
|
|
OrganizationInvitationUpdate:
|
|
type: object
|
|
description: 'Change of a draft over the version the client read. Each field present replaces that field as a whole and an absent field stays unchanged; `terms` is always replaced completely, never merged, and a change of the terms creates the next terms version. `need` sent as null unlinks the need. The candidate cannot change: a draft for another candidate is a new draft. Unknown fields are rejected.'
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/InvitationVersion'
|
|
need:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationNeedReference'
|
|
- type: 'null'
|
|
response_period_days:
|
|
$ref: '#/components/schemas/InvitationResponsePeriod'
|
|
terms:
|
|
$ref: '#/components/schemas/InvitationTerms'
|
|
InvitationCommand:
|
|
type: object
|
|
description: 'Command without parameters over the invitation version the client read: send, withdraw, or cancel. Unknown fields are rejected.'
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/InvitationVersion'
|
|
InvitationSalaryRaise:
|
|
type: object
|
|
description: The one raise of the upper salary bound of a sent invitation (PRD FR13). Only `salary_to` changes; the lower bound, the currency, the period, and the tax basis stay fixed. Unknown fields are rejected, so the request cannot lower the lower bound or change the basis.
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
- salary_to
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/InvitationVersion'
|
|
salary_to:
|
|
description: New upper bound, above the current one, with a width of the range from 10% to 40% of its midpoint.
|
|
allOf:
|
|
- $ref: '#/components/schemas/RubAmount'
|
|
CandidateInvitation:
|
|
type: object
|
|
description: 'Invitation as the addressed candidate reads it: the organization, the current terms with their version, the state and the deadline, the text and the choice of the consent C4 while an acceptance is possible, the candidate''s own decline, and the contact grant that the acceptance created. It has no candidate handle, no need, no salary indicator, and no contact value: the candidate''s own contacts and salary minimum stay in the profile.'
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- organization
|
|
- state
|
|
- expiry_reason
|
|
- version
|
|
- terms_version
|
|
- terms
|
|
- response_deadline_at
|
|
- delivered_at
|
|
- viewed_at
|
|
- responded_at
|
|
- updated_at
|
|
- contact_consent
|
|
- decline
|
|
- contact_grant
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the invitation.
|
|
organization:
|
|
$ref: '#/components/schemas/InvitationOrganization'
|
|
state:
|
|
$ref: '#/components/schemas/InvitationState'
|
|
expiry_reason:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationExpiryReason'
|
|
- type: 'null'
|
|
version:
|
|
$ref: '#/components/schemas/InvitationVersion'
|
|
terms_version:
|
|
$ref: '#/components/schemas/InvitationTermsVersion'
|
|
terms:
|
|
$ref: '#/components/schemas/InvitationTerms'
|
|
response_deadline_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
delivered_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
viewed_at:
|
|
description: Moment of the first view recorded by ViewMyInvitation, or null when the candidate has not opened the terms.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
responded_at:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
updated_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
contact_consent:
|
|
description: 'Text and choice of the consent C4 for an acceptance, or null when an acceptance is impossible now: the state does not allow it, the deadline has passed, or the profile holds no contact to disclose. In the last case the client tells the candidate to add a contact to the profile first, because a grant must cover at least one field.'
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ContactConsentOffer'
|
|
- type: 'null'
|
|
decline:
|
|
description: The candidate's decline, or null unless `state` is `declined`.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationDeclineRecord'
|
|
- type: 'null'
|
|
contact_grant:
|
|
description: Contact grant that the acceptance of this invitation created, or null when the invitation was never accepted. It stays after a revocation, with its status and reason.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ContactGrant'
|
|
- type: 'null'
|
|
CandidateInvitationSummary:
|
|
type: object
|
|
description: 'Invitation in the candidate''s inbox: the organization, the state, the versions, the role, the salary range, and the deadline. Listing never records a view; GetMyInvitation returns the full terms, and ViewMyInvitation records the view.'
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- organization
|
|
- state
|
|
- expiry_reason
|
|
- version
|
|
- terms_version
|
|
- role_title
|
|
- salary
|
|
- work_formats
|
|
- response_deadline_at
|
|
- delivered_at
|
|
- viewed_at
|
|
- updated_at
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the invitation.
|
|
organization:
|
|
$ref: '#/components/schemas/InvitationOrganization'
|
|
state:
|
|
$ref: '#/components/schemas/InvitationState'
|
|
expiry_reason:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationExpiryReason'
|
|
- type: 'null'
|
|
version:
|
|
$ref: '#/components/schemas/InvitationVersion'
|
|
terms_version:
|
|
$ref: '#/components/schemas/InvitationTermsVersion'
|
|
role_title:
|
|
$ref: '#/components/schemas/InvitationRoleTitle'
|
|
salary:
|
|
$ref: '#/components/schemas/SalaryRange'
|
|
work_formats:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 3
|
|
uniqueItems: true
|
|
items:
|
|
$ref: '#/components/schemas/WorkFormat'
|
|
response_deadline_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
delivered_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
viewed_at:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
updated_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
CandidateInvitationList:
|
|
type: object
|
|
description: One page of the candidate's invitations, newest first by delivery time.
|
|
additionalProperties: false
|
|
required:
|
|
- items
|
|
- page
|
|
properties:
|
|
items:
|
|
type: array
|
|
maxItems: 100
|
|
description: Invitations of the page.
|
|
items:
|
|
$ref: '#/components/schemas/CandidateInvitationSummary'
|
|
page:
|
|
$ref: '#/components/schemas/PageInfo'
|
|
InvitationAcceptance:
|
|
type: object
|
|
description: Acceptance of the current terms with the consent C4. The client sends the `version` and the `terms_version` it read and the contact fields the candidate selected; nothing is preselected or defaulted. Unknown fields are rejected, so a request cannot carry contact values, a grant, or another consent.
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
- terms_version
|
|
- consent_c4
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/InvitationVersion'
|
|
terms_version:
|
|
description: Terms version that the candidate read and accepts. A version that is not the current one answers 412 version_conflict.
|
|
allOf:
|
|
- $ref: '#/components/schemas/InvitationTermsVersion'
|
|
consent_c4:
|
|
$ref: '#/components/schemas/ContactConsentAcceptance'
|
|
InvitationDeclineRequest:
|
|
type: object
|
|
description: 'Structured decline: a reason and an optional comment. Unknown fields are rejected.'
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
- reason
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/InvitationVersion'
|
|
reason:
|
|
$ref: '#/components/schemas/InvitationDeclineReason'
|
|
comment:
|
|
description: Optional comment for any reason, including `other`; absent or null means none.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationDeclineComment'
|
|
- type: 'null'
|
|
ContactFieldKind:
|
|
type: string
|
|
description: |-
|
|
Kind of personal data that the consent C4 can disclose to one organization (PRD FR01 and FR12). The candidate selects each kind separately; one kind never implies another.
|
|
|
|
- full_name: the full name from the profile.
|
|
- email: the contact email address from the profile.
|
|
- phone: the contact phone number from the profile.
|
|
- telegram: the Telegram username from the profile.
|
|
|
|
The value formats are those of ContactDisclosure: a single-line full name of up to 200 characters, an E.164 phone number, and a Telegram username with the leading @. The profile contract (FR02) must store contacts in the same formats, so a disclosure never has to convert or drop a stored value. The FSP results of FR14, which need their own explicit permission, are planned as additional kinds. Adding a value is a contract change.
|
|
enum:
|
|
- full_name
|
|
- email
|
|
- phone
|
|
- telegram
|
|
ContactConsentText:
|
|
type: object
|
|
description: Currently published text of the consent C4 for this invitation. The server stores an acceptance with `text_version` and the hash of exactly this text, together with the organization, the selected fields, the invitation, and its terms version (the consent ledger).
|
|
additionalProperties: false
|
|
required:
|
|
- text_version
|
|
- text
|
|
properties:
|
|
text_version:
|
|
$ref: '#/components/schemas/ConsentTextVersion'
|
|
text:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 100000
|
|
description: Full consent text in plain UTF-8 with the name of the organization; paragraphs are separated by an empty line. The client shows it as text, never as HTML, next to the field choice.
|
|
ContactConsentOffer:
|
|
type: object
|
|
description: 'What the candidate can consent to in an acceptance: the consent text and the kinds of contact that the candidate''s profile holds now. It holds kinds only, never contact values, and nothing is preselected.'
|
|
additionalProperties: false
|
|
required:
|
|
- text
|
|
- available_fields
|
|
properties:
|
|
text:
|
|
$ref: '#/components/schemas/ContactConsentText'
|
|
available_fields:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 4
|
|
uniqueItems: true
|
|
description: Kinds of contact that the profile holds and that an acceptance may select. A kind outside this list answers 400 in an acceptance.
|
|
items:
|
|
$ref: '#/components/schemas/ContactFieldKind'
|
|
ContactConsentAcceptance:
|
|
type: object
|
|
description: 'Consent C4 given in an acceptance: the text version the candidate saw, an explicit `accepted`, and the contact fields the candidate selected. At least one field is required, so a hidden default or an empty choice never creates a grant. A text version that is not the currently published one answers 400 validation_failed with the pointer `/consent_c4/text_version`, and a field that the profile does not hold answers 400 with the pointer of that item, such as `/consent_c4/fields/1`. C4 is given only here, never at registration. The permission to pass the selected data on to the organization''s ATS (PRD C4 and FR19) is planned as an additive optional flag that defaults to no transfer.'
|
|
additionalProperties: false
|
|
required:
|
|
- text_version
|
|
- accepted
|
|
- fields
|
|
properties:
|
|
text_version:
|
|
$ref: '#/components/schemas/ConsentTextVersion'
|
|
accepted:
|
|
type: boolean
|
|
enum:
|
|
- true
|
|
description: Explicit consent. Only true is valid.
|
|
fields:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 4
|
|
uniqueItems: true
|
|
description: Contact fields the organization may read after the acceptance. The grant covers exactly these fields and no other.
|
|
items:
|
|
$ref: '#/components/schemas/ContactFieldKind'
|
|
ContactGrantState:
|
|
type: string
|
|
description: |-
|
|
State of a contact grant.
|
|
|
|
- active: the grant exists. Each read by the organization still checks the consent C4, the grant, and the current visibility of the profile.
|
|
- revoked: the grant is closed for good; the organization reads no contact through it. A later publication of the profile or a new acceptance never reopens it; only a new explicit C4 creates a new grant.
|
|
enum:
|
|
- active
|
|
- revoked
|
|
ContactAccessBlock:
|
|
type: string
|
|
description: |-
|
|
Why an active grant does not allow a read now, shown only to the candidate.
|
|
|
|
- visibility: the profile was not published (C2) or was hidden from the organization when the candidate accepted, and it still is. The acceptance never publishes the profile or lifts the hiding by itself (PRD FR12); the grant becomes readable once the candidate publishes the profile or unhides it for the organization.
|
|
enum:
|
|
- visibility
|
|
ContactRevocationReason:
|
|
type: string
|
|
description: |-
|
|
Why a contact grant was revoked, shown only to the candidate.
|
|
|
|
- consent_revoked: the candidate revoked the consent C4 for the organization; every grant under it is closed.
|
|
- participation_cancelled: the candidate cancelled the participation in this invitation; only the grant of this invitation is closed.
|
|
- visibility_closed: the candidate revoked the publication C2 or hid the profile from the organization after the grant existed. A grant created while the visibility already did not allow a read stays active with `blocked_by` `visibility` instead.
|
|
|
|
The withdrawal of an invitation by the organization, a no deal, and a negotiation timeout never revoke a grant.
|
|
enum:
|
|
- consent_revoked
|
|
- participation_cancelled
|
|
- visibility_closed
|
|
ContactGrant:
|
|
type: object
|
|
description: 'Contact grant as the candidate reads it: which fields one organization may read, from which invitation and terms version, and whether it is still active. It holds kinds only, never contact values. A grant is stored apart from the invitation state, so a later change of the state does not change it unless the state is a cancellation by the candidate.'
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- fields
|
|
- status
|
|
- readable
|
|
- blocked_by
|
|
- terms_version
|
|
- consent_text_version
|
|
- granted_at
|
|
- revoked_at
|
|
- revocation_reason
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the grant.
|
|
fields:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 4
|
|
uniqueItems: true
|
|
description: Contact fields that the grant covers.
|
|
items:
|
|
$ref: '#/components/schemas/ContactFieldKind'
|
|
status:
|
|
$ref: '#/components/schemas/ContactGrantState'
|
|
readable:
|
|
type: boolean
|
|
description: 'Whether the organization can read the covered fields now: true only for an active grant whose current consent and visibility allow the read. The organization sees the same fact as `contact_access.status` `available`, without the reason.'
|
|
blocked_by:
|
|
description: Why an active grant is not readable now, or null when it is readable or revoked; a revoked grant has `revocation_reason` instead.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ContactAccessBlock'
|
|
- type: 'null'
|
|
terms_version:
|
|
description: Terms version of the invitation that the acceptance accepted.
|
|
allOf:
|
|
- $ref: '#/components/schemas/InvitationTermsVersion'
|
|
consent_text_version:
|
|
description: Version of the consent C4 text that the candidate accepted.
|
|
allOf:
|
|
- $ref: '#/components/schemas/ConsentTextVersion'
|
|
granted_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
revoked_at:
|
|
description: Moment of the revocation, or null while the grant is active.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
revocation_reason:
|
|
description: Reason of the revocation, or null while the grant is active.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ContactRevocationReason'
|
|
- type: 'null'
|
|
ContactPhoneNumber:
|
|
type: string
|
|
minLength: 8
|
|
maxLength: 16
|
|
pattern: ^\+[1-9][0-9]{6,14}$
|
|
description: Phone number in the E.164 format, for example +70000000000.
|
|
ContactTelegramUsername:
|
|
type: string
|
|
minLength: 6
|
|
maxLength: 33
|
|
pattern: ^@[A-Za-z0-9_]{5,32}$
|
|
description: Telegram username with the leading @.
|
|
ContactFullName:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 200
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: Full name as the candidate wrote it in the profile. Plain text without line breaks; clients show it as text, never as HTML.
|
|
ContactDisclosure:
|
|
type: object
|
|
description: Contacts of the candidate that the organization may read through an active grant of this invitation. This is the only response that carries contact values, and it is separate from the terms and from the invitation. Each field the grant does not cover is null, and so is a covered field that the profile no longer holds. The response is never cached or stored by the server for later reads, so a revocation closes the next read at once. The value formats depend on the profile contract (FR02), which must store the same formats; see ContactFieldKind.
|
|
additionalProperties: false
|
|
required:
|
|
- invitation_id
|
|
- grant_id
|
|
- fields
|
|
- granted_at
|
|
- full_name
|
|
- email
|
|
- phone
|
|
- telegram
|
|
properties:
|
|
invitation_id:
|
|
type: string
|
|
format: uuid
|
|
description: Invitation whose acceptance created the grant.
|
|
grant_id:
|
|
type: string
|
|
format: uuid
|
|
description: Grant that allows the read.
|
|
fields:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 4
|
|
uniqueItems: true
|
|
description: Contact fields that the grant covers.
|
|
items:
|
|
$ref: '#/components/schemas/ContactFieldKind'
|
|
granted_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
full_name:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ContactFullName'
|
|
- type: 'null'
|
|
email:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/EmailAddress'
|
|
- type: 'null'
|
|
phone:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ContactPhoneNumber'
|
|
- type: 'null'
|
|
telegram:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ContactTelegramUsername'
|
|
- type: 'null'
|
|
ConsentPurposeCode:
|
|
type: string
|
|
description: |-
|
|
One of the independent consents of PRD FR01. A grant or a revocation of one purpose never changes another.
|
|
|
|
- c1: processing of personal data, given at registration.
|
|
- c2: publication of the candidate card. The record proves the consent to the published text; which fields were published and when is evidence of the publication history, not of this record. Adding a field scope to c2 records later is an additive change.
|
|
- c3: automatic categorization. Without it the candidate can request a manual assessment by the same rubric.
|
|
- c4: transfer of the selected contact data to one organization, currently given only in an invitation acceptance.
|
|
- c5: import of FSP results.
|
|
|
|
ConsentPurpose lists the subset whose text the client may read before an account exists.
|
|
enum:
|
|
- c1
|
|
- c2
|
|
- c3
|
|
- c4
|
|
- c5
|
|
ConsentState:
|
|
type: string
|
|
description: |-
|
|
State of a consent record, computed from the ledger.
|
|
|
|
- active: the consent holds. For c1, c2, c3, and c5 it is the newest unrevoked record of its purpose; every unrevoked c4 record is active, one per accepted invitation.
|
|
- superseded: the subject later accepted another text version of the same purpose and has not revoked either. The record stays as evidence for its own time; it never applies to c4.
|
|
- revoked: the consent was revoked. The record keeps its grant and its one revocation time; a later grant is a new record and never reopens it.
|
|
enum:
|
|
- active
|
|
- superseded
|
|
- revoked
|
|
ConsentSource:
|
|
type: string
|
|
description: |-
|
|
Where the subject gave the consent.
|
|
|
|
- registration: the c1 acceptance of RegisterAccount.
|
|
- consent_settings: the consent settings of the account, for c1, c2, c3, and c5 (planned).
|
|
- invitation_acceptance: the c4 acceptance of AcceptMyInvitation.
|
|
|
|
A c4 given when sending an application (PRD Q9) is planned as an additional value.
|
|
enum:
|
|
- registration
|
|
- consent_settings
|
|
- invitation_acceptance
|
|
ConsentRevocationSource:
|
|
type: string
|
|
description: |-
|
|
Who recorded a revocation.
|
|
|
|
- consent_settings: the subject revoked the consent in the product.
|
|
- support_request: an operator recorded a revocation that the subject requested through support.
|
|
enum:
|
|
- consent_settings
|
|
- support_request
|
|
ConsentOrganization:
|
|
type: object
|
|
description: Organization of a c4 consent as the consent recorded it. `name` is a snapshot of the name that the shown consent text carried at the time of the consent, and the stored text hash proves that text with this name; a later rename of the organization does not change it, so it can differ from the current name.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- name
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the organization.
|
|
name:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 200
|
|
description: Name of the organization in the consent text at the time of the consent. Plain text; clients show it as text, never as HTML.
|
|
ConsentRecord:
|
|
type: object
|
|
description: 'One record of the consent ledger as its subject reads it: the purpose, the text version the subject accepted, where and when the consent was given, its state, and the revocation. A c4 record also names the organization, the contact fields, and the invitation with its terms version; these fields are null for every other purpose. The server also stores the SHA-256 hash of exactly the text the subject saw, which a client never sends or receives.'
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- purpose
|
|
- state
|
|
- text_version
|
|
- source
|
|
- granted_at
|
|
- revoked_at
|
|
- revocation_source
|
|
- organization
|
|
- fields
|
|
- invitation_id
|
|
- invitation_terms_version
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the record.
|
|
purpose:
|
|
$ref: '#/components/schemas/ConsentPurposeCode'
|
|
state:
|
|
$ref: '#/components/schemas/ConsentState'
|
|
text_version:
|
|
description: Version of the consent text that the subject accepted.
|
|
allOf:
|
|
- $ref: '#/components/schemas/ConsentTextVersion'
|
|
source:
|
|
$ref: '#/components/schemas/ConsentSource'
|
|
granted_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
revoked_at:
|
|
description: Moment of the revocation, or null unless `state` is `revoked`.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
revocation_source:
|
|
description: Who recorded the revocation, or null unless `state` is `revoked`.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ConsentRevocationSource'
|
|
- type: 'null'
|
|
organization:
|
|
description: Organization that a c4 consent allows to read the fields, with the name the consent text showed, or null for every other purpose.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ConsentOrganization'
|
|
- type: 'null'
|
|
fields:
|
|
type:
|
|
- array
|
|
- 'null'
|
|
minItems: 1
|
|
maxItems: 4
|
|
uniqueItems: true
|
|
description: Contact fields that a c4 consent covers, or null for every other purpose. One kind never implies another.
|
|
items:
|
|
$ref: '#/components/schemas/ContactFieldKind'
|
|
invitation_id:
|
|
type:
|
|
- string
|
|
- 'null'
|
|
format: uuid
|
|
description: Invitation whose acceptance gave a c4 consent, or null for every other purpose.
|
|
invitation_terms_version:
|
|
description: Terms version that the acceptance accepted, or null for every other purpose.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/InvitationTermsVersion'
|
|
- type: 'null'
|
|
ConsentRecordList:
|
|
type: object
|
|
description: One page of the consent ledger of the current account, newest grant first.
|
|
additionalProperties: false
|
|
required:
|
|
- items
|
|
- page
|
|
properties:
|
|
items:
|
|
type: array
|
|
maxItems: 100
|
|
description: Records of the page.
|
|
items:
|
|
$ref: '#/components/schemas/ConsentRecord'
|
|
page:
|
|
$ref: '#/components/schemas/PageInfo'
|
|
ConsentSettingsGrantRequest:
|
|
type: object
|
|
description: Accept the current published text shown by GetMyConsentText. The server checks its version again before recording the grant.
|
|
additionalProperties: false
|
|
required:
|
|
- text_version
|
|
- accepted
|
|
properties:
|
|
text_version:
|
|
$ref: '#/components/schemas/ConsentTextVersion'
|
|
accepted:
|
|
type: boolean
|
|
enum:
|
|
- true
|
|
description: Must be true to record an explicit acceptance.
|
|
ConsentDeletionRequest:
|
|
type: object
|
|
description: Durable request to delete the account and its personal data. The request is recorded before asynchronous processing starts; it does not mean deletion has completed.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- status
|
|
- requested_at
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the durable deletion request.
|
|
status:
|
|
type: string
|
|
enum:
|
|
- requested
|
|
- processing
|
|
description: Current state of the deletion request.
|
|
requested_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
OrganizationVersion:
|
|
type: integer
|
|
format: int64
|
|
minimum: 1
|
|
description: 'Version of the profile of an organization. Creation makes version 1, and every committed change of the profile advances it by exactly one. A change carries the version the client read as `expected_version`. Only the profile has a version: the memberships and the verification level of the organization do not advance it.'
|
|
examples:
|
|
- 2
|
|
OrganizationName:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 200
|
|
pattern: ^\S(?:[^\n\r]*\S)?$
|
|
description: Public name of the organization, for example the legal name that a candidate knows. It has no leading or trailing whitespace and no line breaks, and it is at most 200 characters because consent records keep a copy of it. Plain text; clients show it as text, never as HTML. A later rename never changes the copy that a consent record holds.
|
|
examples:
|
|
- ООО Пример Платежи
|
|
OrganizationDescription:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 2000
|
|
description: What the organization does, written for candidates. It may contain line breaks; the server stores CRLF as LF, and it refuses leading and trailing whitespace and any other control character. Plain text; clients show it as text, never as HTML.
|
|
examples:
|
|
- Платежный сервис для малого бизнеса. Разрабатываем собственное ядро проведения платежей и интеграции с банками.
|
|
OrganizationSphere:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 100
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: Field of business of the organization as free text, for example "Платежи и финансовые сервисы". It has no leading or trailing whitespace and no line breaks. The product has no sphere taxonomy yet; a taxonomy code would be an additive field. Plain text; clients show it as text, never as HTML.
|
|
examples:
|
|
- Платежи и финансовые сервисы
|
|
OrganizationWebsite:
|
|
type: string
|
|
minLength: 9
|
|
maxLength: 300
|
|
pattern: ^https://[^\s/?#@]+(?:[/?#][^\s]*)?$
|
|
description: 'Public website of the organization: an https URL with a host name, without credentials. The server also refuses a port, an IP address, a host name without a dot, and `localhost`. It never fetches the address.'
|
|
examples:
|
|
- https://payments.example.com
|
|
OrganizationContactChannels:
|
|
type: object
|
|
description: Public contacts of the organization, the ones a candidate sees on its card. They are company channels, such as a careers mailbox, the website, a company phone, or a company Telegram account, and never the personal email address, phone, or messenger of an employee; personal contacts of the people of the organization stay out of this object. The server cannot tell a company address from a personal one, so the owner answers for the content, and a candidate can complain about an organization through a support case. The object is the request field and the stored value alike, so a response can be sent back unchanged; every field is required and null means not set. A change replaces the whole object, never a single field of it.
|
|
additionalProperties: false
|
|
required:
|
|
- website
|
|
- email
|
|
- phone
|
|
- telegram
|
|
properties:
|
|
website:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/OrganizationWebsite'
|
|
- type: 'null'
|
|
email:
|
|
description: Public mailbox of the organization, such as a careers address, or null. It is stored in the form it was given.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/EmailAddress'
|
|
- type: 'null'
|
|
phone:
|
|
description: Public phone number of the organization, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ContactPhoneNumber'
|
|
- type: 'null'
|
|
telegram:
|
|
description: Public Telegram account of the organization, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ContactTelegramUsername'
|
|
- type: 'null'
|
|
OrganizationRepresentative:
|
|
type: object
|
|
description: 'A person that speaks for the organization to candidates, as the owner presents them on the card. It is presentation only: a representative is not a member of the organization, has no account link, and gains no right from being listed, and a member does not become a representative by joining. It holds no contact of the person; reaching the organization goes through its public contacts. The name is personal data of an employee that the owner publishes, so the owner must have the right to do it; see the open questions in the organization section of the API guide.'
|
|
additionalProperties: false
|
|
required:
|
|
- name
|
|
- job_title
|
|
properties:
|
|
name:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 100
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: Name of the person as the card shows it. It has no leading or trailing whitespace and no line breaks. Plain text; clients show it as text, never as HTML.
|
|
job_title:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 100
|
|
pattern: ^\S(?:.*\S)?$
|
|
description: Position of the person in the organization, for example "Руководитель по подбору". It has no leading or trailing whitespace and no line breaks. Plain text; clients show it as text, never as HTML.
|
|
OrganizationVerificationLevel:
|
|
type: string
|
|
description: |-
|
|
Trust level of an organization (PRD FR07). It limits the quotas of the organization and, in a planned mode, the access of candidates under 18; it never replaces the consent of a candidate.
|
|
|
|
- e0: the confirmed email of the account that created the organization. Every new organization starts here.
|
|
- e1: a corporate email, a verified domain, and a link with the organization.
|
|
- e2: a check of the requisites and of the authority of the person.
|
|
- e3: a manual check or a partner status.
|
|
|
|
The server reports e1, e2, or e3 only after a verification process has recorded it for the organization. No request of this contract sets or raises a level, and neither does an edit of the profile, the size of the profile, the number of members, or the domain of an email address. The first slice of the product uses e0 and e1; the processes for e1, e2, and e3 do not exist yet, so a client treats every level other than e0 as unavailable until they do. Adding a level is a contract change.
|
|
enum:
|
|
- e0
|
|
- e1
|
|
- e2
|
|
- e3
|
|
OrganizationVerificationBasis:
|
|
type: string
|
|
description: |-
|
|
Ground of the current verification level, the reason a cabinet can show next to it.
|
|
|
|
- confirmed_email: the confirmed email of the creating account (e0).
|
|
- corporate_domain: a corporate email and a verified domain (e1).
|
|
- requisites_and_authority: a check of the requisites and of the authority (e2).
|
|
- manual_review: a manual check by the platform (e3).
|
|
- partner_status: a partner status (e3).
|
|
|
|
Each level has its own bases, so a level and a basis that do not belong together never occur. Adding a value is a contract change.
|
|
enum:
|
|
- confirmed_email
|
|
- corporate_domain
|
|
- requisites_and_authority
|
|
- manual_review
|
|
- partner_status
|
|
OrganizationVerification:
|
|
type: object
|
|
description: 'Verification level of an organization with its ground and the time it was set. It is read-only everywhere in this contract: the server sets it, and no request carries it. The scope of the check and the history of changes (PRD FR07) are planned as additive fields and a separate history with the first verification process.'
|
|
additionalProperties: false
|
|
required:
|
|
- level
|
|
- basis
|
|
- changed_at
|
|
properties:
|
|
level:
|
|
$ref: '#/components/schemas/OrganizationVerificationLevel'
|
|
basis:
|
|
$ref: '#/components/schemas/OrganizationVerificationBasis'
|
|
changed_at:
|
|
description: Moment the level was set to its current value; for a new organization, the creation time.
|
|
allOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
CandidateOrganizationCard:
|
|
type: object
|
|
description: 'The card of an organization as a candidate sees it: what an invitation shows before the candidate decides. The server builds it from the profile and the verification level and returns it to the owner as the preview of PRD FR07 ("through the eyes of the candidate"); a client never sends it. It holds no membership, no role, no account, no version, and no ground of the verification: a member''s email address, the number of members, and the history of the organization stay out of it. The card is the same object that the candidate side will return (planned in the invitation contract). Only a candidate who received an invitation from the organization sees it; it is not a public page, and no operation shows it to anyone else until the open question about publishing the names of representatives is decided (152-FZ). The server may leave `representatives` out, and a card without them means that the representatives are not published, not that the organization has none.'
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- name
|
|
- description
|
|
- sphere
|
|
- contacts
|
|
- verification_level
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the organization.
|
|
name:
|
|
$ref: '#/components/schemas/OrganizationName'
|
|
description:
|
|
description: Description of the organization, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/OrganizationDescription'
|
|
- type: 'null'
|
|
sphere:
|
|
description: Field of business of the organization, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/OrganizationSphere'
|
|
- type: 'null'
|
|
contacts:
|
|
$ref: '#/components/schemas/OrganizationContactChannels'
|
|
representatives:
|
|
type:
|
|
- array
|
|
- 'null'
|
|
maxItems: 10
|
|
description: Representatives in the order the owner gave them. Absent or null means that they are not published on this card, which says nothing about whether the organization has any.
|
|
items:
|
|
$ref: '#/components/schemas/OrganizationRepresentative'
|
|
verification_level:
|
|
$ref: '#/components/schemas/OrganizationVerificationLevel'
|
|
Organization:
|
|
type: object
|
|
description: 'Organization as its members read it: the profile that the owner edits, the verification level that only the server sets, and the card that a candidate sees. It never contains a role, a membership, the members of the organization, or an account identifier, so no field of it can raise a right: the role of the caller is in `OrganizationMembership` and comes only from the membership held by the server. The profile fields repeat in `candidate_card`, which is the candidate''s view of them; the client reads the profile fields for the form and `candidate_card` for the preview.'
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- version
|
|
- name
|
|
- description
|
|
- sphere
|
|
- contacts
|
|
- representatives
|
|
- verification
|
|
- candidate_card
|
|
- created_at
|
|
- updated_at
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the organization, the `org_id` of every organization-scoped path. It never changes.
|
|
version:
|
|
$ref: '#/components/schemas/OrganizationVersion'
|
|
name:
|
|
$ref: '#/components/schemas/OrganizationName'
|
|
description:
|
|
description: Description of the organization, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/OrganizationDescription'
|
|
- type: 'null'
|
|
sphere:
|
|
description: Field of business of the organization, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/OrganizationSphere'
|
|
- type: 'null'
|
|
contacts:
|
|
$ref: '#/components/schemas/OrganizationContactChannels'
|
|
representatives:
|
|
type: array
|
|
maxItems: 10
|
|
description: Representatives in the order the owner gave them.
|
|
items:
|
|
$ref: '#/components/schemas/OrganizationRepresentative'
|
|
verification:
|
|
$ref: '#/components/schemas/OrganizationVerification'
|
|
candidate_card:
|
|
$ref: '#/components/schemas/CandidateOrganizationCard'
|
|
created_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
updated_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
OrganizationCreate:
|
|
type: object
|
|
description: New organization. Only `name` is required, so a company can start with its name and complete the card later. The creating account becomes the owner of the organization; the body has no field for a role, a membership, an owner, a verification level, or a version, and unknown fields are rejected, so a request cannot set any of them. An absent `description` or `sphere`, and one sent as null, stay unset; an absent `contacts` has every contact unset; an absent `representatives` is an empty list.
|
|
additionalProperties: false
|
|
required:
|
|
- name
|
|
properties:
|
|
name:
|
|
$ref: '#/components/schemas/OrganizationName'
|
|
description:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/OrganizationDescription'
|
|
- type: 'null'
|
|
sphere:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/OrganizationSphere'
|
|
- type: 'null'
|
|
contacts:
|
|
$ref: '#/components/schemas/OrganizationContactChannels'
|
|
representatives:
|
|
type: array
|
|
maxItems: 10
|
|
items:
|
|
$ref: '#/components/schemas/OrganizationRepresentative'
|
|
OrganizationUpdate:
|
|
type: object
|
|
description: Change of the profile of an organization over the version the client read. Each field present replaces that field as a whole and an absent field stays unchanged; `contacts` and `representatives` are replaced entirely and never merged, and a representative left out of a sent list is removed. `description` and `sphere` sent as null become unset; `name`, `contacts`, and `representatives` cannot be null. The body can change the profile only. It has no field for a role, a membership, an owner, a verification level, a basis, or a card, and unknown fields are rejected, so editing the profile can neither raise a right nor raise the trust level of the organization; both change only through processes of the server.
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/OrganizationVersion'
|
|
name:
|
|
$ref: '#/components/schemas/OrganizationName'
|
|
description:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/OrganizationDescription'
|
|
- type: 'null'
|
|
sphere:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/OrganizationSphere'
|
|
- type: 'null'
|
|
contacts:
|
|
$ref: '#/components/schemas/OrganizationContactChannels'
|
|
representatives:
|
|
type: array
|
|
maxItems: 10
|
|
items:
|
|
$ref: '#/components/schemas/OrganizationRepresentative'
|
|
OrganizationRole:
|
|
type: string
|
|
description: |-
|
|
Role of a member in an organization (PRD 2.2 and the FR07 matrix). The role belongs to the membership, never to the organization or to any editable profile.
|
|
|
|
- owner: manages the organization and its members, and acts on behalf of the company.
|
|
- recruiter: leads the selection of candidates for all needs.
|
|
- hiring_manager: acts on the needs assigned to the member.
|
|
- technical_expert: refines the requirements of the assigned needs; reads no contacts and sends no invitations.
|
|
|
|
In the MVP only the owner acts, so the other roles grant nothing yet: an operation that is not open to a role answers 403 `forbidden`. The full matrix is planned, and applying it changes no field of this contract. Adding a role is a contract change.
|
|
enum:
|
|
- owner
|
|
- recruiter
|
|
- hiring_manager
|
|
- technical_expert
|
|
MembershipState:
|
|
type: string
|
|
description: |-
|
|
State of a membership. Only `active` gives access: every other state answers as if the account were no member.
|
|
|
|
- active: the member works in the organization with the role.
|
|
- suspended: access is stopped, and the owner or the platform may restore it.
|
|
- removed: the owner or the platform ended the membership. A removal by the platform is not undone by the owner or by an invitation: the acceptance of an employee invitation and the member management must not reactivate it on their own. Who removed the member and why become additive fields of the member management.
|
|
- left: the member ended the membership.
|
|
|
|
One account has at most one membership per organization, so a former member who returns gets the same membership back in `active`, and the history of the pair is the history of its audit events (planned). The listing of this contract returns only `active` memberships; the other states are listed now so that generated clients accept them when the member management reads them. Adding a state is a contract change.
|
|
enum:
|
|
- active
|
|
- suspended
|
|
- removed
|
|
- left
|
|
OrganizationMembership:
|
|
type: object
|
|
description: The membership of the caller in one organization. The caller is the account of the session, so the object holds no account identifier. Only the server sets the role and the state, through the operations that manage members, which are planned; no operation of this contract changes them.
|
|
additionalProperties: false
|
|
required:
|
|
- organization_id
|
|
- role
|
|
- state
|
|
- joined_at
|
|
properties:
|
|
organization_id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the organization.
|
|
role:
|
|
$ref: '#/components/schemas/OrganizationRole'
|
|
state:
|
|
$ref: '#/components/schemas/MembershipState'
|
|
joined_at:
|
|
description: Moment the membership was first created. A member who left and returns keeps the same value, because the pair has one membership; the moment of the latest activation is a planned additive field (`activated_at`).
|
|
allOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
OrganizationSummary:
|
|
type: object
|
|
description: 'An organization in the list of the caller''s organizations: what a switcher needs to name it. The profile, the contacts, and the representatives are in `Organization`.'
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- name
|
|
- verification_level
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the organization, the `org_id` of its paths.
|
|
name:
|
|
$ref: '#/components/schemas/OrganizationName'
|
|
verification_level:
|
|
$ref: '#/components/schemas/OrganizationVerificationLevel'
|
|
MyOrganization:
|
|
type: object
|
|
description: An organization available to the caller together with the caller's membership in it.
|
|
additionalProperties: false
|
|
required:
|
|
- organization
|
|
- membership
|
|
properties:
|
|
organization:
|
|
$ref: '#/components/schemas/OrganizationSummary'
|
|
membership:
|
|
$ref: '#/components/schemas/OrganizationMembership'
|
|
MyOrganizationList:
|
|
type: object
|
|
description: One page of the organizations available to the caller, newest membership first. It holds only organizations where the caller has an `active` membership, so it is also the list of contexts the caller can work in; it never names an organization the caller cannot enter.
|
|
additionalProperties: false
|
|
required:
|
|
- items
|
|
- page
|
|
properties:
|
|
items:
|
|
type: array
|
|
maxItems: 100
|
|
description: Organizations of the page.
|
|
items:
|
|
$ref: '#/components/schemas/MyOrganization'
|
|
page:
|
|
$ref: '#/components/schemas/PageInfo'
|
|
PublicationVersion:
|
|
type: integer
|
|
format: int64
|
|
minimum: 0
|
|
description: Version of the publication setting of the candidate. A candidate who has never published has version 0 and the profile is closed; every change that alters the setting advances it by one. The client sends the version it read as `expected_version`. It is independent of the versions of the profile and of the search status, so a change of one never makes another stale.
|
|
examples:
|
|
- 2
|
|
SearchStatusVersion:
|
|
type: integer
|
|
format: int64
|
|
minimum: 0
|
|
description: Version of the search status of the candidate. A candidate who never set the status has version 0 and the status `not_looking`; every confirmation or change advances it by one. The client sends the version it read as `expected_version`.
|
|
examples:
|
|
- 3
|
|
CardField:
|
|
type: string
|
|
description: |-
|
|
A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.
|
|
|
|
- categories: specialization and grade confirmed by an authoritative assessment result. With it an organization receives the confirmed category and, with each category of the card, one supporting assessment fact: its skill, the passed grade, the trust level, the year of the assessment, and the basis and calibration that mark a synthetic, uncalibrated demonstration (`GetOrganizationCandidateEvidence`). The candidate sees the same on `GetMyCardPreview`.
|
|
- self_assessment: the candidate's declared specialization and grade, separate from confirmed categories.
|
|
- stack: only recognized technology codes from the server's closed taxonomy.
|
|
- experience: a coarse total-experience band, without employers, periods, or descriptions.
|
|
- work_formats: explicitly selected work formats from the private questionnaire.
|
|
- salary_compatibility: a nullable compatibility outcome with no salary amounts or bounds.
|
|
- soft_skills, location, and relocation: retained only for compatibility in existing saved sets; they are not returned by the anonymous card.
|
|
|
|
Only values that the candidate confirmed ever reach the card: an unconfirmed suggestion (status `extracted`) and an unknown value never do, whatever the field set says.
|
|
|
|
Adding a value is a contract change that lets a candidate publish more, and it is also a migration (the function `candidate_card_fields_are_canonical` and the CHECK constraints of the publication and event tables list the codes). A client treats an unknown value as a reason to ask for an update, and the server never adds a new value to a published set on its own.
|
|
enum:
|
|
- categories
|
|
- salary_compatibility
|
|
- self_assessment
|
|
- stack
|
|
- experience
|
|
- soft_skills
|
|
- location
|
|
- relocation
|
|
- work_formats
|
|
CardFieldSet:
|
|
type: array
|
|
minItems: 0
|
|
maxItems: 9
|
|
uniqueItems: true
|
|
description: Distinct card fields. The server stores them in ascending order of the codes and answers them in that order, whatever order the client sent, so equal sets are equal arrays.
|
|
items:
|
|
$ref: '#/components/schemas/CardField'
|
|
PublicationState:
|
|
type: string
|
|
description: |-
|
|
Whether the candidate card can be read by organizations at all. It is computed from the stored publication and the consent ledger: a profile is closed unless the candidate published it and the C2 consent that backs the publication is still unrevoked.
|
|
|
|
- closed: no organization reads the card. This is the state of every new profile and of a profile whose publication was closed or whose C2 was revoked.
|
|
- published: organizations may read exactly the fields in `fields`, except for the organizations the candidate hid.
|
|
enum:
|
|
- closed
|
|
- published
|
|
PublicationClosedReason:
|
|
type: string
|
|
description: |-
|
|
Why a closed profile is closed, shown only to the candidate.
|
|
|
|
- never_published: the candidate has never published the profile.
|
|
- closed_by_candidate: the candidate closed the publication.
|
|
- consent_revoked: the C2 consent that backed the publication was revoked. A later C2 grant never reopens the publication; the candidate publishes again explicitly and the new publication refers to the new consent record.
|
|
enum:
|
|
- never_published
|
|
- closed_by_candidate
|
|
- consent_revoked
|
|
Publication:
|
|
type: object
|
|
description: 'Publication setting of the candidate card. It is separate from the consent: the C2 consent in the ledger proves that the candidate accepted the publication text, and this setting records whether and which fields are published. `state` is `published` only while the referenced C2 record is unrevoked, whatever the stored setting says, so a revocation closes the card at once. The state, the fields, and the times belong to the history that the C2 consent record does not carry.'
|
|
additionalProperties: false
|
|
required:
|
|
- state
|
|
- closed_reason
|
|
- fields
|
|
- consent_id
|
|
- published_at
|
|
- version
|
|
properties:
|
|
state:
|
|
$ref: '#/components/schemas/PublicationState'
|
|
closed_reason:
|
|
description: Why the profile is closed, or null while it is published.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/PublicationClosedReason'
|
|
- type: 'null'
|
|
fields:
|
|
description: Card fields that organizations may read. Empty exactly when `state` is `closed`.
|
|
allOf:
|
|
- $ref: '#/components/schemas/CardFieldSet'
|
|
consent_id:
|
|
description: Identifier of the C2 record of the consent ledger that backs the current or the last publication, the `id` of a `ConsentRecord` of this account, or null when the profile was never published.
|
|
oneOf:
|
|
- type: string
|
|
format: uuid
|
|
- type: 'null'
|
|
published_at:
|
|
description: Moment of the latest change that published or republished the card, or null while the profile was never published. It stays after a closing, as the time of the last publication.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
version:
|
|
$ref: '#/components/schemas/PublicationVersion'
|
|
PublicationUpdate:
|
|
type: object
|
|
description: 'The complete new publication setting. `published` needs a non-empty set of fields and an active C2 consent of the account; `closed` needs an empty set and never fails for a missing consent. The body names no consent: the server binds the publication to the account''s current unrevoked C2 record, and a client can neither supply nor forge one.'
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
- state
|
|
- fields
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/PublicationVersion'
|
|
state:
|
|
$ref: '#/components/schemas/PublicationState'
|
|
fields:
|
|
$ref: '#/components/schemas/CardFieldSet'
|
|
SearchStatusValue:
|
|
type: string
|
|
description: |-
|
|
Whether the candidate says they are searching for work. The status is a statement, never a consent: it publishes nothing, hides nothing, and grants nothing, and no value of it changes the C2 consent, the publication, or the hidden organizations.
|
|
|
|
- looking: the candidate is searching ("Ищу"). It holds only while it is confirmed in time; see `SearchStatus.lapsed`.
|
|
- not_looking: the candidate is not announcing a search. It is the state of every new account and the state to which a lapsed status falls.
|
|
enum:
|
|
- looking
|
|
- not_looking
|
|
SearchStatus:
|
|
type: object
|
|
description: 'Search status of the candidate as it holds now. The status `looking` stores the moment of its confirmation and lapses when the confirmation interval of the product policy passes without a new confirmation. A lapse only ever narrows: the status falls to `not_looking`, which is the non-public state, and a lapse never changes the publication or the hidden organizations. It needs no stored change, so no process can make a candidate more visible by expiry, and a lapsed candidate confirms again explicitly.'
|
|
additionalProperties: false
|
|
required:
|
|
- value
|
|
- lapsed
|
|
- confirmed_at
|
|
- lapses_at
|
|
- version
|
|
properties:
|
|
value:
|
|
description: 'The status that holds now: `looking` only while the confirmation has not lapsed.'
|
|
allOf:
|
|
- $ref: '#/components/schemas/SearchStatusValue'
|
|
lapsed:
|
|
type: boolean
|
|
description: True when the candidate set `looking`, did not confirm it again, and the interval ended, so `value` is `not_looking`. False otherwise, including a status the candidate cleared.
|
|
confirmed_at:
|
|
description: Moment of the latest confirmation of `looking`, or null when the candidate never set it or cleared it.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
lapses_at:
|
|
description: Moment at which the confirmed status lapses, fixed when it was confirmed from the `search_status` section of the product policy version in force then, or null when `confirmed_at` is null. A later policy change does not move it; it stays in the past for a lapsed status.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
version:
|
|
$ref: '#/components/schemas/SearchStatusVersion'
|
|
SearchStatusUpdate:
|
|
type: object
|
|
description: 'The complete new search status. `looking` is also the confirmation of a status that still holds or has lapsed: it sets the confirmation time to now. The body carries no time, interval, or policy version; the server takes them from the effective product policy.'
|
|
additionalProperties: false
|
|
required:
|
|
- expected_version
|
|
- value
|
|
properties:
|
|
expected_version:
|
|
$ref: '#/components/schemas/SearchStatusVersion'
|
|
value:
|
|
$ref: '#/components/schemas/SearchStatusValue'
|
|
PrivacyOrganization:
|
|
type: object
|
|
description: Organization as the candidate who hid it reads it. The name is the current name of the organization. The candidate must already have been able to see the organization to hide it, so the reference tells them nothing that they could not read before.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- name
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the organization.
|
|
name:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 200
|
|
description: Current name of the organization. Plain text; clients show it as text, never as HTML.
|
|
HiddenOrganization:
|
|
type: object
|
|
description: 'One organization that the candidate hides the profile from. The record belongs to the candidate: no organization reads it, learns that it was hidden, or can tell a hidden candidate from one who is not published.'
|
|
additionalProperties: false
|
|
required:
|
|
- organization
|
|
- hidden_at
|
|
properties:
|
|
organization:
|
|
$ref: '#/components/schemas/PrivacyOrganization'
|
|
hidden_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
HiddenOrganizationList:
|
|
type: object
|
|
description: One page of the organizations that the candidate hides the profile from, newest first with the organization identifier as the tie-breaker.
|
|
additionalProperties: false
|
|
required:
|
|
- items
|
|
- page
|
|
properties:
|
|
items:
|
|
type: array
|
|
maxItems: 100
|
|
description: Hidden organizations of the page.
|
|
items:
|
|
$ref: '#/components/schemas/HiddenOrganization'
|
|
page:
|
|
$ref: '#/components/schemas/PageInfo'
|
|
PrivacySettings:
|
|
type: object
|
|
description: 'The visibility settings of the current candidate in one read: the publication, the search status, and the number of hidden organizations. The three are independent: each has its own version and its own operation, and a change of one leaves the others as they were. A new account reads a closed profile, `not_looking`, and no hidden organization.'
|
|
additionalProperties: false
|
|
required:
|
|
- publication
|
|
- search_status
|
|
- hidden_organizations_total
|
|
properties:
|
|
publication:
|
|
$ref: '#/components/schemas/Publication'
|
|
search_status:
|
|
$ref: '#/components/schemas/SearchStatus'
|
|
hidden_organizations_total:
|
|
type: integer
|
|
minimum: 0
|
|
maximum: 1000
|
|
description: Number of organizations that the candidate hides the profile from. The list is read with `ListMyHiddenOrganizations`.
|
|
CardCategory:
|
|
type: object
|
|
description: A category confirmed by assessment results, as the card shows it. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category, which is never a standard confirmation.
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- grade
|
|
- strength
|
|
- basis
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
strength:
|
|
type: string
|
|
enum:
|
|
- standard
|
|
- strong
|
|
description: Coarse strength of the authoritative confirmation.
|
|
basis:
|
|
$ref: '#/components/schemas/EvidenceBasis'
|
|
AnonymousCardContent:
|
|
type: object
|
|
description: The anonymous candidate card as an organization reads it. Only explicitly published values reach it; unconfirmed stack suggestions and unknown values never do. Stack output uses a closed taxonomy. It carries no name, contact, resume text, employer, salary figure, account or profile identifier, and no schema of the private profile or of a contact disclosure is reachable from it; a contact reaches an organization only through the contact grant of an accepted invitation. Each property is null when its field is not published or the candidate has no value for it, so the card does not tell the two apart. The set of properties is closed, and an organization-visible card must never gain a property that identifies the candidate. The search ranking and the full card of an organization's search result are defined by the search contract, which reuses this content.
|
|
additionalProperties: false
|
|
required:
|
|
- pseudonym
|
|
- categories
|
|
- stack
|
|
- self_assessment
|
|
- experience_band
|
|
- work_formats
|
|
- salary_compatibility
|
|
properties:
|
|
pseudonym:
|
|
type: string
|
|
minLength: 47
|
|
maxLength: 47
|
|
pattern: ^cv1_[A-Za-z0-9_-]{43}$
|
|
description: Stable opaque alias scoped to the reading organization. It is not an account or profile identifier and changes across organizations.
|
|
categories:
|
|
type:
|
|
- array
|
|
- 'null'
|
|
maxItems: 9
|
|
description: Categories confirmed by assessment results, or null.
|
|
items:
|
|
$ref: '#/components/schemas/CardCategory'
|
|
stack:
|
|
type:
|
|
- array
|
|
- 'null'
|
|
maxItems: 4
|
|
description: Recognized confirmed technology codes only, or null.
|
|
items:
|
|
type: string
|
|
enum:
|
|
- go
|
|
- postgresql
|
|
- kafka
|
|
- docker
|
|
self_assessment:
|
|
type:
|
|
- array
|
|
- 'null'
|
|
maxItems: 9
|
|
description: Candidate-declared specialization and grade, separate from categories.
|
|
items:
|
|
$ref: '#/components/schemas/CardSelfAssessment'
|
|
experience_band:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/CandidateExperienceBand'
|
|
- type: 'null'
|
|
description: Coarse total work-experience bucket, or null.
|
|
work_formats:
|
|
type:
|
|
- array
|
|
- 'null'
|
|
maxItems: 3
|
|
description: Explicitly opted-in work formats, or null.
|
|
items:
|
|
$ref: '#/components/schemas/CandidateWorkFormat'
|
|
salary_compatibility:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/CandidateSalaryCompatibility'
|
|
- type: 'null'
|
|
description: Nullable compatibility result with no salary values.
|
|
CardPreview:
|
|
type: object
|
|
description: A private candidate preview computed from the current profile, publication, and consent ledger. Its pseudonym uses a separate preview context and is not an organization's alias. Organization-specific visibility filters and cohort checks can further generalize or suppress the organization-facing card. This read creates no view or history record and never reaches an organization. `card` is null while the profile is closed. `evidence` is what an organization would read in the evidence section of the card, one supporting assessment fact for each category of the card, and is null exactly when `card` is null; the organization-facing section can still be generalized or suppressed.
|
|
additionalProperties: false
|
|
required:
|
|
- state
|
|
- fields
|
|
- card
|
|
- evidence
|
|
- generated_at
|
|
properties:
|
|
state:
|
|
$ref: '#/components/schemas/PublicationState'
|
|
fields:
|
|
$ref: '#/components/schemas/CardFieldSet'
|
|
card:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/AnonymousCardContent'
|
|
- type: 'null'
|
|
evidence:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/OrganizationEvidence'
|
|
- type: 'null'
|
|
generated_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
PrivacyEventKind:
|
|
type: string
|
|
description: |-
|
|
Kind of a change of the visibility settings that the history records.
|
|
|
|
- publication_opened: the candidate published a closed profile.
|
|
- publication_changed: the candidate changed the published fields of a published profile, or published it again under a new C2 record.
|
|
- publication_closed: the candidate closed the publication. A revocation of C2 closes the card by the ledger and is read from the consent history, not recorded here.
|
|
- search_status_confirmed: the candidate set or confirmed `looking`.
|
|
- search_status_cleared: the candidate set `not_looking`. A lapse is not an event: it is computed.
|
|
- organization_hidden: the candidate hid the profile from an organization.
|
|
- organization_unhidden: the candidate lifted the hiding for an organization.
|
|
enum:
|
|
- publication_opened
|
|
- publication_changed
|
|
- publication_closed
|
|
- search_status_confirmed
|
|
- search_status_cleared
|
|
- organization_hidden
|
|
- organization_unhidden
|
|
PrivacyEvent:
|
|
type: object
|
|
description: One recorded change of the visibility settings of the current candidate, as evidence of what was published, hidden, or announced and when. The history is append-only and returns only the caller's own records. A publication event carries the published fields and the C2 record behind them; an organization event names the organization; the other properties are null.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- kind
|
|
- occurred_at
|
|
- fields
|
|
- consent_id
|
|
- organization
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the event.
|
|
kind:
|
|
$ref: '#/components/schemas/PrivacyEventKind'
|
|
occurred_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
fields:
|
|
description: Published fields after the change for `publication_opened` and `publication_changed`, an empty set for `publication_closed`, and null for every other kind.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/CardFieldSet'
|
|
- type: 'null'
|
|
consent_id:
|
|
description: C2 record that backs the publication, for `publication_opened` and `publication_changed`, or null.
|
|
oneOf:
|
|
- type: string
|
|
format: uuid
|
|
- type: 'null'
|
|
organization:
|
|
description: Organization of `organization_hidden` and `organization_unhidden` with its current name, resolved when the history is read (the event stores only the identifier), or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/PrivacyOrganization'
|
|
- type: 'null'
|
|
PrivacyEventList:
|
|
type: object
|
|
description: One page of the settings history of the current candidate, newest first.
|
|
additionalProperties: false
|
|
required:
|
|
- items
|
|
- page
|
|
properties:
|
|
items:
|
|
type: array
|
|
maxItems: 100
|
|
description: Events of the page.
|
|
items:
|
|
$ref: '#/components/schemas/PrivacyEvent'
|
|
page:
|
|
$ref: '#/components/schemas/PageInfo'
|
|
CardAccessKind:
|
|
type: string
|
|
description: |-
|
|
How an organization reached the candidate.
|
|
|
|
- card_viewed: an organization read the permitted anonymous card.
|
|
- contact_read: an organization read the contacts through the contact grant of an accepted invitation.
|
|
enum:
|
|
- card_viewed
|
|
- contact_read
|
|
CardAccess:
|
|
type: object
|
|
description: One access of an organization to the card or the contacts of the current candidate. A retained access permits the candidate to see the organization's identifier and current name and to hide their profile from it. `organization` is null when the organization cannot be presented. Earlier permitted accesses remain after hiding. The record carries no employee identity, query, ranking, or search filter of the organization.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- kind
|
|
- occurred_at
|
|
- organization
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the access record.
|
|
kind:
|
|
$ref: '#/components/schemas/CardAccessKind'
|
|
occurred_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
organization:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/PrivacyOrganization'
|
|
- type: 'null'
|
|
CardAccessList:
|
|
type: object
|
|
description: One page of the accesses to the card of the current candidate, newest first.
|
|
additionalProperties: false
|
|
required:
|
|
- items
|
|
- page
|
|
properties:
|
|
items:
|
|
type: array
|
|
maxItems: 100
|
|
description: Accesses of the page.
|
|
items:
|
|
$ref: '#/components/schemas/CardAccess'
|
|
page:
|
|
$ref: '#/components/schemas/PageInfo'
|
|
EvidenceKind:
|
|
type: string
|
|
description: |-
|
|
Whether a fact is a statement or an observation.
|
|
|
|
- claim: something the candidate stated that nothing confirmed separately. Its trust is 0.
|
|
- measurement: a result that a system observed, such as a confirmed assessment. Its trust is 1 to 3.
|
|
|
|
Assessments produce measurements only. A claim never becomes a measurement by repetition, and the two kinds are stored apart.
|
|
enum:
|
|
- claim
|
|
- measurement
|
|
EvidenceSourceType:
|
|
type: string
|
|
description: |-
|
|
Where the fact comes from.
|
|
|
|
- assessment_result: a real (root or corrective) assessment result of this platform that confirmed a grade. An express training run (`demo_express`), a failed attempt, and a result without a reviewed category source are never a source.
|
|
|
|
Adding a value is a contract change.
|
|
enum:
|
|
- assessment_result
|
|
EvidenceAttribution:
|
|
type: string
|
|
description: |-
|
|
Whose contribution the fact is.
|
|
|
|
- personal: the candidate's own result. Every assessment fact is personal.
|
|
- team_role: a team result with a confirmed role of the candidate.
|
|
- team_unattributed: a team result without a confirmed role; it is not a personal skill.
|
|
|
|
Only `personal` is produced today.
|
|
enum:
|
|
- personal
|
|
- team_role
|
|
- team_unattributed
|
|
EvidenceTrustLevel:
|
|
type: integer
|
|
format: int32
|
|
minimum: 0
|
|
maximum: 3
|
|
description: |-
|
|
Strength of the confirmation.
|
|
|
|
- 0: stated by the person, not confirmed separately.
|
|
- 1: an observable online result without a reliable confirmation of the identity or the authorship. Every assessment fact has this level today, because the assessment is unproctored and the identity is not confirmed.
|
|
- 2: a result tied to a confirmed identity or confirmed by an independent party.
|
|
- 3: an in-person check with a matching confirmation.
|
|
|
|
A repeated statement, a sign-in, or a repeated tag of the same event never raises the level.
|
|
examples:
|
|
- 1
|
|
EvidenceVisibility:
|
|
type: string
|
|
description: |-
|
|
Whether the fact may take part in what an organization reads.
|
|
|
|
- visible: the fact is eligible for the organization projection. It does not publish the fact: the projection also needs the published card with the `categories` field and an active C2.
|
|
- hidden: the candidate hid the fact. No organization reads it. Hiding never edits or deletes the confirmed result.
|
|
enum:
|
|
- visible
|
|
- hidden
|
|
EvidenceSkillCode:
|
|
type: string
|
|
description: A skill tag from a closed set - the specialization codes of the catalog and the technology codes of the anonymous card. An assessment tags its fact with the specialization of the category.
|
|
enum:
|
|
- backend
|
|
- frontend
|
|
- mobile
|
|
- network_engineer
|
|
- devops_sre
|
|
- data_analyst
|
|
- ds_ml
|
|
- information_security
|
|
- qa
|
|
- go
|
|
- postgresql
|
|
- kafka
|
|
- docker
|
|
EvidenceBasis:
|
|
type: string
|
|
description: |-
|
|
What the measurement rests on.
|
|
|
|
- synthetic_demo: a demonstration category from a synthetic reviewed bank. It shows the mechanics and is not a validated measurement.
|
|
enum:
|
|
- synthetic_demo
|
|
EvidenceCalibrationStatus:
|
|
type: string
|
|
description: |-
|
|
Calibration of the method behind the result.
|
|
|
|
- uncalibrated: the thresholds are initial values that no measurement has validated.
|
|
enum:
|
|
- uncalibrated
|
|
EvidenceResult:
|
|
type: object
|
|
description: 'What the fact says: the grade that was passed and how reliable the method is. It carries no score, answer, item, failure, or anti-cheat data.'
|
|
additionalProperties: false
|
|
required:
|
|
- grade
|
|
- basis
|
|
- calibration_status
|
|
properties:
|
|
grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
basis:
|
|
$ref: '#/components/schemas/EvidenceBasis'
|
|
calibration_status:
|
|
$ref: '#/components/schemas/EvidenceCalibrationStatus'
|
|
EvidenceSource:
|
|
type: object
|
|
description: Where the fact comes from. For an assessment the event is the attempt and the result is the immutable result of that attempt, which the candidate reads at `GetMyAssessmentResult`; the two identifiers are equal because a result is keyed by its attempt.
|
|
additionalProperties: false
|
|
required:
|
|
- type
|
|
- event_id
|
|
- result_id
|
|
properties:
|
|
type:
|
|
$ref: '#/components/schemas/EvidenceSourceType'
|
|
event_id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the source event. One event is one fact, however many skills it is tagged with.
|
|
result_id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the immutable result that produced the fact.
|
|
EvidenceFact:
|
|
type: object
|
|
description: One independent fact of the current candidate. `occurred_at` is when the source event ended; for an assessment it is the time of the decision. A fact is one source event; the skills of that event are tags of the fact, so a second tag never makes a second fact. Hidden facts are listed here with their visibility, because the candidate owns them.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- kind
|
|
- source
|
|
- skills
|
|
- result
|
|
- attribution
|
|
- trust
|
|
- occurred_at
|
|
- visibility
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the fact.
|
|
kind:
|
|
$ref: '#/components/schemas/EvidenceKind'
|
|
source:
|
|
$ref: '#/components/schemas/EvidenceSource'
|
|
skills:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 13
|
|
uniqueItems: true
|
|
description: Skill tags of the event in ascending order.
|
|
items:
|
|
$ref: '#/components/schemas/EvidenceSkillCode'
|
|
result:
|
|
$ref: '#/components/schemas/EvidenceResult'
|
|
attribution:
|
|
$ref: '#/components/schemas/EvidenceAttribution'
|
|
trust:
|
|
$ref: '#/components/schemas/EvidenceTrustLevel'
|
|
occurred_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
visibility:
|
|
$ref: '#/components/schemas/EvidenceVisibility'
|
|
EvidenceFactList:
|
|
type: object
|
|
description: One page of the facts of the current candidate, newest event first.
|
|
additionalProperties: false
|
|
required:
|
|
- items
|
|
- page
|
|
properties:
|
|
items:
|
|
type: array
|
|
maxItems: 100
|
|
description: Facts of the page.
|
|
items:
|
|
$ref: '#/components/schemas/EvidenceFact'
|
|
page:
|
|
$ref: '#/components/schemas/PageInfo'
|
|
OrganizationEvidenceFact:
|
|
type: object
|
|
description: 'The one assessment fact that supports a category of the card as an organization reads it: the earliest visible measurement that passed exactly the confirmed grade of that category. A lower grade, a retake, the other tags of the event, the source, the basis, the exact time, and every identifier stay with the candidate. The fact carries no identifier of the fact, the event, the result, or the candidate, so it cannot be joined to a person by a key. It is not unlinkable: the skill, the grade, the trust level, and the year, together with the other values of the card, can narrow a small pool of candidates, and the minimum cohort of the card does not cover the year. `basis` and `calibration_status` are the same for every candidate: they say that the fact comes from a synthetic demonstration and is not calibrated, so a demonstration is never read as a validated measurement. The fact never carries an answer, score, item, failure, signal, or review band.'
|
|
additionalProperties: false
|
|
required:
|
|
- skill
|
|
- grade
|
|
- trust
|
|
- basis
|
|
- calibration_status
|
|
- observed_year
|
|
properties:
|
|
skill:
|
|
$ref: '#/components/schemas/EvidenceSkillCode'
|
|
grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
trust:
|
|
$ref: '#/components/schemas/EvidenceTrustLevel'
|
|
basis:
|
|
$ref: '#/components/schemas/EvidenceBasis'
|
|
calibration_status:
|
|
$ref: '#/components/schemas/EvidenceCalibrationStatus'
|
|
observed_year:
|
|
type: integer
|
|
format: int32
|
|
minimum: 2000
|
|
maximum: 9999
|
|
description: Year (UTC) when the assessment ended. The month, day, and time stay with the candidate.
|
|
examples:
|
|
- 2026
|
|
OrganizationEvidence:
|
|
type: object
|
|
description: 'The permitted evidence of one candidate card, ordered by skill: at most one fact for each category of the card (at most nine). The list is empty when no visible fact supports a category of the card.'
|
|
additionalProperties: false
|
|
required:
|
|
- items
|
|
properties:
|
|
items:
|
|
type: array
|
|
maxItems: 9
|
|
description: Permitted facts, one for each supported category.
|
|
items:
|
|
$ref: '#/components/schemas/OrganizationEvidenceFact'
|
|
NotificationKind:
|
|
type: string
|
|
description: |-
|
|
Which event put the notification into the inbox. The inbox stores a reference to the event, never its text.
|
|
|
|
- invitation_delivered: an invitation reached the candidate's inbox. It does not depend on any email, and a failed or missing email never blocks it. The send of an invitation produces it through the outbox, so the notice appears shortly after the commit of the send, while the invitation itself is in ListMyInvitations from that commit.
|
|
- synthetic: a synthetic notice that exercises the inbox path (the event, the read-time visibility check, the list, and the read state). It has no product meaning, needs no action, and is never produced by a user action.
|
|
|
|
Adding a value is a contract change; a client shows an unknown kind with the generic text of an item without content.
|
|
enum:
|
|
- invitation_delivered
|
|
- synthetic
|
|
NotificationContent:
|
|
type: object
|
|
description: The text of a notification as the current source shows it to the recipient now. It is computed on every read and never stored, so a hiding, a revoked membership, or a withdrawn source removes it from the next read. It holds no contact, no score, and no result of an assessment.
|
|
additionalProperties: false
|
|
required:
|
|
- title
|
|
- summary
|
|
- link_path
|
|
properties:
|
|
title:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 120
|
|
description: Short heading in Russian.
|
|
summary:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 500
|
|
description: One or two sentences in Russian. Plain text, never markup.
|
|
link_path:
|
|
type:
|
|
- string
|
|
- 'null'
|
|
maxLength: 256
|
|
pattern: ^/[A-Za-z0-9/_-]{0,255}$
|
|
description: Same-origin absolute path of the screen that the notification opens, or null when there is none. It has no origin, query, fragment, or escape; a client opens it only as a path of its own router.
|
|
examples:
|
|
- /candidate/invitations
|
|
Notification:
|
|
type: object
|
|
description: One item of the inbox of the current account. Its identity, kind, organization, delivery time, and read state are stored; its content is resolved from the current source on every read.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- kind
|
|
- organization_id
|
|
- delivered_at
|
|
- read_at
|
|
- content
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the item. It equals the identifier of the event that produced it, so a repeated delivery of the same event is the same item.
|
|
kind:
|
|
$ref: '#/components/schemas/NotificationKind'
|
|
organization_id:
|
|
type: string
|
|
format: uuid
|
|
description: 'The organization context of the item: the organization that sent it to a candidate, or the organization whose cabinet holds it for an employer. The identifier is not a right to read the organization.'
|
|
delivered_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
read_at:
|
|
description: When the recipient first marked the item read, or null while it is unread. A repeated mark keeps the first time.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
content:
|
|
description: The current content, or null when the source is gone or the recipient may not see it now. A client then shows a generic line such as "The content is no longer available" and never an old copy. The item stays in the list and can be marked read.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/NotificationContent'
|
|
- type: 'null'
|
|
NotificationList:
|
|
type: object
|
|
description: One page of the inbox, newest delivery first.
|
|
additionalProperties: false
|
|
required:
|
|
- items
|
|
- page
|
|
properties:
|
|
items:
|
|
type: array
|
|
maxItems: 100
|
|
description: Items of the page.
|
|
items:
|
|
$ref: '#/components/schemas/Notification'
|
|
page:
|
|
$ref: '#/components/schemas/PageInfo'
|
|
NotificationReadReceipt:
|
|
type: object
|
|
description: The read state of one item after a mark. It carries no content, so marking never reads the source.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- read_at
|
|
properties:
|
|
id:
|
|
type: string
|
|
format: uuid
|
|
description: Identifier of the marked item.
|
|
read_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
HealthResponse:
|
|
type: object
|
|
additionalProperties: false
|
|
required:
|
|
- status
|
|
properties:
|
|
status:
|
|
type: string
|
|
enum:
|
|
- ok
|
|
AssessmentRealMode:
|
|
type: string
|
|
description: Server-selected mode available to a real category assessment.
|
|
enum:
|
|
- demo_basic
|
|
- adaptive
|
|
AssessmentRealResultCommon:
|
|
type: object
|
|
description: Immutable result of a real assessment, visible only to its candidate. It records the method, versions, decision, uncertainty, and limitations. A corrective result also carries root_attempt_id and chain_deadline from the same chain. Later policy, bank, or algorithm versions never change it. It never contains answers, per-item correctness, keys, seeds, hidden checks, or anti-cheat signals. Fields the method does not compute are null, never zero.
|
|
additionalProperties: false
|
|
required:
|
|
- attempt_id
|
|
- specialization
|
|
- target_grade
|
|
- task_language
|
|
- kind
|
|
- 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'
|
|
root_attempt_id:
|
|
description: Root attempt of a corrective check, or null when this is not a corrective result. The corrective attempt keeps this link.
|
|
oneOf:
|
|
- type: string
|
|
format: uuid
|
|
- type: 'null'
|
|
readOnly: true
|
|
chain_deadline:
|
|
description: Immutable deadline shared by a corrective chain, or null when this result is not from a corrective check.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
readOnly: true
|
|
task_language:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/TaskLanguage'
|
|
- type: 'null'
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- root
|
|
- corrective
|
|
mode:
|
|
type: string
|
|
enum:
|
|
- demo_basic
|
|
- adaptive
|
|
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'
|
|
category_decision:
|
|
$ref: '#/components/schemas/AssessmentCategoryDecisionView'
|
|
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'
|
|
AssessmentQualifiedResult:
|
|
description: Result of a real assessment that is not a corrective attempt. The correction-chain fields are explicitly null.
|
|
allOf:
|
|
- $ref: '#/components/schemas/AssessmentRealResultCommon'
|
|
- type: object
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- root
|
|
root_attempt_id:
|
|
type: 'null'
|
|
chain_deadline:
|
|
type: 'null'
|
|
required:
|
|
- kind
|
|
- root_attempt_id
|
|
- chain_deadline
|
|
AssessmentCorrectiveResult:
|
|
description: Result of a corrective real assessment. Both chain fields are present and identify the same immutable correction chain.
|
|
allOf:
|
|
- $ref: '#/components/schemas/AssessmentRealResultCommon'
|
|
- type: object
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- corrective
|
|
root_attempt_id:
|
|
type: string
|
|
format: uuid
|
|
readOnly: true
|
|
chain_deadline:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
readOnly: true
|
|
required:
|
|
- kind
|
|
- root_attempt_id
|
|
- chain_deadline
|
|
AssessmentSignalNoticeVersion:
|
|
type: integer
|
|
format: int32
|
|
minimum: 1
|
|
maximum: 2147483647
|
|
description: Version of the notice text about the collected signals. The client shows the text of the version it knows and sends that version back when the candidate confirms; a changed text gets a new version and needs a new confirmation.
|
|
AssessmentSignalNotice:
|
|
type: object
|
|
description: State of the notice about the signals that are collected during a real assessment attempt. The acknowledgement is a record that the candidate was informed. It is not a consent, grants no purpose, and neither enables nor blocks signal storage; C3 remains the only consent that the signal operation checks.
|
|
additionalProperties: false
|
|
required:
|
|
- notice_version
|
|
- acknowledged
|
|
- acknowledged_at
|
|
properties:
|
|
notice_version:
|
|
allOf:
|
|
- $ref: '#/components/schemas/AssessmentSignalNoticeVersion'
|
|
description: The version the server currently requires the candidate to acknowledge.
|
|
acknowledged:
|
|
type: boolean
|
|
description: True when the candidate acknowledged `notice_version`.
|
|
acknowledged_at:
|
|
description: Server time of the first acknowledgement of this version, or null.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
AssessmentSignalNoticeAcknowledgement:
|
|
type: object
|
|
description: The notice version the candidate was shown and acknowledged.
|
|
additionalProperties: false
|
|
required:
|
|
- notice_version
|
|
properties:
|
|
notice_version:
|
|
$ref: '#/components/schemas/AssessmentSignalNoticeVersion'
|
|
AssessmentQualifiedAttemptCreate:
|
|
type: object
|
|
description: Start a real assessment for a specialization and target grade, with the task language. The candidate comes from the session. The server chooses demo_basic or adaptive and fixes the policy, bank, and algorithm versions. Unknown fields such as `mode`, `seed`, or `score` are rejected.
|
|
additionalProperties: false
|
|
required:
|
|
- kind
|
|
- specialization
|
|
- target_grade
|
|
- task_language
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- root
|
|
description: Start a real-assessment chain and reserve one root quota slot.
|
|
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'
|
|
AssessmentCorrectiveAttemptCreate:
|
|
type: object
|
|
description: Start a corrective real assessment at a lower target grade in the chain rooted at root_attempt_id. The server validates that this grade is strictly below the preceding grade and that the chain remains within its existing deadline and quota. chain_deadline is derived from the root attempt and is never supplied by the client.
|
|
additionalProperties: false
|
|
required:
|
|
- kind
|
|
- specialization
|
|
- target_grade
|
|
- task_language
|
|
- root_attempt_id
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- corrective
|
|
description: Continue the existing real-assessment chain without reserving another root slot.
|
|
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'
|
|
root_attempt_id:
|
|
type: string
|
|
format: uuid
|
|
description: Root real-assessment attempt whose quota and deadline this attempt shares.
|
|
AssessmentExpressAttemptCreate:
|
|
type: object
|
|
description: Explicitly start the short training run. It has no specialization or target grade, uses its separate demo policy, and does not consume a real-assessment attempt.
|
|
additionalProperties: false
|
|
required:
|
|
- kind
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- demo_express
|
|
description: Explicitly request the training run; real modes cannot be selected by the client.
|
|
AssessmentAttemptKind:
|
|
type: string
|
|
description: Assessment track that distinguishes root, corrective, and training attempts.
|
|
enum:
|
|
- root
|
|
- corrective
|
|
- demo_express
|
|
AssessmentAttemptCommon:
|
|
type: object
|
|
description: Common state of an assessment attempt. Real assessments have a specialization and target grade; demo_express has neither. The attempt shows its fixed versions, server deadlines, session limit, progress, current item, and practices. It never contains answer keys, answer correctness, item scores, family or variant identifiers, seeds, hidden checks, or anti-cheat signals.
|
|
additionalProperties: false
|
|
required:
|
|
- id
|
|
- version
|
|
- specialization
|
|
- target_grade
|
|
- task_language
|
|
- kind
|
|
- 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:
|
|
description: Null only for demo_express, which has no qualification category.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SpecializationCode'
|
|
- type: 'null'
|
|
target_grade:
|
|
description: Null only for demo_express, which has no qualification category.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
task_language:
|
|
description: Task language of the attempt, or null when none is selected.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/TaskLanguage'
|
|
- type: 'null'
|
|
kind:
|
|
$ref: '#/components/schemas/AssessmentAttemptKind'
|
|
root_attempt_id:
|
|
description: Present only for a corrective real assessment. It identifies the root attempt whose quota and chain deadline this attempt shares.
|
|
oneOf:
|
|
- type: string
|
|
format: uuid
|
|
- type: 'null'
|
|
readOnly: true
|
|
chain_deadline:
|
|
description: Present only for a corrective real assessment. It is the immutable deadline derived from the root attempt and is not extended by a lower target grade.
|
|
oneOf:
|
|
- $ref: '#/components/schemas/Timestamp'
|
|
- type: 'null'
|
|
readOnly: true
|
|
mode:
|
|
$ref: '#/components/schemas/AssessmentMode'
|
|
state:
|
|
$ref: '#/components/schemas/AssessmentAttemptState'
|
|
versions:
|
|
$ref: '#/components/schemas/AssessmentVersions'
|
|
started_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
expires_at:
|
|
description: Server deadline. For demo_express it is 180 to 300 seconds after started_at; for a corrective assessment it does not exceed chain_deadline.
|
|
$ref: '#/components/schemas/Timestamp'
|
|
sessions:
|
|
description: Session limit of the attempt, or null when its policy 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 assigned by the mode policy. The list exposes verdicts only after submission.
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentPractice'
|
|
AssessmentQualifiedAttempt:
|
|
allOf:
|
|
- $ref: '#/components/schemas/AssessmentAttemptCommon'
|
|
- type: object
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- root
|
|
mode:
|
|
type: string
|
|
enum:
|
|
- demo_basic
|
|
- adaptive
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
target_grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
root_attempt_id:
|
|
type: 'null'
|
|
description: Root attempts have no parent attempt.
|
|
chain_deadline:
|
|
type: 'null'
|
|
description: A root attempt has no correction-chain deadline.
|
|
required:
|
|
- kind
|
|
- mode
|
|
- specialization
|
|
- target_grade
|
|
- root_attempt_id
|
|
- chain_deadline
|
|
AssessmentCorrectiveAttempt:
|
|
allOf:
|
|
- $ref: '#/components/schemas/AssessmentAttemptCommon'
|
|
- type: object
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- corrective
|
|
mode:
|
|
type: string
|
|
enum:
|
|
- demo_basic
|
|
- adaptive
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
target_grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
root_attempt_id:
|
|
type: string
|
|
format: uuid
|
|
readOnly: true
|
|
chain_deadline:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
readOnly: true
|
|
required:
|
|
- kind
|
|
- mode
|
|
- specialization
|
|
- target_grade
|
|
- root_attempt_id
|
|
- chain_deadline
|
|
AssessmentExpressAttempt:
|
|
allOf:
|
|
- $ref: '#/components/schemas/AssessmentAttemptCommon'
|
|
- type: object
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- demo_express
|
|
mode:
|
|
type: string
|
|
enum:
|
|
- demo_express
|
|
specialization:
|
|
type: 'null'
|
|
target_grade:
|
|
type: 'null'
|
|
task_language:
|
|
type: 'null'
|
|
root_attempt_id:
|
|
type: 'null'
|
|
chain_deadline:
|
|
type: 'null'
|
|
required:
|
|
- kind
|
|
- mode
|
|
- specialization
|
|
- target_grade
|
|
- task_language
|
|
- root_attempt_id
|
|
- chain_deadline
|
|
AssessmentFinalizeConflictProblem:
|
|
type: object
|
|
description: A finalize state conflict. `pending_item_ids` is present only when the attempt still has required questions without answers; it is omitted for other state conflicts and idempotency conflicts.
|
|
additionalProperties: false
|
|
required:
|
|
- type
|
|
- title
|
|
- status
|
|
- code
|
|
properties:
|
|
type:
|
|
type: string
|
|
format: uri-reference
|
|
maxLength: 256
|
|
title:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 200
|
|
status:
|
|
type: integer
|
|
format: int32
|
|
const: 409
|
|
code:
|
|
type: string
|
|
enum:
|
|
- state_conflict
|
|
- idempotency_in_progress
|
|
detail:
|
|
type: string
|
|
maxLength: 1000
|
|
instance:
|
|
type: string
|
|
format: uri-reference
|
|
maxLength: 2048
|
|
trace_id:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 128
|
|
pattern: ^[A-Za-z0-9._-]+$
|
|
errors:
|
|
type: array
|
|
maxItems: 100
|
|
items:
|
|
$ref: '#/components/schemas/ProblemFieldError'
|
|
pending_item_ids:
|
|
type: array
|
|
maxItems: 220
|
|
uniqueItems: true
|
|
items:
|
|
type: string
|
|
format: uuid
|
|
description: Frozen item IDs still unanswered when finalize is rejected for an incomplete attempt. Omitted when the conflict is unrelated to unanswered items.
|
|
AssessmentExpressResult:
|
|
type: object
|
|
description: Immutable educational result of a demo_express run. It includes a short summary but cannot report a category, percentile, uncertainty, grade, strength, or qualification evidence. The result belongs only to the training mode and does not consume a real-assessment quota.
|
|
additionalProperties: false
|
|
required:
|
|
- attempt_id
|
|
- specialization
|
|
- target_grade
|
|
- task_language
|
|
- kind
|
|
- mode
|
|
- versions
|
|
- outcome
|
|
- not_determined_reason
|
|
- confirmed_grade
|
|
- previous_confirmed_grade
|
|
- strength
|
|
- calibration_status
|
|
- limitations
|
|
- uncertainty
|
|
- basic_score
|
|
- practices
|
|
- gaps
|
|
- durations
|
|
- next_steps
|
|
- summary
|
|
- decided_at
|
|
properties:
|
|
attempt_id:
|
|
type: string
|
|
format: uuid
|
|
specialization:
|
|
type: 'null'
|
|
description: Express training does not assess a specialization.
|
|
target_grade:
|
|
type: 'null'
|
|
description: Express training does not assess a target grade.
|
|
task_language:
|
|
type: 'null'
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- demo_express
|
|
mode:
|
|
type: string
|
|
enum:
|
|
- demo_express
|
|
versions:
|
|
$ref: '#/components/schemas/AssessmentVersions'
|
|
outcome:
|
|
type: string
|
|
enum:
|
|
- demonstration
|
|
not_determined_reason:
|
|
type: 'null'
|
|
confirmed_grade:
|
|
type: 'null'
|
|
description: Express training never confirms a grade.
|
|
previous_confirmed_grade:
|
|
type: 'null'
|
|
strength:
|
|
type: 'null'
|
|
calibration_status:
|
|
type: string
|
|
enum:
|
|
- uncalibrated
|
|
limitations:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 1
|
|
items:
|
|
type: string
|
|
enum:
|
|
- demonstration_only
|
|
uncertainty:
|
|
type: 'null'
|
|
description: Express training computes no ability estimate or percentile.
|
|
basic_score:
|
|
type: 'null'
|
|
practices:
|
|
type: array
|
|
maxItems: 0
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentPracticeResult'
|
|
gaps:
|
|
type: array
|
|
maxItems: 0
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentGap'
|
|
durations:
|
|
$ref: '#/components/schemas/AssessmentDurations'
|
|
next_steps:
|
|
type: array
|
|
maxItems: 0
|
|
items:
|
|
$ref: '#/components/schemas/AssessmentNextStep'
|
|
summary:
|
|
type: string
|
|
minLength: 1
|
|
maxLength: 2000
|
|
description: Short educational feedback about this training run.
|
|
decided_at:
|
|
$ref: '#/components/schemas/Timestamp'
|
|
MatchGradeFilter:
|
|
type: object
|
|
description: A confirmed category filter, never a candidate declaration.
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- grade
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
MatchConfirmationStatus:
|
|
type: string
|
|
description: Confirmation state for this specialization only. A result for one specialization never changes the state of another specialization.
|
|
enum:
|
|
- confirmed
|
|
- unconfirmed
|
|
MatchSearchStackTag:
|
|
type: string
|
|
description: A stack code that the anonymous card may expose. Search filters do not accept arbitrary profile text or candidate-provided evidence.
|
|
enum:
|
|
- go
|
|
- postgresql
|
|
- kafka
|
|
- docker
|
|
CandidateSalaryCompatibility:
|
|
type: string
|
|
description: A coarse compatibility result only. No salary amount, minimum, range, or threshold is part of the anonymous card.
|
|
enum:
|
|
- compatible
|
|
- not_compatible
|
|
MatchSearchConditions:
|
|
type: object
|
|
description: Filters against safe, coarse card conditions. No candidate location, salary amount, salary minimum, or salary range is accepted.
|
|
additionalProperties: false
|
|
properties:
|
|
work_formats:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 3
|
|
uniqueItems: true
|
|
items:
|
|
$ref: '#/components/schemas/WorkFormat'
|
|
salary_compatibility:
|
|
$ref: '#/components/schemas/CandidateSalaryCompatibility'
|
|
MatchSearchFilters:
|
|
type: object
|
|
description: Optional filters over the current organization-visible bank. An empty object means no additional filter. Confirmed and declared grades are separate fields; a declaration never satisfies a confirmed-grade or category filter. Conditions use only the safe, coarse card fields.
|
|
additionalProperties: false
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
confirmed_grade:
|
|
description: Match only candidates with this currently confirmed grade in the selected specialization. It never matches a declared grade.
|
|
$ref: '#/components/schemas/GradeCode'
|
|
confirmed_category:
|
|
$ref: '#/components/schemas/MatchGradeFilter'
|
|
confirmation_status:
|
|
$ref: '#/components/schemas/MatchConfirmationStatus'
|
|
declared_grade:
|
|
description: Candidate-declared grade filter. This is a separate claim and cannot satisfy `confirmed_grade` or `confirmed_category`.
|
|
$ref: '#/components/schemas/GradeCode'
|
|
stack:
|
|
type: array
|
|
minItems: 1
|
|
maxItems: 4
|
|
uniqueItems: true
|
|
items:
|
|
$ref: '#/components/schemas/MatchSearchStackTag'
|
|
conditions:
|
|
$ref: '#/components/schemas/MatchSearchConditions'
|
|
MatchSearchByNeed:
|
|
type: object
|
|
description: Search one immutable set of confirmed requirements. `requirements_version` is the Need.requirements_version, not the general Need.version; text-only or suggestion-only edits do not change this search basis.
|
|
additionalProperties: false
|
|
required:
|
|
- need_id
|
|
- requirements_version
|
|
properties:
|
|
need_id:
|
|
type: string
|
|
format: uuid
|
|
description: Need owned by the organization in the path.
|
|
requirements_version:
|
|
$ref: '#/components/schemas/NeedVersion'
|
|
filters:
|
|
$ref: '#/components/schemas/MatchSearchFilters'
|
|
MatchSearchByBank:
|
|
type: object
|
|
description: Search the current organization-visible bank. An empty `filters` object includes all otherwise eligible specializations as separate entries.
|
|
additionalProperties: false
|
|
required:
|
|
- filters
|
|
properties:
|
|
filters:
|
|
$ref: '#/components/schemas/MatchSearchFilters'
|
|
MatchSearchRequest:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/MatchSearchByNeed'
|
|
- $ref: '#/components/schemas/MatchSearchByBank'
|
|
description: Search either a Need.requirements_version snapshot or the whole organization-visible bank with explicit filters. Unknown fields are rejected by both closed request variants.
|
|
MatchSearchNeedSource:
|
|
type: object
|
|
description: The immutable need requirements snapshot used by this result.
|
|
additionalProperties: false
|
|
required:
|
|
- kind
|
|
- need_id
|
|
- requirements_version
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- need
|
|
need_id:
|
|
type: string
|
|
format: uuid
|
|
requirements_version:
|
|
$ref: '#/components/schemas/NeedVersion'
|
|
MatchAppliedConditions:
|
|
type: object
|
|
description: Conditions echoed as a complete snapshot; null means no filter.
|
|
additionalProperties: false
|
|
required:
|
|
- work_formats
|
|
- salary_compatibility
|
|
properties:
|
|
work_formats:
|
|
oneOf:
|
|
- type: array
|
|
minItems: 1
|
|
maxItems: 3
|
|
uniqueItems: true
|
|
items:
|
|
$ref: '#/components/schemas/WorkFormat'
|
|
- type: 'null'
|
|
salary_compatibility:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/CandidateSalaryCompatibility'
|
|
- type: 'null'
|
|
MatchAppliedFilters:
|
|
type: object
|
|
description: A normalized response snapshot of the bank filters. Each key is present; null means the corresponding request filter was omitted. This keeps a search result tied to its exact filter basis.
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- confirmed_grade
|
|
- confirmed_category
|
|
- confirmation_status
|
|
- declared_grade
|
|
- stack
|
|
- conditions
|
|
properties:
|
|
specialization:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/SpecializationCode'
|
|
- type: 'null'
|
|
confirmed_grade:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
confirmed_category:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/MatchGradeFilter'
|
|
- type: 'null'
|
|
confirmation_status:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/MatchConfirmationStatus'
|
|
- type: 'null'
|
|
declared_grade:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
stack:
|
|
oneOf:
|
|
- type: array
|
|
minItems: 1
|
|
maxItems: 4
|
|
uniqueItems: true
|
|
items:
|
|
$ref: '#/components/schemas/MatchSearchStackTag'
|
|
- type: 'null'
|
|
conditions:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/MatchAppliedConditions'
|
|
- type: 'null'
|
|
MatchSearchBankSource:
|
|
type: object
|
|
description: The normalized filters used for a bank search.
|
|
additionalProperties: false
|
|
required:
|
|
- kind
|
|
- filters
|
|
properties:
|
|
kind:
|
|
type: string
|
|
enum:
|
|
- bank
|
|
filters:
|
|
$ref: '#/components/schemas/MatchAppliedFilters'
|
|
MatchSearchSource:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/MatchSearchNeedSource'
|
|
- $ref: '#/components/schemas/MatchSearchBankSource'
|
|
description: Search basis echoed with the response so the displayed result remains tied to its need requirements version or bank filters.
|
|
MatchCategory:
|
|
type: object
|
|
description: A confirmed category. Its specialization must equal the enclosing match entry's specialization. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category, which an organization must read as one and never as a standard confirmation.
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- grade
|
|
- basis
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
grade:
|
|
$ref: '#/components/schemas/GradeCode'
|
|
basis:
|
|
$ref: '#/components/schemas/EvidenceBasis'
|
|
MatchStrength:
|
|
type: string
|
|
description: Coarse strength of a confirmed assessment for this specialization.
|
|
enum:
|
|
- standard
|
|
- strong
|
|
MatchPublicStack:
|
|
type: array
|
|
maxItems: 4
|
|
uniqueItems: true
|
|
items:
|
|
$ref: '#/components/schemas/MatchSearchStackTag'
|
|
CandidateExperienceBand:
|
|
type: string
|
|
description: Coarse total experience bucket. Rare combinations may be generalized to 0_3 or 3_plus before they are returned.
|
|
enum:
|
|
- '0_1'
|
|
- '1_3'
|
|
- '3_6'
|
|
- 6_plus
|
|
- '0_3'
|
|
- 3_plus
|
|
MatchPublicContext:
|
|
type: object
|
|
description: Safe anonymous-card context only. A null value means that the value is not in the public card or is not present; the response does not reveal which. It contains no contact, candidate location, or salary amount.
|
|
additionalProperties: false
|
|
required:
|
|
- stack
|
|
- experience_band
|
|
- work_formats
|
|
- salary_compatibility
|
|
properties:
|
|
stack:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/MatchPublicStack'
|
|
- type: 'null'
|
|
experience_band:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/CandidateExperienceBand'
|
|
- type: 'null'
|
|
work_formats:
|
|
oneOf:
|
|
- type: array
|
|
maxItems: 3
|
|
uniqueItems: true
|
|
items:
|
|
$ref: '#/components/schemas/WorkFormat'
|
|
- type: 'null'
|
|
salary_compatibility:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/CandidateSalaryCompatibility'
|
|
- type: 'null'
|
|
MatchEvidenceCode:
|
|
type: string
|
|
description: Template code for an explanation derived from allowed evidence. It carries no free text, raw answer, or reason for withheld FSP data.
|
|
enum:
|
|
- confirmed_category
|
|
- required_skill_evidence
|
|
- desired_skill_evidence
|
|
- domain_alignment
|
|
- task_alignment
|
|
- work_conditions_match
|
|
- salary_compatibility
|
|
- declared_grade
|
|
MatchEvidenceState:
|
|
type: string
|
|
enum:
|
|
- supports
|
|
- partial
|
|
- gap
|
|
- declared_only
|
|
MatchEvidenceSummaryItem:
|
|
type: object
|
|
description: A templated, non-text evidence explanation.
|
|
additionalProperties: false
|
|
required:
|
|
- code
|
|
- state
|
|
properties:
|
|
code:
|
|
$ref: '#/components/schemas/MatchEvidenceCode'
|
|
state:
|
|
$ref: '#/components/schemas/MatchEvidenceState'
|
|
MatchEvidenceSummary:
|
|
type: array
|
|
maxItems: 12
|
|
items:
|
|
$ref: '#/components/schemas/MatchEvidenceSummaryItem'
|
|
MatchScore:
|
|
type: number
|
|
format: double
|
|
minimum: 0
|
|
maximum: 1
|
|
description: A normalized FR09 ranking component from 0 to 1.
|
|
MatchNullableScore:
|
|
description: A score from a versioned ranking component, or null when it is not available. Any null component has a matching bounded entry in `unknown_flags`.
|
|
oneOf:
|
|
- type: number
|
|
format: double
|
|
minimum: 0
|
|
maximum: 1
|
|
- type: 'null'
|
|
MatchConfirmedComponents:
|
|
type: object
|
|
description: Components from the FR09 ranking model for a confirmed category. `percentile` is null when fewer than 30 comparable real candidates are available; the ranking uses neutral T = 0.5 and does not publish a percentile. If ML is unavailable, `semantics` uses neutral 0.5 and the reason appears in `unknown_flags`.
|
|
additionalProperties: false
|
|
required:
|
|
- fit
|
|
- coverage
|
|
- domain
|
|
- semantics
|
|
- percentile
|
|
- competition
|
|
- freshness
|
|
- responsiveness
|
|
- rank_score
|
|
properties:
|
|
fit:
|
|
$ref: '#/components/schemas/MatchScore'
|
|
coverage:
|
|
$ref: '#/components/schemas/MatchScore'
|
|
domain:
|
|
$ref: '#/components/schemas/MatchScore'
|
|
semantics:
|
|
$ref: '#/components/schemas/MatchScore'
|
|
percentile:
|
|
$ref: '#/components/schemas/MatchNullableScore'
|
|
competition:
|
|
$ref: '#/components/schemas/MatchScore'
|
|
freshness:
|
|
$ref: '#/components/schemas/MatchScore'
|
|
responsiveness:
|
|
$ref: '#/components/schemas/MatchScore'
|
|
rank_score:
|
|
$ref: '#/components/schemas/MatchScore'
|
|
MatchUnknownComponent:
|
|
type: string
|
|
description: Ranking or public-card component whose value is unknown.
|
|
enum:
|
|
- semantics
|
|
- percentile
|
|
- assessment
|
|
- freshness
|
|
- responsiveness
|
|
- experience_band
|
|
- work_formats
|
|
- salary_compatibility
|
|
- domain
|
|
MatchUnknownReason:
|
|
type: string
|
|
description: Bounded explanation for an unknown component, not a hiding reason. `cohort_below_30` is reported only while the comparable real cohort of the category is smaller than the versioned minimum; once the cohort reaches the minimum but the percentile is still not computed, the reason is `percentile_not_computed`. In both cases T is the neutral 0.5.
|
|
enum:
|
|
- ml_unavailable
|
|
- cohort_below_30
|
|
- no_confirmation_for_specialization
|
|
- not_in_public_card
|
|
- need_field_unconfirmed
|
|
- no_freshness_history
|
|
- no_response_history
|
|
- percentile_not_computed
|
|
MatchUnknownFlag:
|
|
type: object
|
|
description: A safe, bounded explanation for one unavailable component.
|
|
additionalProperties: false
|
|
required:
|
|
- component
|
|
- reason
|
|
properties:
|
|
component:
|
|
$ref: '#/components/schemas/MatchUnknownComponent'
|
|
reason:
|
|
$ref: '#/components/schemas/MatchUnknownReason'
|
|
MatchUnknownFlags:
|
|
type: array
|
|
maxItems: 9
|
|
items:
|
|
$ref: '#/components/schemas/MatchUnknownFlag'
|
|
MatchConfirmedCandidate:
|
|
type: object
|
|
description: One confirmed specialization entry in the `main` or `near` group. The group containing it supplies the group label. A candidate may have a separate entry for another specialization.
|
|
additionalProperties: false
|
|
required:
|
|
- candidate_handle
|
|
- specialization
|
|
- confirmation_status
|
|
- declared_grade
|
|
- category
|
|
- strength
|
|
- public_context
|
|
- evidence_summary
|
|
- components
|
|
- unknown_flags
|
|
properties:
|
|
candidate_handle:
|
|
$ref: '#/components/schemas/CandidateHandle'
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
confirmation_status:
|
|
type: string
|
|
enum:
|
|
- confirmed
|
|
declared_grade:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
description: Candidate-declared grade for this specialization, never a confirmation.
|
|
category:
|
|
$ref: '#/components/schemas/MatchCategory'
|
|
strength:
|
|
$ref: '#/components/schemas/MatchStrength'
|
|
public_context:
|
|
$ref: '#/components/schemas/MatchPublicContext'
|
|
evidence_summary:
|
|
$ref: '#/components/schemas/MatchEvidenceSummary'
|
|
components:
|
|
$ref: '#/components/schemas/MatchConfirmedComponents'
|
|
unknown_flags:
|
|
$ref: '#/components/schemas/MatchUnknownFlags'
|
|
MatchUnconfirmedComponents:
|
|
type: object
|
|
description: Unconfirmed entries are ordered only by Fit and coverage. This strict component object has no theta, T, P, test percentile, or confirmed assessment score.
|
|
additionalProperties: false
|
|
required:
|
|
- fit
|
|
- coverage
|
|
properties:
|
|
fit:
|
|
type: number
|
|
format: double
|
|
minimum: 0
|
|
maximum: 1
|
|
description: Job fit for this specialization, never an assessment score.
|
|
coverage:
|
|
type: number
|
|
format: double
|
|
minimum: 0
|
|
maximum: 1
|
|
description: Coverage of confirmed need skills by allowed public evidence.
|
|
MatchUnconfirmedCandidate:
|
|
type: object
|
|
description: One specialization with no confirmed category. `category` and `strength` remain present and null. A confirmation in another specialization never changes this entry. The schema intentionally has no assessment measurement fields.
|
|
additionalProperties: false
|
|
required:
|
|
- candidate_handle
|
|
- specialization
|
|
- confirmation_status
|
|
- declared_grade
|
|
- category
|
|
- strength
|
|
- public_context
|
|
- evidence_summary
|
|
- components
|
|
- unknown_flags
|
|
properties:
|
|
candidate_handle:
|
|
$ref: '#/components/schemas/CandidateHandle'
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
confirmation_status:
|
|
type: string
|
|
enum:
|
|
- unconfirmed
|
|
declared_grade:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
description: Candidate-declared grade, separate from assessment confirmation.
|
|
category:
|
|
type: 'null'
|
|
description: There is no confirmed category for this specialization.
|
|
strength:
|
|
type: 'null'
|
|
description: Assessment strength is not measured for this specialization.
|
|
public_context:
|
|
$ref: '#/components/schemas/MatchPublicContext'
|
|
evidence_summary:
|
|
$ref: '#/components/schemas/MatchEvidenceSummary'
|
|
components:
|
|
$ref: '#/components/schemas/MatchUnconfirmedComponents'
|
|
unknown_flags:
|
|
$ref: '#/components/schemas/MatchUnknownFlags'
|
|
MatchSearchGroups:
|
|
type: object
|
|
description: Separate ranking groups. Confirmed categories appear in main and near; unconfirmed specializations appear only in the lower unconfirmed group.
|
|
additionalProperties: false
|
|
required:
|
|
- main
|
|
- near
|
|
- unconfirmed
|
|
properties:
|
|
main:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/MatchConfirmedCandidate'
|
|
near:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/MatchConfirmedCandidate'
|
|
unconfirmed:
|
|
type: array
|
|
items:
|
|
$ref: '#/components/schemas/MatchUnconfirmedCandidate'
|
|
MatchSearchResponse:
|
|
type: object
|
|
description: Anonymous search result grouped by specialization state. Repeated organization-scoped handles are allowed when the same candidate has different specialization entries; entries never transfer confirmation between specializations.
|
|
additionalProperties: false
|
|
required:
|
|
- source
|
|
- groups
|
|
- truncated
|
|
properties:
|
|
source:
|
|
$ref: '#/components/schemas/MatchSearchSource'
|
|
groups:
|
|
$ref: '#/components/schemas/MatchSearchGroups'
|
|
truncated:
|
|
type: boolean
|
|
description: 'True when the groups are not the whole ranked result: a group exceeded the versioned per-group limit, or the organization''s card-view allowance ended while the entries were being revealed. The entries returned are in rank order and already counted as card views. It carries no total, so it does not reveal how many candidates match.'
|
|
CardSelfAssessment:
|
|
type: object
|
|
description: Candidate-declared specialization and optional grade. This is never an assessment result.
|
|
additionalProperties: false
|
|
required:
|
|
- specialization
|
|
- confirmation_status
|
|
properties:
|
|
specialization:
|
|
$ref: '#/components/schemas/SpecializationCode'
|
|
confirmation_status:
|
|
type: string
|
|
enum:
|
|
- confirmed
|
|
- unconfirmed
|
|
declared_grade:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/GradeCode'
|
|
- type: 'null'
|
|
CandidateWorkFormat:
|
|
type: string
|
|
enum:
|
|
- remote
|
|
- office
|
|
- hybrid
|
|
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
|
|
InvitationId:
|
|
name: invitation_id
|
|
in: path
|
|
required: true
|
|
description: Identifier of an invitation of the organization in the path. An invitation of another organization and an unknown identifier both answer 404 not_found.
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
example: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
MyInvitationId:
|
|
name: invitation_id
|
|
in: path
|
|
required: true
|
|
description: Identifier of an invitation addressed to the current candidate. A draft, an invitation addressed to another candidate, and an unknown identifier all answer 404 not_found, so identifiers cannot be enumerated.
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
example: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
HiddenOrganizationId:
|
|
name: org_id
|
|
in: path
|
|
required: true
|
|
description: Identifier of the organization that the current candidate hides or stops hiding the profile from. It names the target of a candidate's own setting and grants the candidate nothing about the organization. Hiding answers the same 404 not_found for an organization that does not exist and for one that the candidate cannot see, so organizations cannot be enumerated; lifting the hiding answers 204 for any well-formed identifier.
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
example: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
NotificationId:
|
|
name: notification_id
|
|
in: path
|
|
required: true
|
|
description: Identifier of an item of the inbox of the current account in the cabinet that the path names. An item of another account, an item of another organization context, and an unknown identifier all answer 404 not_found, so identifiers cannot be enumerated.
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
example: 01928f7a-8b9c-7d0e-9f1a-2b3c4d5e6f70
|
|
CandidateHandle:
|
|
name: candidate_handle
|
|
in: path
|
|
required: true
|
|
description: Organization-scoped opaque candidate alias issued by the current visible card projection. The server resolves it only for the organization in the path and rechecks current membership, publication consent, and hiding on every read. Unknown, hidden, unpublished, and suppressed candidates all answer the same 404.
|
|
schema:
|
|
$ref: '#/components/schemas/CandidateHandle'
|
|
example: cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
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. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at 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'
|
|
ProfileValidationFailed:
|
|
description: 'The body does not match the contract or violates a profile rule: an unknown field such as confirmed_grade, category, trust_level, or source, a phone number outside E.164, a Telegram username without the leading @, an email that is not an address, a month outside the YYYY-MM format, a salary that is not a positive multiple of 1000, more items than a list allows, a repeated tag, skill, or role specialization, a period that ends before it starts or lies in the future, a decision extracted for a value that is not a stored suggestion, an overlapping experience period without an explicit date-pair acknowledgement, or a missing or invalid expected_version; code validation_failed with body pointers. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at the whole body. Nothing was changed. The problem never repeats a submitted value, because the body is personal data.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
phone_not_e164:
|
|
$ref: '#/components/examples/ProfilePhoneNotE164'
|
|
extracted_value_changed:
|
|
$ref: '#/components/examples/ProfileExtractedValueChanged'
|
|
repeated_role:
|
|
$ref: '#/components/examples/ProfileRepeatedRole'
|
|
ProfileVersionConflict:
|
|
description: '`expected_version` is not the current profile version; code version_conflict. Nothing was changed; read the profile again before retrying.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
version_conflict:
|
|
$ref: '#/components/examples/ProfileStaleVersion'
|
|
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. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at 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. If required questions are unfinished, the response includes their frozen IDs in `pending_item_ids`; other state conflicts omit that field. 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/AssessmentFinalizeConflictProblem'
|
|
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. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at 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. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at 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'
|
|
InvitationValidationFailed:
|
|
description: 'The body does not match the contract or violates an invitation rule: a missing term or package condition, a package condition left out instead of `not_provided`, a salary range without its 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, the `office` or `hybrid` format without a place of work, a repeated technology, a candidate handle that the organization cannot use, a need or requirements version that the organization does not have, a response period other than 3, 7, or 14 days, an unknown field such as a candidate''s email address or salary minimum, or a missing or invalid expected_version; code validation_failed with body pointers. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at 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:
|
|
without_tax_basis:
|
|
$ref: '#/components/examples/InvitationWithoutTaxBasis'
|
|
without_communication_method:
|
|
$ref: '#/components/examples/InvitationWithoutCommunicationMethod'
|
|
package_condition_left_out:
|
|
$ref: '#/components/examples/InvitationPackageItemMissing'
|
|
salary_range_too_wide:
|
|
$ref: '#/components/examples/InvitationSalaryRangeTooWide'
|
|
location_required:
|
|
$ref: '#/components/examples/InvitationLocationRequired'
|
|
unknown_candidate:
|
|
$ref: '#/components/examples/InvitationUnknownCandidate'
|
|
candidate_data_in_body:
|
|
$ref: '#/components/examples/InvitationCandidateDataInBody'
|
|
InvitationAcceptValidationFailed:
|
|
description: 'The body does not match the contract or violates a rule of the consent C4: a missing `terms_version` or `expected_version`, `accepted` other than true, an empty or repeated choice of contact fields, an unknown field kind, a field that the candidate''s profile does not hold, a consent text version that is not the published one, or an unknown field such as a contact value; code validation_failed with body pointers. Nothing was changed, no consent or grant was recorded, and the outcome is not stored under the Idempotency-Key.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
empty_field_choice:
|
|
$ref: '#/components/examples/InvitationConsentWithoutFields'
|
|
outdated_consent_text:
|
|
$ref: '#/components/examples/InvitationConsentTextOutdated'
|
|
missing_terms_version:
|
|
$ref: '#/components/examples/InvitationMissingTermsVersion'
|
|
InvitationVersionConflict:
|
|
description: '`expected_version` is not the current invitation version, or, for an acceptance, `terms_version` is not the current terms version; code version_conflict. Nothing was changed, no consent or grant was recorded, and the outcome is not stored under an Idempotency-Key; read the invitation again before retrying.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
stale_terms:
|
|
$ref: '#/components/examples/InvitationStaleTerms'
|
|
stale_version:
|
|
$ref: '#/components/examples/InvitationStaleVersion'
|
|
InvitationCommandConflict:
|
|
description: 'The state of the invitation does not allow the command, code state_conflict: for example an acceptance of a withdrawn or expired invitation or one past its deadline, a send of an invitation that is no longer a draft, a send blocked by the pending limit of the need or by the pause after a decline, or a second raise of the upper salary bound. The invitation tells the client its state. 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:
|
|
not_answerable:
|
|
$ref: '#/components/examples/InvitationNotAnswerable'
|
|
salary_raise_used:
|
|
$ref: '#/components/examples/InvitationSalaryRaiseUsed'
|
|
send_blocked:
|
|
$ref: '#/components/examples/InvitationSendBlocked'
|
|
idempotency_in_progress:
|
|
$ref: '#/components/examples/IdempotencyInProgress'
|
|
OrganizationValidationFailed:
|
|
description: 'The body does not match the contract or violates an organization rule: a missing name, an unknown field such as role, verification_level, verification, members, owner, or version, a name or sphere with surrounding whitespace or a line break, a website that is not an https URL of a host name, a phone number outside E.164, a Telegram username without the leading @, a contact that has no valid form, more than ten representatives, or a missing or invalid expected_version; code validation_failed with body pointers. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at 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:
|
|
role_sent_by_client:
|
|
$ref: '#/components/examples/OrganizationUnknownField'
|
|
website_not_https:
|
|
$ref: '#/components/examples/OrganizationWebsiteNotHttps'
|
|
name_with_surrounding_whitespace:
|
|
$ref: '#/components/examples/OrganizationNameWithWhitespace'
|
|
missing_expected_version:
|
|
$ref: '#/components/examples/OrganizationMissingExpectedVersion'
|
|
OrganizationVersionConflict:
|
|
description: '`expected_version` is not the current version of the organization; code version_conflict. Nothing was changed; read the organization again before retrying.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
version_conflict:
|
|
$ref: '#/components/examples/OrganizationStaleVersion'
|
|
PrivacyValidationFailed:
|
|
description: 'The body does not match the contract or breaks a visibility rule: an unknown field, a repeated or unknown card field, a published state with no field, a closed state with a field, a search status other than looking and not_looking, or a missing or invalid expected_version; code validation_failed with body pointers. Nothing was changed. The problem never repeats a submitted value.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
published_without_fields:
|
|
$ref: '#/components/examples/PrivacyPublishedWithoutFields'
|
|
PrivacyVersionConflict:
|
|
description: '`expected_version` is not the current version of the setting; code version_conflict. Nothing was changed; read the settings again before retrying.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
version_conflict:
|
|
$ref: '#/components/examples/PrivacyStaleVersion'
|
|
PublicationConsentRequired:
|
|
description: 'The profile cannot be published because the account has no active, unrevoked C2 consent; code state_conflict. Nothing was changed. The candidate gives C2 in the consent settings first. `errors` holds the entry `{in: body, pointer: /state, code: consent_required}`.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
state_conflict:
|
|
$ref: '#/components/examples/PublicationConsentRequiredConflict'
|
|
HiddenOrganizationLimit:
|
|
description: 'The candidate already hides the maximum number of organizations (1000); code state_conflict with the entry `{in: path, pointer: /org_id, code: limit_reached}` in `errors`. Nothing was changed.'
|
|
content:
|
|
application/problem+json:
|
|
schema:
|
|
$ref: '#/components/schemas/Problem'
|
|
examples:
|
|
limit_reached:
|
|
$ref: '#/components/examples/HiddenOrganizationLimitReached'
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
NewCandidateProfile:
|
|
summary: A candidate who has not saved the profile yet
|
|
value:
|
|
version: 0
|
|
full_name:
|
|
status: unknown
|
|
value: null
|
|
source: null
|
|
contacts:
|
|
email:
|
|
status: unknown
|
|
value: null
|
|
source: null
|
|
phone:
|
|
status: unknown
|
|
value: null
|
|
source: null
|
|
telegram:
|
|
status: unknown
|
|
value: null
|
|
source: null
|
|
stack: []
|
|
roles: []
|
|
experience: []
|
|
experience_overlaps: []
|
|
soft_skills: []
|
|
terms:
|
|
location:
|
|
status: unknown
|
|
value: null
|
|
source: null
|
|
relocation:
|
|
status: unknown
|
|
value: null
|
|
source: null
|
|
salary_minimum:
|
|
status: unknown
|
|
value: null
|
|
source: null
|
|
confirmed_categories: []
|
|
updated_at: null
|
|
BackendCandidateProfile:
|
|
summary: A manual Backend profile with one unconfirmed suggestion
|
|
description: 'The candidate typed most values, so they are `manual`. The phone number and the Kafka tag are suggestions that an imported document produced (planned): they are `extracted`, unconfirmed, and, like every claim, trust level 0. The candidate claims Middle in `roles`, while the only confirmed category is Backend Junior from an assessment result; the two are separate fields and the profile never merges them. The example values are fictional.'
|
|
value:
|
|
version: 3
|
|
full_name:
|
|
status: confirmed
|
|
value: Anna Sokolova
|
|
source:
|
|
origin: manual
|
|
trust_level: 0
|
|
quote: null
|
|
extraction_version: null
|
|
confirmed_at: '2026-10-05T09:30:00Z'
|
|
contacts:
|
|
email:
|
|
status: confirmed
|
|
value: anna.sokolova@example.com
|
|
source:
|
|
origin: manual
|
|
trust_level: 0
|
|
quote: null
|
|
extraction_version: null
|
|
confirmed_at: '2026-10-05T09:30:00Z'
|
|
phone:
|
|
status: extracted
|
|
value: '+79000000000'
|
|
source:
|
|
origin: extracted_from_resume
|
|
trust_level: 0
|
|
quote: 'Tel.: +7 900 000-00-00'
|
|
extraction_version: resume-rules.2026-10.1
|
|
confirmed_at: null
|
|
telegram:
|
|
status: unknown
|
|
value: null
|
|
source: null
|
|
stack:
|
|
- tag: PostgreSQL
|
|
status: confirmed
|
|
source:
|
|
origin: manual
|
|
trust_level: 0
|
|
quote: null
|
|
extraction_version: null
|
|
confirmed_at: '2026-10-05T09:30:00Z'
|
|
- tag: Kafka
|
|
status: extracted
|
|
source:
|
|
origin: extracted_from_resume
|
|
trust_level: 0
|
|
quote: Event streaming with Kafka
|
|
extraction_version: resume-rules.2026-10.1
|
|
confirmed_at: null
|
|
roles:
|
|
- specialization: backend
|
|
self_assessed_grade: middle
|
|
status: confirmed
|
|
source:
|
|
origin: manual
|
|
trust_level: 0
|
|
quote: null
|
|
extraction_version: null
|
|
confirmed_at: '2026-10-05T09:30:00Z'
|
|
experience:
|
|
- employer_name: Example Payments
|
|
specialization: backend
|
|
started_on: 2022-03
|
|
ended_on: null
|
|
summary: Moved the payout service to an event model and owned its on-call rotation.
|
|
status: confirmed
|
|
source:
|
|
origin: manual
|
|
trust_level: 0
|
|
quote: null
|
|
extraction_version: null
|
|
confirmed_at: '2026-10-05T09:30:00Z'
|
|
experience_overlaps: []
|
|
soft_skills:
|
|
- skill: Mentoring
|
|
status: confirmed
|
|
source:
|
|
origin: manual
|
|
trust_level: 0
|
|
quote: null
|
|
extraction_version: null
|
|
confirmed_at: '2026-10-05T09:30:00Z'
|
|
terms:
|
|
location:
|
|
status: confirmed
|
|
value: Kazan
|
|
source:
|
|
origin: manual
|
|
trust_level: 0
|
|
quote: null
|
|
extraction_version: null
|
|
confirmed_at: '2026-10-05T09:30:00Z'
|
|
relocation:
|
|
status: confirmed
|
|
value: false
|
|
source:
|
|
origin: manual
|
|
trust_level: 0
|
|
quote: null
|
|
extraction_version: null
|
|
confirmed_at: '2026-10-05T09:30:00Z'
|
|
salary_minimum:
|
|
status: confirmed
|
|
value:
|
|
amount: 180000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
source:
|
|
origin: manual
|
|
trust_level: 0
|
|
quote: null
|
|
extraction_version: null
|
|
confirmed_at: '2026-10-05T09:30:00Z'
|
|
confirmed_categories:
|
|
- specialization: backend
|
|
grade: junior
|
|
basis: synthetic_demo
|
|
confirmed_at: '2026-10-04T18:10:00Z'
|
|
attempt_id: 0192b3c4-d5e6-7f80-9a1b-2c3d4e5f6a7b
|
|
updated_at: '2026-10-05T09:30:00Z'
|
|
BackendCandidateProfileUpdate:
|
|
summary: Save the Backend profile over version 2
|
|
description: The candidate keeps the phone number and the Kafka tag as unconfirmed suggestions by sending `extracted` with exactly their stored values, and confirms or sets everything else. The values are fictional.
|
|
value:
|
|
expected_version: 2
|
|
full_name:
|
|
value: Anna Sokolova
|
|
status: confirmed
|
|
contacts:
|
|
email:
|
|
value: anna.sokolova@example.com
|
|
status: confirmed
|
|
phone:
|
|
value: '+79000000000'
|
|
status: extracted
|
|
telegram: null
|
|
stack:
|
|
- tag: PostgreSQL
|
|
status: confirmed
|
|
- tag: Kafka
|
|
status: extracted
|
|
roles:
|
|
- specialization: backend
|
|
self_assessed_grade: middle
|
|
status: confirmed
|
|
experience:
|
|
- employer_name: Example Payments
|
|
specialization: backend
|
|
started_on: 2022-03
|
|
ended_on: null
|
|
summary: Moved the payout service to an event model and owned its on-call rotation.
|
|
status: confirmed
|
|
soft_skills:
|
|
- skill: Mentoring
|
|
status: confirmed
|
|
terms:
|
|
location:
|
|
value: Kazan
|
|
status: confirmed
|
|
relocation:
|
|
value: false
|
|
status: confirmed
|
|
salary_minimum:
|
|
value:
|
|
amount: 180000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
status: confirmed
|
|
ProfilePhoneNotE164:
|
|
summary: The phone number is not in the E.164 format
|
|
description: A rule of the schema. The pointer names the value inside the decision, and the body never repeats the submitted number.
|
|
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: 6d7e8f9a-0b1c-4d2e-8f4a-5b6c7d8e9f01
|
|
errors:
|
|
- in: body
|
|
pointer: /contacts/phone/value
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
ProfileExtractedValueChanged:
|
|
summary: A decision extracted for a tag that is not a stored suggestion
|
|
description: A domain rule of the server, checked after the schema. A suggestion can stay unconfirmed only with exactly its stored value; send confirmed to set a manual value.
|
|
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: 7e8f9a0b-1c2d-4e3f-9a5b-6c7d8e9f0a12
|
|
errors:
|
|
- in: body
|
|
pointer: /stack/1/status
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
ProfileRepeatedRole:
|
|
summary: The same specialization appears in two roles
|
|
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: 8f9a0b1c-2d3e-4f4a-8b6c-7d8e9f0a1b23
|
|
errors:
|
|
- in: body
|
|
pointer: /roles/1/specialization
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
ProfileStaleVersion:
|
|
summary: The save carried a stale expected_version
|
|
description: The profile changed, for example in another tab, after the client read it. Nothing was changed; the client reads the profile again and reapplies its 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: 9a0b1c2d-3e4f-4a5b-9c7d-8e9f0a1b2c34
|
|
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
|
|
confirmed_basis: 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
|
|
confirmed_basis: 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
|
|
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
|
|
AssessmentAttemptCreateBackendJunior:
|
|
summary: Start Backend junior with Go tasks
|
|
value:
|
|
kind: root
|
|
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
|
|
kind: root
|
|
specialization: backend
|
|
target_grade: junior
|
|
task_language: go
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
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: []
|
|
AssessmentCorrectiveAttemptCreated:
|
|
summary: Corrective attempt shares the root chain deadline
|
|
value:
|
|
id: 01928f7e-8888-7a2b-8c3d-4e5f6a7b8c9d
|
|
version: 1
|
|
kind: corrective
|
|
specialization: backend
|
|
target_grade: junior
|
|
task_language: go
|
|
root_attempt_id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
|
chain_deadline: '2026-11-23T09:00:00Z'
|
|
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-22T10:00:00Z'
|
|
expires_at: '2026-11-23T09:00:00Z'
|
|
sessions:
|
|
used: 1
|
|
max: 2
|
|
idle_timeout_seconds: 1800
|
|
finished_at: null
|
|
progress:
|
|
answered_items: 0
|
|
max_items: 25
|
|
current_item:
|
|
id: 01928f7e-9999-7a2b-8c3d-4e5f6a7b8c01
|
|
sequence: 1
|
|
prompt: What does an HTTP 412 response indicate for expected_version?
|
|
content:
|
|
format: choice
|
|
multiple: false
|
|
options:
|
|
- id: a1
|
|
text: The version is stale.
|
|
- id: b2
|
|
text: The request is malformed.
|
|
practices: []
|
|
AssessmentExpressAttemptCreated:
|
|
summary: Short training attempt without a qualification category
|
|
value:
|
|
id: 01928f7f-9999-7a2b-8c3d-4e5f6a7b8c01
|
|
version: 1
|
|
kind: demo_express
|
|
specialization: null
|
|
target_grade: null
|
|
task_language: null
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
mode: demo_express
|
|
state: in_progress
|
|
versions:
|
|
policy_version: 1
|
|
bank_version: express-demo.2026-10.1
|
|
algorithm_version: express-interactive.1
|
|
started_at: '2026-10-08T10:00:00Z'
|
|
expires_at: '2026-10-08T10:05:00Z'
|
|
sessions:
|
|
used: 1
|
|
max: 1
|
|
idle_timeout_seconds: 300
|
|
finished_at: null
|
|
progress:
|
|
answered_items: 0
|
|
max_items: 5
|
|
current_item:
|
|
id: 01928f7f-aaaa-7a2b-8c3d-4e5f6a7b8c01
|
|
sequence: 1
|
|
prompt: Choose the status code that signals a version conflict.
|
|
content:
|
|
format: choice
|
|
multiple: false
|
|
options:
|
|
- id: c3
|
|
text: '412'
|
|
- id: d4
|
|
text: '200'
|
|
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
|
|
kind: root
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: python
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
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
|
|
kind: root
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: python
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
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
|
|
kind: root
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: python
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
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
|
|
kind: root
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: python
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
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
|
|
kind: root
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: python
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
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
|
|
kind: root
|
|
specialization: backend
|
|
target_grade: middle
|
|
task_language: python
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
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
|
|
kind: root
|
|
specialization: backend
|
|
target_grade: junior
|
|
task_language: go
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
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
|
|
kind: root
|
|
specialization: network_engineer
|
|
target_grade: middle
|
|
task_language: null
|
|
root_attempt_id: null
|
|
chain_deadline: 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
|
|
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
|
|
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
|
|
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
|
|
kind: root
|
|
specialization: backend
|
|
target_grade: junior
|
|
task_language: go
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
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.
|
|
AssessmentFinalization:
|
|
summary: Finalize version 20
|
|
value:
|
|
expected_version: 20
|
|
AssessmentFinalizeNotReady:
|
|
summary: Premature finalize; the problem lists unanswered frozen items
|
|
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
|
|
pending_item_ids:
|
|
- 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
|
- 01928f7b-2222-7a2b-8c3d-4e5f6a7b8c9d
|
|
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
|
|
kind: root
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
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
|
|
kind: root
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
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
|
|
kind: root
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
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
|
|
kind: root
|
|
root_attempt_id: null
|
|
chain_deadline: null
|
|
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'
|
|
AssessmentCorrectiveResult:
|
|
summary: Corrective result retains its root and fixed deadline
|
|
value:
|
|
attempt_id: 01928f7e-8888-7a2b-8c3d-4e5f6a7b8c9d
|
|
specialization: backend
|
|
target_grade: middle
|
|
kind: corrective
|
|
root_attempt_id: 01928f7b-1111-7a2b-8c3d-4e5f6a7b8c9d
|
|
chain_deadline: '2026-11-23T09:00:00Z'
|
|
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: junior
|
|
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: []
|
|
gaps: []
|
|
durations:
|
|
items_seconds: 1500
|
|
practice_seconds: 900
|
|
next_steps: []
|
|
decided_at: '2026-11-22T11:00:00Z'
|
|
AssessmentExpressResult:
|
|
summary: Short training result with no qualification evidence
|
|
value:
|
|
attempt_id: 01928f7f-9999-7a2b-8c3d-4e5f6a7b8c9d
|
|
specialization: null
|
|
target_grade: null
|
|
task_language: null
|
|
kind: demo_express
|
|
mode: demo_express
|
|
versions:
|
|
policy_version: 1
|
|
bank_version: express-demo.2026-10.1
|
|
algorithm_version: express-interactive.1
|
|
outcome: demonstration
|
|
not_determined_reason: null
|
|
confirmed_grade: null
|
|
previous_confirmed_grade: null
|
|
strength: null
|
|
calibration_status: uncalibrated
|
|
limitations:
|
|
- demonstration_only
|
|
uncertainty: null
|
|
basic_score: null
|
|
practices: []
|
|
gaps: []
|
|
durations:
|
|
items_seconds: 260
|
|
practice_seconds: null
|
|
next_steps: []
|
|
summary: The run demonstrates the task flow and creates no qualification evidence.
|
|
decided_at: '2026-11-22T11:00: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
|
|
MyOrganizationListPage:
|
|
summary: The organizations of an owner who works in two companies
|
|
description: The caller has an active membership in both organizations, newest first. A third organization, where the caller left, is not listed.
|
|
value:
|
|
items:
|
|
- organization:
|
|
id: 01928f7a-4d5e-7f6a-8b7c-9d0e1f2a3b4c
|
|
name: ИП Тестов Логистика
|
|
verification_level: e0
|
|
membership:
|
|
organization_id: 01928f7a-4d5e-7f6a-8b7c-9d0e1f2a3b4c
|
|
role: owner
|
|
state: active
|
|
joined_at: '2026-10-06T11:30:00Z'
|
|
- organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
verification_level: e0
|
|
membership:
|
|
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
role: owner
|
|
state: active
|
|
joined_at: '2026-10-06T09:00:00Z'
|
|
page:
|
|
has_more: false
|
|
next_cursor: null
|
|
OrganizationCreateNameOnly:
|
|
summary: A company that starts with its name only
|
|
description: Only the name is required; the card is completed later with UpdateOrganization.
|
|
value:
|
|
name: ООО Пример Платежи
|
|
OrganizationCreateCompleteCard:
|
|
summary: A company that gives its whole card at creation
|
|
description: Every contact is a company channel, and the representative is presentation only. There is no field for a role or a verification level.
|
|
value:
|
|
name: ООО Пример Платежи
|
|
description: Платежный сервис для малого бизнеса. Разрабатываем собственное ядро проведения платежей и интеграции с банками.
|
|
sphere: Платежи и финансовые сервисы
|
|
contacts:
|
|
website: https://payments.example.com
|
|
email: careers@payments.example.com
|
|
phone: '+74950000000'
|
|
telegram: '@payments_careers'
|
|
representatives:
|
|
- name: Анна Тестова
|
|
job_title: Руководитель по подбору
|
|
OrganizationNameOnly:
|
|
summary: A new organization that has only a name
|
|
description: The creator is the owner of the organization, which starts at the verification level e0 on the ground of the confirmed email. The card repeats the profile as a candidate sees it.
|
|
value:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
version: 1
|
|
name: ООО Пример Платежи
|
|
description: null
|
|
sphere: null
|
|
contacts:
|
|
website: null
|
|
email: null
|
|
phone: null
|
|
telegram: null
|
|
representatives: []
|
|
verification:
|
|
level: e0
|
|
basis: confirmed_email
|
|
changed_at: '2026-10-06T09:00:00Z'
|
|
candidate_card:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
description: null
|
|
sphere: null
|
|
contacts:
|
|
website: null
|
|
email: null
|
|
phone: null
|
|
telegram: null
|
|
representatives: []
|
|
verification_level: e0
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T09:00:00Z'
|
|
OrganizationCompleteCard:
|
|
summary: An organization with a complete card, still at the level e0
|
|
description: Completing the card, adding contacts, and listing representatives did not raise the verification level, which stays e0 and changes only through a verification process of the server.
|
|
value:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
version: 2
|
|
name: ООО Пример Платежи
|
|
description: Платежный сервис для малого бизнеса. Разрабатываем собственное ядро проведения платежей и интеграции с банками.
|
|
sphere: Платежи и финансовые сервисы
|
|
contacts:
|
|
website: https://payments.example.com
|
|
email: careers@payments.example.com
|
|
phone: '+74950000000'
|
|
telegram: '@payments_careers'
|
|
representatives:
|
|
- name: Анна Тестова
|
|
job_title: Руководитель по подбору
|
|
verification:
|
|
level: e0
|
|
basis: confirmed_email
|
|
changed_at: '2026-10-06T09:00:00Z'
|
|
candidate_card:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
description: Платежный сервис для малого бизнеса. Разрабатываем собственное ядро проведения платежей и интеграции с банками.
|
|
sphere: Платежи и финансовые сервисы
|
|
contacts:
|
|
website: https://payments.example.com
|
|
email: careers@payments.example.com
|
|
phone: '+74950000000'
|
|
telegram: '@payments_careers'
|
|
representatives:
|
|
- name: Анна Тестова
|
|
job_title: Руководитель по подбору
|
|
verification_level: e0
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T09:40:00Z'
|
|
OrganizationUnknownField:
|
|
summary: The client sent a role together with the profile
|
|
description: A role, an owner, a verification level, and a list of members are never request fields; any unknown field fails validation, and an unknown top-level field points at 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: 1e2f3a4b-5c6d-4e7f-8a9b-0c1d2e3f4a5c
|
|
errors:
|
|
- in: body
|
|
pointer: ''
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
OrganizationWebsiteNotHttps:
|
|
summary: The website is not an https URL of a host name
|
|
description: A domain rule of the server, checked after the schema. The schema already refuses a value that is not an https URL; the server also refuses a port, an IP address, and a host name without a dot.
|
|
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-1d2e3f4a5b6d
|
|
errors:
|
|
- in: body
|
|
pointer: /contacts/website
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
OrganizationNameWithWhitespace:
|
|
summary: The name has leading 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: 3a4b5c6d-7e8f-4a9b-8c1d-2e3f4a5b6c7e
|
|
errors:
|
|
- in: body
|
|
pointer: /name
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
OrganizationMissingExpectedVersion:
|
|
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: 4b5c6d7e-8f9a-4b0c-9d2e-3f4a5b6c7d8f
|
|
errors:
|
|
- in: body
|
|
pointer: /expected_version
|
|
code: required
|
|
message: The value is required.
|
|
OrganizationUpdateCompleteCard:
|
|
summary: The owner completes the card of the organization
|
|
description: The change carries the version that the client read and the fields to replace; contacts and representatives are replaced as a whole. The body has no role or verification field.
|
|
value:
|
|
expected_version: 1
|
|
description: Платежный сервис для малого бизнеса. Разрабатываем собственное ядро проведения платежей и интеграции с банками.
|
|
sphere: Платежи и финансовые сервисы
|
|
contacts:
|
|
website: https://payments.example.com
|
|
email: careers@payments.example.com
|
|
phone: '+74950000000'
|
|
telegram: '@payments_careers'
|
|
representatives:
|
|
- name: Анна Тестова
|
|
job_title: Руководитель по подбору
|
|
OrganizationStaleVersion:
|
|
summary: The change carried a stale expected_version
|
|
description: Another member changed the organization after the client read it. Nothing was changed; the client reads the organization again and reapplies its 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: 5c6d7e8f-9a0b-4c1d-8e3f-4a5b6c7d8e90
|
|
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 responder rebuilds the path of a missing nested field from the decoder, so the pointer names the missing field.
|
|
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: /salary/value/tax_basis
|
|
code: required
|
|
message: The value is required.
|
|
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, and an unknown top-level field points at 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: 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
|
|
SearchByNeed:
|
|
summary: Search against one confirmed requirements snapshot.
|
|
description: The reference is Need.requirements_version, not Need.version.
|
|
value:
|
|
need_id: 4d3a4a1b-4f60-44c1-9dc2-6c8e6c9d4c11
|
|
requirements_version: 3
|
|
filters:
|
|
specialization: backend
|
|
SearchByBank:
|
|
summary: Search the organization-visible bank with separate confirmed and declared filters.
|
|
value:
|
|
filters:
|
|
specialization: backend
|
|
confirmed_grade: middle
|
|
confirmed_category:
|
|
specialization: backend
|
|
grade: middle
|
|
confirmation_status: confirmed
|
|
declared_grade: junior
|
|
stack:
|
|
- go
|
|
- postgresql
|
|
conditions:
|
|
work_formats:
|
|
- remote
|
|
salary_compatibility: compatible
|
|
ThreeGroups:
|
|
summary: Synthetic example of main, near, and unconfirmed entries.
|
|
description: Illustrative contract values only; these are not measurements from real candidates. The same organization-scoped handle has independent Backend and Networks states.
|
|
value:
|
|
source:
|
|
kind: bank
|
|
filters:
|
|
specialization: null
|
|
confirmed_grade: null
|
|
confirmed_category: null
|
|
confirmation_status: null
|
|
declared_grade: null
|
|
stack: null
|
|
conditions: null
|
|
groups:
|
|
main:
|
|
- candidate_handle: cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
specialization: backend
|
|
confirmation_status: confirmed
|
|
declared_grade: middle
|
|
category:
|
|
specialization: backend
|
|
grade: middle
|
|
basis: synthetic_demo
|
|
strength: standard
|
|
public_context:
|
|
stack:
|
|
- go
|
|
- postgresql
|
|
experience_band: '3_6'
|
|
work_formats:
|
|
- remote
|
|
salary_compatibility: compatible
|
|
evidence_summary:
|
|
- code: confirmed_category
|
|
state: supports
|
|
- code: required_skill_evidence
|
|
state: supports
|
|
- code: work_conditions_match
|
|
state: supports
|
|
components:
|
|
fit: 0.78
|
|
coverage: 0.72
|
|
domain: 0.75
|
|
semantics: 0.5
|
|
percentile: 0.61
|
|
competition: 0
|
|
freshness: 0.5
|
|
responsiveness: 0.5
|
|
rank_score: 0.65
|
|
unknown_flags: []
|
|
near:
|
|
- candidate_handle: cv1_BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
|
|
specialization: frontend
|
|
confirmation_status: confirmed
|
|
declared_grade: junior
|
|
category:
|
|
specialization: frontend
|
|
grade: junior
|
|
basis: synthetic_demo
|
|
strength: standard
|
|
public_context:
|
|
stack:
|
|
- docker
|
|
experience_band: null
|
|
work_formats:
|
|
- hybrid
|
|
salary_compatibility: null
|
|
evidence_summary:
|
|
- code: confirmed_category
|
|
state: supports
|
|
- code: required_skill_evidence
|
|
state: gap
|
|
components:
|
|
fit: 0.48
|
|
coverage: 0.18
|
|
domain: 0.5
|
|
semantics: 0.5
|
|
percentile: 0.42
|
|
competition: 0
|
|
freshness: 0.5
|
|
responsiveness: 0.5
|
|
rank_score: 0.43
|
|
unknown_flags:
|
|
- component: experience_band
|
|
reason: not_in_public_card
|
|
- component: salary_compatibility
|
|
reason: not_in_public_card
|
|
unconfirmed:
|
|
- candidate_handle: cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
specialization: network_engineer
|
|
confirmation_status: unconfirmed
|
|
declared_grade: junior
|
|
category: null
|
|
strength: null
|
|
public_context:
|
|
stack: null
|
|
experience_band: '1_3'
|
|
work_formats:
|
|
- remote
|
|
salary_compatibility: compatible
|
|
evidence_summary:
|
|
- code: declared_grade
|
|
state: declared_only
|
|
- code: required_skill_evidence
|
|
state: partial
|
|
components:
|
|
fit: 0.51
|
|
coverage: 0.38
|
|
unknown_flags:
|
|
- component: assessment
|
|
reason: no_confirmation_for_specialization
|
|
truncated: false
|
|
Empty:
|
|
summary: A valid search with no eligible visible candidates.
|
|
value:
|
|
source:
|
|
kind: bank
|
|
filters:
|
|
specialization: null
|
|
confirmed_grade: null
|
|
confirmed_category: null
|
|
confirmation_status: null
|
|
declared_grade: null
|
|
stack: null
|
|
conditions: null
|
|
groups:
|
|
main: []
|
|
near: []
|
|
unconfirmed: []
|
|
truncated: false
|
|
MLUnavailable:
|
|
summary: Semantic similarity uses the documented neutral value while ML is unavailable.
|
|
description: Synthetic example; 0.5 is the FR09 neutral value, not an inference.
|
|
value:
|
|
source:
|
|
kind: bank
|
|
filters:
|
|
specialization: backend
|
|
confirmed_grade: null
|
|
confirmed_category: null
|
|
confirmation_status: null
|
|
declared_grade: null
|
|
stack: null
|
|
conditions: null
|
|
groups:
|
|
main:
|
|
- candidate_handle: cv1_CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
|
|
specialization: backend
|
|
confirmation_status: confirmed
|
|
declared_grade: null
|
|
category:
|
|
specialization: backend
|
|
grade: middle
|
|
basis: synthetic_demo
|
|
strength: strong
|
|
public_context:
|
|
stack:
|
|
- go
|
|
experience_band: 3_plus
|
|
work_formats:
|
|
- remote
|
|
salary_compatibility: compatible
|
|
evidence_summary:
|
|
- code: confirmed_category
|
|
state: supports
|
|
components:
|
|
fit: 0.7
|
|
coverage: 0.6
|
|
domain: 0.5
|
|
semantics: 0.5
|
|
percentile: 0.6
|
|
competition: 0
|
|
freshness: 0.5
|
|
responsiveness: 0.5
|
|
rank_score: 0.61
|
|
unknown_flags:
|
|
- component: semantics
|
|
reason: ml_unavailable
|
|
near: []
|
|
unconfirmed: []
|
|
truncated: false
|
|
CohortBelow30:
|
|
summary: A small comparison cohort has no published percentile.
|
|
description: Synthetic example; the exact cohort size is not disclosed.
|
|
value:
|
|
source:
|
|
kind: bank
|
|
filters:
|
|
specialization: backend
|
|
confirmed_grade: null
|
|
confirmed_category: null
|
|
confirmation_status: null
|
|
declared_grade: null
|
|
stack: null
|
|
conditions: null
|
|
groups:
|
|
main:
|
|
- candidate_handle: cv1_DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
|
|
specialization: backend
|
|
confirmation_status: confirmed
|
|
declared_grade: middle
|
|
category:
|
|
specialization: backend
|
|
grade: middle
|
|
basis: synthetic_demo
|
|
strength: standard
|
|
public_context:
|
|
stack:
|
|
- postgresql
|
|
experience_band: '3_6'
|
|
work_formats:
|
|
- office
|
|
salary_compatibility: null
|
|
evidence_summary:
|
|
- code: confirmed_category
|
|
state: supports
|
|
components:
|
|
fit: 0.62
|
|
coverage: 0.55
|
|
domain: 0.5
|
|
semantics: 0.7
|
|
percentile: null
|
|
competition: 0
|
|
freshness: 0.5
|
|
responsiveness: 0.5
|
|
rank_score: 0.56
|
|
unknown_flags:
|
|
- component: percentile
|
|
reason: cohort_below_30
|
|
near: []
|
|
unconfirmed: []
|
|
truncated: false
|
|
Truncated:
|
|
summary: The group limit or the card-view allowance cut the output.
|
|
description: Synthetic example. The entries returned are in rank order and already counted as card views; the flag carries no total.
|
|
value:
|
|
source:
|
|
kind: bank
|
|
filters:
|
|
specialization: backend
|
|
confirmed_grade: null
|
|
confirmed_category: null
|
|
confirmation_status: null
|
|
declared_grade: null
|
|
stack: null
|
|
conditions: null
|
|
groups:
|
|
main:
|
|
- candidate_handle: cv1_EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
|
|
specialization: backend
|
|
confirmation_status: confirmed
|
|
declared_grade: null
|
|
category:
|
|
specialization: backend
|
|
grade: junior
|
|
basis: synthetic_demo
|
|
strength: standard
|
|
public_context:
|
|
stack: null
|
|
experience_band: null
|
|
work_formats: null
|
|
salary_compatibility: null
|
|
evidence_summary:
|
|
- code: confirmed_category
|
|
state: supports
|
|
components:
|
|
fit: 0.5
|
|
coverage: 0.5
|
|
domain: 0.5
|
|
semantics: 0.5
|
|
percentile: null
|
|
competition: 0
|
|
freshness: 0.5
|
|
responsiveness: 0.5
|
|
rank_score: 0.45125
|
|
unknown_flags:
|
|
- component: semantics
|
|
reason: ml_unavailable
|
|
- component: percentile
|
|
reason: cohort_below_30
|
|
near: []
|
|
unconfirmed: []
|
|
truncated: true
|
|
OrganizationAnonymousCandidateCard:
|
|
summary: An anonymous card currently visible to one organization
|
|
description: The alias is scoped to the reading organization; no contact values are included.
|
|
value:
|
|
pseudonym: cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
categories:
|
|
- specialization: backend
|
|
grade: middle
|
|
strength: standard
|
|
basis: synthetic_demo
|
|
stack:
|
|
- postgresql
|
|
- kafka
|
|
self_assessment: null
|
|
experience_band: '1_3'
|
|
work_formats: null
|
|
salary_compatibility: null
|
|
OrganizationCandidateEvidence:
|
|
summary: The one supporting assessment fact of the category on the card
|
|
value:
|
|
items:
|
|
- skill: backend
|
|
grade: junior
|
|
trust: 1
|
|
basis: synthetic_demo
|
|
calibration_status: uncalibrated
|
|
observed_year: 2026
|
|
OrganizationInvitationListPage:
|
|
summary: The last page of the invitations of an organization
|
|
description: The organization sees that the second invitation was declined, but not the reason or the comment.
|
|
value:
|
|
items:
|
|
- id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
candidate_handle: cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
need:
|
|
need_id: 01928f7a-2b3c-7d4e-9f5a-6b7c8d9e0f12
|
|
requirements_version: 3
|
|
state: accepted
|
|
expiry_reason: null
|
|
version: 6
|
|
terms_version: 3
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 280000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
response_deadline_at: '2026-10-13T09:30:00Z'
|
|
contact_access:
|
|
status: available
|
|
fields:
|
|
- email
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T15:00:00Z'
|
|
- id: 01928f7a-9c0d-7e1f-8a2b-3c4d5e6f7a80
|
|
candidate_handle: cv1_BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
|
|
need: null
|
|
state: declined
|
|
expiry_reason: null
|
|
version: 4
|
|
terms_version: 1
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 260000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
response_deadline_at: '2026-10-08T10:00:00Z'
|
|
contact_access:
|
|
status: not_granted
|
|
fields: []
|
|
created_at: '2026-10-05T09:00:00Z'
|
|
updated_at: '2026-10-06T08:00:00Z'
|
|
page:
|
|
has_more: false
|
|
next_cursor: null
|
|
InvitationCreateFromNeed:
|
|
summary: A draft for a candidate from the search results of a need
|
|
description: 'Every term is present: net salary range, communication method, and each package condition, provided or explicitly not provided.'
|
|
value:
|
|
candidate_handle: cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
need:
|
|
need_id: 01928f7a-2b3c-7d4e-9f5a-6b7c8d9e0f12
|
|
requirements_version: 3
|
|
response_period_days: 7
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 260000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: not_provided
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
OrganizationInvitationDraft:
|
|
summary: A new draft, version 1 with terms version 1
|
|
value:
|
|
id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
candidate_handle: cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
need:
|
|
need_id: 01928f7a-2b3c-7d4e-9f5a-6b7c8d9e0f12
|
|
requirements_version: 3
|
|
state: draft
|
|
expiry_reason: null
|
|
version: 1
|
|
terms_version: 1
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 260000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: not_provided
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
response_period_days: 7
|
|
response_deadline_at: null
|
|
salary_raise_used: false
|
|
salary_fit: within_range
|
|
contact_access:
|
|
status: not_granted
|
|
fields: []
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T09:00:00Z'
|
|
delivered_at: null
|
|
viewed_at: null
|
|
responded_at: null
|
|
InvitationWithoutTaxBasis:
|
|
summary: A salary range without its tax basis
|
|
description: The tax basis is a required field of SalaryRange; the pointer names the missing nested field.
|
|
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: 1f2a3b4c-5d6e-4f7a-8b9c-0d1e2f3a4b5c
|
|
errors:
|
|
- in: body
|
|
pointer: /terms/salary/tax_basis
|
|
code: required
|
|
message: The value is required.
|
|
InvitationWithoutCommunicationMethod:
|
|
summary: Terms without the communication method
|
|
description: The communication method is a required term; the pointer names the missing nested field.
|
|
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: 2a3b4c5d-6e7f-4a8b-9c0d-1e2f3a4b5c6d
|
|
errors:
|
|
- in: body
|
|
pointer: /terms/communication_method
|
|
code: required
|
|
message: The value is required.
|
|
InvitationPackageItemMissing:
|
|
summary: A package without the training condition
|
|
description: 'Not providing a condition is the explicit item {status: not_provided}; leaving it out is a missing required field.'
|
|
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: 3b4c5d6e-7f8a-4b9c-8d0e-2f3a4b5c6d7e
|
|
errors:
|
|
- in: body
|
|
pointer: /terms/package/training
|
|
code: required
|
|
message: The value is required.
|
|
InvitationSalaryRangeTooWide:
|
|
summary: A salary range wider than 40% of its midpoint
|
|
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: 4c5d6e7f-8a9b-4c0d-9e1f-3a4b5c6d7e8f
|
|
errors:
|
|
- in: body
|
|
pointer: /terms/salary/salary_to
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
InvitationLocationRequired:
|
|
summary: The hybrid format without a place of work
|
|
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-4b5c6d7e8f9a
|
|
errors:
|
|
- in: body
|
|
pointer: /terms/location
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
InvitationUnknownCandidate:
|
|
summary: A candidate handle that this organization cannot use
|
|
description: An unknown handle, a handle of another organization, and a profile that is no longer visible to the organization get 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: 6e7f8a9b-0c1d-4e2f-9a3b-5c6d7e8f9a0b
|
|
errors:
|
|
- in: body
|
|
pointer: /candidate_handle
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
InvitationCandidateDataInBody:
|
|
summary: The request carried a candidate's email address or salary minimum
|
|
description: Contacts and minimums are never request fields; any unknown field fails validation, and an unknown top-level field such as candidate_email points at 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: 7f8a9b0c-1d2e-4f3a-8b4c-6d7e8f9a0b1c
|
|
errors:
|
|
- in: body
|
|
pointer: ''
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
OrganizationInvitationDelivered:
|
|
summary: The invitation in the candidate's inbox with a seven-day deadline
|
|
value:
|
|
id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
candidate_handle: cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
need:
|
|
need_id: 01928f7a-2b3c-7d4e-9f5a-6b7c8d9e0f12
|
|
requirements_version: 3
|
|
state: delivered
|
|
expiry_reason: null
|
|
version: 3
|
|
terms_version: 2
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 260000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: provided
|
|
description: Конференции и курсы до 100000 рублей в год
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
response_period_days: 7
|
|
response_deadline_at: '2026-10-13T09:30:00Z'
|
|
salary_raise_used: false
|
|
salary_fit: within_range
|
|
contact_access:
|
|
status: not_granted
|
|
fields: []
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T09:30:00Z'
|
|
delivered_at: '2026-10-06T09:30:00Z'
|
|
viewed_at: null
|
|
responded_at: null
|
|
OrganizationInvitationAccepted:
|
|
summary: 'The accepted invitation: the email address is readable through the contacts operation'
|
|
value:
|
|
id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
candidate_handle: cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
need:
|
|
need_id: 01928f7a-2b3c-7d4e-9f5a-6b7c8d9e0f12
|
|
requirements_version: 3
|
|
state: accepted
|
|
expiry_reason: null
|
|
version: 6
|
|
terms_version: 3
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 280000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: provided
|
|
description: Конференции и курсы до 100000 рублей в год
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
response_period_days: 7
|
|
response_deadline_at: '2026-10-13T09:30:00Z'
|
|
salary_raise_used: true
|
|
salary_fit: within_range
|
|
contact_access:
|
|
status: available
|
|
fields:
|
|
- email
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T15:00:00Z'
|
|
delivered_at: '2026-10-06T09:30:00Z'
|
|
viewed_at: '2026-10-06T12:00:00Z'
|
|
responded_at: '2026-10-06T15:00:00Z'
|
|
InvitationUpdateTerms:
|
|
summary: The draft gets the training condition; the terms are sent complete
|
|
value:
|
|
expected_version: 1
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 260000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: provided
|
|
description: Конференции и курсы до 100000 рублей в год
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
OrganizationInvitationDraftUpdated:
|
|
summary: The draft after the terms change, version 2 with terms version 2
|
|
value:
|
|
id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
candidate_handle: cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
need:
|
|
need_id: 01928f7a-2b3c-7d4e-9f5a-6b7c8d9e0f12
|
|
requirements_version: 3
|
|
state: draft
|
|
expiry_reason: null
|
|
version: 2
|
|
terms_version: 2
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 260000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: provided
|
|
description: Конференции и курсы до 100000 рублей в год
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
response_period_days: 7
|
|
response_deadline_at: null
|
|
salary_raise_used: false
|
|
salary_fit: within_range
|
|
contact_access:
|
|
status: not_granted
|
|
fields: []
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T09:20:00Z'
|
|
delivered_at: null
|
|
viewed_at: null
|
|
responded_at: null
|
|
InvitationStaleTerms:
|
|
summary: The acceptance named a terms version that is no longer current
|
|
description: The organization raised the salary after the candidate read the terms. Nothing changed and no consent or grant was recorded; the client reads the invitation again and shows the new terms for a new decision.
|
|
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: 1d2e3f4a-5b6c-4d7e-8f8a-0b1c2d3e4f5a
|
|
InvitationStaleVersion:
|
|
summary: The command carried a stale expected_version
|
|
description: The invitation changed after the client read it. Nothing changed; the client reads the invitation again.
|
|
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: 2e3f4a5b-6c7d-4e8f-9a9b-1c2d3e4f5a6b
|
|
InvitationSendCommand:
|
|
summary: Send the draft that the client read as version 2
|
|
value:
|
|
expected_version: 2
|
|
InvitationNotAnswerable:
|
|
summary: The invitation no longer accepts an answer
|
|
description: For example, it was withdrawn, it expired, or the deadline has passed.
|
|
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: 3f4a5b6c-7d8e-4f9a-8b0c-2d3e4f5a6b7c
|
|
InvitationSalaryRaiseUsed:
|
|
summary: The upper bound of this invitation was already raised once
|
|
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: 4a5b6c7d-8e9f-4a0b-9c1d-3e4f5a6b7c8d
|
|
InvitationSendBlocked:
|
|
summary: The send is blocked by the pending limit of the need or the pause after a decline
|
|
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: 5b6c7d8e-9f0a-4b1c-8d2e-4f5a6b7c8d9e
|
|
InvitationSalaryRaiseCommand:
|
|
summary: The one raise of the upper bound from 260000 to 280000 net
|
|
value:
|
|
expected_version: 4
|
|
salary_to: 280000
|
|
OrganizationInvitationSalaryRaised:
|
|
summary: 'The viewed invitation after the one raise of the upper bound: terms version 3'
|
|
value:
|
|
id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
candidate_handle: cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
need:
|
|
need_id: 01928f7a-2b3c-7d4e-9f5a-6b7c8d9e0f12
|
|
requirements_version: 3
|
|
state: viewed
|
|
expiry_reason: null
|
|
version: 5
|
|
terms_version: 3
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 280000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: provided
|
|
description: Конференции и курсы до 100000 рублей в год
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
response_period_days: 7
|
|
response_deadline_at: '2026-10-13T09:30:00Z'
|
|
salary_raise_used: true
|
|
salary_fit: within_range
|
|
contact_access:
|
|
status: not_granted
|
|
fields: []
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T14:00:00Z'
|
|
delivered_at: '2026-10-06T09:30:00Z'
|
|
viewed_at: '2026-10-06T12:00:00Z'
|
|
responded_at: null
|
|
InvitationWithdrawCommand:
|
|
summary: Withdraw the invitation that the client read as version 3
|
|
value:
|
|
expected_version: 3
|
|
OrganizationInvitationWithdrawn:
|
|
summary: The invitation withdrawn by the organization before an answer
|
|
value:
|
|
id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
candidate_handle: cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
need:
|
|
need_id: 01928f7a-2b3c-7d4e-9f5a-6b7c8d9e0f12
|
|
requirements_version: 3
|
|
state: withdrawn
|
|
expiry_reason: null
|
|
version: 4
|
|
terms_version: 2
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 260000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: provided
|
|
description: Конференции и курсы до 100000 рублей в год
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
response_period_days: 7
|
|
response_deadline_at: '2026-10-13T09:30:00Z'
|
|
salary_raise_used: false
|
|
salary_fit: within_range
|
|
contact_access:
|
|
status: not_granted
|
|
fields: []
|
|
created_at: '2026-10-06T09:00:00Z'
|
|
updated_at: '2026-10-06T11:00:00Z'
|
|
delivered_at: '2026-10-06T09:30:00Z'
|
|
viewed_at: null
|
|
responded_at: null
|
|
InvitationContactsEmailOnly:
|
|
summary: Synthetic contacts through a grant that covers only the email address
|
|
description: Every field the grant does not cover is null. The values are synthetic.
|
|
value:
|
|
invitation_id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
grant_id: 01928f7a-8b9c-7d0e-9f1a-2b3c4d5e6f70
|
|
fields:
|
|
- email
|
|
granted_at: '2026-10-06T15:00:00Z'
|
|
full_name: null
|
|
email: candidate@example.com
|
|
phone: null
|
|
telegram: null
|
|
CandidateInvitationListPage:
|
|
summary: The last page of the candidate's inbox
|
|
value:
|
|
items:
|
|
- id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
state: viewed
|
|
expiry_reason: null
|
|
version: 4
|
|
terms_version: 2
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 260000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
response_deadline_at: '2026-10-13T09:30:00Z'
|
|
delivered_at: '2026-10-06T09:30:00Z'
|
|
viewed_at: '2026-10-06T12:00:00Z'
|
|
updated_at: '2026-10-06T12:00:00Z'
|
|
- id: 01928f7a-9c0d-7e1f-8a2b-3c4d5e6f7a80
|
|
organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
state: expired
|
|
expiry_reason: invitation_timeout
|
|
version: 3
|
|
terms_version: 1
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 260000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
response_deadline_at: '2026-10-04T10:00:00Z'
|
|
delivered_at: '2026-10-01T10:00:00Z'
|
|
viewed_at: null
|
|
updated_at: '2026-10-04T10:00:00Z'
|
|
page:
|
|
has_more: false
|
|
next_cursor: null
|
|
CandidateInvitationDelivered:
|
|
summary: The delivered invitation as GetMyInvitation reads it, before a view is recorded
|
|
value:
|
|
id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
state: delivered
|
|
expiry_reason: null
|
|
version: 3
|
|
terms_version: 2
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 260000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: provided
|
|
description: Конференции и курсы до 100000 рублей в год
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
response_deadline_at: '2026-10-13T09:30:00Z'
|
|
delivered_at: '2026-10-06T09:30:00Z'
|
|
viewed_at: null
|
|
responded_at: null
|
|
updated_at: '2026-10-06T09:30:00Z'
|
|
contact_consent:
|
|
text:
|
|
text_version: c4-2026-10-01
|
|
text: Я разрешаю передать ООО Пример Платежи выбранные мной контактные данные для связи по этому приглашению. Согласие можно отозвать в любой момент в разделе согласий.
|
|
available_fields:
|
|
- full_name
|
|
- email
|
|
- phone
|
|
decline: null
|
|
contact_grant: null
|
|
CandidateInvitationViewed:
|
|
summary: The terms after ViewMyInvitation, with the C4 choice and no contact
|
|
value:
|
|
id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
state: viewed
|
|
expiry_reason: null
|
|
version: 4
|
|
terms_version: 2
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 260000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: provided
|
|
description: Конференции и курсы до 100000 рублей в год
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
response_deadline_at: '2026-10-13T09:30:00Z'
|
|
delivered_at: '2026-10-06T09:30:00Z'
|
|
viewed_at: '2026-10-06T12:00:00Z'
|
|
responded_at: null
|
|
updated_at: '2026-10-06T12:00:00Z'
|
|
contact_consent:
|
|
text:
|
|
text_version: c4-2026-10-01
|
|
text: Я разрешаю передать ООО Пример Платежи выбранные мной контактные данные для связи по этому приглашению. Согласие можно отозвать в любой момент в разделе согласий.
|
|
available_fields:
|
|
- full_name
|
|
- email
|
|
- phone
|
|
decline: null
|
|
contact_grant: null
|
|
CandidateInvitationAccepted:
|
|
summary: The accepted invitation with the grant for the email address only
|
|
value:
|
|
id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
state: accepted
|
|
expiry_reason: null
|
|
version: 6
|
|
terms_version: 3
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 280000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: provided
|
|
description: Конференции и курсы до 100000 рублей в год
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
response_deadline_at: '2026-10-13T09:30:00Z'
|
|
delivered_at: '2026-10-06T09:30:00Z'
|
|
viewed_at: '2026-10-06T12:00:00Z'
|
|
responded_at: '2026-10-06T15:00:00Z'
|
|
updated_at: '2026-10-06T15:00:00Z'
|
|
contact_consent: null
|
|
decline: null
|
|
contact_grant:
|
|
id: 01928f7a-8b9c-7d0e-9f1a-2b3c4d5e6f70
|
|
fields:
|
|
- email
|
|
status: active
|
|
readable: true
|
|
blocked_by: null
|
|
terms_version: 3
|
|
consent_text_version: c4-2026-10-01
|
|
granted_at: '2026-10-06T15:00:00Z'
|
|
revoked_at: null
|
|
revocation_reason: null
|
|
CandidateInvitationDeclined:
|
|
summary: The declined invitation with the candidate's own reason
|
|
value:
|
|
id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
state: declined
|
|
expiry_reason: null
|
|
version: 5
|
|
terms_version: 2
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 260000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: provided
|
|
description: Конференции и курсы до 100000 рублей в год
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
response_deadline_at: '2026-10-13T09:30:00Z'
|
|
delivered_at: '2026-10-06T09:30:00Z'
|
|
viewed_at: '2026-10-06T12:00:00Z'
|
|
responded_at: '2026-10-06T16:00:00Z'
|
|
updated_at: '2026-10-06T16:00:00Z'
|
|
contact_consent: null
|
|
decline:
|
|
reason: other
|
|
comment: null
|
|
declined_at: '2026-10-06T16:00:00Z'
|
|
contact_grant: null
|
|
InvitationAcceptEmailOnly:
|
|
summary: Accept terms version 3 and disclose only the email address
|
|
value:
|
|
expected_version: 5
|
|
terms_version: 3
|
|
consent_c4:
|
|
text_version: c4-2026-10-01
|
|
accepted: true
|
|
fields:
|
|
- email
|
|
InvitationAcceptStaleTerms:
|
|
summary: Accept terms version 2 after the organization raised the salary
|
|
description: The candidate read version 4 with terms version 2; the raise made version 5 with terms version 3, so the server answers 412.
|
|
value:
|
|
expected_version: 4
|
|
terms_version: 2
|
|
consent_c4:
|
|
text_version: c4-2026-10-01
|
|
accepted: true
|
|
fields:
|
|
- email
|
|
- phone
|
|
CandidateInvitationAcceptedVisibilityBlocked:
|
|
summary: 'Accepted while the profile is hidden from the organization: the grant is active but not readable'
|
|
description: The acceptance never lifts the hiding or publishes the profile. The organization sees contact_access closed without the reason.
|
|
value:
|
|
id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
state: accepted
|
|
expiry_reason: null
|
|
version: 6
|
|
terms_version: 3
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 280000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: provided
|
|
description: Конференции и курсы до 100000 рублей в год
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
response_deadline_at: '2026-10-13T09:30:00Z'
|
|
delivered_at: '2026-10-06T09:30:00Z'
|
|
viewed_at: '2026-10-06T12:00:00Z'
|
|
responded_at: '2026-10-06T15:00:00Z'
|
|
updated_at: '2026-10-06T15:00:00Z'
|
|
contact_consent: null
|
|
decline: null
|
|
contact_grant:
|
|
id: 01928f7a-8b9c-7d0e-9f1a-2b3c4d5e6f70
|
|
fields:
|
|
- email
|
|
status: active
|
|
readable: false
|
|
blocked_by: visibility
|
|
terms_version: 3
|
|
consent_text_version: c4-2026-10-01
|
|
granted_at: '2026-10-06T15:00:00Z'
|
|
revoked_at: null
|
|
revocation_reason: null
|
|
InvitationConsentWithoutFields:
|
|
summary: An acceptance with an empty choice of contact fields
|
|
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: 8a9b0c1d-2e3f-4a4b-9c5d-7e8f9a0b1c2d
|
|
errors:
|
|
- in: body
|
|
pointer: /consent_c4/fields
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
InvitationConsentTextOutdated:
|
|
summary: An acceptance of a C4 text version that is no longer published
|
|
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-8f9a0b1c2d3e
|
|
errors:
|
|
- in: body
|
|
pointer: /consent_c4/text_version
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
InvitationMissingTermsVersion:
|
|
summary: An acceptance without terms_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: 0c1d2e3f-4a5b-4c6d-9e7f-9a0b1c2d3e4f
|
|
errors:
|
|
- in: body
|
|
pointer: /terms_version
|
|
code: required
|
|
message: The value is required.
|
|
InvitationDeclineOther:
|
|
summary: Decline with the neutral reason other and no comment
|
|
value:
|
|
expected_version: 4
|
|
reason: other
|
|
InvitationDeclineWithComment:
|
|
summary: Decline with a reason and an optional comment
|
|
value:
|
|
expected_version: 4
|
|
reason: work_format
|
|
comment: Ищу только полностью удаленную работу.
|
|
InvitationCancelCommand:
|
|
summary: Cancel the participation after the acceptance
|
|
value:
|
|
expected_version: 6
|
|
CandidateInvitationCancelled:
|
|
summary: The participation cancelled after the acceptance; the grant of this invitation is revoked
|
|
value:
|
|
id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
state: cancelled_by_candidate
|
|
expiry_reason: null
|
|
version: 7
|
|
terms_version: 3
|
|
terms:
|
|
role_title: Middle Go-разработчик в команду платежей
|
|
specialization: backend
|
|
grade: middle
|
|
offer_type: full_time
|
|
tasks:
|
|
- Развивать сервис выплат на Go
|
|
- Перевести расчет комиссий на событийную модель
|
|
team: 'Команда платежей: пять бэкенд-разработчиков, QA-инженер и продакт-менеджер. Код-ревью для каждого изменения, дежурства по графику раз в шесть недель.'
|
|
tech_stack:
|
|
- Go
|
|
- PostgreSQL
|
|
- Kafka
|
|
work_formats:
|
|
- remote
|
|
- hybrid
|
|
location: Москва
|
|
communication_method:
|
|
channel: email
|
|
details: Письмо от тимлида с предложением созвона в течение трех рабочих дней
|
|
salary:
|
|
salary_from: 200000
|
|
salary_to: 280000
|
|
currency: RUB
|
|
period: month
|
|
tax_basis: net
|
|
package:
|
|
bonus:
|
|
status: provided
|
|
description: Годовой бонус до 15% оклада
|
|
equipment:
|
|
status: provided
|
|
description: Ноутбук и монитор на выбор
|
|
training:
|
|
status: provided
|
|
description: Конференции и курсы до 100000 рублей в год
|
|
health_insurance:
|
|
status: provided
|
|
description: ДМС со стоматологией после испытательного срока
|
|
response_deadline_at: '2026-10-13T09:30:00Z'
|
|
delivered_at: '2026-10-06T09:30:00Z'
|
|
viewed_at: '2026-10-06T12:00:00Z'
|
|
responded_at: '2026-10-06T15:00:00Z'
|
|
updated_at: '2026-10-07T10:00:00Z'
|
|
contact_consent: null
|
|
decline: null
|
|
contact_grant:
|
|
id: 01928f7a-8b9c-7d0e-9f1a-2b3c4d5e6f70
|
|
fields:
|
|
- email
|
|
status: revoked
|
|
readable: false
|
|
blocked_by: null
|
|
terms_version: 3
|
|
consent_text_version: c4-2026-10-01
|
|
granted_at: '2026-10-06T15:00:00Z'
|
|
revoked_at: '2026-10-07T10:00:00Z'
|
|
revocation_reason: participation_cancelled
|
|
NotificationListPage:
|
|
summary: An unread notice and a read one whose source is no longer visible
|
|
value:
|
|
items:
|
|
- id: 01928f7a-8b9c-7d0e-9f1a-2b3c4d5e6f70
|
|
kind: synthetic
|
|
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
delivered_at: '2026-10-09T08:30:00Z'
|
|
read_at: null
|
|
content:
|
|
title: Тестовое уведомление
|
|
summary: Организация «Север» отправила проверочное уведомление платформы. Оно создано для проверки доставки и не требует действий.
|
|
link_path: null
|
|
- id: 01928f7a-8b9c-7d0e-9f1a-2b3c4d5e6f6f
|
|
kind: synthetic
|
|
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
delivered_at: '2026-10-08T17:05:00Z'
|
|
read_at: '2026-10-08T17:10:00Z'
|
|
content: null
|
|
page:
|
|
has_more: false
|
|
next_cursor: null
|
|
NotificationReadReceipt:
|
|
summary: The first read time of an item
|
|
value:
|
|
id: 01928f7a-8b9c-7d0e-9f1a-2b3c4d5e6f70
|
|
read_at: '2026-10-09T08:45:00Z'
|
|
ConsentRecordListPage:
|
|
summary: The whole consent history of a candidate on one page
|
|
description: C1 was accepted at registration and again for a newer text version, so the first record is superseded; the version c1-2026-10-05 is an illustration, since the migration publishes only c1-2026-10-01 so far. C2 was granted and revoked. C4 was given in the acceptance of one invitation with the email only; the organization name is the one the consent text showed.
|
|
value:
|
|
items:
|
|
- id: 01928f7a-9c0d-7e1f-8a2b-3c4d5e6f7a80
|
|
purpose: c4
|
|
state: active
|
|
text_version: c4-2026-10-01
|
|
source: invitation_acceptance
|
|
granted_at: '2026-10-06T10:15:00Z'
|
|
revoked_at: null
|
|
revocation_source: null
|
|
organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
fields:
|
|
- email
|
|
invitation_id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e6f
|
|
invitation_terms_version: 3
|
|
- id: 01928f7a-8b9c-7d0e-9f1a-2b3c4d5e6f70
|
|
purpose: c1
|
|
state: active
|
|
text_version: c1-2026-10-05
|
|
source: consent_settings
|
|
granted_at: '2026-10-05T12:00:00Z'
|
|
revoked_at: null
|
|
revocation_source: null
|
|
organization: null
|
|
fields: null
|
|
invitation_id: null
|
|
invitation_terms_version: null
|
|
- id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e60
|
|
purpose: c2
|
|
state: revoked
|
|
text_version: c2-2026-10-01
|
|
source: consent_settings
|
|
granted_at: '2026-10-02T09:00:00Z'
|
|
revoked_at: '2026-10-04T18:30:00Z'
|
|
revocation_source: consent_settings
|
|
organization: null
|
|
fields: null
|
|
invitation_id: null
|
|
invitation_terms_version: null
|
|
- id: 01928f7a-6f7a-7b8c-9d0e-1f2a3b4c5d50
|
|
purpose: c1
|
|
state: superseded
|
|
text_version: c1-2026-10-01
|
|
source: registration
|
|
granted_at: '2026-10-01T08:00:00Z'
|
|
revoked_at: null
|
|
revocation_source: null
|
|
organization: null
|
|
fields: null
|
|
invitation_id: null
|
|
invitation_terms_version: null
|
|
page:
|
|
has_more: false
|
|
next_cursor: null
|
|
NewCandidatePrivacySettings:
|
|
summary: A new candidate with the profile closed
|
|
description: Nothing was ever published, announced, or hidden. Every version is 0.
|
|
value:
|
|
publication:
|
|
state: closed
|
|
closed_reason: never_published
|
|
fields: []
|
|
consent_id: null
|
|
published_at: null
|
|
version: 0
|
|
search_status:
|
|
value: not_looking
|
|
lapsed: false
|
|
confirmed_at: null
|
|
lapses_at: null
|
|
version: 0
|
|
hidden_organizations_total: 0
|
|
PublishedCandidatePrivacySettings:
|
|
summary: A published profile with a confirmed search status
|
|
value:
|
|
publication:
|
|
state: published
|
|
closed_reason: null
|
|
fields:
|
|
- categories
|
|
- stack
|
|
consent_id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e60
|
|
published_at: '2026-10-06T09:10:00Z'
|
|
version: 1
|
|
search_status:
|
|
value: looking
|
|
lapsed: false
|
|
confirmed_at: '2026-10-06T09:12:00Z'
|
|
lapses_at: '2026-11-05T09:12:00Z'
|
|
version: 1
|
|
hidden_organizations_total: 1
|
|
PublicationUpdatePublish:
|
|
summary: Publish the confirmed categories and the stack
|
|
value:
|
|
expected_version: 0
|
|
state: published
|
|
fields:
|
|
- categories
|
|
- stack
|
|
PublicationUpdateClose:
|
|
summary: Close the publication
|
|
value:
|
|
expected_version: 1
|
|
state: closed
|
|
fields: []
|
|
PublishedPublication:
|
|
summary: The publication after the first publish
|
|
value:
|
|
state: published
|
|
closed_reason: null
|
|
fields:
|
|
- categories
|
|
- stack
|
|
consent_id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e60
|
|
published_at: '2026-10-06T09:10:00Z'
|
|
version: 1
|
|
PrivacyPublishedWithoutFields:
|
|
summary: A publication without any field
|
|
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: 3b4c5d6e-7f80-4a91-8b2c-3d4e5f6a7b8c
|
|
errors:
|
|
- in: body
|
|
pointer: /fields
|
|
code: invalid
|
|
message: A published profile needs at least one field, and a closed one none.
|
|
PublicationConsentRequiredConflict:
|
|
summary: Publishing without an active C2 consent
|
|
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: 5d6e7f80-91a2-4cb3-8d4e-5f6a7b8c9d0e
|
|
errors:
|
|
- in: body
|
|
pointer: /state
|
|
code: consent_required
|
|
message: Publishing needs an active C2 consent of the account.
|
|
PrivacyStaleVersion:
|
|
summary: The change carried a stale expected_version
|
|
description: The setting changed, for example in another tab, after the client read it. Nothing was changed; the client reads the settings again and reapplies its edit.
|
|
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: 4c5d6e7f-8091-4ba2-9c3d-4e5f6a7b8c9d
|
|
PublishedCardPreview:
|
|
summary: The card of a published profile with two fields
|
|
description: The fields that are not published are null. The card carries no name and no contact.
|
|
value:
|
|
state: published
|
|
fields:
|
|
- categories
|
|
- stack
|
|
card:
|
|
pseudonym: cv1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
categories:
|
|
- specialization: backend
|
|
grade: middle
|
|
strength: standard
|
|
basis: synthetic_demo
|
|
stack:
|
|
- postgresql
|
|
- kafka
|
|
self_assessment: null
|
|
experience_band: '1_3'
|
|
work_formats: null
|
|
salary_compatibility: null
|
|
evidence:
|
|
items:
|
|
- skill: backend
|
|
grade: middle
|
|
trust: 1
|
|
basis: synthetic_demo
|
|
calibration_status: uncalibrated
|
|
observed_year: 2026
|
|
generated_at: '2026-10-06T09:30:00Z'
|
|
ClosedCardPreview:
|
|
summary: The preview of a closed profile
|
|
value:
|
|
state: closed
|
|
fields: []
|
|
card: null
|
|
evidence: null
|
|
generated_at: '2026-10-06T09:30:00Z'
|
|
SearchStatusUpdateLooking:
|
|
summary: Set or confirm the status looking
|
|
value:
|
|
expected_version: 0
|
|
value: looking
|
|
LookingSearchStatus:
|
|
summary: A confirmed status that lapses after the policy interval
|
|
value:
|
|
value: looking
|
|
lapsed: false
|
|
confirmed_at: '2026-10-06T09:12:00Z'
|
|
lapses_at: '2026-11-05T09:12:00Z'
|
|
version: 1
|
|
LapsedSearchStatus:
|
|
summary: A status that was not confirmed in time
|
|
description: The candidate set looking and did not confirm it again, so it holds as not_looking. Nothing else changed; the publication and the hidden organizations are as they were.
|
|
value:
|
|
value: not_looking
|
|
lapsed: true
|
|
confirmed_at: '2026-10-06T09:12:00Z'
|
|
lapses_at: '2026-11-05T09:12:00Z'
|
|
version: 1
|
|
HiddenOrganizationListPage:
|
|
summary: One hidden organization
|
|
value:
|
|
items:
|
|
- organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
hidden_at: '2026-10-06T09:20:00Z'
|
|
page:
|
|
has_more: false
|
|
next_cursor: null
|
|
HiddenOrganizationRecord:
|
|
summary: An organization that the candidate hides the profile from
|
|
value:
|
|
organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
hidden_at: '2026-10-06T09:20:00Z'
|
|
HiddenOrganizationLimitReached:
|
|
summary: The candidate hides the maximum number of organizations
|
|
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: 6e7f8091-a2b3-4dc4-9e5f-6a7b8c9d0e1f
|
|
errors:
|
|
- in: path
|
|
pointer: /org_id
|
|
code: limit_reached
|
|
message: The candidate already hides the maximum number of organizations.
|
|
PrivacyEventListPage:
|
|
summary: A publication, a hiding, and a confirmed status
|
|
value:
|
|
items:
|
|
- id: 01928f7a-b1c2-7d3e-8f4a-5b6c7d8e9f01
|
|
kind: organization_hidden
|
|
occurred_at: '2026-10-06T09:20:00Z'
|
|
fields: null
|
|
consent_id: null
|
|
organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
- id: 01928f7a-b1c2-7d3e-8f4a-5b6c7d8e9e02
|
|
kind: search_status_confirmed
|
|
occurred_at: '2026-10-06T09:12:00Z'
|
|
fields: null
|
|
consent_id: null
|
|
organization: null
|
|
- id: 01928f7a-b1c2-7d3e-8f4a-5b6c7d8e9e01
|
|
kind: publication_opened
|
|
occurred_at: '2026-10-06T09:10:00Z'
|
|
fields:
|
|
- categories
|
|
- stack
|
|
consent_id: 01928f7a-7a8b-7c9d-8e0f-1a2b3c4d5e60
|
|
organization: null
|
|
page:
|
|
has_more: false
|
|
next_cursor: null
|
|
CardAccessListPage:
|
|
summary: An anonymous view and a contact read
|
|
value:
|
|
items:
|
|
- id: 01928f7a-c1d2-7e3f-8a4b-5c6d7e8f9a02
|
|
kind: contact_read
|
|
occurred_at: '2026-10-07T08:00:00Z'
|
|
organization:
|
|
id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
|
name: ООО Пример Платежи
|
|
- id: 01928f7a-c1d2-7e3f-8a4b-5c6d7e8f9a01
|
|
kind: card_viewed
|
|
occurred_at: '2026-10-06T12:00:00Z'
|
|
organization: null
|
|
page:
|
|
has_more: false
|
|
next_cursor: null
|
|
EvidenceFactListPage:
|
|
summary: A confirmed junior backend result with one fact and two tags of the same event
|
|
value:
|
|
items:
|
|
- id: 01928f7a-d1e2-7f3a-8b4c-5d6e7f8a9b01
|
|
kind: measurement
|
|
source:
|
|
type: assessment_result
|
|
event_id: 01928f7a-e1f2-7a3b-8c4d-5e6f7a8b9c01
|
|
result_id: 01928f7a-e1f2-7a3b-8c4d-5e6f7a8b9c01
|
|
skills:
|
|
- backend
|
|
- go
|
|
result:
|
|
grade: junior
|
|
basis: synthetic_demo
|
|
calibration_status: uncalibrated
|
|
attribution: personal
|
|
trust: 1
|
|
occurred_at: '2026-10-08T10:15:00Z'
|
|
visibility: visible
|
|
page:
|
|
has_more: false
|
|
next_cursor: null
|
|
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: An unknown discriminator of the top-level oneOf concerns the whole body, so the pointer is empty.
|
|
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, and an unknown top-level field points at 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-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, and the pointer names it.
|
|
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: /object/id
|
|
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'
|
|
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
|