feat: define anonymous match search contract
This commit is contained in:
1 parent
e4f24fa202
commit
6ad4402ff4
66 files changed
+13047
-36
No files matched your search
@@ -21,6 +21,11 @@ import type {
|
||||
} from 'msw';
|
||||
|
||||
import type {
|
||||
MatchAppliedConditions,
|
||||
MatchGradeFilter,
|
||||
MatchSearchBankSource,
|
||||
MatchSearchNeedSource,
|
||||
MatchSearchResponse,
|
||||
MyOrganizationList,
|
||||
Organization
|
||||
} from '../../schemas';
|
||||
@@ -34,6 +39,16 @@ export const getGetOrganizationResponseMock = (overrideResponse: Partial<Extract
|
||||
|
||||
export const getUpdateOrganizationResponseMock = (overrideResponse: Partial<Extract<Organization, object>> = {}): Organization => ({id: faker.string.uuid(), version: faker.number.int({min: 1}), name: fakeFromPattern("^\\S(?:[^\\n\\r]*\\S)?$", {minLength: 1, maxLength: 200}), description: faker.helpers.arrayElement([faker.string.alpha({length: {min: 1, max: 2000}}),null,]), sphere: faker.helpers.arrayElement([fakeFromPattern("^\\S(?:.*\\S)?$", {minLength: 1, maxLength: 100}),null,]), contacts: {website: faker.helpers.arrayElement([fakeFromPattern("^https://[^\\s/?#@]+(?:[/?#][^\\s]*)?$", {minLength: 9, maxLength: 300}),null,]), email: faker.helpers.arrayElement([faker.internet.email(),null,]), phone: faker.helpers.arrayElement([fakeFromPattern("^\\+[1-9][0-9]{6,14}$", {minLength: 8, maxLength: 16}),null,]), telegram: faker.helpers.arrayElement([fakeFromPattern("^@[A-Za-z0-9_]{5,32}$", {minLength: 6, maxLength: 33}),null,])}, representatives: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({name: fakeFromPattern("^\\S(?:.*\\S)?$", {minLength: 1, maxLength: 100}), job_title: fakeFromPattern("^\\S(?:.*\\S)?$", {minLength: 1, maxLength: 100})})), verification: {level: faker.helpers.arrayElement(['e0','e1','e2','e3'] as const), basis: faker.helpers.arrayElement(['confirmed_email','corporate_domain','requisites_and_authority','manual_review','partner_status'] as const), changed_at: faker.date.past().toISOString().slice(0, 19) + 'Z'}, candidate_card: {id: faker.string.uuid(), name: fakeFromPattern("^\\S(?:[^\\n\\r]*\\S)?$", {minLength: 1, maxLength: 200}), description: faker.helpers.arrayElement([faker.string.alpha({length: {min: 1, max: 2000}}),null,]), sphere: faker.helpers.arrayElement([fakeFromPattern("^\\S(?:.*\\S)?$", {minLength: 1, maxLength: 100}),null,]), contacts: {website: faker.helpers.arrayElement([fakeFromPattern("^https://[^\\s/?#@]+(?:[/?#][^\\s]*)?$", {minLength: 9, maxLength: 300}),null,]), email: faker.helpers.arrayElement([faker.internet.email(),null,]), phone: faker.helpers.arrayElement([fakeFromPattern("^\\+[1-9][0-9]{6,14}$", {minLength: 8, maxLength: 16}),null,]), telegram: faker.helpers.arrayElement([fakeFromPattern("^@[A-Za-z0-9_]{5,32}$", {minLength: 6, maxLength: 33}),null,])}, representatives: faker.helpers.arrayElement([Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({name: fakeFromPattern("^\\S(?:.*\\S)?$", {minLength: 1, maxLength: 100}), job_title: fakeFromPattern("^\\S(?:.*\\S)?$", {minLength: 1, maxLength: 100})})), null]), verification_level: faker.helpers.arrayElement(['e0','e1','e2','e3'] as const)}, created_at: faker.date.past().toISOString().slice(0, 19) + 'Z', updated_at: faker.date.past().toISOString().slice(0, 19) + 'Z', ...overrideResponse})
|
||||
|
||||
export const getSearchOrganizationMatchesResponseMatchSearchNeedSourceMock = (overrideResponse: Partial<MatchSearchNeedSource> = {}): MatchSearchNeedSource => ({...{kind: faker.helpers.arrayElement(['need'] as const), need_id: faker.string.uuid(), requirements_version: faker.number.int({min: 1})}, ...overrideResponse});
|
||||
|
||||
export const getSearchOrganizationMatchesResponseMatchGradeFilterMock = (overrideResponse: Partial<MatchGradeFilter> = {}): MatchGradeFilter => ({...{specialization: faker.helpers.arrayElement(['backend','frontend','mobile','network_engineer','devops_sre','data_analyst','ds_ml','information_security','qa'] as const), grade: faker.helpers.arrayElement(['intern','junior','middle','senior'] as const)}, ...overrideResponse});
|
||||
|
||||
export const getSearchOrganizationMatchesResponseMatchAppliedConditionsMock = (overrideResponse: Partial<MatchAppliedConditions> = {}): MatchAppliedConditions => ({...{work_formats: faker.helpers.arrayElement([faker.helpers.arrayElements(['remote','office','hybrid'] as const),null,]), salary_compatibility: faker.helpers.arrayElement([faker.helpers.arrayElement(['compatible','not_compatible'] as const),null,])}, ...overrideResponse});
|
||||
|
||||
export const getSearchOrganizationMatchesResponseMatchSearchBankSourceMock = (overrideResponse: Partial<MatchSearchBankSource> = {}): MatchSearchBankSource => ({...{kind: faker.helpers.arrayElement(['bank'] as const), filters: {specialization: faker.helpers.arrayElement([faker.helpers.arrayElement(['backend','frontend','mobile','network_engineer','devops_sre','data_analyst','ds_ml','information_security','qa'] as const),null,]), confirmed_grade: faker.helpers.arrayElement([faker.helpers.arrayElement(['intern','junior','middle','senior'] as const),null,]), confirmed_category: faker.helpers.arrayElement([{...getSearchOrganizationMatchesResponseMatchGradeFilterMock()},null,]), confirmation_status: faker.helpers.arrayElement([faker.helpers.arrayElement(['confirmed','unconfirmed'] as const),null,]), declared_grade: faker.helpers.arrayElement([faker.helpers.arrayElement(['intern','junior','middle','senior'] as const),null,]), stack: faker.helpers.arrayElement([faker.helpers.arrayElements(['go','postgresql','kafka','docker'] as const),null,]), conditions: faker.helpers.arrayElement([{...getSearchOrganizationMatchesResponseMatchAppliedConditionsMock()},null,])}}, ...overrideResponse});
|
||||
|
||||
export const getSearchOrganizationMatchesResponseMock = (overrideResponse: Partial<Extract<MatchSearchResponse, object>> = {}): MatchSearchResponse => ({source: faker.helpers.arrayElement([{...getSearchOrganizationMatchesResponseMatchSearchNeedSourceMock()},{...getSearchOrganizationMatchesResponseMatchSearchBankSourceMock()},]), groups: {main: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({candidate_handle: fakeFromPattern("^cv1_[A-Za-z0-9_-]{43}$", {minLength: 47, maxLength: 47}), specialization: faker.helpers.arrayElement(['backend','frontend','mobile','network_engineer','devops_sre','data_analyst','ds_ml','information_security','qa'] as const), confirmation_status: faker.helpers.arrayElement(['confirmed'] as const), declared_grade: faker.helpers.arrayElement([faker.helpers.arrayElement(['intern','junior','middle','senior'] as const),null,]), category: {specialization: faker.helpers.arrayElement(['backend','frontend','mobile','network_engineer','devops_sre','data_analyst','ds_ml','information_security','qa'] as const), grade: faker.helpers.arrayElement(['intern','junior','middle','senior'] as const)}, strength: faker.helpers.arrayElement(['standard','strong'] as const), public_context: {stack: faker.helpers.arrayElement([faker.helpers.arrayElements(['go','postgresql','kafka','docker'] as const),null,]), experience_band: faker.helpers.arrayElement([faker.helpers.arrayElement(['0_1','1_3','3_6','6_plus','0_3','3_plus'] as const),null,]), work_formats: faker.helpers.arrayElement([faker.helpers.arrayElements(['remote','office','hybrid'] as const),null,]), salary_compatibility: faker.helpers.arrayElement([faker.helpers.arrayElement(['compatible','not_compatible'] as const),null,])}, evidence_summary: Array.from({ length: faker.number.int({min: 1, max: 12}) }, (_, i) => i + 1).map(() => ({code: faker.helpers.arrayElement(['confirmed_category','required_skill_evidence','desired_skill_evidence','domain_alignment','task_alignment','work_conditions_match','salary_compatibility','declared_grade'] as const), state: faker.helpers.arrayElement(['supports','partial','gap','declared_only'] as const)})), components: {fit: faker.number.float({min: 0, max: 1, fractionDigits: 2}), coverage: faker.number.float({min: 0, max: 1, fractionDigits: 2}), domain: faker.number.float({min: 0, max: 1, fractionDigits: 2}), semantics: faker.number.float({min: 0, max: 1, fractionDigits: 2}), percentile: faker.helpers.arrayElement([faker.number.float({min: 0, max: 1, fractionDigits: 2}),null,]), competition: faker.number.float({min: 0, max: 1, fractionDigits: 2}), freshness: faker.number.float({min: 0, max: 1, fractionDigits: 2}), responsiveness: faker.number.float({min: 0, max: 1, fractionDigits: 2}), rank_score: faker.number.float({min: 0, max: 1, fractionDigits: 2})}, unknown_flags: Array.from({ length: faker.number.int({min: 1, max: 9}) }, (_, i) => i + 1).map(() => ({component: faker.helpers.arrayElement(['semantics','percentile','assessment','freshness','responsiveness','experience_band','work_formats','salary_compatibility','domain'] as const), reason: faker.helpers.arrayElement(['ml_unavailable','cohort_below_30','no_confirmation_for_specialization','not_in_public_card','need_field_unconfirmed','no_freshness_history','no_response_history'] as const)}))})), near: Array.from({ length: faker.number.int({min: 1, max: 10}) }, (_, i) => i + 1).map(() => ({candidate_handle: fakeFromPattern("^cv1_[A-Za-z0-9_-]{43}$", {minLength: 47, maxLength: 47}), specialization: faker.helpers.arrayElement(['backend','frontend','mobile','network_engineer','devops_sre','data_analyst','ds_ml','information_security','qa'] as const), confirmation_status: faker.helpers.arrayElement(['confirmed'] as const), declared_grade: faker.helpers.arrayElement([faker.helpers.arrayElement(['intern','junior','middle','senior'] as const),null,]), category: {specialization: faker.helpers.arrayElement(['backend','frontend','mobile','network_engineer','devops_sre','data_analyst','ds_ml','information_security','qa'] as const), grade: faker.helpers.arrayElement(['intern','junior','middle','senior'] as const)}, strength: faker.helpers.arrayElement(['standard','strong'] as const), public_context: {stack: faker.helpers.arrayElement([faker.helpers.arrayElements(['go','postgresql','kafka','docker'] as const),null,]), experience_band: faker.helpers.arrayElement([faker.helpers.arrayElement(['0_1','1_3','3_6','6_plus','0_3','3_plus'] as const),null,]), work_formats: faker.helpers.arrayElement([faker.helpers.arrayElements(['remote','office','hybrid'] as const),null,]), salary_compatibility: faker.helpers.arrayElement([faker.helpers.arrayElement(['compatible','not_compatible'] as const),null,])}, evidence_summary: Array.from({ length: faker.number.int({min: 1, max: 12}) }, (_, i) => i + 1).map(() => ({code: faker.helpers.arrayElement(['confirmed_category','required_skill_evidence','desired_skill_evidence','domain_alignment','task_alignment','work_Line truncated
|
||||
|
||||
|
||||
export const getListMyOrganizationsMockHandler = (overrideResponse?: MyOrganizationList | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<MyOrganizationList> | MyOrganizationList), options?: RequestHandlerOptions) => {
|
||||
return http.get('*/api/v1/me/organizations', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {
|
||||
@@ -82,9 +97,22 @@ export const getUpdateOrganizationMockHandler = (overrideResponse?: Organization
|
||||
})
|
||||
}, options)
|
||||
}
|
||||
|
||||
export const getSearchOrganizationMatchesMockHandler = (overrideResponse?: MatchSearchResponse | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<MatchSearchResponse> | MatchSearchResponse), options?: RequestHandlerOptions) => {
|
||||
return http.post('*/api/v1/organizations/:orgId/matches', async (info: Parameters<Parameters<typeof http.post>[1]>[0]) => {
|
||||
|
||||
|
||||
return HttpResponse.json(overrideResponse !== undefined
|
||||
? (typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse)
|
||||
: getSearchOrganizationMatchesResponseMock(),
|
||||
{ status: 200
|
||||
})
|
||||
}, options)
|
||||
}
|
||||
export const getOrganizationMock = () => [
|
||||
getListMyOrganizationsMockHandler(),
|
||||
getCreateOrganizationMockHandler(),
|
||||
getGetOrganizationMockHandler(),
|
||||
getUpdateOrganizationMockHandler()
|
||||
getUpdateOrganizationMockHandler(),
|
||||
getSearchOrganizationMatchesMockHandler()
|
||||
]
|
||||
@@ -26,6 +26,8 @@ import type {
|
||||
import type {
|
||||
CreateOrganizationHeaders,
|
||||
ListMyOrganizationsParams,
|
||||
MatchSearchRequest,
|
||||
MatchSearchResponse,
|
||||
MyOrganizationList,
|
||||
Organization,
|
||||
OrganizationCreate,
|
||||
@@ -467,3 +469,100 @@ export const useUpdateOrganization = <TError = ErrorType<Problem>,
|
||||
> => {
|
||||
return useMutation(getUpdateOrganizationMutationOptions(options), queryClient);
|
||||
}
|
||||
export const getSearchOrganizationMatchesUrl = (orgId: string,) => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/v1/organizations/${orgId}/matches`
|
||||
}
|
||||
|
||||
/**
|
||||
* Requires the session cookie of an employer account with an active owner membership in `org_id`, the CSRF token of that session in X-CSRF-Token, and an allowed Origin. The organization comes from the path and the active server-side membership. Hidden profiles, revoked or missing C2 publication, and the organization's visibility restrictions are applied before any result is returned.
|
||||
*
|
||||
* The body selects either a Need's `requirements_version` snapshot or the current organization-visible bank with explicit filters. A need reference uses `Need.requirements_version`, not the general `Need.version`; title or suggestion-only edits do not change the confirmed-requirements snapshot. An empty bank filter searches all otherwise eligible specializations, returning each specialization separately.
|
||||
*
|
||||
* Every entry is one candidate specialization. A confirmed result in Backend never confirms Networks for the same candidate. The `main`, `near`, and `unconfirmed` arrays are separate groups. A confirmed category with required-skill coverage below 0.25 belongs to `near`; other confirmed entries belong to `main` (FR09). Entries in `unconfirmed` are ordered by Fit, then coverage, then a stable internal tie-breaker that is never returned. Their category and strength remain null, and they have no theta, T, P, or test percentile. The search result uses the organization-scoped opaque `candidate_handle` as its display pseudonym and invitation reference, never a candidate account or profile identifier.
|
||||
*
|
||||
* The card context is limited to safe public fields: recognized stack tags, coarse experience, accepted work formats, and coarse salary compatibility. It contains no contact, candidate location, salary amount or minimum, raw answer, arbitrary profile text, or reason for withheld FSP data. Evidence explanations use bounded codes, not free text. When ML is unavailable, semantic similarity uses the neutral 0.5 specified by FR09 and `unknown_flags` names `ml_unavailable`. For fewer than 30 comparable real candidates, the search uses neutral T = 0.5, returns no percentile value, and names `cohort_below_30`.
|
||||
*
|
||||
* A missing, unknown, expired, or revoked session answers 401 unauthenticated; a candidate account answers 403 forbidden; an unknown organization or account without active membership answers 404 not_found. The response is `Cache-Control: no-store`.
|
||||
* @summary Search the current organization-visible candidate bank.
|
||||
*/
|
||||
export const searchOrganizationMatches = async (orgId: string,
|
||||
matchSearchRequest: MatchSearchRequest, options?: Parameters<typeof apiRequest>[1]): Promise<MatchSearchResponse> => {
|
||||
|
||||
const getHeaders = (h?: NonNullable<RequestInit['headers']>): Record<string, string | readonly string[]> => {
|
||||
if (!h) return {};
|
||||
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
||||
if (Symbol.iterator in h) {
|
||||
return Object.fromEntries(
|
||||
Array.from(h as Iterable<Iterable<string>>, (entry) => Array.from(entry) as [string, string]),
|
||||
);
|
||||
}
|
||||
const headers: Record<string, string | readonly string[]> = {};
|
||||
for (const [name, value] of Object.entries<string | readonly string[] | undefined>(h)) {
|
||||
if (value !== undefined) headers[name] = value;
|
||||
}
|
||||
return headers;
|
||||
};
|
||||
return apiRequest<MatchSearchResponse>(getSearchOrganizationMatchesUrl(orgId),
|
||||
{
|
||||
...options,
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
||||
body: JSON.stringify(matchSearchRequest)
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getSearchOrganizationMatchesMutationKey = () => ['searchOrganizationMatches'] as const;
|
||||
|
||||
export const getSearchOrganizationMatchesMutationOptions = <TError = ErrorType<Problem>,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof searchOrganizationMatches>>, TError,SearchOrganizationMatchesMutationVariables, TContext>, request?: SecondParameter<typeof apiRequest>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof searchOrganizationMatches>>, TError,SearchOrganizationMatchesMutationVariables, TContext> => {
|
||||
|
||||
const mutationKey = getSearchOrganizationMatchesMutationKey();
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
|
||||
|
||||
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof searchOrganizationMatches>>, SearchOrganizationMatchesMutationVariables> = (props) => {
|
||||
const {orgId,data} = props ?? {};
|
||||
|
||||
return searchOrganizationMatches(orgId,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type SearchOrganizationMatchesMutationResult = NonNullable<Awaited<ReturnType<typeof searchOrganizationMatches>>>
|
||||
export type SearchOrganizationMatchesMutationBody = MatchSearchRequest
|
||||
export type SearchOrganizationMatchesMutationError = ErrorType<Problem>
|
||||
export type SearchOrganizationMatchesMutationVariables = {orgId: string;data: MatchSearchRequest}
|
||||
|
||||
/**
|
||||
* @summary Search the current organization-visible candidate bank.
|
||||
*/
|
||||
export const useSearchOrganizationMatches = <TError = ErrorType<Problem>,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof searchOrganizationMatches>>, TError,SearchOrganizationMatchesMutationVariables, TContext>, request?: SecondParameter<typeof apiRequest>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof searchOrganizationMatches>>,
|
||||
TError,
|
||||
SearchOrganizationMatchesMutationVariables,
|
||||
TContext
|
||||
> => {
|
||||
return useMutation(getSearchOrganizationMatchesMutationOptions(options), queryClient);
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -5,6 +5,9 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export * from './candidateExperienceBand.zod';
|
||||
export * from './candidateHandle.zod';
|
||||
export * from './candidateSalaryCompatibility.zod';
|
||||
export * from './consentPurposeCode.zod';
|
||||
export * from './consentText.zod';
|
||||
export * from './consentTextVersion.zod';
|
||||
|
||||
@@ -9,7 +9,6 @@ export * from './acceptMyInvitationBody.zod';
|
||||
export * from './acceptMyInvitationHeaders.zod';
|
||||
export * from './cancelMyInvitationBody.zod';
|
||||
export * from './cancelMyInvitationHeaders.zod';
|
||||
export * from './candidateHandle.zod';
|
||||
export * from './candidateInvitation.zod';
|
||||
export * from './candidateInvitationList.zod';
|
||||
export * from './candidateInvitationSummary.zod';
|
||||
|
||||
@@ -9,6 +9,39 @@ export * from './candidateOrganizationCard.zod';
|
||||
export * from './createOrganizationBody.zod';
|
||||
export * from './createOrganizationHeaders.zod';
|
||||
export * from './listMyOrganizationsParams.zod';
|
||||
export * from './matchAppliedConditions.zod';
|
||||
export * from './matchAppliedFilters.zod';
|
||||
export * from './matchCategory.zod';
|
||||
export * from './matchConfirmationStatus.zod';
|
||||
export * from './matchConfirmedCandidate.zod';
|
||||
export * from './matchConfirmedComponents.zod';
|
||||
export * from './matchEvidenceCode.zod';
|
||||
export * from './matchEvidenceState.zod';
|
||||
export * from './matchEvidenceSummary.zod';
|
||||
export * from './matchEvidenceSummaryItem.zod';
|
||||
export * from './matchGradeFilter.zod';
|
||||
export * from './matchNullableScore.zod';
|
||||
export * from './matchPublicContext.zod';
|
||||
export * from './matchPublicStack.zod';
|
||||
export * from './matchScore.zod';
|
||||
export * from './matchSearchBankSource.zod';
|
||||
export * from './matchSearchByBank.zod';
|
||||
export * from './matchSearchByNeed.zod';
|
||||
export * from './matchSearchConditions.zod';
|
||||
export * from './matchSearchFilters.zod';
|
||||
export * from './matchSearchGroups.zod';
|
||||
export * from './matchSearchNeedSource.zod';
|
||||
export * from './matchSearchRequest.zod';
|
||||
export * from './matchSearchResponse.zod';
|
||||
export * from './matchSearchSource.zod';
|
||||
export * from './matchSearchStackTag.zod';
|
||||
export * from './matchStrength.zod';
|
||||
export * from './matchUnconfirmedCandidate.zod';
|
||||
export * from './matchUnconfirmedComponents.zod';
|
||||
export * from './matchUnknownComponent.zod';
|
||||
export * from './matchUnknownFlag.zod';
|
||||
export * from './matchUnknownFlags.zod';
|
||||
export * from './matchUnknownReason.zod';
|
||||
export * from './membershipState.zod';
|
||||
export * from './myOrganization.zod';
|
||||
export * from './myOrganizationList.zod';
|
||||
@@ -28,4 +61,5 @@ export * from './organizationVerificationBasis.zod';
|
||||
export * from './organizationVerificationLevel.zod';
|
||||
export * from './organizationVersion.zod';
|
||||
export * from './organizationWebsite.zod';
|
||||
export * from './searchOrganizationMatchesBody.zod';
|
||||
export * from './updateOrganizationBody.zod';
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const matchAppliedConditionsWorkFormatsOneMax = 3;
|
||||
|
||||
|
||||
export const MatchAppliedConditions = zod.object({
|
||||
"work_formats": zod.union([zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).min(1).max(matchAppliedConditionsWorkFormatsOneMax),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('Conditions echoed as a complete snapshot; null means no filter.')
|
||||
|
||||
export type MatchAppliedConditions = zod.input<typeof MatchAppliedConditions>;
|
||||
export type MatchAppliedConditionsOutput = zod.output<typeof MatchAppliedConditions>;
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const matchAppliedFiltersStackOneMax = 4;
|
||||
|
||||
export const matchAppliedFiltersConditionsOneWorkFormatsOneMax = 3;
|
||||
|
||||
|
||||
export const MatchAppliedFilters = zod.object({
|
||||
"specialization": zod.union([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.'),zod.null()]),
|
||||
"confirmed_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()]),
|
||||
"confirmed_category": zod.union([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.')
|
||||
}).describe('A confirmed category filter, never a candidate declaration.'),zod.null()]),
|
||||
"confirmation_status": zod.union([zod.enum(['confirmed', 'unconfirmed']).describe('Confirmation state for this specialization only. A result for one specialization never changes the state of another specialization.'),zod.null()]),
|
||||
"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()]),
|
||||
"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.')).min(1).max(matchAppliedFiltersStackOneMax),zod.null()]),
|
||||
"conditions": zod.union([zod.object({
|
||||
"work_formats": zod.union([zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).min(1).max(matchAppliedFiltersConditionsOneWorkFormatsOneMax),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('Conditions echoed as a complete snapshot; null means no filter.'),zod.null()])
|
||||
}).describe('A normalized response snapshot of the bank filters. Each key is present; null means the corresponding request filter was omitted. This keeps a search result tied to its exact filter basis.')
|
||||
|
||||
export type MatchAppliedFilters = zod.input<typeof MatchAppliedFilters>;
|
||||
export type MatchAppliedFiltersOutput = zod.output<typeof MatchAppliedFilters>;
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchCategory = 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.')
|
||||
}).describe('A confirmed category. Its specialization must equal the enclosing match entry\'s specialization.')
|
||||
|
||||
export type MatchCategory = zod.input<typeof MatchCategory>;
|
||||
export type MatchCategoryOutput = zod.output<typeof MatchCategory>;
|
||||
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchConfirmationStatus = zod.enum(['confirmed', 'unconfirmed']).describe('Confirmation state for this specialization only. A result for one specialization never changes the state of another specialization.')
|
||||
|
||||
export type MatchConfirmationStatus = zod.input<typeof MatchConfirmationStatus>;
|
||||
export type MatchConfirmationStatusOutput = zod.output<typeof MatchConfirmationStatus>;
|
||||
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* 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.')
|
||||
}).describe('A confirmed category. Its specialization must equal the enclosing match entry\'s specialization.'),
|
||||
"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']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
}).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>;
|
||||
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const matchConfirmedComponentsFitMin = 0;
|
||||
export const matchConfirmedComponentsFitMax = 1;
|
||||
|
||||
export const matchConfirmedComponentsCoverageMin = 0;
|
||||
export const matchConfirmedComponentsCoverageMax = 1;
|
||||
|
||||
export const matchConfirmedComponentsDomainMin = 0;
|
||||
export const matchConfirmedComponentsDomainMax = 1;
|
||||
|
||||
export const matchConfirmedComponentsSemanticsMin = 0;
|
||||
export const matchConfirmedComponentsSemanticsMax = 1;
|
||||
|
||||
export const matchConfirmedComponentsPercentileOneMin = 0;
|
||||
export const matchConfirmedComponentsPercentileOneMax = 1;
|
||||
|
||||
export const matchConfirmedComponentsCompetitionMin = 0;
|
||||
export const matchConfirmedComponentsCompetitionMax = 1;
|
||||
|
||||
export const matchConfirmedComponentsFreshnessMin = 0;
|
||||
export const matchConfirmedComponentsFreshnessMax = 1;
|
||||
|
||||
export const matchConfirmedComponentsResponsivenessMin = 0;
|
||||
export const matchConfirmedComponentsResponsivenessMax = 1;
|
||||
|
||||
export const matchConfirmedComponentsRankScoreMin = 0;
|
||||
export const matchConfirmedComponentsRankScoreMax = 1;
|
||||
|
||||
|
||||
export const MatchConfirmedComponents = zod.object({
|
||||
"fit": zod.number().min(matchConfirmedComponentsFitMin).max(matchConfirmedComponentsFitMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"coverage": zod.number().min(matchConfirmedComponentsCoverageMin).max(matchConfirmedComponentsCoverageMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"domain": zod.number().min(matchConfirmedComponentsDomainMin).max(matchConfirmedComponentsDomainMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"semantics": zod.number().min(matchConfirmedComponentsSemanticsMin).max(matchConfirmedComponentsSemanticsMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"percentile": zod.union([zod.number().min(matchConfirmedComponentsPercentileOneMin).max(matchConfirmedComponentsPercentileOneMax),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(matchConfirmedComponentsCompetitionMin).max(matchConfirmedComponentsCompetitionMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"freshness": zod.number().min(matchConfirmedComponentsFreshnessMin).max(matchConfirmedComponentsFreshnessMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"responsiveness": zod.number().min(matchConfirmedComponentsResponsivenessMin).max(matchConfirmedComponentsResponsivenessMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"rank_score": zod.number().min(matchConfirmedComponentsRankScoreMin).max(matchConfirmedComponentsRankScoreMax).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`.')
|
||||
|
||||
export type MatchConfirmedComponents = zod.input<typeof MatchConfirmedComponents>;
|
||||
export type MatchConfirmedComponentsOutput = zod.output<typeof MatchConfirmedComponents>;
|
||||
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchEvidenceCode = 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.')
|
||||
|
||||
export type MatchEvidenceCode = zod.input<typeof MatchEvidenceCode>;
|
||||
export type MatchEvidenceCodeOutput = zod.output<typeof MatchEvidenceCode>;
|
||||
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchEvidenceState = zod.enum(['supports', 'partial', 'gap', 'declared_only'])
|
||||
|
||||
export type MatchEvidenceState = zod.input<typeof MatchEvidenceState>;
|
||||
export type MatchEvidenceStateOutput = zod.output<typeof MatchEvidenceState>;
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchEvidenceSummaryMax = 12;
|
||||
|
||||
|
||||
export const MatchEvidenceSummary = 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(MatchEvidenceSummaryMax)
|
||||
|
||||
export type MatchEvidenceSummary = zod.input<typeof MatchEvidenceSummary>;
|
||||
export type MatchEvidenceSummaryOutput = zod.output<typeof MatchEvidenceSummary>;
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchEvidenceSummaryItem = 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.')
|
||||
|
||||
export type MatchEvidenceSummaryItem = zod.input<typeof MatchEvidenceSummaryItem>;
|
||||
export type MatchEvidenceSummaryItemOutput = zod.output<typeof MatchEvidenceSummaryItem>;
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchGradeFilter = 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.')
|
||||
}).describe('A confirmed category filter, never a candidate declaration.')
|
||||
|
||||
export type MatchGradeFilter = zod.input<typeof MatchGradeFilter>;
|
||||
export type MatchGradeFilterOutput = zod.output<typeof MatchGradeFilter>;
|
||||
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const matchNullableScoreOneMin = 0;
|
||||
export const matchNullableScoreOneMax = 1;
|
||||
|
||||
|
||||
export const MatchNullableScore = zod.union([zod.number().min(matchNullableScoreOneMin).max(matchNullableScoreOneMax),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`.')
|
||||
|
||||
export type MatchNullableScore = zod.input<typeof MatchNullableScore>;
|
||||
export type MatchNullableScoreOutput = zod.output<typeof MatchNullableScore>;
|
||||
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const matchPublicContextStackOneMax = 4;
|
||||
|
||||
export const matchPublicContextWorkFormatsOneMax = 3;
|
||||
|
||||
|
||||
export const MatchPublicContext = 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(matchPublicContextStackOneMax),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(matchPublicContextWorkFormatsOneMax),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.')
|
||||
|
||||
export type MatchPublicContext = zod.input<typeof MatchPublicContext>;
|
||||
export type MatchPublicContextOutput = zod.output<typeof MatchPublicContext>;
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchPublicStackMax = 4;
|
||||
|
||||
|
||||
export const MatchPublicStack = 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(MatchPublicStackMax)
|
||||
|
||||
export type MatchPublicStack = zod.input<typeof MatchPublicStack>;
|
||||
export type MatchPublicStackOutput = zod.output<typeof MatchPublicStack>;
|
||||
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchScoreMin = 0;
|
||||
export const MatchScoreMax = 1;
|
||||
|
||||
|
||||
export const MatchScore = zod.number().min(MatchScoreMin).max(MatchScoreMax).describe('A normalized FR09 ranking component from 0 to 1.')
|
||||
|
||||
export type MatchScore = zod.input<typeof MatchScore>;
|
||||
export type MatchScoreOutput = zod.output<typeof MatchScore>;
|
||||
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const matchSearchBankSourceFiltersStackOneMax = 4;
|
||||
|
||||
export const matchSearchBankSourceFiltersConditionsOneWorkFormatsOneMax = 3;
|
||||
|
||||
|
||||
export const MatchSearchBankSource = zod.object({
|
||||
"kind": zod.enum(['bank']),
|
||||
"filters": zod.object({
|
||||
"specialization": zod.union([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.'),zod.null()]),
|
||||
"confirmed_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()]),
|
||||
"confirmed_category": zod.union([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.')
|
||||
}).describe('A confirmed category filter, never a candidate declaration.'),zod.null()]),
|
||||
"confirmation_status": zod.union([zod.enum(['confirmed', 'unconfirmed']).describe('Confirmation state for this specialization only. A result for one specialization never changes the state of another specialization.'),zod.null()]),
|
||||
"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()]),
|
||||
"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.')).min(1).max(matchSearchBankSourceFiltersStackOneMax),zod.null()]),
|
||||
"conditions": zod.union([zod.object({
|
||||
"work_formats": zod.union([zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).min(1).max(matchSearchBankSourceFiltersConditionsOneWorkFormatsOneMax),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('Conditions echoed as a complete snapshot; null means no filter.'),zod.null()])
|
||||
}).describe('A normalized response snapshot of the bank filters. Each key is present; null means the corresponding request filter was omitted. This keeps a search result tied to its exact filter basis.')
|
||||
}).describe('The normalized filters used for a bank search.')
|
||||
|
||||
export type MatchSearchBankSource = zod.input<typeof MatchSearchBankSource>;
|
||||
export type MatchSearchBankSourceOutput = zod.output<typeof MatchSearchBankSource>;
|
||||
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const matchSearchByBankFiltersStackMax = 4;
|
||||
|
||||
export const matchSearchByBankFiltersConditionsWorkFormatsMax = 3;
|
||||
|
||||
|
||||
export const MatchSearchByBank = zod.object({
|
||||
"filters": zod.object({
|
||||
"specialization": zod.enum(['backend', 'frontend', 'mobile', 'network_engineer', 'devops_sre', 'data_analyst', 'ds_ml', 'information_security', 'qa']).exactOptional().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.'),
|
||||
"confirmed_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Match only candidates with this currently confirmed grade in the selected specialization. It never matches a declared grade.'),
|
||||
"confirmed_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.')
|
||||
}).exactOptional().describe('A confirmed category filter, never a candidate declaration.'),
|
||||
"confirmation_status": zod.enum(['confirmed', 'unconfirmed']).exactOptional().describe('Confirmation state for this specialization only. A result for one specialization never changes the state of another specialization.'),
|
||||
"declared_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Candidate-declared grade filter. This is a separate claim and cannot satisfy `confirmed_grade` or `confirmed_category`.'),
|
||||
"stack": 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.')).min(1).max(matchSearchByBankFiltersStackMax).exactOptional(),
|
||||
"conditions": zod.object({
|
||||
"work_formats": zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).min(1).max(matchSearchByBankFiltersConditionsWorkFormatsMax).exactOptional(),
|
||||
"salary_compatibility": zod.enum(['compatible', 'not_compatible']).exactOptional().describe('A coarse compatibility result only. No salary amount, minimum, range, or threshold is part of the anonymous card.')
|
||||
}).exactOptional().describe('Filters against safe, coarse card conditions. No candidate location, salary amount, salary minimum, or salary range is accepted.')
|
||||
}).describe('Optional filters over the current organization-visible bank. An empty object means no additional filter. Confirmed and declared grades are separate fields; a declaration never satisfies a confirmed-grade or category filter. Conditions use only the safe, coarse card fields.')
|
||||
}).describe('Search the current organization-visible bank. An empty `filters` object includes all otherwise eligible specializations as separate entries.')
|
||||
|
||||
export type MatchSearchByBank = zod.input<typeof MatchSearchByBank>;
|
||||
export type MatchSearchByBankOutput = zod.output<typeof MatchSearchByBank>;
|
||||
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
|
||||
export const matchSearchByNeedFiltersStackMax = 4;
|
||||
|
||||
export const matchSearchByNeedFiltersConditionsWorkFormatsMax = 3;
|
||||
|
||||
|
||||
export const MatchSearchByNeed = zod.object({
|
||||
"need_id": zod.uuid().describe('Need owned by the organization in the path.'),
|
||||
"requirements_version": zod.int().min(1).describe('Version of an employer need. Creation makes version 1, and every committed change of the need advances it by exactly one, including a change made by the server, such as a planned asynchronous ML suggestion. Each version is an immutable snapshot of the need. `requirements_version` names the version whose confirmed requirements are current, so a change that leaves them unchanged creates a need version without a new requirements version.'),
|
||||
"filters": zod.object({
|
||||
"specialization": zod.enum(['backend', 'frontend', 'mobile', 'network_engineer', 'devops_sre', 'data_analyst', 'ds_ml', 'information_security', 'qa']).exactOptional().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.'),
|
||||
"confirmed_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Match only candidates with this currently confirmed grade in the selected specialization. It never matches a declared grade.'),
|
||||
"confirmed_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.')
|
||||
}).exactOptional().describe('A confirmed category filter, never a candidate declaration.'),
|
||||
"confirmation_status": zod.enum(['confirmed', 'unconfirmed']).exactOptional().describe('Confirmation state for this specialization only. A result for one specialization never changes the state of another specialization.'),
|
||||
"declared_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Candidate-declared grade filter. This is a separate claim and cannot satisfy `confirmed_grade` or `confirmed_category`.'),
|
||||
"stack": 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.')).min(1).max(matchSearchByNeedFiltersStackMax).exactOptional(),
|
||||
"conditions": zod.object({
|
||||
"work_formats": zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).min(1).max(matchSearchByNeedFiltersConditionsWorkFormatsMax).exactOptional(),
|
||||
"salary_compatibility": zod.enum(['compatible', 'not_compatible']).exactOptional().describe('A coarse compatibility result only. No salary amount, minimum, range, or threshold is part of the anonymous card.')
|
||||
}).exactOptional().describe('Filters against safe, coarse card conditions. No candidate location, salary amount, salary minimum, or salary range is accepted.')
|
||||
}).exactOptional().describe('Optional filters over the current organization-visible bank. An empty object means no additional filter. Confirmed and declared grades are separate fields; a declaration never satisfies a confirmed-grade or category filter. Conditions use only the safe, coarse card fields.')
|
||||
}).describe('Search one immutable set of confirmed requirements. `requirements_version` is the Need.requirements_version, not the general Need.version; text-only or suggestion-only edits do not change this search basis.')
|
||||
|
||||
export type MatchSearchByNeed = zod.input<typeof MatchSearchByNeed>;
|
||||
export type MatchSearchByNeedOutput = zod.output<typeof MatchSearchByNeed>;
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const matchSearchConditionsWorkFormatsMax = 3;
|
||||
|
||||
|
||||
export const MatchSearchConditions = zod.object({
|
||||
"work_formats": zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).min(1).max(matchSearchConditionsWorkFormatsMax).exactOptional(),
|
||||
"salary_compatibility": zod.enum(['compatible', 'not_compatible']).exactOptional().describe('A coarse compatibility result only. No salary amount, minimum, range, or threshold is part of the anonymous card.')
|
||||
}).describe('Filters against safe, coarse card conditions. No candidate location, salary amount, salary minimum, or salary range is accepted.')
|
||||
|
||||
export type MatchSearchConditions = zod.input<typeof MatchSearchConditions>;
|
||||
export type MatchSearchConditionsOutput = zod.output<typeof MatchSearchConditions>;
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const matchSearchFiltersStackMax = 4;
|
||||
|
||||
export const matchSearchFiltersConditionsWorkFormatsMax = 3;
|
||||
|
||||
|
||||
export const MatchSearchFilters = zod.object({
|
||||
"specialization": zod.enum(['backend', 'frontend', 'mobile', 'network_engineer', 'devops_sre', 'data_analyst', 'ds_ml', 'information_security', 'qa']).exactOptional().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.'),
|
||||
"confirmed_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Match only candidates with this currently confirmed grade in the selected specialization. It never matches a declared grade.'),
|
||||
"confirmed_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.')
|
||||
}).exactOptional().describe('A confirmed category filter, never a candidate declaration.'),
|
||||
"confirmation_status": zod.enum(['confirmed', 'unconfirmed']).exactOptional().describe('Confirmation state for this specialization only. A result for one specialization never changes the state of another specialization.'),
|
||||
"declared_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Candidate-declared grade filter. This is a separate claim and cannot satisfy `confirmed_grade` or `confirmed_category`.'),
|
||||
"stack": 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.')).min(1).max(matchSearchFiltersStackMax).exactOptional(),
|
||||
"conditions": zod.object({
|
||||
"work_formats": zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).min(1).max(matchSearchFiltersConditionsWorkFormatsMax).exactOptional(),
|
||||
"salary_compatibility": zod.enum(['compatible', 'not_compatible']).exactOptional().describe('A coarse compatibility result only. No salary amount, minimum, range, or threshold is part of the anonymous card.')
|
||||
}).exactOptional().describe('Filters against safe, coarse card conditions. No candidate location, salary amount, salary minimum, or salary range is accepted.')
|
||||
}).describe('Optional filters over the current organization-visible bank. An empty object means no additional filter. Confirmed and declared grades are separate fields; a declaration never satisfies a confirmed-grade or category filter. Conditions use only the safe, coarse card fields.')
|
||||
|
||||
export type MatchSearchFilters = zod.input<typeof MatchSearchFilters>;
|
||||
export type MatchSearchFiltersOutput = zod.output<typeof MatchSearchFilters>;
|
||||
@@ -0,0 +1,211 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const matchSearchGroupsMainItemCandidateHandleMin = 47;
|
||||
export const matchSearchGroupsMainItemCandidateHandleMax = 47;
|
||||
|
||||
|
||||
export const matchSearchGroupsMainItemCandidateHandleRegExp = new RegExp('^cv1_[A-Za-z0-9_-]{43}$');
|
||||
export const matchSearchGroupsMainItemPublicContextStackOneMax = 4;
|
||||
|
||||
export const matchSearchGroupsMainItemPublicContextWorkFormatsOneMax = 3;
|
||||
|
||||
export const matchSearchGroupsMainItemEvidenceSummaryMax = 12;
|
||||
|
||||
export const matchSearchGroupsMainItemComponentsFitMin = 0;
|
||||
export const matchSearchGroupsMainItemComponentsFitMax = 1;
|
||||
|
||||
export const matchSearchGroupsMainItemComponentsCoverageMin = 0;
|
||||
export const matchSearchGroupsMainItemComponentsCoverageMax = 1;
|
||||
|
||||
export const matchSearchGroupsMainItemComponentsDomainMin = 0;
|
||||
export const matchSearchGroupsMainItemComponentsDomainMax = 1;
|
||||
|
||||
export const matchSearchGroupsMainItemComponentsSemanticsMin = 0;
|
||||
export const matchSearchGroupsMainItemComponentsSemanticsMax = 1;
|
||||
|
||||
export const matchSearchGroupsMainItemComponentsPercentileOneMin = 0;
|
||||
export const matchSearchGroupsMainItemComponentsPercentileOneMax = 1;
|
||||
|
||||
export const matchSearchGroupsMainItemComponentsCompetitionMin = 0;
|
||||
export const matchSearchGroupsMainItemComponentsCompetitionMax = 1;
|
||||
|
||||
export const matchSearchGroupsMainItemComponentsFreshnessMin = 0;
|
||||
export const matchSearchGroupsMainItemComponentsFreshnessMax = 1;
|
||||
|
||||
export const matchSearchGroupsMainItemComponentsResponsivenessMin = 0;
|
||||
export const matchSearchGroupsMainItemComponentsResponsivenessMax = 1;
|
||||
|
||||
export const matchSearchGroupsMainItemComponentsRankScoreMin = 0;
|
||||
export const matchSearchGroupsMainItemComponentsRankScoreMax = 1;
|
||||
|
||||
export const matchSearchGroupsMainItemUnknownFlagsMax = 9;
|
||||
|
||||
export const matchSearchGroupsNearItemCandidateHandleMin = 47;
|
||||
export const matchSearchGroupsNearItemCandidateHandleMax = 47;
|
||||
|
||||
|
||||
export const matchSearchGroupsNearItemCandidateHandleRegExp = new RegExp('^cv1_[A-Za-z0-9_-]{43}$');
|
||||
export const matchSearchGroupsNearItemPublicContextStackOneMax = 4;
|
||||
|
||||
export const matchSearchGroupsNearItemPublicContextWorkFormatsOneMax = 3;
|
||||
|
||||
export const matchSearchGroupsNearItemEvidenceSummaryMax = 12;
|
||||
|
||||
export const matchSearchGroupsNearItemComponentsFitMin = 0;
|
||||
export const matchSearchGroupsNearItemComponentsFitMax = 1;
|
||||
|
||||
export const matchSearchGroupsNearItemComponentsCoverageMin = 0;
|
||||
export const matchSearchGroupsNearItemComponentsCoverageMax = 1;
|
||||
|
||||
export const matchSearchGroupsNearItemComponentsDomainMin = 0;
|
||||
export const matchSearchGroupsNearItemComponentsDomainMax = 1;
|
||||
|
||||
export const matchSearchGroupsNearItemComponentsSemanticsMin = 0;
|
||||
export const matchSearchGroupsNearItemComponentsSemanticsMax = 1;
|
||||
|
||||
export const matchSearchGroupsNearItemComponentsPercentileOneMin = 0;
|
||||
export const matchSearchGroupsNearItemComponentsPercentileOneMax = 1;
|
||||
|
||||
export const matchSearchGroupsNearItemComponentsCompetitionMin = 0;
|
||||
export const matchSearchGroupsNearItemComponentsCompetitionMax = 1;
|
||||
|
||||
export const matchSearchGroupsNearItemComponentsFreshnessMin = 0;
|
||||
export const matchSearchGroupsNearItemComponentsFreshnessMax = 1;
|
||||
|
||||
export const matchSearchGroupsNearItemComponentsResponsivenessMin = 0;
|
||||
export const matchSearchGroupsNearItemComponentsResponsivenessMax = 1;
|
||||
|
||||
export const matchSearchGroupsNearItemComponentsRankScoreMin = 0;
|
||||
export const matchSearchGroupsNearItemComponentsRankScoreMax = 1;
|
||||
|
||||
export const matchSearchGroupsNearItemUnknownFlagsMax = 9;
|
||||
|
||||
export const matchSearchGroupsUnconfirmedItemCandidateHandleMin = 47;
|
||||
export const matchSearchGroupsUnconfirmedItemCandidateHandleMax = 47;
|
||||
|
||||
|
||||
export const matchSearchGroupsUnconfirmedItemCandidateHandleRegExp = new RegExp('^cv1_[A-Za-z0-9_-]{43}$');
|
||||
export const matchSearchGroupsUnconfirmedItemPublicContextStackOneMax = 4;
|
||||
|
||||
export const matchSearchGroupsUnconfirmedItemPublicContextWorkFormatsOneMax = 3;
|
||||
|
||||
export const matchSearchGroupsUnconfirmedItemEvidenceSummaryMax = 12;
|
||||
|
||||
export const matchSearchGroupsUnconfirmedItemComponentsFitMin = 0;
|
||||
export const matchSearchGroupsUnconfirmedItemComponentsFitMax = 1;
|
||||
|
||||
export const matchSearchGroupsUnconfirmedItemComponentsCoverageMin = 0;
|
||||
export const matchSearchGroupsUnconfirmedItemComponentsCoverageMax = 1;
|
||||
|
||||
export const matchSearchGroupsUnconfirmedItemUnknownFlagsMax = 9;
|
||||
|
||||
|
||||
export const MatchSearchGroups = zod.object({
|
||||
"main": zod.array(zod.object({
|
||||
"candidate_handle": zod.string().min(matchSearchGroupsMainItemCandidateHandleMin).max(matchSearchGroupsMainItemCandidateHandleMax).regex(matchSearchGroupsMainItemCandidateHandleRegExp).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.')
|
||||
}).describe('A confirmed category. Its specialization must equal the enclosing match entry\'s specialization.'),
|
||||
"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(matchSearchGroupsMainItemPublicContextStackOneMax),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(matchSearchGroupsMainItemPublicContextWorkFormatsOneMax),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(matchSearchGroupsMainItemEvidenceSummaryMax),
|
||||
"components": zod.object({
|
||||
"fit": zod.number().min(matchSearchGroupsMainItemComponentsFitMin).max(matchSearchGroupsMainItemComponentsFitMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"coverage": zod.number().min(matchSearchGroupsMainItemComponentsCoverageMin).max(matchSearchGroupsMainItemComponentsCoverageMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"domain": zod.number().min(matchSearchGroupsMainItemComponentsDomainMin).max(matchSearchGroupsMainItemComponentsDomainMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"semantics": zod.number().min(matchSearchGroupsMainItemComponentsSemanticsMin).max(matchSearchGroupsMainItemComponentsSemanticsMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"percentile": zod.union([zod.number().min(matchSearchGroupsMainItemComponentsPercentileOneMin).max(matchSearchGroupsMainItemComponentsPercentileOneMax),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(matchSearchGroupsMainItemComponentsCompetitionMin).max(matchSearchGroupsMainItemComponentsCompetitionMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"freshness": zod.number().min(matchSearchGroupsMainItemComponentsFreshnessMin).max(matchSearchGroupsMainItemComponentsFreshnessMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"responsiveness": zod.number().min(matchSearchGroupsMainItemComponentsResponsivenessMin).max(matchSearchGroupsMainItemComponentsResponsivenessMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"rank_score": zod.number().min(matchSearchGroupsMainItemComponentsRankScoreMin).max(matchSearchGroupsMainItemComponentsRankScoreMax).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']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
}).describe('A safe, bounded explanation for one unavailable component.')).max(matchSearchGroupsMainItemUnknownFlagsMax)
|
||||
}).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.')),
|
||||
"near": zod.array(zod.object({
|
||||
"candidate_handle": zod.string().min(matchSearchGroupsNearItemCandidateHandleMin).max(matchSearchGroupsNearItemCandidateHandleMax).regex(matchSearchGroupsNearItemCandidateHandleRegExp).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.')
|
||||
}).describe('A confirmed category. Its specialization must equal the enclosing match entry\'s specialization.'),
|
||||
"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(matchSearchGroupsNearItemPublicContextStackOneMax),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(matchSearchGroupsNearItemPublicContextWorkFormatsOneMax),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(matchSearchGroupsNearItemEvidenceSummaryMax),
|
||||
"components": zod.object({
|
||||
"fit": zod.number().min(matchSearchGroupsNearItemComponentsFitMin).max(matchSearchGroupsNearItemComponentsFitMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"coverage": zod.number().min(matchSearchGroupsNearItemComponentsCoverageMin).max(matchSearchGroupsNearItemComponentsCoverageMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"domain": zod.number().min(matchSearchGroupsNearItemComponentsDomainMin).max(matchSearchGroupsNearItemComponentsDomainMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"semantics": zod.number().min(matchSearchGroupsNearItemComponentsSemanticsMin).max(matchSearchGroupsNearItemComponentsSemanticsMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"percentile": zod.union([zod.number().min(matchSearchGroupsNearItemComponentsPercentileOneMin).max(matchSearchGroupsNearItemComponentsPercentileOneMax),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(matchSearchGroupsNearItemComponentsCompetitionMin).max(matchSearchGroupsNearItemComponentsCompetitionMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"freshness": zod.number().min(matchSearchGroupsNearItemComponentsFreshnessMin).max(matchSearchGroupsNearItemComponentsFreshnessMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"responsiveness": zod.number().min(matchSearchGroupsNearItemComponentsResponsivenessMin).max(matchSearchGroupsNearItemComponentsResponsivenessMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"rank_score": zod.number().min(matchSearchGroupsNearItemComponentsRankScoreMin).max(matchSearchGroupsNearItemComponentsRankScoreMax).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']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
}).describe('A safe, bounded explanation for one unavailable component.')).max(matchSearchGroupsNearItemUnknownFlagsMax)
|
||||
}).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.')),
|
||||
"unconfirmed": zod.array(zod.object({
|
||||
"candidate_handle": zod.string().min(matchSearchGroupsUnconfirmedItemCandidateHandleMin).max(matchSearchGroupsUnconfirmedItemCandidateHandleMax).regex(matchSearchGroupsUnconfirmedItemCandidateHandleRegExp).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(['unconfirmed']),
|
||||
"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, separate from assessment confirmation.'),
|
||||
"category": zod.null().describe('There is no confirmed category for this specialization.'),
|
||||
"strength": zod.null().describe('Assessment strength is not measured 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(matchSearchGroupsUnconfirmedItemPublicContextStackOneMax),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(matchSearchGroupsUnconfirmedItemPublicContextWorkFormatsOneMax),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(matchSearchGroupsUnconfirmedItemEvidenceSummaryMax),
|
||||
"components": zod.object({
|
||||
"fit": zod.number().min(matchSearchGroupsUnconfirmedItemComponentsFitMin).max(matchSearchGroupsUnconfirmedItemComponentsFitMax).describe('Job fit for this specialization, never an assessment score.'),
|
||||
"coverage": zod.number().min(matchSearchGroupsUnconfirmedItemComponentsCoverageMin).max(matchSearchGroupsUnconfirmedItemComponentsCoverageMax).describe('Coverage of confirmed need skills by allowed public evidence.')
|
||||
}).describe('Unconfirmed entries are ordered only by Fit and coverage. This strict component object has no theta, T, P, test percentile, or confirmed assessment score.'),
|
||||
"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']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
}).describe('A safe, bounded explanation for one unavailable component.')).max(matchSearchGroupsUnconfirmedItemUnknownFlagsMax)
|
||||
}).describe('One specialization with no confirmed category. `category` and `strength` remain present and null. A confirmation in another specialization never changes this entry. The schema intentionally has no assessment measurement fields.'))
|
||||
}).describe('Separate ranking groups. Confirmed categories appear in main and near; unconfirmed specializations appear only in the lower unconfirmed group.')
|
||||
|
||||
export type MatchSearchGroups = zod.input<typeof MatchSearchGroups>;
|
||||
export type MatchSearchGroupsOutput = zod.output<typeof MatchSearchGroups>;
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
|
||||
|
||||
export const MatchSearchNeedSource = zod.object({
|
||||
"kind": zod.enum(['need']),
|
||||
"need_id": zod.uuid(),
|
||||
"requirements_version": zod.int().min(1).describe('Version of an employer need. Creation makes version 1, and every committed change of the need advances it by exactly one, including a change made by the server, such as a planned asynchronous ML suggestion. Each version is an immutable snapshot of the need. `requirements_version` names the version whose confirmed requirements are current, so a change that leaves them unchanged creates a need version without a new requirements version.')
|
||||
}).describe('The immutable need requirements snapshot used by this result.')
|
||||
|
||||
export type MatchSearchNeedSource = zod.input<typeof MatchSearchNeedSource>;
|
||||
export type MatchSearchNeedSourceOutput = zod.output<typeof MatchSearchNeedSource>;
|
||||
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
|
||||
export const matchSearchRequestOneFiltersStackMax = 4;
|
||||
|
||||
export const matchSearchRequestOneFiltersConditionsWorkFormatsMax = 3;
|
||||
|
||||
export const matchSearchRequestTwoFiltersStackMax = 4;
|
||||
|
||||
export const matchSearchRequestTwoFiltersConditionsWorkFormatsMax = 3;
|
||||
|
||||
|
||||
export const MatchSearchRequest = zod.union([zod.object({
|
||||
"need_id": zod.uuid().describe('Need owned by the organization in the path.'),
|
||||
"requirements_version": zod.int().min(1).describe('Version of an employer need. Creation makes version 1, and every committed change of the need advances it by exactly one, including a change made by the server, such as a planned asynchronous ML suggestion. Each version is an immutable snapshot of the need. `requirements_version` names the version whose confirmed requirements are current, so a change that leaves them unchanged creates a need version without a new requirements version.'),
|
||||
"filters": zod.object({
|
||||
"specialization": zod.enum(['backend', 'frontend', 'mobile', 'network_engineer', 'devops_sre', 'data_analyst', 'ds_ml', 'information_security', 'qa']).exactOptional().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.'),
|
||||
"confirmed_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Match only candidates with this currently confirmed grade in the selected specialization. It never matches a declared grade.'),
|
||||
"confirmed_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.')
|
||||
}).exactOptional().describe('A confirmed category filter, never a candidate declaration.'),
|
||||
"confirmation_status": zod.enum(['confirmed', 'unconfirmed']).exactOptional().describe('Confirmation state for this specialization only. A result for one specialization never changes the state of another specialization.'),
|
||||
"declared_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Candidate-declared grade filter. This is a separate claim and cannot satisfy `confirmed_grade` or `confirmed_category`.'),
|
||||
"stack": 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.')).min(1).max(matchSearchRequestOneFiltersStackMax).exactOptional(),
|
||||
"conditions": zod.object({
|
||||
"work_formats": zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).min(1).max(matchSearchRequestOneFiltersConditionsWorkFormatsMax).exactOptional(),
|
||||
"salary_compatibility": zod.enum(['compatible', 'not_compatible']).exactOptional().describe('A coarse compatibility result only. No salary amount, minimum, range, or threshold is part of the anonymous card.')
|
||||
}).exactOptional().describe('Filters against safe, coarse card conditions. No candidate location, salary amount, salary minimum, or salary range is accepted.')
|
||||
}).exactOptional().describe('Optional filters over the current organization-visible bank. An empty object means no additional filter. Confirmed and declared grades are separate fields; a declaration never satisfies a confirmed-grade or category filter. Conditions use only the safe, coarse card fields.')
|
||||
}).describe('Search one immutable set of confirmed requirements. `requirements_version` is the Need.requirements_version, not the general Need.version; text-only or suggestion-only edits do not change this search basis.'),zod.object({
|
||||
"filters": zod.object({
|
||||
"specialization": zod.enum(['backend', 'frontend', 'mobile', 'network_engineer', 'devops_sre', 'data_analyst', 'ds_ml', 'information_security', 'qa']).exactOptional().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.'),
|
||||
"confirmed_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Match only candidates with this currently confirmed grade in the selected specialization. It never matches a declared grade.'),
|
||||
"confirmed_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.')
|
||||
}).exactOptional().describe('A confirmed category filter, never a candidate declaration.'),
|
||||
"confirmation_status": zod.enum(['confirmed', 'unconfirmed']).exactOptional().describe('Confirmation state for this specialization only. A result for one specialization never changes the state of another specialization.'),
|
||||
"declared_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Candidate-declared grade filter. This is a separate claim and cannot satisfy `confirmed_grade` or `confirmed_category`.'),
|
||||
"stack": 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.')).min(1).max(matchSearchRequestTwoFiltersStackMax).exactOptional(),
|
||||
"conditions": zod.object({
|
||||
"work_formats": zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).min(1).max(matchSearchRequestTwoFiltersConditionsWorkFormatsMax).exactOptional(),
|
||||
"salary_compatibility": zod.enum(['compatible', 'not_compatible']).exactOptional().describe('A coarse compatibility result only. No salary amount, minimum, range, or threshold is part of the anonymous card.')
|
||||
}).exactOptional().describe('Filters against safe, coarse card conditions. No candidate location, salary amount, salary minimum, or salary range is accepted.')
|
||||
}).describe('Optional filters over the current organization-visible bank. An empty object means no additional filter. Confirmed and declared grades are separate fields; a declaration never satisfies a confirmed-grade or category filter. Conditions use only the safe, coarse card fields.')
|
||||
}).describe('Search the current organization-visible bank. An empty `filters` object includes all otherwise eligible specializations as separate entries.')]).describe('Search either a Need.requirements_version snapshot or the whole organization-visible bank with explicit filters. Unknown fields are rejected by both closed request variants.')
|
||||
|
||||
export type MatchSearchRequest = zod.input<typeof MatchSearchRequest>;
|
||||
export type MatchSearchRequestOutput = zod.output<typeof MatchSearchRequest>;
|
||||
@@ -0,0 +1,240 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
|
||||
export const matchSearchResponseSourceTwoFiltersStackOneMax = 4;
|
||||
|
||||
export const matchSearchResponseSourceTwoFiltersConditionsOneWorkFormatsOneMax = 3;
|
||||
|
||||
export const matchSearchResponseGroupsMainItemCandidateHandleMin = 47;
|
||||
export const matchSearchResponseGroupsMainItemCandidateHandleMax = 47;
|
||||
|
||||
|
||||
export const matchSearchResponseGroupsMainItemCandidateHandleRegExp = new RegExp('^cv1_[A-Za-z0-9_-]{43}$');
|
||||
export const matchSearchResponseGroupsMainItemPublicContextStackOneMax = 4;
|
||||
|
||||
export const matchSearchResponseGroupsMainItemPublicContextWorkFormatsOneMax = 3;
|
||||
|
||||
export const matchSearchResponseGroupsMainItemEvidenceSummaryMax = 12;
|
||||
|
||||
export const matchSearchResponseGroupsMainItemComponentsFitMin = 0;
|
||||
export const matchSearchResponseGroupsMainItemComponentsFitMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsMainItemComponentsCoverageMin = 0;
|
||||
export const matchSearchResponseGroupsMainItemComponentsCoverageMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsMainItemComponentsDomainMin = 0;
|
||||
export const matchSearchResponseGroupsMainItemComponentsDomainMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsMainItemComponentsSemanticsMin = 0;
|
||||
export const matchSearchResponseGroupsMainItemComponentsSemanticsMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsMainItemComponentsPercentileOneMin = 0;
|
||||
export const matchSearchResponseGroupsMainItemComponentsPercentileOneMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsMainItemComponentsCompetitionMin = 0;
|
||||
export const matchSearchResponseGroupsMainItemComponentsCompetitionMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsMainItemComponentsFreshnessMin = 0;
|
||||
export const matchSearchResponseGroupsMainItemComponentsFreshnessMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsMainItemComponentsResponsivenessMin = 0;
|
||||
export const matchSearchResponseGroupsMainItemComponentsResponsivenessMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsMainItemComponentsRankScoreMin = 0;
|
||||
export const matchSearchResponseGroupsMainItemComponentsRankScoreMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsMainItemUnknownFlagsMax = 9;
|
||||
|
||||
export const matchSearchResponseGroupsNearItemCandidateHandleMin = 47;
|
||||
export const matchSearchResponseGroupsNearItemCandidateHandleMax = 47;
|
||||
|
||||
|
||||
export const matchSearchResponseGroupsNearItemCandidateHandleRegExp = new RegExp('^cv1_[A-Za-z0-9_-]{43}$');
|
||||
export const matchSearchResponseGroupsNearItemPublicContextStackOneMax = 4;
|
||||
|
||||
export const matchSearchResponseGroupsNearItemPublicContextWorkFormatsOneMax = 3;
|
||||
|
||||
export const matchSearchResponseGroupsNearItemEvidenceSummaryMax = 12;
|
||||
|
||||
export const matchSearchResponseGroupsNearItemComponentsFitMin = 0;
|
||||
export const matchSearchResponseGroupsNearItemComponentsFitMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsNearItemComponentsCoverageMin = 0;
|
||||
export const matchSearchResponseGroupsNearItemComponentsCoverageMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsNearItemComponentsDomainMin = 0;
|
||||
export const matchSearchResponseGroupsNearItemComponentsDomainMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsNearItemComponentsSemanticsMin = 0;
|
||||
export const matchSearchResponseGroupsNearItemComponentsSemanticsMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsNearItemComponentsPercentileOneMin = 0;
|
||||
export const matchSearchResponseGroupsNearItemComponentsPercentileOneMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsNearItemComponentsCompetitionMin = 0;
|
||||
export const matchSearchResponseGroupsNearItemComponentsCompetitionMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsNearItemComponentsFreshnessMin = 0;
|
||||
export const matchSearchResponseGroupsNearItemComponentsFreshnessMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsNearItemComponentsResponsivenessMin = 0;
|
||||
export const matchSearchResponseGroupsNearItemComponentsResponsivenessMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsNearItemComponentsRankScoreMin = 0;
|
||||
export const matchSearchResponseGroupsNearItemComponentsRankScoreMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsNearItemUnknownFlagsMax = 9;
|
||||
|
||||
export const matchSearchResponseGroupsUnconfirmedItemCandidateHandleMin = 47;
|
||||
export const matchSearchResponseGroupsUnconfirmedItemCandidateHandleMax = 47;
|
||||
|
||||
|
||||
export const matchSearchResponseGroupsUnconfirmedItemCandidateHandleRegExp = new RegExp('^cv1_[A-Za-z0-9_-]{43}$');
|
||||
export const matchSearchResponseGroupsUnconfirmedItemPublicContextStackOneMax = 4;
|
||||
|
||||
export const matchSearchResponseGroupsUnconfirmedItemPublicContextWorkFormatsOneMax = 3;
|
||||
|
||||
export const matchSearchResponseGroupsUnconfirmedItemEvidenceSummaryMax = 12;
|
||||
|
||||
export const matchSearchResponseGroupsUnconfirmedItemComponentsFitMin = 0;
|
||||
export const matchSearchResponseGroupsUnconfirmedItemComponentsFitMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsUnconfirmedItemComponentsCoverageMin = 0;
|
||||
export const matchSearchResponseGroupsUnconfirmedItemComponentsCoverageMax = 1;
|
||||
|
||||
export const matchSearchResponseGroupsUnconfirmedItemUnknownFlagsMax = 9;
|
||||
|
||||
|
||||
export const MatchSearchResponse = zod.object({
|
||||
"source": zod.union([zod.object({
|
||||
"kind": zod.enum(['need']),
|
||||
"need_id": zod.uuid(),
|
||||
"requirements_version": zod.int().min(1).describe('Version of an employer need. Creation makes version 1, and every committed change of the need advances it by exactly one, including a change made by the server, such as a planned asynchronous ML suggestion. Each version is an immutable snapshot of the need. `requirements_version` names the version whose confirmed requirements are current, so a change that leaves them unchanged creates a need version without a new requirements version.')
|
||||
}).describe('The immutable need requirements snapshot used by this result.'),zod.object({
|
||||
"kind": zod.enum(['bank']),
|
||||
"filters": zod.object({
|
||||
"specialization": zod.union([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.'),zod.null()]),
|
||||
"confirmed_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()]),
|
||||
"confirmed_category": zod.union([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.')
|
||||
}).describe('A confirmed category filter, never a candidate declaration.'),zod.null()]),
|
||||
"confirmation_status": zod.union([zod.enum(['confirmed', 'unconfirmed']).describe('Confirmation state for this specialization only. A result for one specialization never changes the state of another specialization.'),zod.null()]),
|
||||
"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()]),
|
||||
"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.')).min(1).max(matchSearchResponseSourceTwoFiltersStackOneMax),zod.null()]),
|
||||
"conditions": zod.union([zod.object({
|
||||
"work_formats": zod.union([zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).min(1).max(matchSearchResponseSourceTwoFiltersConditionsOneWorkFormatsOneMax),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('Conditions echoed as a complete snapshot; null means no filter.'),zod.null()])
|
||||
}).describe('A normalized response snapshot of the bank filters. Each key is present; null means the corresponding request filter was omitted. This keeps a search result tied to its exact filter basis.')
|
||||
}).describe('The normalized filters used for a bank search.')]).describe('Search basis echoed with the response so the displayed result remains tied to its need requirements version or bank filters.'),
|
||||
"groups": zod.object({
|
||||
"main": zod.array(zod.object({
|
||||
"candidate_handle": zod.string().min(matchSearchResponseGroupsMainItemCandidateHandleMin).max(matchSearchResponseGroupsMainItemCandidateHandleMax).regex(matchSearchResponseGroupsMainItemCandidateHandleRegExp).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.')
|
||||
}).describe('A confirmed category. Its specialization must equal the enclosing match entry\'s specialization.'),
|
||||
"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(matchSearchResponseGroupsMainItemPublicContextStackOneMax),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(matchSearchResponseGroupsMainItemPublicContextWorkFormatsOneMax),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(matchSearchResponseGroupsMainItemEvidenceSummaryMax),
|
||||
"components": zod.object({
|
||||
"fit": zod.number().min(matchSearchResponseGroupsMainItemComponentsFitMin).max(matchSearchResponseGroupsMainItemComponentsFitMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"coverage": zod.number().min(matchSearchResponseGroupsMainItemComponentsCoverageMin).max(matchSearchResponseGroupsMainItemComponentsCoverageMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"domain": zod.number().min(matchSearchResponseGroupsMainItemComponentsDomainMin).max(matchSearchResponseGroupsMainItemComponentsDomainMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"semantics": zod.number().min(matchSearchResponseGroupsMainItemComponentsSemanticsMin).max(matchSearchResponseGroupsMainItemComponentsSemanticsMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"percentile": zod.union([zod.number().min(matchSearchResponseGroupsMainItemComponentsPercentileOneMin).max(matchSearchResponseGroupsMainItemComponentsPercentileOneMax),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(matchSearchResponseGroupsMainItemComponentsCompetitionMin).max(matchSearchResponseGroupsMainItemComponentsCompetitionMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"freshness": zod.number().min(matchSearchResponseGroupsMainItemComponentsFreshnessMin).max(matchSearchResponseGroupsMainItemComponentsFreshnessMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"responsiveness": zod.number().min(matchSearchResponseGroupsMainItemComponentsResponsivenessMin).max(matchSearchResponseGroupsMainItemComponentsResponsivenessMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"rank_score": zod.number().min(matchSearchResponseGroupsMainItemComponentsRankScoreMin).max(matchSearchResponseGroupsMainItemComponentsRankScoreMax).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']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
}).describe('A safe, bounded explanation for one unavailable component.')).max(matchSearchResponseGroupsMainItemUnknownFlagsMax)
|
||||
}).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.')),
|
||||
"near": zod.array(zod.object({
|
||||
"candidate_handle": zod.string().min(matchSearchResponseGroupsNearItemCandidateHandleMin).max(matchSearchResponseGroupsNearItemCandidateHandleMax).regex(matchSearchResponseGroupsNearItemCandidateHandleRegExp).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.')
|
||||
}).describe('A confirmed category. Its specialization must equal the enclosing match entry\'s specialization.'),
|
||||
"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(matchSearchResponseGroupsNearItemPublicContextStackOneMax),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(matchSearchResponseGroupsNearItemPublicContextWorkFormatsOneMax),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(matchSearchResponseGroupsNearItemEvidenceSummaryMax),
|
||||
"components": zod.object({
|
||||
"fit": zod.number().min(matchSearchResponseGroupsNearItemComponentsFitMin).max(matchSearchResponseGroupsNearItemComponentsFitMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"coverage": zod.number().min(matchSearchResponseGroupsNearItemComponentsCoverageMin).max(matchSearchResponseGroupsNearItemComponentsCoverageMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"domain": zod.number().min(matchSearchResponseGroupsNearItemComponentsDomainMin).max(matchSearchResponseGroupsNearItemComponentsDomainMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"semantics": zod.number().min(matchSearchResponseGroupsNearItemComponentsSemanticsMin).max(matchSearchResponseGroupsNearItemComponentsSemanticsMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"percentile": zod.union([zod.number().min(matchSearchResponseGroupsNearItemComponentsPercentileOneMin).max(matchSearchResponseGroupsNearItemComponentsPercentileOneMax),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(matchSearchResponseGroupsNearItemComponentsCompetitionMin).max(matchSearchResponseGroupsNearItemComponentsCompetitionMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"freshness": zod.number().min(matchSearchResponseGroupsNearItemComponentsFreshnessMin).max(matchSearchResponseGroupsNearItemComponentsFreshnessMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"responsiveness": zod.number().min(matchSearchResponseGroupsNearItemComponentsResponsivenessMin).max(matchSearchResponseGroupsNearItemComponentsResponsivenessMax).describe('A normalized FR09 ranking component from 0 to 1.'),
|
||||
"rank_score": zod.number().min(matchSearchResponseGroupsNearItemComponentsRankScoreMin).max(matchSearchResponseGroupsNearItemComponentsRankScoreMax).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']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
}).describe('A safe, bounded explanation for one unavailable component.')).max(matchSearchResponseGroupsNearItemUnknownFlagsMax)
|
||||
}).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.')),
|
||||
"unconfirmed": zod.array(zod.object({
|
||||
"candidate_handle": zod.string().min(matchSearchResponseGroupsUnconfirmedItemCandidateHandleMin).max(matchSearchResponseGroupsUnconfirmedItemCandidateHandleMax).regex(matchSearchResponseGroupsUnconfirmedItemCandidateHandleRegExp).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(['unconfirmed']),
|
||||
"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, separate from assessment confirmation.'),
|
||||
"category": zod.null().describe('There is no confirmed category for this specialization.'),
|
||||
"strength": zod.null().describe('Assessment strength is not measured 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(matchSearchResponseGroupsUnconfirmedItemPublicContextStackOneMax),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(matchSearchResponseGroupsUnconfirmedItemPublicContextWorkFormatsOneMax),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(matchSearchResponseGroupsUnconfirmedItemEvidenceSummaryMax),
|
||||
"components": zod.object({
|
||||
"fit": zod.number().min(matchSearchResponseGroupsUnconfirmedItemComponentsFitMin).max(matchSearchResponseGroupsUnconfirmedItemComponentsFitMax).describe('Job fit for this specialization, never an assessment score.'),
|
||||
"coverage": zod.number().min(matchSearchResponseGroupsUnconfirmedItemComponentsCoverageMin).max(matchSearchResponseGroupsUnconfirmedItemComponentsCoverageMax).describe('Coverage of confirmed need skills by allowed public evidence.')
|
||||
}).describe('Unconfirmed entries are ordered only by Fit and coverage. This strict component object has no theta, T, P, test percentile, or confirmed assessment score.'),
|
||||
"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']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
}).describe('A safe, bounded explanation for one unavailable component.')).max(matchSearchResponseGroupsUnconfirmedItemUnknownFlagsMax)
|
||||
}).describe('One specialization with no confirmed category. `category` and `strength` remain present and null. A confirmation in another specialization never changes this entry. The schema intentionally has no assessment measurement fields.'))
|
||||
}).describe('Separate ranking groups. Confirmed categories appear in main and near; unconfirmed specializations appear only in the lower unconfirmed group.')
|
||||
}).describe('Anonymous search result grouped by specialization state. Repeated organization-scoped handles are allowed when the same candidate has different specialization entries; entries never transfer confirmation between specializations.')
|
||||
|
||||
export type MatchSearchResponse = zod.input<typeof MatchSearchResponse>;
|
||||
export type MatchSearchResponseOutput = zod.output<typeof MatchSearchResponse>;
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
|
||||
export const matchSearchSourceTwoFiltersStackOneMax = 4;
|
||||
|
||||
export const matchSearchSourceTwoFiltersConditionsOneWorkFormatsOneMax = 3;
|
||||
|
||||
|
||||
export const MatchSearchSource = zod.union([zod.object({
|
||||
"kind": zod.enum(['need']),
|
||||
"need_id": zod.uuid(),
|
||||
"requirements_version": zod.int().min(1).describe('Version of an employer need. Creation makes version 1, and every committed change of the need advances it by exactly one, including a change made by the server, such as a planned asynchronous ML suggestion. Each version is an immutable snapshot of the need. `requirements_version` names the version whose confirmed requirements are current, so a change that leaves them unchanged creates a need version without a new requirements version.')
|
||||
}).describe('The immutable need requirements snapshot used by this result.'),zod.object({
|
||||
"kind": zod.enum(['bank']),
|
||||
"filters": zod.object({
|
||||
"specialization": zod.union([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.'),zod.null()]),
|
||||
"confirmed_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()]),
|
||||
"confirmed_category": zod.union([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.')
|
||||
}).describe('A confirmed category filter, never a candidate declaration.'),zod.null()]),
|
||||
"confirmation_status": zod.union([zod.enum(['confirmed', 'unconfirmed']).describe('Confirmation state for this specialization only. A result for one specialization never changes the state of another specialization.'),zod.null()]),
|
||||
"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()]),
|
||||
"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.')).min(1).max(matchSearchSourceTwoFiltersStackOneMax),zod.null()]),
|
||||
"conditions": zod.union([zod.object({
|
||||
"work_formats": zod.union([zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).min(1).max(matchSearchSourceTwoFiltersConditionsOneWorkFormatsOneMax),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('Conditions echoed as a complete snapshot; null means no filter.'),zod.null()])
|
||||
}).describe('A normalized response snapshot of the bank filters. Each key is present; null means the corresponding request filter was omitted. This keeps a search result tied to its exact filter basis.')
|
||||
}).describe('The normalized filters used for a bank search.')]).describe('Search basis echoed with the response so the displayed result remains tied to its need requirements version or bank filters.')
|
||||
|
||||
export type MatchSearchSource = zod.input<typeof MatchSearchSource>;
|
||||
export type MatchSearchSourceOutput = zod.output<typeof MatchSearchSource>;
|
||||
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchSearchStackTag = 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.')
|
||||
|
||||
export type MatchSearchStackTag = zod.input<typeof MatchSearchStackTag>;
|
||||
export type MatchSearchStackTagOutput = zod.output<typeof MatchSearchStackTag>;
|
||||
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchStrength = zod.enum(['standard', 'strong']).describe('Coarse strength of a confirmed assessment for this specialization.')
|
||||
|
||||
export type MatchStrength = zod.input<typeof MatchStrength>;
|
||||
export type MatchStrengthOutput = zod.output<typeof MatchStrength>;
|
||||
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const matchUnconfirmedCandidateCandidateHandleMin = 47;
|
||||
export const matchUnconfirmedCandidateCandidateHandleMax = 47;
|
||||
|
||||
|
||||
export const matchUnconfirmedCandidateCandidateHandleRegExp = new RegExp('^cv1_[A-Za-z0-9_-]{43}$');
|
||||
export const matchUnconfirmedCandidatePublicContextStackOneMax = 4;
|
||||
|
||||
export const matchUnconfirmedCandidatePublicContextWorkFormatsOneMax = 3;
|
||||
|
||||
export const matchUnconfirmedCandidateEvidenceSummaryMax = 12;
|
||||
|
||||
export const matchUnconfirmedCandidateComponentsFitMin = 0;
|
||||
export const matchUnconfirmedCandidateComponentsFitMax = 1;
|
||||
|
||||
export const matchUnconfirmedCandidateComponentsCoverageMin = 0;
|
||||
export const matchUnconfirmedCandidateComponentsCoverageMax = 1;
|
||||
|
||||
export const matchUnconfirmedCandidateUnknownFlagsMax = 9;
|
||||
|
||||
|
||||
export const MatchUnconfirmedCandidate = zod.object({
|
||||
"candidate_handle": zod.string().min(matchUnconfirmedCandidateCandidateHandleMin).max(matchUnconfirmedCandidateCandidateHandleMax).regex(matchUnconfirmedCandidateCandidateHandleRegExp).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(['unconfirmed']),
|
||||
"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, separate from assessment confirmation.'),
|
||||
"category": zod.null().describe('There is no confirmed category for this specialization.'),
|
||||
"strength": zod.null().describe('Assessment strength is not measured 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(matchUnconfirmedCandidatePublicContextStackOneMax),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(matchUnconfirmedCandidatePublicContextWorkFormatsOneMax),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(matchUnconfirmedCandidateEvidenceSummaryMax),
|
||||
"components": zod.object({
|
||||
"fit": zod.number().min(matchUnconfirmedCandidateComponentsFitMin).max(matchUnconfirmedCandidateComponentsFitMax).describe('Job fit for this specialization, never an assessment score.'),
|
||||
"coverage": zod.number().min(matchUnconfirmedCandidateComponentsCoverageMin).max(matchUnconfirmedCandidateComponentsCoverageMax).describe('Coverage of confirmed need skills by allowed public evidence.')
|
||||
}).describe('Unconfirmed entries are ordered only by Fit and coverage. This strict component object has no theta, T, P, test percentile, or confirmed assessment score.'),
|
||||
"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']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
}).describe('A safe, bounded explanation for one unavailable component.')).max(matchUnconfirmedCandidateUnknownFlagsMax)
|
||||
}).describe('One specialization with no confirmed category. `category` and `strength` remain present and null. A confirmation in another specialization never changes this entry. The schema intentionally has no assessment measurement fields.')
|
||||
|
||||
export type MatchUnconfirmedCandidate = zod.input<typeof MatchUnconfirmedCandidate>;
|
||||
export type MatchUnconfirmedCandidateOutput = zod.output<typeof MatchUnconfirmedCandidate>;
|
||||
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const matchUnconfirmedComponentsFitMin = 0;
|
||||
export const matchUnconfirmedComponentsFitMax = 1;
|
||||
|
||||
export const matchUnconfirmedComponentsCoverageMin = 0;
|
||||
export const matchUnconfirmedComponentsCoverageMax = 1;
|
||||
|
||||
|
||||
export const MatchUnconfirmedComponents = zod.object({
|
||||
"fit": zod.number().min(matchUnconfirmedComponentsFitMin).max(matchUnconfirmedComponentsFitMax).describe('Job fit for this specialization, never an assessment score.'),
|
||||
"coverage": zod.number().min(matchUnconfirmedComponentsCoverageMin).max(matchUnconfirmedComponentsCoverageMax).describe('Coverage of confirmed need skills by allowed public evidence.')
|
||||
}).describe('Unconfirmed entries are ordered only by Fit and coverage. This strict component object has no theta, T, P, test percentile, or confirmed assessment score.')
|
||||
|
||||
export type MatchUnconfirmedComponents = zod.input<typeof MatchUnconfirmedComponents>;
|
||||
export type MatchUnconfirmedComponentsOutput = zod.output<typeof MatchUnconfirmedComponents>;
|
||||
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchUnknownComponent = zod.enum(['semantics', 'percentile', 'assessment', 'freshness', 'responsiveness', 'experience_band', 'work_formats', 'salary_compatibility', 'domain']).describe('Ranking or public-card component whose value is unknown.')
|
||||
|
||||
export type MatchUnknownComponent = zod.input<typeof MatchUnknownComponent>;
|
||||
export type MatchUnknownComponentOutput = zod.output<typeof MatchUnknownComponent>;
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchUnknownFlag = 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']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
}).describe('A safe, bounded explanation for one unavailable component.')
|
||||
|
||||
export type MatchUnknownFlag = zod.input<typeof MatchUnknownFlag>;
|
||||
export type MatchUnknownFlagOutput = zod.output<typeof MatchUnknownFlag>;
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchUnknownFlagsMax = 9;
|
||||
|
||||
|
||||
export const MatchUnknownFlags = 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']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
}).describe('A safe, bounded explanation for one unavailable component.')).max(MatchUnknownFlagsMax)
|
||||
|
||||
export type MatchUnknownFlags = zod.input<typeof MatchUnknownFlags>;
|
||||
export type MatchUnknownFlagsOutput = zod.output<typeof MatchUnknownFlags>;
|
||||
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const MatchUnknownReason = zod.enum(['ml_unavailable', 'cohort_below_30', 'no_confirmation_for_specialization', 'not_in_public_card', 'need_field_unconfirmed', 'no_freshness_history', 'no_response_history']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
|
||||
export type MatchUnknownReason = zod.input<typeof MatchUnknownReason>;
|
||||
export type MatchUnknownReasonOutput = zod.output<typeof MatchUnknownReason>;
|
||||
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
|
||||
export const searchOrganizationMatchesBodyOneFiltersStackMax = 4;
|
||||
|
||||
export const searchOrganizationMatchesBodyOneFiltersConditionsWorkFormatsMax = 3;
|
||||
|
||||
export const searchOrganizationMatchesBodyTwoFiltersStackMax = 4;
|
||||
|
||||
export const searchOrganizationMatchesBodyTwoFiltersConditionsWorkFormatsMax = 3;
|
||||
|
||||
|
||||
export const SearchOrganizationMatchesBody = zod.union([zod.object({
|
||||
"need_id": zod.uuid().describe('Need owned by the organization in the path.'),
|
||||
"requirements_version": zod.int().min(1).describe('Version of an employer need. Creation makes version 1, and every committed change of the need advances it by exactly one, including a change made by the server, such as a planned asynchronous ML suggestion. Each version is an immutable snapshot of the need. `requirements_version` names the version whose confirmed requirements are current, so a change that leaves them unchanged creates a need version without a new requirements version.'),
|
||||
"filters": zod.object({
|
||||
"specialization": zod.enum(['backend', 'frontend', 'mobile', 'network_engineer', 'devops_sre', 'data_analyst', 'ds_ml', 'information_security', 'qa']).exactOptional().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.'),
|
||||
"confirmed_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Match only candidates with this currently confirmed grade in the selected specialization. It never matches a declared grade.'),
|
||||
"confirmed_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.')
|
||||
}).exactOptional().describe('A confirmed category filter, never a candidate declaration.'),
|
||||
"confirmation_status": zod.enum(['confirmed', 'unconfirmed']).exactOptional().describe('Confirmation state for this specialization only. A result for one specialization never changes the state of another specialization.'),
|
||||
"declared_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Candidate-declared grade filter. This is a separate claim and cannot satisfy `confirmed_grade` or `confirmed_category`.'),
|
||||
"stack": 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.')).min(1).max(searchOrganizationMatchesBodyOneFiltersStackMax).exactOptional(),
|
||||
"conditions": zod.object({
|
||||
"work_formats": zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).min(1).max(searchOrganizationMatchesBodyOneFiltersConditionsWorkFormatsMax).exactOptional(),
|
||||
"salary_compatibility": zod.enum(['compatible', 'not_compatible']).exactOptional().describe('A coarse compatibility result only. No salary amount, minimum, range, or threshold is part of the anonymous card.')
|
||||
}).exactOptional().describe('Filters against safe, coarse card conditions. No candidate location, salary amount, salary minimum, or salary range is accepted.')
|
||||
}).exactOptional().describe('Optional filters over the current organization-visible bank. An empty object means no additional filter. Confirmed and declared grades are separate fields; a declaration never satisfies a confirmed-grade or category filter. Conditions use only the safe, coarse card fields.')
|
||||
}).describe('Search one immutable set of confirmed requirements. `requirements_version` is the Need.requirements_version, not the general Need.version; text-only or suggestion-only edits do not change this search basis.'),zod.object({
|
||||
"filters": zod.object({
|
||||
"specialization": zod.enum(['backend', 'frontend', 'mobile', 'network_engineer', 'devops_sre', 'data_analyst', 'ds_ml', 'information_security', 'qa']).exactOptional().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.'),
|
||||
"confirmed_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Match only candidates with this currently confirmed grade in the selected specialization. It never matches a declared grade.'),
|
||||
"confirmed_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.')
|
||||
}).exactOptional().describe('A confirmed category filter, never a candidate declaration.'),
|
||||
"confirmation_status": zod.enum(['confirmed', 'unconfirmed']).exactOptional().describe('Confirmation state for this specialization only. A result for one specialization never changes the state of another specialization.'),
|
||||
"declared_grade": zod.enum(['intern', 'junior', 'middle', 'senior']).exactOptional().describe('Candidate-declared grade filter. This is a separate claim and cannot satisfy `confirmed_grade` or `confirmed_category`.'),
|
||||
"stack": 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.')).min(1).max(searchOrganizationMatchesBodyTwoFiltersStackMax).exactOptional(),
|
||||
"conditions": zod.object({
|
||||
"work_formats": zod.array(zod.enum(['remote', 'office', 'hybrid']).describe('Acceptable work format: `remote`, `office`, or `hybrid`.')).min(1).max(searchOrganizationMatchesBodyTwoFiltersConditionsWorkFormatsMax).exactOptional(),
|
||||
"salary_compatibility": zod.enum(['compatible', 'not_compatible']).exactOptional().describe('A coarse compatibility result only. No salary amount, minimum, range, or threshold is part of the anonymous card.')
|
||||
}).exactOptional().describe('Filters against safe, coarse card conditions. No candidate location, salary amount, salary minimum, or salary range is accepted.')
|
||||
}).describe('Optional filters over the current organization-visible bank. An empty object means no additional filter. Confirmed and declared grades are separate fields; a declaration never satisfies a confirmed-grade or category filter. Conditions use only the safe, coarse card fields.')
|
||||
}).describe('Search the current organization-visible bank. An empty `filters` object includes all otherwise eligible specializations as separate entries.')]).describe('Search either a Need.requirements_version snapshot or the whole organization-visible bank with explicit filters. Unknown fields are rejected by both closed request variants.')
|
||||
|
||||
export type SearchOrganizationMatchesBody = zod.input<typeof SearchOrganizationMatchesBody>;
|
||||
export type SearchOrganizationMatchesBodyOutput = zod.output<typeof SearchOrganizationMatchesBody>;
|
||||
@@ -6,8 +6,6 @@
|
||||
*/
|
||||
|
||||
export * from './anonymousCardContent.zod';
|
||||
export * from './candidateExperienceBand.zod';
|
||||
export * from './candidateSalaryCompatibility.zod';
|
||||
export * from './candidateWorkFormat.zod';
|
||||
export * from './cardAccess.zod';
|
||||
export * from './cardAccessKind.zod';
|
||||
|
||||
Reference in new issue
Block a user