90 lines
11 KiB
TypeScript
90 lines
11 KiB
TypeScript
/**
|
|
* Generated by orval 🍺
|
|
* Do not edit manually.
|
|
* Lincodex API
|
|
* OpenAPI spec version: 0.1.0
|
|
*/
|
|
import * as zod from 'zod';
|
|
|
|
export const matchConfirmedCandidateCandidateHandleMin = 47;
|
|
export const matchConfirmedCandidateCandidateHandleMax = 47;
|
|
|
|
|
|
export const matchConfirmedCandidateCandidateHandleRegExp = new RegExp('^cv1_[A-Za-z0-9_-]{43}$');
|
|
export const matchConfirmedCandidatePublicContextStackOneMax = 4;
|
|
|
|
export const matchConfirmedCandidatePublicContextWorkFormatsOneMax = 3;
|
|
|
|
export const matchConfirmedCandidateEvidenceSummaryMax = 12;
|
|
|
|
export const matchConfirmedCandidateComponentsFitMin = 0;
|
|
export const matchConfirmedCandidateComponentsFitMax = 1;
|
|
|
|
export const matchConfirmedCandidateComponentsCoverageMin = 0;
|
|
export const matchConfirmedCandidateComponentsCoverageMax = 1;
|
|
|
|
export const matchConfirmedCandidateComponentsDomainMin = 0;
|
|
export const matchConfirmedCandidateComponentsDomainMax = 1;
|
|
|
|
export const matchConfirmedCandidateComponentsSemanticsMin = 0;
|
|
export const matchConfirmedCandidateComponentsSemanticsMax = 1;
|
|
|
|
export const matchConfirmedCandidateComponentsPercentileOneMin = 0;
|
|
export const matchConfirmedCandidateComponentsPercentileOneMax = 1;
|
|
|
|
export const matchConfirmedCandidateComponentsCompetitionMin = 0;
|
|
export const matchConfirmedCandidateComponentsCompetitionMax = 1;
|
|
|
|
export const matchConfirmedCandidateComponentsFreshnessMin = 0;
|
|
export const matchConfirmedCandidateComponentsFreshnessMax = 1;
|
|
|
|
export const matchConfirmedCandidateComponentsResponsivenessMin = 0;
|
|
export const matchConfirmedCandidateComponentsResponsivenessMax = 1;
|
|
|
|
export const matchConfirmedCandidateComponentsRankScoreMin = 0;
|
|
export const matchConfirmedCandidateComponentsRankScoreMax = 1;
|
|
|
|
export const matchConfirmedCandidateUnknownFlagsMax = 9;
|
|
|
|
|
|
export const MatchConfirmedCandidate = zod.object({
|
|
"candidate_handle": zod.string().min(matchConfirmedCandidateCandidateHandleMin).max(matchConfirmedCandidateCandidateHandleMax).regex(matchConfirmedCandidateCandidateHandleRegExp).describe('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.'),
|
|
"specialization": zod.enum(['backend', 'frontend', 'mobile', 'network_engineer', 'devops_sre', 'data_analyst', 'ds_ml', 'information_security', 'qa']).describe('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.\n\n- backend: Backend (development).\n- frontend: Frontend (development).\n- mobile: Mobile (development).\n- network_engineer: Network Engineer (infrastructure).\n- devops_sre: DevOps/SRE (infrastructure).\n- data_analyst: Data Analyst (data).\n- ds_ml: DS/ML (data).\n- information_security: Information security (security).\n- qa: QA (quality).\n\nAdding a value is a contract change; renaming or removing one is a breaking change.'),
|
|
"confirmation_status": zod.enum(['confirmed']),
|
|
"declared_grade": zod.union([zod.enum(['intern', 'junior', 'middle', 'senior']).describe('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.'),zod.null()]).describe('Candidate-declared grade for this specialization, never a confirmation.'),
|
|
"category": zod.object({
|
|
"specialization": zod.enum(['backend', 'frontend', 'mobile', 'network_engineer', 'devops_sre', 'data_analyst', 'ds_ml', 'information_security', 'qa']).describe('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.\n\n- backend: Backend (development).\n- frontend: Frontend (development).\n- mobile: Mobile (development).\n- network_engineer: Network Engineer (infrastructure).\n- devops_sre: DevOps/SRE (infrastructure).\n- data_analyst: Data Analyst (data).\n- ds_ml: DS/ML (data).\n- information_security: Information security (security).\n- qa: QA (quality).\n\nAdding a value is a contract change; renaming or removing one is a breaking change.'),
|
|
"grade": zod.enum(['intern', 'junior', 'middle', 'senior']).describe('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.'),
|
|
"basis": zod.enum(['synthetic_demo']).describe('What the measurement rests on.\n\n- synthetic_demo: a demonstration category from a synthetic reviewed bank. It shows the mechanics and is not a validated measurement.')
|
|
}).describe('A confirmed category. Its specialization must equal the enclosing match entry\'s specialization. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category, which an organization must read as one and never as a standard confirmation.'),
|
|
"strength": zod.enum(['standard', 'strong']).describe('Coarse strength of a confirmed assessment for this specialization.'),
|
|
"public_context": zod.object({
|
|
"stack": zod.union([zod.array(zod.enum(['go', 'postgresql', 'kafka', 'docker']).describe('A stack code that the anonymous card may expose. Search filters do not accept arbitrary profile text or candidate-provided evidence.')).max(matchConfirmedCandidatePublicContextStackOneMax),zod.null()]),
|
|
"experience_band": zod.union([zod.enum(['0_1', '1_3', '3_6', '6_plus', '0_3', '3_plus']).describe('Coarse total experience bucket. Rare combinations may be generalized to 0_3 or 3_plus before they are returned.'),zod.null()]),
|
|
"work_formats": zod.union([zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).max(matchConfirmedCandidatePublicContextWorkFormatsOneMax),zod.null()]),
|
|
"salary_compatibility": zod.union([zod.enum(['compatible', 'not_compatible']).describe('A coarse compatibility result only. No salary amount, minimum, range, or threshold is part of the anonymous card.'),zod.null()])
|
|
}).describe('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.'),
|
|
"evidence_summary": zod.array(zod.object({
|
|
"code": zod.enum(['confirmed_category', 'required_skill_evidence', 'desired_skill_evidence', 'domain_alignment', 'task_alignment', 'work_conditions_match', 'salary_compatibility', 'declared_grade']).describe('Template code for an explanation derived from allowed evidence. It carries no free text, raw answer, or reason for withheld FSP data.'),
|
|
"state": zod.enum(['supports', 'partial', 'gap', 'declared_only'])
|
|
}).describe('A templated, non-text evidence explanation.')).max(matchConfirmedCandidateEvidenceSummaryMax),
|
|
"components": zod.object({
|
|
"fit": zod.number().min(matchConfirmedCandidateComponentsFitMin).max(matchConfirmedCandidateComponentsFitMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
|
"coverage": zod.number().min(matchConfirmedCandidateComponentsCoverageMin).max(matchConfirmedCandidateComponentsCoverageMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
|
"domain": zod.number().min(matchConfirmedCandidateComponentsDomainMin).max(matchConfirmedCandidateComponentsDomainMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
|
"semantics": zod.number().min(matchConfirmedCandidateComponentsSemanticsMin).max(matchConfirmedCandidateComponentsSemanticsMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
|
"percentile": zod.union([zod.number().min(matchConfirmedCandidateComponentsPercentileOneMin).max(matchConfirmedCandidateComponentsPercentileOneMax),zod.null()]).describe('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`.'),
|
|
"competition": zod.number().min(matchConfirmedCandidateComponentsCompetitionMin).max(matchConfirmedCandidateComponentsCompetitionMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
|
"freshness": zod.number().min(matchConfirmedCandidateComponentsFreshnessMin).max(matchConfirmedCandidateComponentsFreshnessMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
|
"responsiveness": zod.number().min(matchConfirmedCandidateComponentsResponsivenessMin).max(matchConfirmedCandidateComponentsResponsivenessMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
|
"rank_score": zod.number().min(matchConfirmedCandidateComponentsRankScoreMin).max(matchConfirmedCandidateComponentsRankScoreMax).describe('A normalized FR09 ranking component from 0 to 1.')
|
|
}).describe('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`.'),
|
|
"unknown_flags": zod.array(zod.object({
|
|
"component": zod.enum(['semantics', 'percentile', 'assessment', 'freshness', 'responsiveness', 'experience_band', 'work_formats', 'salary_compatibility', 'domain']).describe('Ranking or public-card component whose value is unknown.'),
|
|
"reason": zod.enum(['ml_unavailable', 'cohort_below_30', 'no_confirmation_for_specialization', 'not_in_public_card', 'need_field_unconfirmed', 'no_freshness_history', 'no_response_history', 'percentile_not_computed']).describe('Bounded explanation for an unknown component, not a hiding reason. `cohort_below_30` is reported only while the comparable real cohort of the category is smaller than the versioned minimum; once the cohort reaches the minimum but the percentile is still not computed, the reason is `percentile_not_computed`. In both cases T is the neutral 0.5.')
|
|
}).describe('A safe, bounded explanation for one unavailable component.')).max(matchConfirmedCandidateUnknownFlagsMax)
|
|
}).describe('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.')
|
|
|
|
export type MatchConfirmedCandidate = zod.input<typeof MatchConfirmedCandidate>;
|
|
export type MatchConfirmedCandidateOutput = zod.output<typeof MatchConfirmedCandidate>;
|