Files
lincodex/api/core/components/schemas.yml
T

7543 lines
273 KiB
YAML

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.
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
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
AssessmentRealMode:
type: string
description: Server-selected mode available to a real category assessment.
enum:
- demo_basic
- adaptive
AssessmentAttemptKind:
type: string
description: Assessment track that distinguishes root, corrective, and training attempts.
enum:
- root
- corrective
- demo_express
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: '#/AssessmentVersionLabel'
algorithm_version:
$ref: '#/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: '#/AssessmentQualifiedAttemptCreate'
- $ref: '#/AssessmentCorrectiveAttemptCreate'
- $ref: '#/AssessmentExpressAttemptCreate'
discriminator:
propertyName: kind
mapping:
root: '#/AssessmentQualifiedAttemptCreate'
corrective: '#/AssessmentCorrectiveAttemptCreate'
demo_express: '#/AssessmentExpressAttemptCreate'
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: '#/SpecializationCode'
target_grade:
$ref: '#/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: '#/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: '#/SpecializationCode'
target_grade:
$ref: '#/GradeCode'
task_language:
description: Task language of the attempt, or null when the bank offers no choice.
oneOf:
- $ref: '#/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.
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: '#/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: '#/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: '#/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: '#/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: '#/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: '#/TaskLanguage'
public_examples:
type: array
maxItems: 10
items:
$ref: '#/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: '#/ChoiceItemContent'
- $ref: '#/NumberItemContent'
- $ref: '#/StringItemContent'
- $ref: '#/OrderItemContent'
- $ref: '#/FindErrorItemContent'
- $ref: '#/ConfigurationItemContent'
- $ref: '#/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: '#/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: '#/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: '#/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: '#/PracticeKind'
item_id:
$ref: '#/AssessmentItemId'
status:
$ref: '#/PracticeStatus'
submitted_at:
description: Time of the latest submission, or null before the first one.
oneOf:
- $ref: '#/Timestamp'
- type: 'null'
verdict:
description: The verdict when `status` is `finished`, otherwise null.
oneOf:
- $ref: '#/PracticeVerdict'
- type: 'null'
failure_reason:
description: The reason when `status` is `failed`, otherwise null.
oneOf:
- $ref: '#/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: '#/AssessmentQualifiedAttempt'
- $ref: '#/AssessmentCorrectiveAttempt'
- $ref: '#/AssessmentExpressAttempt'
discriminator:
propertyName: kind
mapping:
root: '#/AssessmentQualifiedAttempt'
corrective: '#/AssessmentCorrectiveAttempt'
demo_express: '#/AssessmentExpressAttempt'
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: '#/AssessmentAttemptVersion'
specialization:
description: Null only for demo_express, which has no qualification category.
oneOf:
- $ref: '#/SpecializationCode'
- type: 'null'
target_grade:
description: Null only for demo_express, which has no qualification category.
oneOf:
- $ref: '#/GradeCode'
- type: 'null'
task_language:
description: Task language of the attempt, or null when none is selected.
oneOf:
- $ref: '#/TaskLanguage'
- type: 'null'
kind:
$ref: '#/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: '#/Timestamp'
- type: 'null'
readOnly: true
mode:
$ref: '#/AssessmentMode'
state:
$ref: '#/AssessmentAttemptState'
versions:
$ref: '#/AssessmentVersions'
started_at:
$ref: '#/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: '#/Timestamp'
sessions:
description: Session limit of the attempt, or null when its policy defines none.
oneOf:
- $ref: '#/AssessmentSessions'
- type: 'null'
finished_at:
description: Time the attempt reached a terminal state, or null while it is active.
oneOf:
- $ref: '#/Timestamp'
- type: 'null'
progress:
$ref: '#/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: '#/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: '#/AssessmentPractice'
AssessmentQualifiedAttempt:
allOf:
- $ref: '#/AssessmentAttemptCommon'
- type: object
properties:
kind:
type: string
enum:
- root
mode:
type: string
enum:
- demo_basic
- adaptive
specialization:
$ref: '#/SpecializationCode'
target_grade:
$ref: '#/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: '#/AssessmentAttemptCommon'
- type: object
properties:
kind:
type: string
enum:
- corrective
mode:
type: string
enum:
- demo_basic
- adaptive
specialization:
$ref: '#/SpecializationCode'
target_grade:
$ref: '#/GradeCode'
root_attempt_id:
type: string
format: uuid
readOnly: true
chain_deadline:
$ref: '#/Timestamp'
readOnly: true
required:
- kind
- mode
- specialization
- target_grade
- root_attempt_id
- chain_deadline
AssessmentExpressAttempt:
allOf:
- $ref: '#/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
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: '#/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: '#/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: '#/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: '#/ChoiceAnswer'
- $ref: '#/NumberAnswer'
- $ref: '#/StringAnswer'
- $ref: '#/OrderAnswer'
- $ref: '#/FindErrorAnswer'
- $ref: '#/ConfigurationAnswer'
- $ref: '#/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: '#/AssessmentAttemptVersion'
item_id:
$ref: '#/AssessmentItemId'
answer:
$ref: '#/AssessmentAnswer'
AssessmentFinalization:
type: object
description: Command to finalize the attempt.
additionalProperties: false
required:
- expected_version
properties:
expected_version:
$ref: '#/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: '#/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: '#/PracticeKind'
verdict:
$ref: '#/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: '#/AssessmentNextAction'
grade:
$ref: '#/GradeCode'
available_at:
description: First time the step is allowed, or null when it is allowed now.
oneOf:
- $ref: '#/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: '#/AssessmentQualifiedResult'
- $ref: '#/AssessmentCorrectiveResult'
- $ref: '#/AssessmentExpressResult'
discriminator:
propertyName: kind
mapping:
root: '#/AssessmentQualifiedResult'
corrective: '#/AssessmentCorrectiveResult'
demo_express: '#/AssessmentExpressResult'
AssessmentRealResult:
description: A completed root or corrective result. Training-only demo_express results are excluded from qualification history.
oneOf:
- $ref: '#/AssessmentQualifiedResult'
- $ref: '#/AssessmentCorrectiveResult'
discriminator:
propertyName: kind
mapping:
root: '#/AssessmentQualifiedResult'
corrective: '#/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: '#/GradeCode'
- type: 'null'
current_confirmed_grade:
oneOf:
- $ref: '#/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: '#/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: '#/AssessmentRealResult'
page:
$ref: '#/PageInfo'
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: '#/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.
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: '#/SpecializationCode'
target_grade:
$ref: '#/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: '#/Timestamp'
- type: 'null'
readOnly: true
task_language:
oneOf:
- $ref: '#/TaskLanguage'
- type: 'null'
kind:
type: string
enum:
- root
- corrective
mode:
type: string
enum:
- demo_basic
- adaptive
versions:
$ref: '#/AssessmentVersions'
outcome:
$ref: '#/AssessmentOutcome'
not_determined_reason:
description: The reason when `outcome` is `not_determined`, otherwise null.
oneOf:
- $ref: '#/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: '#/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: '#/GradeCode'
- type: 'null'
category_decision:
$ref: '#/AssessmentCategoryDecisionView'
strength:
description: Strength of an adaptive confirmation, otherwise null.
oneOf:
- $ref: '#/AssessmentStrength'
- type: 'null'
calibration_status:
$ref: '#/CalibrationStatus'
limitations:
type: array
maxItems: 10
uniqueItems: true
items:
$ref: '#/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: '#/AssessmentUncertainty'
- type: 'null'
basic_score:
description: Raw score of a demo_basic attempt with a decision, otherwise null.
oneOf:
- $ref: '#/BasicScore'
- type: 'null'
practices:
type: array
maxItems: 5
description: Verdicts of the practices that have one, main first.
items:
$ref: '#/AssessmentPracticeResult'
gaps:
type: array
maxItems: 20
description: Domains with weak evidence; empty when none were found or the method finds none.
items:
$ref: '#/AssessmentGap'
durations:
$ref: '#/AssessmentDurations'
next_steps:
type: array
maxItems: 5
items:
$ref: '#/AssessmentNextStep'
decided_at:
$ref: '#/Timestamp'
AssessmentQualifiedResult:
description: Result of a real assessment that is not a corrective attempt. The correction-chain fields are explicitly null.
allOf:
- $ref: '#/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: '#/AssessmentRealResultCommon'
- type: object
properties:
kind:
type: string
enum:
- corrective
root_attempt_id:
type: string
format: uuid
readOnly: true
chain_deadline:
$ref: '#/Timestamp'
readOnly: true
required:
- kind
- root_attempt_id
- chain_deadline
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: '#/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: '#/AssessmentPracticeResult'
gaps:
type: array
maxItems: 0
items:
$ref: '#/AssessmentGap'
durations:
$ref: '#/AssessmentDurations'
next_steps:
type: array
maxItems: 0
items:
$ref: '#/AssessmentNextStep'
summary:
type: string
minLength: 1
maxLength: 2000
description: Short educational feedback about this training run.
decided_at:
$ref: '#/Timestamp'
AssessmentGradeAvailabilityStatus:
type: string
description: 'Whether an attempt for the grade can start now.
- available: CreateMyAssessmentAttempt can start it.
- active_attempt: the specialization has an active attempt; resume it by `active_attempt_id`.
- cooldown: a retry or promotion interval or the attempt limit of the policy blocks it until `available_at`. Attempts that ended as `insufficient_bank` or `sandbox_unavailable` never cause it.
- insufficient_bank: no published bank of the category, or not enough unseen families to cover the blueprint for this candidate. The server never fills the gap by repeating families.'
enum:
- available
- active_attempt
- cooldown
- insufficient_bank
AssessmentGradeAvailability:
type: object
description: Availability of an attempt for one grade of a specialization, with the limits that an attempt would have, so the client can show them before the start. The limit fields are null when the status is `insufficient_bank` or the policy defines no such limit.
additionalProperties: false
required:
- grade
- status
- mode
- available_at
- time_limit_seconds
- max_sessions
- max_items
- practice_required
properties:
grade:
$ref: '#/GradeCode'
status:
$ref: '#/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: '#/AssessmentRealMode'
- type: 'null'
available_at:
description: When the status is `cooldown`, the first time the attempt can start; otherwise null.
oneOf:
- $ref: '#/Timestamp'
- type: 'null'
time_limit_seconds:
type:
- integer
- 'null'
format: int32
minimum: 1
description: Time from the start to `expires_at`.
max_sessions:
type:
- integer
- 'null'
format: int32
minimum: 1
maximum: 10
description: Session limit within the time limit.
max_items:
type:
- integer
- 'null'
format: int32
minimum: 1
maximum: 100
description: Item limit, as in `AssessmentProgress.max_items`.
practice_required:
type:
- boolean
- 'null'
description: Whether the attempt would include a main code practice.
AssessmentSpecializationAvailability:
type: object
description: Assessment state of one questionnaire specialization. Specializations are assessed independently, with independent retry intervals.
additionalProperties: false
required:
- specialization
- confirmed_grade
- active_attempt_id
- grades
properties:
specialization:
$ref: '#/SpecializationCode'
confirmed_grade:
description: Currently confirmed grade of the specialization, or null.
oneOf:
- $ref: '#/GradeCode'
- type: 'null'
active_attempt_id:
type:
- string
- 'null'
format: uuid
description: Identifier of the active attempt of the specialization, or null.
grades:
type: array
maxItems: 10
description: Every grade of the scale in ascending order.
items:
$ref: '#/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: '#/AssessmentSpecializationAvailability'
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: '#/AssessmentFocusLossSignal'
- $ref: '#/AssessmentClipboardSignal'
- $ref: '#/AssessmentFullscreenExitSignal'
discriminator:
propertyName: kind
mapping:
focus_loss: '#/AssessmentFocusLossSignal'
copy: '#/AssessmentClipboardSignal'
paste: '#/AssessmentClipboardSignal'
cut: '#/AssessmentClipboardSignal'
fullscreen_exit: '#/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: '#/AssessmentItemId'
occurred_at:
$ref: '#/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: '#/AssessmentItemId'
occurred_at:
$ref: '#/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: '#/AssessmentItemId'
occurred_at:
$ref: '#/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: '#/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: '#/Timestamp'
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: '#/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: '#/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: '#/AssessmentSignalNoticeVersion'
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: '#/ProfileClaimOrigin'
trust_level:
$ref: '#/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: '#/ProfileClaimQuote'
- type: 'null'
extraction_version:
description: Extractor version for an extracted or imported value, or null for a manual value.
oneOf:
- $ref: '#/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: '#/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: '#/RubAmount'
currency:
$ref: '#/CurrencyCode'
period:
$ref: '#/SalaryPeriod'
tax_basis:
$ref: '#/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: '#/ProfileClaimStatus'
value:
oneOf:
- $ref: '#/ContactFullName'
- type: 'null'
source:
oneOf:
- $ref: '#/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: '#/ProfileClaimStatus'
value:
oneOf:
- $ref: '#/EmailAddress'
- type: 'null'
source:
oneOf:
- $ref: '#/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: '#/ProfileClaimStatus'
value:
oneOf:
- $ref: '#/ContactPhoneNumber'
- type: 'null'
source:
oneOf:
- $ref: '#/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: '#/ProfileClaimStatus'
value:
oneOf:
- $ref: '#/ContactTelegramUsername'
- type: 'null'
source:
oneOf:
- $ref: '#/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: '#/ProfileClaimStatus'
value:
oneOf:
- $ref: '#/ProfileLocationName'
- type: 'null'
source:
oneOf:
- $ref: '#/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: '#/ProfileClaimStatus'
value:
type:
- boolean
- 'null'
source:
oneOf:
- $ref: '#/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: '#/ProfileClaimStatus'
value:
oneOf:
- $ref: '#/ProfileSalaryMinimum'
- type: 'null'
source:
oneOf:
- $ref: '#/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: '#/ProfileEmailClaim'
phone:
$ref: '#/ProfilePhoneClaim'
telegram:
$ref: '#/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: '#/ProfileLocationClaim'
relocation:
$ref: '#/ProfileRelocationClaim'
salary_minimum:
$ref: '#/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: '#/StackTag'
status:
$ref: '#/ProfileItemStatus'
source:
$ref: '#/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: '#/ProfileSoftSkill'
status:
$ref: '#/ProfileItemStatus'
source:
$ref: '#/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: '#/SpecializationCode'
self_assessed_grade:
description: Grade that the candidate claims in the specialization, or null when the candidate names none.
oneOf:
- $ref: '#/GradeCode'
- type: 'null'
status:
$ref: '#/ProfileItemStatus'
source:
$ref: '#/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: '#/ProfileEmployerName'
- type: 'null'
specialization:
$ref: '#/SpecializationCode'
started_on:
$ref: '#/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: '#/ProfileYearMonth'
- type: 'null'
summary:
description: Tasks and results of the entry, or null when the candidate gives none.
oneOf:
- $ref: '#/ProfileExperienceSummary'
- type: 'null'
status:
$ref: '#/ProfileItemStatus'
source:
$ref: '#/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: '#/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: '#/ProfileYearMonth'
ended_on:
description: Last month of work, or null when the period is open-ended.
oneOf:
- $ref: '#/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: '#/ProfileExperiencePeriod'
second_period:
$ref: '#/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`.'
additionalProperties: false
required:
- specialization
- grade
- confirmed_at
- attempt_id
properties:
specialization:
$ref: '#/SpecializationCode'
grade:
$ref: '#/GradeCode'
confirmed_at:
$ref: '#/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: '#/ProfileVersion'
full_name:
$ref: '#/ProfileFullNameClaim'
contacts:
$ref: '#/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: '#/ProfileStackItem'
roles:
type: array
maxItems: 9
description: Roles in the order the candidate gave them, each specialization at most once.
items:
$ref: '#/ProfileRoleItem'
experience:
type: array
maxItems: 20
description: Work history entries in the order the candidate gave them.
items:
$ref: '#/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: '#/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: '#/ProfileSoftSkillItem'
terms:
$ref: '#/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: '#/ProfileConfirmedCategory'
updated_at:
description: Time of the last change, or null before the first save.
oneOf:
- $ref: '#/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: '#/ContactFullName'
status:
$ref: '#/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: '#/EmailAddress'
status:
$ref: '#/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: '#/ContactPhoneNumber'
status:
$ref: '#/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: '#/ContactTelegramUsername'
status:
$ref: '#/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: '#/ProfileLocationName'
status:
$ref: '#/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: '#/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: '#/ProfileSalaryMinimum'
status:
$ref: '#/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: '#/ProfileEmailInput'
- type: 'null'
phone:
oneOf:
- $ref: '#/ProfilePhoneInput'
- type: 'null'
telegram:
oneOf:
- $ref: '#/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: '#/ProfileLocationInput'
- type: 'null'
relocation:
oneOf:
- $ref: '#/ProfileRelocationInput'
- type: 'null'
salary_minimum:
oneOf:
- $ref: '#/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: '#/StackTag'
status:
$ref: '#/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: '#/ProfileSoftSkill'
status:
$ref: '#/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: '#/SpecializationCode'
self_assessed_grade:
description: Grade that the candidate claims, or null when the candidate names none.
oneOf:
- $ref: '#/GradeCode'
- type: 'null'
status:
$ref: '#/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: '#/ProfileEmployerName'
- type: 'null'
specialization:
$ref: '#/SpecializationCode'
started_on:
$ref: '#/ProfileYearMonth'
ended_on:
oneOf:
- $ref: '#/ProfileYearMonth'
- type: 'null'
summary:
oneOf:
- $ref: '#/ProfileExperienceSummary'
- type: 'null'
status:
$ref: '#/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: '#/ProfileVersion'
full_name:
oneOf:
- $ref: '#/ProfileFullNameInput'
- type: 'null'
contacts:
$ref: '#/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: '#/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: '#/ProfileRoleItemInput'
experience:
type: array
maxItems: 20
description: Work history entries.
items:
$ref: '#/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: '#/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: '#/ProfileSoftSkillItemInput'
terms:
$ref: '#/ProfileTermsInput'
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: '#/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: '#/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: '#/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: '#/SpecializationCode'
title:
type: string
minLength: 1
maxLength: 100
description: Display name in Russian. Plain text.
test_availability:
$ref: '#/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: '#/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: '#/CatalogSpecialization'
CatalogGrade:
type: object
description: Grade of the scale with its display name.
additionalProperties: false
required:
- code
- title
properties:
code:
$ref: '#/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: '#/CatalogDirection'
grades:
type: array
minItems: 1
maxItems: 10
description: Grade scale in ascending order.
items:
$ref: '#/CatalogGrade'
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
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
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: '#/ConsentPurposeCode'
state:
$ref: '#/ConsentState'
text_version:
description: Version of the consent text that the subject accepted.
allOf:
- $ref: '#/ConsentTextVersion'
source:
$ref: '#/ConsentSource'
granted_at:
$ref: '#/Timestamp'
revoked_at:
description: Moment of the revocation, or null unless `state` is `revoked`.
oneOf:
- $ref: '#/Timestamp'
- type: 'null'
revocation_source:
description: Who recorded the revocation, or null unless `state` is `revoked`.
oneOf:
- $ref: '#/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: '#/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: '#/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: '#/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: '#/ConsentRecord'
page:
$ref: '#/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: '#/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: '#/Timestamp'
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: '#/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: '#/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: '#/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: '#/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: '#/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
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
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
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: '#/ContactFieldKind'
status:
$ref: '#/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: '#/ContactAccessBlock'
- type: 'null'
terms_version:
description: Terms version of the invitation that the acceptance accepted.
allOf:
- $ref: '#/InvitationTermsVersion'
consent_text_version:
description: Version of the consent C4 text that the candidate accepted.
allOf:
- $ref: '#/ConsentTextVersion'
granted_at:
$ref: '#/Timestamp'
revoked_at:
description: Moment of the revocation, or null while the grant is active.
oneOf:
- $ref: '#/Timestamp'
- type: 'null'
revocation_reason:
description: Reason of the revocation, or null while the grant is active.
oneOf:
- $ref: '#/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: '#/ContactFieldKind'
granted_at:
$ref: '#/Timestamp'
full_name:
oneOf:
- $ref: '#/ContactFullName'
- type: 'null'
email:
oneOf:
- $ref: '#/EmailAddress'
- type: 'null'
phone:
oneOf:
- $ref: '#/ContactPhoneNumber'
- type: 'null'
telegram:
oneOf:
- $ref: '#/ContactTelegramUsername'
- type: 'null'
HealthResponse:
type: object
additionalProperties: false
required:
- status
properties:
status:
type: string
enum:
- ok
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
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: '#/ConsentPurposeCode'
text_version:
$ref: '#/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: '#/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: '#/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: '#/EmailAddress'
password:
$ref: '#/NewPassword'
scenario:
$ref: '#/AccountScenario'
consent_c1:
$ref: '#/PersonalDataConsentAcceptance'
EmailVerificationResendRequest:
type: object
description: Address that should receive a new verification link.
additionalProperties: false
required:
- email
properties:
email:
$ref: '#/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: '#/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: '#/AccountScenario'
onboarding_step:
$ref: '#/OnboardingStep'
LoginRequest:
type: object
description: Email and password of the account.
additionalProperties: false
required:
- email
- password
properties:
email:
$ref: '#/EmailAddress'
password:
$ref: '#/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: '#/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: '#/AccountScenario'
onboarding_step:
$ref: '#/OnboardingStep'
created_at:
$ref: '#/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: '#/Account'
csrf_token:
$ref: '#/CsrfToken'
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
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: '#/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: '#/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: '#/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: '#/InvitationPackageItemProvided'
- $ref: '#/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: '#/InvitationPackageItem'
equipment:
$ref: '#/InvitationPackageItem'
training:
$ref: '#/InvitationPackageItem'
health_insurance:
$ref: '#/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: '#/InvitationRoleTitle'
specialization:
$ref: '#/SpecializationCode'
grade:
$ref: '#/GradeCode'
offer_type:
$ref: '#/InvitationOfferType'
tasks:
type: array
minItems: 1
maxItems: 20
description: Work tasks of the role in the order given.
items:
$ref: '#/NeedTaskText'
team:
$ref: '#/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: '#/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: '#/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: '#/NeedLocationName'
- type: 'null'
communication_method:
$ref: '#/InvitationCommunicationMethod'
salary:
$ref: '#/SalaryRange'
package:
$ref: '#/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: '#/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: '#/InvitationContactAccessState'
fields:
type: array
maxItems: 4
uniqueItems: true
description: Kinds of contact that the read returns while `status` is `available`; empty otherwise.
items:
$ref: '#/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: '#/InvitationDeclineReason'
comment:
oneOf:
- $ref: '#/InvitationDeclineComment'
- type: 'null'
declined_at:
$ref: '#/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: '#/CandidateHandle'
need:
description: Need the invitation was built from, or null for a direct invitation.
oneOf:
- $ref: '#/InvitationNeedReference'
- type: 'null'
state:
$ref: '#/InvitationState'
expiry_reason:
description: Reason of an expiry, or null unless `state` is `expired`.
oneOf:
- $ref: '#/InvitationExpiryReason'
- type: 'null'
version:
$ref: '#/InvitationVersion'
terms_version:
$ref: '#/InvitationTermsVersion'
terms:
$ref: '#/InvitationTerms'
response_period_days:
$ref: '#/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: '#/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: '#/InvitationSalaryFit'
contact_access:
$ref: '#/InvitationContactAccess'
created_at:
$ref: '#/Timestamp'
updated_at:
$ref: '#/Timestamp'
delivered_at:
description: Moment of delivery to the candidate's inbox, or null for a draft.
oneOf:
- $ref: '#/Timestamp'
- type: 'null'
viewed_at:
description: Moment when the candidate first opened the terms, or null.
oneOf:
- $ref: '#/Timestamp'
- type: 'null'
responded_at:
description: Moment of the candidate's acceptance or decline, or null.
oneOf:
- $ref: '#/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: '#/CandidateHandle'
need:
oneOf:
- $ref: '#/InvitationNeedReference'
- type: 'null'
state:
$ref: '#/InvitationState'
expiry_reason:
oneOf:
- $ref: '#/InvitationExpiryReason'
- type: 'null'
version:
$ref: '#/InvitationVersion'
terms_version:
$ref: '#/InvitationTermsVersion'
role_title:
$ref: '#/InvitationRoleTitle'
salary:
$ref: '#/SalaryRange'
response_deadline_at:
oneOf:
- $ref: '#/Timestamp'
- type: 'null'
contact_access:
$ref: '#/InvitationContactAccess'
created_at:
$ref: '#/Timestamp'
updated_at:
$ref: '#/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: '#/OrganizationInvitationSummary'
page:
$ref: '#/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: '#/CandidateHandle'
need:
description: Need of the organization the invitation is built from, or null or absent for a direct invitation.
oneOf:
- $ref: '#/InvitationNeedReference'
- type: 'null'
response_period_days:
description: Days to answer; absent means 7, the default of the product policy.
allOf:
- $ref: '#/InvitationResponsePeriod'
terms:
$ref: '#/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: '#/InvitationVersion'
need:
oneOf:
- $ref: '#/InvitationNeedReference'
- type: 'null'
response_period_days:
$ref: '#/InvitationResponsePeriod'
terms:
$ref: '#/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: '#/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: '#/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: '#/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: '#/InvitationOrganization'
state:
$ref: '#/InvitationState'
expiry_reason:
oneOf:
- $ref: '#/InvitationExpiryReason'
- type: 'null'
version:
$ref: '#/InvitationVersion'
terms_version:
$ref: '#/InvitationTermsVersion'
terms:
$ref: '#/InvitationTerms'
response_deadline_at:
$ref: '#/Timestamp'
delivered_at:
$ref: '#/Timestamp'
viewed_at:
description: Moment of the first view recorded by ViewMyInvitation, or null when the candidate has not opened the terms.
oneOf:
- $ref: '#/Timestamp'
- type: 'null'
responded_at:
oneOf:
- $ref: '#/Timestamp'
- type: 'null'
updated_at:
$ref: '#/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: '#/ContactConsentOffer'
- type: 'null'
decline:
description: The candidate's decline, or null unless `state` is `declined`.
oneOf:
- $ref: '#/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: '#/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: '#/InvitationOrganization'
state:
$ref: '#/InvitationState'
expiry_reason:
oneOf:
- $ref: '#/InvitationExpiryReason'
- type: 'null'
version:
$ref: '#/InvitationVersion'
terms_version:
$ref: '#/InvitationTermsVersion'
role_title:
$ref: '#/InvitationRoleTitle'
salary:
$ref: '#/SalaryRange'
work_formats:
type: array
minItems: 1
maxItems: 3
uniqueItems: true
items:
$ref: '#/WorkFormat'
response_deadline_at:
$ref: '#/Timestamp'
delivered_at:
$ref: '#/Timestamp'
viewed_at:
oneOf:
- $ref: '#/Timestamp'
- type: 'null'
updated_at:
$ref: '#/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: '#/CandidateInvitationSummary'
page:
$ref: '#/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: '#/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: '#/InvitationTermsVersion'
consent_c4:
$ref: '#/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: '#/InvitationVersion'
reason:
$ref: '#/InvitationDeclineReason'
comment:
description: Optional comment for any reason, including `other`; absent or null means none.
oneOf:
- $ref: '#/InvitationDeclineComment'
- type: 'null'
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
MatchGradeFilter:
type: object
description: A confirmed category filter, never a candidate declaration.
additionalProperties: false
required:
- specialization
- grade
properties:
specialization:
$ref: '#/SpecializationCode'
grade:
$ref: '#/GradeCode'
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
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: '#/WorkFormat'
salary_compatibility:
$ref: '#/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: '#/SpecializationCode'
confirmed_grade:
description: Match only candidates with this currently confirmed grade in the selected specialization. It never matches a declared grade.
$ref: '#/GradeCode'
confirmed_category:
$ref: '#/MatchGradeFilter'
confirmation_status:
$ref: '#/MatchConfirmationStatus'
declared_grade:
description: Candidate-declared grade filter. This is a separate claim and cannot satisfy `confirmed_grade` or `confirmed_category`.
$ref: '#/GradeCode'
stack:
type: array
minItems: 1
maxItems: 4
uniqueItems: true
items:
$ref: '#/MatchSearchStackTag'
conditions:
$ref: '#/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: '#/NeedVersion'
filters:
$ref: '#/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: '#/MatchSearchFilters'
MatchSearchRequest:
oneOf:
- $ref: '#/MatchSearchByNeed'
- $ref: '#/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: '#/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: '#/WorkFormat'
- type: 'null'
salary_compatibility:
oneOf:
- $ref: '#/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: '#/SpecializationCode'
- type: 'null'
confirmed_grade:
oneOf:
- $ref: '#/GradeCode'
- type: 'null'
confirmed_category:
oneOf:
- $ref: '#/MatchGradeFilter'
- type: 'null'
confirmation_status:
oneOf:
- $ref: '#/MatchConfirmationStatus'
- type: 'null'
declared_grade:
oneOf:
- $ref: '#/GradeCode'
- type: 'null'
stack:
oneOf:
- type: array
minItems: 1
maxItems: 4
uniqueItems: true
items:
$ref: '#/MatchSearchStackTag'
- type: 'null'
conditions:
oneOf:
- $ref: '#/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: '#/MatchAppliedFilters'
MatchSearchSource:
oneOf:
- $ref: '#/MatchSearchNeedSource'
- $ref: '#/MatchSearchBankSource'
description: Search basis echoed with the response so the displayed result remains tied to its need requirements version or bank filters.
MatchStrength:
type: string
description: Coarse strength of a confirmed assessment for this specialization.
enum:
- standard
- strong
MatchCategory:
type: object
description: A confirmed category. Its specialization must equal the enclosing match entry's specialization.
additionalProperties: false
required:
- specialization
- grade
properties:
specialization:
$ref: '#/SpecializationCode'
grade:
$ref: '#/GradeCode'
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'
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.
enum:
- ml_unavailable
- cohort_below_30
- no_confirmation_for_specialization
- not_in_public_card
- need_field_unconfirmed
- no_freshness_history
- no_response_history
MatchUnknownFlag:
type: object
description: A safe, bounded explanation for one unavailable component.
additionalProperties: false
required:
- component
- reason
properties:
component:
$ref: '#/MatchUnknownComponent'
reason:
$ref: '#/MatchUnknownReason'
MatchUnknownFlags:
type: array
maxItems: 9
items:
$ref: '#/MatchUnknownFlag'
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: '#/MatchEvidenceCode'
state:
$ref: '#/MatchEvidenceState'
MatchEvidenceSummary:
type: array
maxItems: 12
items:
$ref: '#/MatchEvidenceSummaryItem'
MatchPublicStack:
type: array
maxItems: 4
uniqueItems: true
items:
$ref: '#/MatchSearchStackTag'
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: '#/MatchPublicStack'
- type: 'null'
experience_band:
oneOf:
- $ref: '#/CandidateExperienceBand'
- type: 'null'
work_formats:
oneOf:
- type: array
maxItems: 3
uniqueItems: true
items:
$ref: '#/WorkFormat'
- type: 'null'
salary_compatibility:
oneOf:
- $ref: '#/CandidateSalaryCompatibility'
- 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: '#/MatchScore'
coverage:
$ref: '#/MatchScore'
domain:
$ref: '#/MatchScore'
semantics:
$ref: '#/MatchScore'
percentile:
$ref: '#/MatchNullableScore'
competition:
$ref: '#/MatchScore'
freshness:
$ref: '#/MatchScore'
responsiveness:
$ref: '#/MatchScore'
rank_score:
$ref: '#/MatchScore'
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.
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: '#/CandidateHandle'
specialization:
$ref: '#/SpecializationCode'
confirmation_status:
type: string
enum:
- confirmed
declared_grade:
oneOf:
- $ref: '#/GradeCode'
- type: 'null'
description: Candidate-declared grade for this specialization, never a confirmation.
category:
$ref: '#/MatchCategory'
strength:
$ref: '#/MatchStrength'
public_context:
$ref: '#/MatchPublicContext'
evidence_summary:
$ref: '#/MatchEvidenceSummary'
components:
$ref: '#/MatchConfirmedComponents'
unknown_flags:
$ref: '#/MatchUnknownFlags'
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: '#/CandidateHandle'
specialization:
$ref: '#/SpecializationCode'
confirmation_status:
type: string
enum:
- unconfirmed
declared_grade:
oneOf:
- $ref: '#/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: '#/MatchPublicContext'
evidence_summary:
$ref: '#/MatchEvidenceSummary'
components:
$ref: '#/MatchUnconfirmedComponents'
unknown_flags:
$ref: '#/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: '#/MatchConfirmedCandidate'
near:
type: array
items:
$ref: '#/MatchConfirmedCandidate'
unconfirmed:
type: array
items:
$ref: '#/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
properties:
source:
$ref: '#/MatchSearchSource'
groups:
$ref: '#/MatchSearchGroups'
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: '#/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: '#/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: '#/NeedVersion'
- type: 'null'
extraction_version:
description: Extractor version for an extracted or imported value, or null for a manual value.
oneOf:
- $ref: '#/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: '#/RubAmount'
salary_to:
$ref: '#/RubAmount'
currency:
$ref: '#/CurrencyCode'
period:
$ref: '#/SalaryPeriod'
tax_basis:
$ref: '#/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: '#/NeedValueStatus'
value:
oneOf:
- $ref: '#/SpecializationCode'
- type: 'null'
source:
oneOf:
- $ref: '#/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: '#/NeedValueStatus'
value:
oneOf:
- $ref: '#/GradeCode'
- type: 'null'
source:
oneOf:
- $ref: '#/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: '#/NeedValueStatus'
value:
oneOf:
- $ref: '#/NeedDomainName'
- type: 'null'
source:
oneOf:
- $ref: '#/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: '#/NeedValueStatus'
value:
type:
- array
- 'null'
minItems: 1
maxItems: 3
uniqueItems: true
items:
$ref: '#/WorkFormat'
source:
oneOf:
- $ref: '#/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: '#/NeedValueStatus'
value:
oneOf:
- $ref: '#/NeedLocationName'
- type: 'null'
source:
oneOf:
- $ref: '#/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: '#/NeedValueStatus'
value:
oneOf:
- $ref: '#/SalaryRange'
- type: 'null'
source:
oneOf:
- $ref: '#/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: '#/SkillName'
taxonomy_code:
oneOf:
- $ref: '#/SkillTaxonomyCode'
- type: 'null'
status:
$ref: '#/NeedItemStatus'
source:
$ref: '#/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: '#/NeedTaskText'
status:
$ref: '#/NeedItemStatus'
source:
$ref: '#/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: '#/SpecializationCode'
status:
$ref: '#/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: '#/GradeCode'
status:
$ref: '#/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: '#/NeedDomainName'
status:
$ref: '#/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: '#/WorkFormat'
status:
$ref: '#/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: '#/NeedLocationName'
status:
$ref: '#/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: '#/SalaryRange'
status:
$ref: '#/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: '#/SkillName'
status:
$ref: '#/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: '#/NeedTaskText'
status:
$ref: '#/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: '#/NeedSpecialization'
grade:
$ref: '#/NeedGrade'
required_skills:
type: array
maxItems: 30
description: Required skills; each has weight 2 in skill coverage. Only confirmed skills count.
items:
$ref: '#/NeedSkill'
desired_skills:
type: array
maxItems: 30
description: Desired skills; each has weight 1 in skill coverage. Only confirmed skills count.
items:
$ref: '#/NeedSkill'
tasks:
type: array
maxItems: 20
description: Work tasks of the team in the order given.
items:
$ref: '#/NeedTask'
domain:
$ref: '#/NeedDomain'
work_formats:
$ref: '#/NeedWorkFormats'
location:
$ref: '#/NeedLocation'
salary:
$ref: '#/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: '#/NeedFieldName'
reason:
$ref: '#/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: '#/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: '#/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: '#/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: '#/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: '#/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: '#/SpecializationCode'
grade:
$ref: '#/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: '#/NeedSkillOverlap'
money:
$ref: '#/NeedMoneyFit'
supply:
$ref: '#/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: '#/NeedRecommendationStatus'
requirements_version:
$ref: '#/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: '#/NeedVersionLabel'
- type: 'null'
computed_at:
description: Time of the computation, or null unless `status` is `computed`.
oneOf:
- $ref: '#/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: '#/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: '#/NeedTitle'
source_text:
description: Text the requirements were extracted from, or null.
oneOf:
- $ref: '#/NeedSourceText'
- type: 'null'
version:
$ref: '#/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: '#/NeedVersion'
requirements:
$ref: '#/NeedRequirementSet'
readiness:
$ref: '#/NeedReadinessReport'
recommendations:
$ref: '#/NeedCategoryRecommendations'
created_at:
$ref: '#/Timestamp'
updated_at:
$ref: '#/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: '#/NeedTitle'
version:
$ref: '#/NeedVersion'
specialization:
$ref: '#/NeedSpecialization'
grade:
$ref: '#/NeedGrade'
readiness:
$ref: '#/NeedReadinessReport'
created_at:
$ref: '#/Timestamp'
updated_at:
$ref: '#/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: '#/NeedSummary'
page:
$ref: '#/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: '#/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: '#/NeedSourceText'
- type: 'null'
specialization:
oneOf:
- $ref: '#/NeedSpecializationInput'
- type: 'null'
grade:
oneOf:
- $ref: '#/NeedGradeInput'
- type: 'null'
required_skills:
type: array
maxItems: 30
items:
$ref: '#/NeedSkillInput'
desired_skills:
type: array
maxItems: 30
items:
$ref: '#/NeedSkillInput'
tasks:
type: array
maxItems: 20
items:
$ref: '#/NeedTaskInput'
domain:
oneOf:
- $ref: '#/NeedDomainInput'
- type: 'null'
work_formats:
oneOf:
- $ref: '#/NeedWorkFormatsInput'
- type: 'null'
location:
oneOf:
- $ref: '#/NeedLocationInput'
- type: 'null'
salary:
oneOf:
- $ref: '#/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: '#/NeedVersion'
title:
$ref: '#/NeedTitle'
vacancy_id:
type:
- string
- 'null'
format: uuid
description: Vacancy of the same organization to link, or null to unlink.
source_text:
oneOf:
- $ref: '#/NeedSourceText'
- type: 'null'
specialization:
oneOf:
- $ref: '#/NeedSpecializationInput'
- type: 'null'
grade:
oneOf:
- $ref: '#/NeedGradeInput'
- type: 'null'
required_skills:
type: array
maxItems: 30
items:
$ref: '#/NeedSkillInput'
desired_skills:
type: array
maxItems: 30
items:
$ref: '#/NeedSkillInput'
tasks:
type: array
maxItems: 20
items:
$ref: '#/NeedTaskInput'
domain:
oneOf:
- $ref: '#/NeedDomainInput'
- type: 'null'
work_formats:
oneOf:
- $ref: '#/NeedWorkFormatsInput'
- type: 'null'
location:
oneOf:
- $ref: '#/NeedLocationInput'
- type: 'null'
salary:
oneOf:
- $ref: '#/NeedSalaryInput'
- type: 'null'
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: '#/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: '#/EmailAddress'
- type: 'null'
phone:
description: Public phone number of the organization, or null.
oneOf:
- $ref: '#/ContactPhoneNumber'
- type: 'null'
telegram:
description: Public Telegram account of the organization, or null.
oneOf:
- $ref: '#/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: '#/OrganizationVerificationLevel'
basis:
$ref: '#/OrganizationVerificationBasis'
changed_at:
description: Moment the level was set to its current value; for a new organization, the creation time.
allOf:
- $ref: '#/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: '#/OrganizationName'
description:
description: Description of the organization, or null.
oneOf:
- $ref: '#/OrganizationDescription'
- type: 'null'
sphere:
description: Field of business of the organization, or null.
oneOf:
- $ref: '#/OrganizationSphere'
- type: 'null'
contacts:
$ref: '#/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: '#/OrganizationRepresentative'
verification_level:
$ref: '#/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: '#/OrganizationVersion'
name:
$ref: '#/OrganizationName'
description:
description: Description of the organization, or null.
oneOf:
- $ref: '#/OrganizationDescription'
- type: 'null'
sphere:
description: Field of business of the organization, or null.
oneOf:
- $ref: '#/OrganizationSphere'
- type: 'null'
contacts:
$ref: '#/OrganizationContactChannels'
representatives:
type: array
maxItems: 10
description: Representatives in the order the owner gave them.
items:
$ref: '#/OrganizationRepresentative'
verification:
$ref: '#/OrganizationVerification'
candidate_card:
$ref: '#/CandidateOrganizationCard'
created_at:
$ref: '#/Timestamp'
updated_at:
$ref: '#/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: '#/OrganizationName'
description:
oneOf:
- $ref: '#/OrganizationDescription'
- type: 'null'
sphere:
oneOf:
- $ref: '#/OrganizationSphere'
- type: 'null'
contacts:
$ref: '#/OrganizationContactChannels'
representatives:
type: array
maxItems: 10
items:
$ref: '#/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: '#/OrganizationVersion'
name:
$ref: '#/OrganizationName'
description:
oneOf:
- $ref: '#/OrganizationDescription'
- type: 'null'
sphere:
oneOf:
- $ref: '#/OrganizationSphere'
- type: 'null'
contacts:
$ref: '#/OrganizationContactChannels'
representatives:
type: array
maxItems: 10
items:
$ref: '#/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: '#/OrganizationRole'
state:
$ref: '#/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: '#/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: '#/OrganizationName'
verification_level:
$ref: '#/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: '#/OrganizationSummary'
membership:
$ref: '#/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: '#/MyOrganization'
page:
$ref: '#/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.
- 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: '#/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: '#/PublicationState'
closed_reason:
description: Why the profile is closed, or null while it is published.
oneOf:
- $ref: '#/PublicationClosedReason'
- type: 'null'
fields:
description: Card fields that organizations may read. Empty exactly when `state` is `closed`.
allOf:
- $ref: '#/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: '#/Timestamp'
- type: 'null'
version:
$ref: '#/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: '#/PublicationVersion'
state:
$ref: '#/PublicationState'
fields:
$ref: '#/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: '#/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: '#/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: '#/Timestamp'
- type: 'null'
version:
$ref: '#/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: '#/SearchStatusVersion'
value:
$ref: '#/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: '#/PrivacyOrganization'
hidden_at:
$ref: '#/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: '#/HiddenOrganization'
page:
$ref: '#/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: '#/Publication'
search_status:
$ref: '#/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.
additionalProperties: false
required:
- specialization
- grade
- strength
properties:
specialization:
$ref: '#/SpecializationCode'
grade:
$ref: '#/GradeCode'
strength:
type: string
enum:
- standard
- strong
description: Coarse strength of the authoritative confirmation.
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: '#/SpecializationCode'
confirmation_status:
type: string
enum:
- confirmed
- unconfirmed
declared_grade:
oneOf:
- $ref: '#/GradeCode'
- type: 'null'
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
CandidateWorkFormat:
type: string
enum:
- remote
- office
- hybrid
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
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: '#/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: '#/CardSelfAssessment'
experience_band:
oneOf:
- $ref: '#/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: '#/CandidateWorkFormat'
salary_compatibility:
oneOf:
- $ref: '#/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.
additionalProperties: false
required:
- state
- fields
- card
- generated_at
properties:
state:
$ref: '#/PublicationState'
fields:
$ref: '#/CardFieldSet'
card:
oneOf:
- $ref: '#/AnonymousCardContent'
- type: 'null'
generated_at:
$ref: '#/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: '#/PrivacyEventKind'
occurred_at:
$ref: '#/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: '#/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: '#/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: '#/PrivacyEvent'
page:
$ref: '#/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: '#/CardAccessKind'
occurred_at:
$ref: '#/Timestamp'
organization:
oneOf:
- $ref: '#/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: '#/CardAccess'
page:
$ref: '#/PageInfo'
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: '#/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: '#/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: '#/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
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: '#/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: '#/SpecializationCode'
self_assessed_grade:
$ref: '#/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: '#/TaskLanguage'
stack:
type: array
maxItems: 20
uniqueItems: true
description: Technology tags of the candidate in this specialization.
items:
$ref: '#/StackTag'
experience:
description: Stated experience, or null when the candidate did not state it.
oneOf:
- $ref: '#/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: '#/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: '#/QuestionnaireSpecialization'
work_context:
description: Working context, or null before the first save.
oneOf:
- $ref: '#/WorkContext'
- type: 'null'
updated_at:
description: Time of the last change, or null before the first save.
oneOf:
- $ref: '#/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: '#/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: '#/QuestionnaireSpecialization'
work_context:
$ref: '#/WorkContext'
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: '#/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: '#/SpecializationCode'
grade:
$ref: '#/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: '#/SupportCaseDescription'
object:
$ref: '#/SupportCaseObjectReference'
assessment_target:
$ref: '#/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: '#/SupportCaseDescription'
complaint_reason:
$ref: '#/SupportCaseComplaintReason'
object:
$ref: '#/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: '#/SupportCaseDescription'
object:
$ref: '#/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: '#/SupportCaseDescription'
object:
$ref: '#/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: '#/SupportCaseDescription'
assessment_target:
$ref: '#/SupportCaseAssessmentTarget'
object:
$ref: '#/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: '#/SupportCaseCreateSupport'
- $ref: '#/SupportCaseCreateComplaint'
- $ref: '#/SupportCaseCreateGradeAppeal'
- $ref: '#/SupportCaseCreateAnticheatAppeal'
- $ref: '#/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: '#/Timestamp'
answered_at:
description: Time the target was met, or null while it is not.
oneOf:
- $ref: '#/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: '#/SupportCaseDecisionOutcome'
reason:
$ref: '#/SupportCasePublicText'
decided_at:
$ref: '#/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: '#/SupportCaseEventKind'
actor:
$ref: '#/SupportCaseActorKind'
occurred_at:
$ref: '#/Timestamp'
status:
description: Status of the case after the event, or null for a reply.
oneOf:
- $ref: '#/SupportCaseStatus'
- type: 'null'
message:
description: Public text of the event, or null.
oneOf:
- $ref: '#/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: '#/SupportCaseNumber'
type:
$ref: '#/SupportCaseType'
status:
$ref: '#/SupportCaseStatus'
description:
$ref: '#/SupportCaseDescription'
object:
description: Object that the case is about, as sent on creation, or null when the case has none.
oneOf:
- $ref: '#/SupportCaseObjectReference'
- type: 'null'
assessment_target:
description: Category of a manual assessment, the optional category of a support case, or null.
oneOf:
- $ref: '#/SupportCaseAssessmentTarget'
- type: 'null'
complaint_reason:
description: Ground of a complaint, or null for other types.
oneOf:
- $ref: '#/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: '#/SupportResponseTarget'
decision:
description: Decision once the case is `resolved`, otherwise null.
oneOf:
- $ref: '#/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: '#/SupportCaseEvent'
created_at:
$ref: '#/Timestamp'
updated_at:
$ref: '#/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: '#/SupportCaseNumber'
type:
$ref: '#/SupportCaseType'
status:
$ref: '#/SupportCaseStatus'
object:
description: Object that the case is about, or null.
oneOf:
- $ref: '#/SupportCaseObjectReference'
- type: 'null'
assessment_target:
description: Category of the case, or null.
oneOf:
- $ref: '#/SupportCaseAssessmentTarget'
- type: 'null'
response_target:
$ref: '#/SupportResponseTarget'
decision_outcome:
description: Outcome of the decision once the case is `resolved`, otherwise null.
oneOf:
- $ref: '#/SupportCaseDecisionOutcome'
- type: 'null'
created_at:
$ref: '#/Timestamp'
updated_at:
$ref: '#/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: '#/SupportCaseSummary'
page:
$ref: '#/PageInfo'