feat(profile): add the manual candidate profile contract and storage
This commit is contained in:
1 parent
d21fd49a42
commit
e52ffe7bcb
97 files changed
+20442
-63
No files matched your search
@@ -3779,3 +3779,280 @@ OrganizationStaleVersion:
|
||||
code: version_conflict
|
||||
detail: The resource changed after it was read. Read it again before retrying.
|
||||
trace_id: 5c6d7e8f-9a0b-4c1d-8e3f-4a5b6c7d8e90
|
||||
NewCandidateProfile:
|
||||
summary: A candidate who has not saved the profile yet
|
||||
value:
|
||||
version: 0
|
||||
full_name:
|
||||
status: unknown
|
||||
value: null
|
||||
source: null
|
||||
contacts:
|
||||
email:
|
||||
status: unknown
|
||||
value: null
|
||||
source: null
|
||||
phone:
|
||||
status: unknown
|
||||
value: null
|
||||
source: null
|
||||
telegram:
|
||||
status: unknown
|
||||
value: null
|
||||
source: null
|
||||
stack: []
|
||||
roles: []
|
||||
experience: []
|
||||
soft_skills: []
|
||||
terms:
|
||||
location:
|
||||
status: unknown
|
||||
value: null
|
||||
source: null
|
||||
relocation:
|
||||
status: unknown
|
||||
value: null
|
||||
source: null
|
||||
salary_minimum:
|
||||
status: unknown
|
||||
value: null
|
||||
source: null
|
||||
confirmed_categories: []
|
||||
updated_at: null
|
||||
BackendCandidateProfile:
|
||||
summary: A manual Backend profile with one unconfirmed suggestion
|
||||
description: >-
|
||||
The candidate typed most values, so they are `manual`. The phone number
|
||||
and the Kafka tag are suggestions that an imported document produced
|
||||
(planned): they are `extracted`, unconfirmed, and, like every claim,
|
||||
trust level 0. The candidate claims Middle in `roles`, while the only
|
||||
confirmed category is Backend Junior from an assessment result; the two
|
||||
are separate fields and the profile never merges them. The example
|
||||
values are fictional.
|
||||
value:
|
||||
version: 3
|
||||
full_name:
|
||||
status: confirmed
|
||||
value: Anna Sokolova
|
||||
source:
|
||||
origin: manual
|
||||
trust_level: 0
|
||||
quote: null
|
||||
extraction_version: null
|
||||
confirmed_at: "2026-10-05T09:30:00Z"
|
||||
contacts:
|
||||
email:
|
||||
status: confirmed
|
||||
value: anna.sokolova@example.com
|
||||
source:
|
||||
origin: manual
|
||||
trust_level: 0
|
||||
quote: null
|
||||
extraction_version: null
|
||||
confirmed_at: "2026-10-05T09:30:00Z"
|
||||
phone:
|
||||
status: extracted
|
||||
value: "+79000000000"
|
||||
source:
|
||||
origin: extracted_from_resume
|
||||
trust_level: 0
|
||||
quote: "Tel.: +7 900 000-00-00"
|
||||
extraction_version: resume-rules.2026-10.1
|
||||
confirmed_at: null
|
||||
telegram:
|
||||
status: unknown
|
||||
value: null
|
||||
source: null
|
||||
stack:
|
||||
- tag: PostgreSQL
|
||||
status: confirmed
|
||||
source:
|
||||
origin: manual
|
||||
trust_level: 0
|
||||
quote: null
|
||||
extraction_version: null
|
||||
confirmed_at: "2026-10-05T09:30:00Z"
|
||||
- tag: Kafka
|
||||
status: extracted
|
||||
source:
|
||||
origin: extracted_from_resume
|
||||
trust_level: 0
|
||||
quote: "Event streaming with Kafka"
|
||||
extraction_version: resume-rules.2026-10.1
|
||||
confirmed_at: null
|
||||
roles:
|
||||
- specialization: backend
|
||||
self_assessed_grade: middle
|
||||
status: confirmed
|
||||
source:
|
||||
origin: manual
|
||||
trust_level: 0
|
||||
quote: null
|
||||
extraction_version: null
|
||||
confirmed_at: "2026-10-05T09:30:00Z"
|
||||
experience:
|
||||
- employer_name: Example Payments
|
||||
specialization: backend
|
||||
started_on: "2022-03"
|
||||
ended_on: null
|
||||
summary: Moved the payout service to an event model and owned its on-call rotation.
|
||||
status: confirmed
|
||||
source:
|
||||
origin: manual
|
||||
trust_level: 0
|
||||
quote: null
|
||||
extraction_version: null
|
||||
confirmed_at: "2026-10-05T09:30:00Z"
|
||||
soft_skills:
|
||||
- skill: Mentoring
|
||||
status: confirmed
|
||||
source:
|
||||
origin: manual
|
||||
trust_level: 0
|
||||
quote: null
|
||||
extraction_version: null
|
||||
confirmed_at: "2026-10-05T09:30:00Z"
|
||||
terms:
|
||||
location:
|
||||
status: confirmed
|
||||
value: Kazan
|
||||
source:
|
||||
origin: manual
|
||||
trust_level: 0
|
||||
quote: null
|
||||
extraction_version: null
|
||||
confirmed_at: "2026-10-05T09:30:00Z"
|
||||
relocation:
|
||||
status: confirmed
|
||||
value: false
|
||||
source:
|
||||
origin: manual
|
||||
trust_level: 0
|
||||
quote: null
|
||||
extraction_version: null
|
||||
confirmed_at: "2026-10-05T09:30:00Z"
|
||||
salary_minimum:
|
||||
status: confirmed
|
||||
value:
|
||||
amount: 180000
|
||||
currency: RUB
|
||||
period: month
|
||||
tax_basis: net
|
||||
source:
|
||||
origin: manual
|
||||
trust_level: 0
|
||||
quote: null
|
||||
extraction_version: null
|
||||
confirmed_at: "2026-10-05T09:30:00Z"
|
||||
confirmed_categories:
|
||||
- specialization: backend
|
||||
grade: junior
|
||||
confirmed_at: "2026-10-04T18:10:00Z"
|
||||
attempt_id: 0192b3c4-d5e6-7f80-9a1b-2c3d4e5f6a7b
|
||||
updated_at: "2026-10-05T09:30:00Z"
|
||||
BackendCandidateProfileUpdate:
|
||||
summary: Save the Backend profile over version 2
|
||||
description: >-
|
||||
The candidate keeps the phone number and the Kafka tag as unconfirmed
|
||||
suggestions by sending `extracted` with exactly their stored values, and
|
||||
confirms or sets everything else. The values are fictional.
|
||||
value:
|
||||
expected_version: 2
|
||||
full_name:
|
||||
value: Anna Sokolova
|
||||
status: confirmed
|
||||
contacts:
|
||||
email:
|
||||
value: anna.sokolova@example.com
|
||||
status: confirmed
|
||||
phone:
|
||||
value: "+79000000000"
|
||||
status: extracted
|
||||
telegram: null
|
||||
stack:
|
||||
- tag: PostgreSQL
|
||||
status: confirmed
|
||||
- tag: Kafka
|
||||
status: extracted
|
||||
roles:
|
||||
- specialization: backend
|
||||
self_assessed_grade: middle
|
||||
status: confirmed
|
||||
experience:
|
||||
- employer_name: Example Payments
|
||||
specialization: backend
|
||||
started_on: "2022-03"
|
||||
ended_on: null
|
||||
summary: Moved the payout service to an event model and owned its on-call rotation.
|
||||
status: confirmed
|
||||
soft_skills:
|
||||
- skill: Mentoring
|
||||
status: confirmed
|
||||
terms:
|
||||
location:
|
||||
value: Kazan
|
||||
status: confirmed
|
||||
relocation:
|
||||
value: false
|
||||
status: confirmed
|
||||
salary_minimum:
|
||||
value:
|
||||
amount: 180000
|
||||
currency: RUB
|
||||
period: month
|
||||
tax_basis: net
|
||||
status: confirmed
|
||||
ProfilePhoneNotE164:
|
||||
summary: The phone number is not in the E.164 format
|
||||
description: A rule of the schema. The pointer names the value inside the decision, and the body never repeats the submitted number.
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 6d7e8f9a-0b1c-4d2e-8f4a-5b6c7d8e9f01
|
||||
errors:
|
||||
- in: body
|
||||
pointer: /contacts/phone/value
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
ProfileExtractedValueChanged:
|
||||
summary: A decision extracted for a tag that is not a stored suggestion
|
||||
description: A domain rule of the server, checked after the schema. A suggestion can stay unconfirmed only with exactly its stored value; send confirmed to set a manual value.
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 7e8f9a0b-1c2d-4e3f-9a5b-6c7d8e9f0a12
|
||||
errors:
|
||||
- in: body
|
||||
pointer: /stack/1/status
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
ProfileRepeatedRole:
|
||||
summary: The same specialization appears in two roles
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 8f9a0b1c-2d3e-4f4a-8b6c-7d8e9f0a1b23
|
||||
errors:
|
||||
- in: body
|
||||
pointer: /roles/1/specialization
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
ProfileStaleVersion:
|
||||
summary: The save carried a stale expected_version
|
||||
description: The profile changed, for example in another tab, after the client read it. Nothing was changed; the client reads the profile again and reapplies its edits.
|
||||
value:
|
||||
type: urn:lincodex:problem:version_conflict
|
||||
title: Resource version conflict
|
||||
status: 412
|
||||
code: version_conflict
|
||||
detail: The resource changed after it was read. Read it again before retrying.
|
||||
trace_id: 9a0b1c2d-3e4f-4a5b-9c7d-8e9f0a1b2c34
|
||||
@@ -590,3 +590,37 @@ OrganizationVersionConflict:
|
||||
examples:
|
||||
version_conflict:
|
||||
$ref: ./examples.yml#/OrganizationStaleVersion
|
||||
ProfileValidationFailed:
|
||||
description: >-
|
||||
The body does not match the contract or violates a profile rule: an
|
||||
unknown field such as confirmed_grade, category, trust_level, or source,
|
||||
a phone number outside E.164, a Telegram username without the leading @,
|
||||
an email that is not an address, a month outside the YYYY-MM format, a
|
||||
salary that is not a positive multiple of 1000, more items than a list
|
||||
allows, a repeated tag, skill, or role specialization, a period that
|
||||
ends before it starts or lies in the future, a decision extracted for a
|
||||
value that is not a stored suggestion, or a missing or invalid
|
||||
expected_version; code validation_failed with body pointers. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at the whole body. Nothing was changed. The problem never repeats a submitted value, because the body is personal data.
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
phone_not_e164:
|
||||
$ref: ./examples.yml#/ProfilePhoneNotE164
|
||||
extracted_value_changed:
|
||||
$ref: ./examples.yml#/ProfileExtractedValueChanged
|
||||
repeated_role:
|
||||
$ref: ./examples.yml#/ProfileRepeatedRole
|
||||
ProfileVersionConflict:
|
||||
description: >-
|
||||
`expected_version` is not the current profile version; code
|
||||
version_conflict. Nothing was changed; read the profile again before
|
||||
retrying.
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
version_conflict:
|
||||
$ref: ./examples.yml#/ProfileStaleVersion
|
||||
@@ -1206,6 +1206,731 @@ AssessmentAvailability:
|
||||
description: Questionnaire specializations in questionnaire order.
|
||||
items:
|
||||
$ref: '#/AssessmentSpecializationAvailability'
|
||||
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'
|
||||
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
|
||||
- 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'
|
||||
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'
|
||||
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.
|
||||
@@ -4322,7 +5047,7 @@ WorkFormat:
|
||||
- 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.
|
||||
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
|
||||
@@ -4337,7 +5062,7 @@ WorkContext:
|
||||
$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.'
|
||||
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
|
||||
@@ -4357,7 +5082,7 @@ CandidateExperience:
|
||||
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.'
|
||||
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
|
||||
|
||||
@@ -0,0 +1,933 @@
|
||||
schemas:
|
||||
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: "#/schemas/ProfileClaimOrigin"
|
||||
trust_level:
|
||||
$ref: "#/schemas/ProfileClaimTrustLevel"
|
||||
quote:
|
||||
description: >-
|
||||
Excerpt of the imported document that supports the value, or null
|
||||
for a manual value and for an extracted value that the extractor
|
||||
did not tie to one excerpt.
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimQuote"
|
||||
- type: "null"
|
||||
extraction_version:
|
||||
description: >-
|
||||
Extractor version for an extracted or imported value, or null for
|
||||
a manual value.
|
||||
oneOf:
|
||||
- $ref: "./need_schemas.yml#/schemas/NeedVersionLabel"
|
||||
- type: "null"
|
||||
confirmed_at:
|
||||
description: >-
|
||||
Time the candidate typed or confirmed the value, or null while the
|
||||
value is an unconfirmed suggestion.
|
||||
oneOf:
|
||||
- $ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
- type: "null"
|
||||
ProfileLocationName:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 100
|
||||
pattern: '^\S(?:.*\S)?$'
|
||||
description: >-
|
||||
City or region where the candidate lives or wants to work, as free
|
||||
text. It is personal data of the candidate and never a street
|
||||
address. It has no leading or trailing whitespace and no line breaks.
|
||||
Plain text; clients show it as text, never as HTML.
|
||||
ProfileSalaryMinimum:
|
||||
type: object
|
||||
description: >-
|
||||
The lowest salary that the candidate accepts, in whole rubles with its
|
||||
base: the currency, the pay period, and the tax basis. It is private
|
||||
to the candidate: no organization reads it, and the invitation only
|
||||
shows a compatibility indicator that the server derives from it. It
|
||||
is personal data. The amount is a positive multiple of 1000.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- amount
|
||||
- currency
|
||||
- period
|
||||
- tax_basis
|
||||
properties:
|
||||
amount:
|
||||
$ref: "./need_schemas.yml#/schemas/RubAmount"
|
||||
currency:
|
||||
$ref: "./need_schemas.yml#/schemas/CurrencyCode"
|
||||
period:
|
||||
$ref: "./need_schemas.yml#/schemas/SalaryPeriod"
|
||||
tax_basis:
|
||||
$ref: "./need_schemas.yml#/schemas/SalaryTaxBasis"
|
||||
ProfileSoftSkill:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 50
|
||||
pattern: '^\S(?:.*\S)?$'
|
||||
description: >-
|
||||
Soft skill as the candidate wrote it, for example "Mentoring" or
|
||||
"Negotiation". The platform has no soft skill taxonomy, so the text is
|
||||
free; it never changes a category or a grade. It has no leading or
|
||||
trailing whitespace and no line breaks. The server compares skills
|
||||
without regard to letter case. Plain text; clients show it as text,
|
||||
never as HTML.
|
||||
ProfileEmployerName:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 200
|
||||
pattern: '^\S(?:.*\S)?$'
|
||||
description: >-
|
||||
Name of the employer in one experience entry, as the candidate wrote
|
||||
it. It is personal data of the candidate's career. It has no leading
|
||||
or trailing whitespace and no line breaks. Plain text; clients show
|
||||
it as text, never as HTML.
|
||||
ProfileExperienceSummary:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 1000
|
||||
description: >-
|
||||
Tasks and results of the candidate in one experience entry. It
|
||||
describes the work rather than a job title. It may contain line
|
||||
breaks and personal data of the candidate; it must not contain
|
||||
personal data of other people. Plain text; clients show it as text,
|
||||
never as HTML.
|
||||
ProfileYearMonth:
|
||||
type: string
|
||||
minLength: 7
|
||||
maxLength: 7
|
||||
pattern: "^[0-9]{4}-(0[1-9]|1[0-2])$"
|
||||
description: >-
|
||||
Calendar month in the `YYYY-MM` format, for example 2024-03. An
|
||||
experience period has month precision only, so the contract holds no
|
||||
exact date of employment. The server rejects a month that lies in the
|
||||
future.
|
||||
examples:
|
||||
- "2024-03"
|
||||
ProfileFullNameClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Full name of the candidate with its confirmation state and provenance.
|
||||
The value is personal data. It is disclosed to one organization only
|
||||
through the contact grant of the consent C4 and never appears in an
|
||||
organization-visible schema. `value` and `source` are null exactly
|
||||
when `status` is `unknown`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
oneOf:
|
||||
- $ref: "./contact_grant_schemas.yml#/schemas/ContactFullName"
|
||||
- type: "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfileEmailClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Contact email of the candidate with its confirmation state and
|
||||
provenance. It is personal data. It is a contact channel that the
|
||||
candidate gives, not the login of the account: the two may differ, the
|
||||
server never sends mail to it and never verifies it. `value` and
|
||||
`source` are null exactly when `status` is `unknown`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
oneOf:
|
||||
- $ref: "./identity_schemas.yml#/schemas/EmailAddress"
|
||||
- type: "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfilePhoneClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Contact phone number of the candidate with its confirmation state and
|
||||
provenance. It is personal data, stored in the E.164 format of the
|
||||
contact disclosure. `value` and `source` are null exactly when
|
||||
`status` is `unknown`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
oneOf:
|
||||
- $ref: "./contact_grant_schemas.yml#/schemas/ContactPhoneNumber"
|
||||
- type: "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfileTelegramClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Telegram username of the candidate with its confirmation state and
|
||||
provenance. It is personal data, stored with the leading @ of the
|
||||
contact disclosure. `value` and `source` are null exactly when
|
||||
`status` is `unknown`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
oneOf:
|
||||
- $ref: "./contact_grant_schemas.yml#/schemas/ContactTelegramUsername"
|
||||
- type: "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfileLocationClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Place of the candidate with its confirmation state and provenance. It
|
||||
is personal data. `value` and `source` are null exactly when `status`
|
||||
is `unknown`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileLocationName"
|
||||
- type: "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfileRelocationClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Whether the candidate is ready to relocate, with its confirmation
|
||||
state and provenance. `value` and `source` are null exactly when
|
||||
`status` is `unknown`; the server never assumes an answer.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
type:
|
||||
- boolean
|
||||
- "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfileSalaryMinimumClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Lowest acceptable salary with its confirmation state and provenance.
|
||||
It is personal data that no organization reads. `value` and `source`
|
||||
are null exactly when `status` is `unknown`; the server never
|
||||
substitutes zero or a market estimate.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileSalaryMinimum"
|
||||
- type: "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfileContacts:
|
||||
type: object
|
||||
description: >-
|
||||
Contact channels of the candidate. Each channel is a claim of its own,
|
||||
and the candidate fills in any subset. The kinds are the ones that
|
||||
the contact disclosure (consent C4) can pass on, with the same value
|
||||
formats, so a disclosure never has to convert or drop a stored value;
|
||||
adding a kind, such as a link to a code repository, is a contract
|
||||
change in both places. Contacts leave the profile only through a
|
||||
contact grant, never in a card or a search result. All values are
|
||||
personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- email
|
||||
- phone
|
||||
- telegram
|
||||
properties:
|
||||
email:
|
||||
$ref: "#/schemas/ProfileEmailClaim"
|
||||
phone:
|
||||
$ref: "#/schemas/ProfilePhoneClaim"
|
||||
telegram:
|
||||
$ref: "#/schemas/ProfileTelegramClaim"
|
||||
ProfileTerms:
|
||||
type: object
|
||||
description: >-
|
||||
Conditions that the candidate wants: the place, readiness to relocate,
|
||||
and the lowest salary. Acceptable work formats are not repeated here;
|
||||
they are the `work_formats` of the questionnaire `WorkContext`, the
|
||||
only place that holds them. These are the candidate's wishes, never
|
||||
the terms of an invitation, which an organization offers and which
|
||||
the invitation contract describes.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- location
|
||||
- relocation
|
||||
- salary_minimum
|
||||
properties:
|
||||
location:
|
||||
$ref: "#/schemas/ProfileLocationClaim"
|
||||
relocation:
|
||||
$ref: "#/schemas/ProfileRelocationClaim"
|
||||
salary_minimum:
|
||||
$ref: "#/schemas/ProfileSalaryMinimumClaim"
|
||||
ProfileStackItem:
|
||||
type: object
|
||||
description: >-
|
||||
One technology tag of the candidate's stack with its confirmation state
|
||||
and provenance. The profile stack is one list for the whole profile;
|
||||
the questionnaire holds the tags of each chosen specialization with the
|
||||
same `StackTag` meaning, and the two lists are independent: the server
|
||||
never copies one into the other. A tag is a descriptive attribute and
|
||||
never forms a category.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- tag
|
||||
- status
|
||||
- source
|
||||
properties:
|
||||
tag:
|
||||
$ref: "./questionnaire_schemas.yml#/schemas/StackTag"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
source:
|
||||
$ref: "#/schemas/ProfileClaimSource"
|
||||
ProfileSoftSkillItem:
|
||||
type: object
|
||||
description: >-
|
||||
One soft skill of the candidate with its confirmation state and
|
||||
provenance. It is a claim; no assessment checks it.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- skill
|
||||
- status
|
||||
- source
|
||||
properties:
|
||||
skill:
|
||||
$ref: "#/schemas/ProfileSoftSkill"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
source:
|
||||
$ref: "#/schemas/ProfileClaimSource"
|
||||
ProfileRoleItem:
|
||||
type: object
|
||||
description: >-
|
||||
One role of the candidate: a specialization of the catalog with the
|
||||
grade that the candidate claims for it. `self_assessed_grade` is a
|
||||
claim, the same one that the questionnaire calls `self_assessed_grade`
|
||||
for its at most two chosen specializations: it influences nothing but
|
||||
the display and never becomes a confirmed grade or a category. The
|
||||
questionnaire value starts the assessment and the profile value is what
|
||||
the profile shows; the two are saved separately and the server never
|
||||
copies one into the other. A confirmed grade comes only from an
|
||||
assessment result and appears in `confirmed_categories` of the profile,
|
||||
never in a role; unknown fields such as `confirmed_grade` or `category`
|
||||
are rejected.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- specialization
|
||||
- self_assessed_grade
|
||||
- status
|
||||
- source
|
||||
properties:
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
self_assessed_grade:
|
||||
description: >-
|
||||
Grade that the candidate claims in the specialization, or null when
|
||||
the candidate names none.
|
||||
oneOf:
|
||||
- $ref: "./catalog_schemas.yml#/schemas/GradeCode"
|
||||
- type: "null"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
source:
|
||||
$ref: "#/schemas/ProfileClaimSource"
|
||||
ProfileExperienceItem:
|
||||
type: object
|
||||
description: >-
|
||||
One entry of the candidate's work history with its confirmation state
|
||||
and provenance. An entry describes the work by its specialization and
|
||||
tasks rather than by a job title, and it is a claim of trust level 0.
|
||||
It is different from the `CandidateExperience` of the questionnaire,
|
||||
which holds only the total months of commercial and academic
|
||||
experience of a chosen specialization as a hint for the assessment:
|
||||
the two are saved separately, and the server neither adds the entries
|
||||
up for the questionnaire nor fills the entries from it. An entry is
|
||||
personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- employer_name
|
||||
- specialization
|
||||
- started_on
|
||||
- ended_on
|
||||
- summary
|
||||
- status
|
||||
- source
|
||||
properties:
|
||||
employer_name:
|
||||
description: Employer of the entry, or null when the candidate gives none.
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileEmployerName"
|
||||
- type: "null"
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
started_on:
|
||||
$ref: "#/schemas/ProfileYearMonth"
|
||||
ended_on:
|
||||
description: >-
|
||||
Last month of the work, or null when the candidate still works
|
||||
there. It is not earlier than `started_on`.
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileYearMonth"
|
||||
- type: "null"
|
||||
summary:
|
||||
description: Tasks and results of the entry, or null when the candidate gives none.
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileExperienceSummary"
|
||||
- type: "null"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
source:
|
||||
$ref: "#/schemas/ProfileClaimSource"
|
||||
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: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
grade:
|
||||
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
|
||||
confirmed_at:
|
||||
$ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
description: >-
|
||||
Assessment attempt whose result confirmed the grade. The attempt
|
||||
belongs to the candidate.
|
||||
CandidateProfile:
|
||||
type: object
|
||||
description: >-
|
||||
The private profile of the current candidate: full name and contacts,
|
||||
stack, roles, work experience, soft skills, and desired terms, each
|
||||
value with its confirmation state and provenance. It is personal data
|
||||
that only the candidate reads. It is never an organization-visible
|
||||
schema: an organization sees a candidate only through the anonymous
|
||||
card and, after an accepted invitation, through the contact grant, and
|
||||
no organization schema refers to this one.
|
||||
|
||||
Every value is a claim of trust level 0. The `self_assessed_grade` of a
|
||||
role is what the candidate says; the `confirmed_categories` list is
|
||||
what assessment results established, and the two are never mixed. A
|
||||
candidate who has not saved the profile gets version 0, every single
|
||||
field `unknown`, empty lists, and null `updated_at`.
|
||||
|
||||
The profile is manual by nature and complete without a file: no field
|
||||
requires a resume, the ML service, or an FSP account, and a candidate
|
||||
with none of them has the same fields. Work formats live in the
|
||||
questionnaire; a candidate's assessment starts from the questionnaire,
|
||||
not from this profile.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- version
|
||||
- full_name
|
||||
- contacts
|
||||
- stack
|
||||
- roles
|
||||
- experience
|
||||
- soft_skills
|
||||
- terms
|
||||
- confirmed_categories
|
||||
- updated_at
|
||||
properties:
|
||||
version:
|
||||
$ref: "#/schemas/ProfileVersion"
|
||||
full_name:
|
||||
$ref: "#/schemas/ProfileFullNameClaim"
|
||||
contacts:
|
||||
$ref: "#/schemas/ProfileContacts"
|
||||
stack:
|
||||
type: array
|
||||
maxItems: 30
|
||||
description: >-
|
||||
Technology tags in the order the candidate gave them, each tag at
|
||||
most once without regard to letter case.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileStackItem"
|
||||
roles:
|
||||
type: array
|
||||
maxItems: 9
|
||||
description: >-
|
||||
Roles in the order the candidate gave them, each specialization at
|
||||
most once.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileRoleItem"
|
||||
experience:
|
||||
type: array
|
||||
maxItems: 20
|
||||
description: Work history entries in the order the candidate gave them.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileExperienceItem"
|
||||
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: "#/schemas/ProfileSoftSkillItem"
|
||||
terms:
|
||||
$ref: "#/schemas/ProfileTerms"
|
||||
confirmed_categories:
|
||||
type: array
|
||||
maxItems: 9
|
||||
description: >-
|
||||
Categories that assessment results confirmed, at most one per
|
||||
specialization, in catalog order. Read-only and empty until an
|
||||
assessment confirms a grade.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileConfirmedCategory"
|
||||
updated_at:
|
||||
description: Time of the last change, or null before the first save.
|
||||
oneOf:
|
||||
- $ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
- type: "null"
|
||||
ProfileFullNameInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about the full name in a request; see CandidateProfileUpdate
|
||||
for the rules of `status`. The value is personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
$ref: "./contact_grant_schemas.yml#/schemas/ContactFullName"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileEmailInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about the contact email in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`. The value is
|
||||
personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
$ref: "./identity_schemas.yml#/schemas/EmailAddress"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfilePhoneInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about the contact phone number in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`. The value is
|
||||
personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
$ref: "./contact_grant_schemas.yml#/schemas/ContactPhoneNumber"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileTelegramInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about the Telegram username in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`. The value is
|
||||
personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
$ref: "./contact_grant_schemas.yml#/schemas/ContactTelegramUsername"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileLocationInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about the place in a request; see CandidateProfileUpdate for
|
||||
the rules of `status`. The value is personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
$ref: "#/schemas/ProfileLocationName"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileRelocationInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about readiness to relocate in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
type: boolean
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileSalaryMinimumInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about the lowest salary in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`. The value is
|
||||
personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
$ref: "#/schemas/ProfileSalaryMinimum"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileContactsInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decisions about the contact channels in a request. A channel sent as
|
||||
null is unknown: it is removed if it was set.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- email
|
||||
- phone
|
||||
- telegram
|
||||
properties:
|
||||
email:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileEmailInput"
|
||||
- type: "null"
|
||||
phone:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfilePhoneInput"
|
||||
- type: "null"
|
||||
telegram:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileTelegramInput"
|
||||
- type: "null"
|
||||
ProfileTermsInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decisions about the desired terms in a request. A field sent as null
|
||||
is unknown: it is removed if it was set.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- location
|
||||
- relocation
|
||||
- salary_minimum
|
||||
properties:
|
||||
location:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileLocationInput"
|
||||
- type: "null"
|
||||
relocation:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileRelocationInput"
|
||||
- type: "null"
|
||||
salary_minimum:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileSalaryMinimumInput"
|
||||
- type: "null"
|
||||
ProfileStackItemInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about one stack tag in a request; see CandidateProfileUpdate
|
||||
for the rules of `status`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- tag
|
||||
- status
|
||||
properties:
|
||||
tag:
|
||||
$ref: "./questionnaire_schemas.yml#/schemas/StackTag"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileSoftSkillItemInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about one soft skill in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- skill
|
||||
- status
|
||||
properties:
|
||||
skill:
|
||||
$ref: "#/schemas/ProfileSoftSkill"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileRoleItemInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about one role in a request; see CandidateProfileUpdate for
|
||||
the rules of `status`. The object has no confirmed grade and no
|
||||
category: unknown fields are rejected.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- specialization
|
||||
- self_assessed_grade
|
||||
- status
|
||||
properties:
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
self_assessed_grade:
|
||||
description: Grade that the candidate claims, or null when the candidate names none.
|
||||
oneOf:
|
||||
- $ref: "./catalog_schemas.yml#/schemas/GradeCode"
|
||||
- type: "null"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileExperienceItemInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about one work history entry in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`. The server also
|
||||
requires `ended_on` not to precede `started_on` and no month to lie in
|
||||
the future, and answers 400 with the pointer of the month.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- employer_name
|
||||
- specialization
|
||||
- started_on
|
||||
- ended_on
|
||||
- summary
|
||||
- status
|
||||
properties:
|
||||
employer_name:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileEmployerName"
|
||||
- type: "null"
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
started_on:
|
||||
$ref: "#/schemas/ProfileYearMonth"
|
||||
ended_on:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileYearMonth"
|
||||
- type: "null"
|
||||
summary:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileExperienceSummary"
|
||||
- type: "null"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
CandidateProfileUpdate:
|
||||
type: object
|
||||
description: >-
|
||||
Complete new state of the candidate profile. It replaces every stored
|
||||
value as a whole: a single field sent as null is unknown and is removed,
|
||||
and a list replaces the stored list. The body is personal data.
|
||||
|
||||
Each value carries a decision `status`. `confirmed` sets a manual value
|
||||
or confirms a stored suggestion; confirming a suggestion with exactly
|
||||
its stored value keeps its origin and quote, and any other value makes
|
||||
the claim manual. `extracted` keeps a stored suggestion unconfirmed and
|
||||
is accepted only with exactly the stored value; any other use answers
|
||||
400 with the pointer of that status, for example `/stack/1/status`. The
|
||||
provenance, the trust level, and the confirmed categories are not part
|
||||
of the request, and unknown fields are rejected, so a request can
|
||||
neither mark a claim as verified nor write a confirmed grade or a
|
||||
category.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- expected_version
|
||||
- full_name
|
||||
- contacts
|
||||
- stack
|
||||
- roles
|
||||
- experience
|
||||
- soft_skills
|
||||
- terms
|
||||
properties:
|
||||
expected_version:
|
||||
$ref: "#/schemas/ProfileVersion"
|
||||
full_name:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileFullNameInput"
|
||||
- type: "null"
|
||||
contacts:
|
||||
$ref: "#/schemas/ProfileContactsInput"
|
||||
stack:
|
||||
type: array
|
||||
maxItems: 30
|
||||
description: >-
|
||||
Technology tags. The schema limits the count; the server also
|
||||
answers 400 with the pointer of a tag that repeats an earlier one
|
||||
without regard to letter case, for example `/stack/2/tag`.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileStackItemInput"
|
||||
roles:
|
||||
type: array
|
||||
maxItems: 9
|
||||
description: >-
|
||||
Roles. The server answers 400 with the pointer of a role whose
|
||||
specialization repeats an earlier one, for example
|
||||
`/roles/1/specialization`.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileRoleItemInput"
|
||||
experience:
|
||||
type: array
|
||||
maxItems: 20
|
||||
description: Work history entries.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileExperienceItemInput"
|
||||
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: "#/schemas/ProfileSoftSkillItemInput"
|
||||
terms:
|
||||
$ref: "#/schemas/ProfileTermsInput"
|
||||
@@ -34,7 +34,9 @@ schemas:
|
||||
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.
|
||||
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
|
||||
@@ -52,7 +54,10 @@ schemas:
|
||||
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.
|
||||
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
|
||||
@@ -82,7 +87,12 @@ schemas:
|
||||
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.
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user