feat(visibility): add the candidate publication, hiding and search status contract
This commit is contained in:
1 parent
4436f626a3
commit
0529601021
87 files changed
+21456
-83
No files matched your search
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const anonymousCardContentCategoriesMax = 9;
|
||||
|
||||
export const anonymousCardContentStackItemMax = 50;
|
||||
|
||||
|
||||
export const anonymousCardContentStackItemRegExp = new RegExp('^\\S(?:.*\\S)?$');
|
||||
export const anonymousCardContentStackMax = 30;
|
||||
|
||||
export const anonymousCardContentExperienceMonthsMin = 0;
|
||||
export const anonymousCardContentExperienceMonthsMax = 1200;
|
||||
|
||||
export const anonymousCardContentSoftSkillsItemMax = 50;
|
||||
|
||||
|
||||
export const anonymousCardContentSoftSkillsItemRegExp = new RegExp('^\\S(?:.*\\S)?$');
|
||||
export const anonymousCardContentSoftSkillsMax = 10;
|
||||
|
||||
export const anonymousCardContentLocationMax = 100;
|
||||
|
||||
|
||||
export const anonymousCardContentLocationRegExp = new RegExp('^\\S(?:.*\\S)?$');
|
||||
|
||||
export const AnonymousCardContent = zod.object({
|
||||
"categories": zod.array(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 category confirmed by assessment results, as the card shows it.')).max(anonymousCardContentCategoriesMax).nullable().describe('Categories confirmed by assessment results, or null.'),
|
||||
"stack": zod.array(zod.string().min(1).max(anonymousCardContentStackItemMax).regex(anonymousCardContentStackItemRegExp).describe('Free technology tag of the candidate\'s stack, for example PostgreSQL, Kubernetes, or Django. A tag is a descriptive attribute: it never forms a category, never selects the task language, and never changes a grade, so a tag such as "Senior" has no effect on any category. It has no leading or trailing whitespace and no line breaks. The server compares tags without regard to letter case. Clients show tags as text, never as HTML.')).max(anonymousCardContentStackMax).nullable().describe('Technology tags of the candidate, or null.'),
|
||||
"experience_months": zod.int().min(anonymousCardContentExperienceMonthsMin).max(anonymousCardContentExperienceMonthsMax).nullable().describe('Total months of work experience, summed by the server without the employers, periods, or descriptions, or null.'),
|
||||
"soft_skills": zod.array(zod.string().min(1).max(anonymousCardContentSoftSkillsItemMax).regex(anonymousCardContentSoftSkillsItemRegExp).describe('Plain text; clients show it as text, never as HTML.')).max(anonymousCardContentSoftSkillsMax).nullable().describe('Soft skills of the candidate, or null.'),
|
||||
"location": zod.string().min(1).max(anonymousCardContentLocationMax).regex(anonymousCardContentLocationRegExp).nullable().describe('City or region as free text, never a street address, or null. Plain text; clients show it as text, never as HTML.'),
|
||||
"relocation": zod.boolean().nullable().describe('Whether the candidate is ready to relocate, or null.')
|
||||
}).describe('The anonymous candidate card as an organization reads it. Only values that the candidate confirmed reach it; an unconfirmed suggestion and an unknown value never do. A free text value (a stack tag, a soft skill, the location) that looks like a contact (an email address, a phone number, a URL or domain, a Telegram link, an @handle) is dropped by the builder (TASK-089) and never published. It carries no name, contact, resume text, employer, salary figure, account or profile identifier, and no schema of the private profile or of a contact disclosure is reachable from it; a contact reaches an organization only through the contact grant of an accepted invitation. Each property is null when its field is not published or the candidate has no value for it, so the card does not tell the two apart. The set of properties is closed, and an organization-visible card must never gain a property that identifies the candidate. The search ranking and the full card of an organization\'s search result are defined by the search contract (TASK-185), which reuses this content.')
|
||||
|
||||
export type AnonymousCardContent = zod.input<typeof AnonymousCardContent>;
|
||||
export type AnonymousCardContentOutput = zod.output<typeof AnonymousCardContent>;
|
||||
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const cardAccessOrganizationOneNameMax = 200;
|
||||
|
||||
|
||||
export const CardAccess = zod.object({
|
||||
"id": zod.uuid().describe('Identifier of the access record.'),
|
||||
"kind": zod.enum(['card_viewed', 'contact_read']).describe('How an organization reached the candidate.\n\n- card_viewed: an organization read the anonymous card in a search result.\n- contact_read: an organization read the contacts through the contact grant of an accepted invitation.'),
|
||||
"occurred_at": zod.iso.datetime({"offset":true}).describe('UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.'),
|
||||
"organization": zod.union([zod.object({
|
||||
"id": zod.uuid().describe('Identifier of the organization.'),
|
||||
"name": zod.string().min(1).max(cardAccessOrganizationOneNameMax).describe('Current name of the organization. Plain text; clients show it as text, never as HTML.')
|
||||
}).describe('Organization as the candidate who hid it reads it. The name is the current name of the organization. The candidate must already have been able to see the organization to hide it, so the reference tells them nothing that they could not read before.'),zod.null()])
|
||||
}).describe('One access of an organization to the card or the contacts of the current candidate. `organization` is null for a view by an organization that has no invitation relation with the candidate, so the history shows that the card was viewed without naming a company that the candidate cannot otherwise see; whether the candidate should learn the name is an open product question. The record carries no query, ranking, or search filter of the organization.')
|
||||
|
||||
export type CardAccess = zod.input<typeof CardAccess>;
|
||||
export type CardAccessOutput = zod.output<typeof CardAccess>;
|
||||
@@ -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 CardAccessKind = zod.enum(['card_viewed', 'contact_read']).describe('How an organization reached the candidate.\n\n- card_viewed: an organization read the anonymous card in a search result.\n- contact_read: an organization read the contacts through the contact grant of an accepted invitation.')
|
||||
|
||||
export type CardAccessKind = zod.input<typeof CardAccessKind>;
|
||||
export type CardAccessKindOutput = zod.output<typeof CardAccessKind>;
|
||||
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const cardAccessListItemsItemOrganizationOneNameMax = 200;
|
||||
|
||||
export const cardAccessListItemsMax = 100;
|
||||
|
||||
export const cardAccessListPageNextCursorMax = 512;
|
||||
|
||||
|
||||
export const cardAccessListPageNextCursorRegExp = new RegExp('^[A-Za-z0-9_-]+$');
|
||||
|
||||
export const CardAccessList = zod.object({
|
||||
"items": zod.array(zod.object({
|
||||
"id": zod.uuid().describe('Identifier of the access record.'),
|
||||
"kind": zod.enum(['card_viewed', 'contact_read']).describe('How an organization reached the candidate.\n\n- card_viewed: an organization read the anonymous card in a search result.\n- contact_read: an organization read the contacts through the contact grant of an accepted invitation.'),
|
||||
"occurred_at": zod.iso.datetime({"offset":true}).describe('UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.'),
|
||||
"organization": zod.union([zod.object({
|
||||
"id": zod.uuid().describe('Identifier of the organization.'),
|
||||
"name": zod.string().min(1).max(cardAccessListItemsItemOrganizationOneNameMax).describe('Current name of the organization. Plain text; clients show it as text, never as HTML.')
|
||||
}).describe('Organization as the candidate who hid it reads it. The name is the current name of the organization. The candidate must already have been able to see the organization to hide it, so the reference tells them nothing that they could not read before.'),zod.null()])
|
||||
}).describe('One access of an organization to the card or the contacts of the current candidate. `organization` is null for a view by an organization that has no invitation relation with the candidate, so the history shows that the card was viewed without naming a company that the candidate cannot otherwise see; whether the candidate should learn the name is an open product question. The record carries no query, ranking, or search filter of the organization.')).max(cardAccessListItemsMax).describe('Accesses of the page.'),
|
||||
"page": zod.object({
|
||||
"has_more": zod.boolean().describe('Whether another page follows this one.'),
|
||||
"next_cursor": zod.string().min(1).max(cardAccessListPageNextCursorMax).regex(cardAccessListPageNextCursorRegExp).nullable().describe('Opaque cursor of the next page, or null on the last page. Clients must not parse, build, or store it beyond the current listing.')
|
||||
}).describe('Cursor pagination state of a list response. Lists are ordered by a stable server-defined key. To read the next page, repeat the request with the same filters and `cursor` set to `next_cursor`.')
|
||||
}).describe('One page of the accesses to the card of the current candidate, newest first.')
|
||||
|
||||
export type CardAccessList = zod.input<typeof CardAccessList>;
|
||||
export type CardAccessListOutput = zod.output<typeof CardAccessList>;
|
||||
@@ -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 CardCategory = 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 category confirmed by assessment results, as the card shows it.')
|
||||
|
||||
export type CardCategory = zod.input<typeof CardCategory>;
|
||||
export type CardCategoryOutput = zod.output<typeof CardCategory>;
|
||||
@@ -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 CardField = zod.enum(['categories', 'stack', 'experience', 'soft_skills', 'location', 'relocation']).describe('A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.\n\n- categories: the categories confirmed by assessment results (specialization and confirmed grade). A self-assessed grade is not a category and is never published.\n- stack: the technology tags of the profile.\n- experience: the total months of work experience, without employers, periods, or descriptions.\n- soft_skills: the soft skills of the profile.\n- location: the city or region of the profile.\n- relocation: whether the candidate is ready to relocate.\n\nOnly values that the candidate confirmed ever reach the card: an unconfirmed suggestion (status `extracted`) and an unknown value never do, whatever the field set says.\n\nAdding a value is a contract change that lets a candidate publish more, and it is also a migration (the function `candidate_card_fields_are_canonical` and the CHECK constraints of the publication and event tables list the codes). A client treats an unknown value as a reason to ask for an update, and the server never adds a new value to a published set on its own.')
|
||||
|
||||
export type CardField = zod.input<typeof CardField>;
|
||||
export type CardFieldOutput = zod.output<typeof CardField>;
|
||||
@@ -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 CardFieldSetMin = 0;
|
||||
export const CardFieldSetMax = 6;
|
||||
|
||||
|
||||
export const CardFieldSet = zod.array(zod.enum(['categories', 'stack', 'experience', 'soft_skills', 'location', 'relocation']).describe('A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.\n\n- categories: the categories confirmed by assessment results (specialization and confirmed grade). A self-assessed grade is not a category and is never published.\n- stack: the technology tags of the profile.\n- experience: the total months of work experience, without employers, periods, or descriptions.\n- soft_skills: the soft skills of the profile.\n- location: the city or region of the profile.\n- relocation: whether the candidate is ready to relocate.\n\nOnly values that the candidate confirmed ever reach the card: an unconfirmed suggestion (status `extracted`) and an unknown value never do, whatever the field set says.\n\nAdding a value is a contract change that lets a candidate publish more, and it is also a migration (the function `candidate_card_fields_are_canonical` and the CHECK constraints of the publication and event tables list the codes). A client treats an unknown value as a reason to ask for an update, and the server never adds a new value to a published set on its own.')).min(CardFieldSetMin).max(CardFieldSetMax).describe('Distinct card fields. The server stores them in ascending order of the codes and answers them in that order, whatever order the client sent, so equal sets are equal arrays.')
|
||||
|
||||
export type CardFieldSet = zod.input<typeof CardFieldSet>;
|
||||
export type CardFieldSetOutput = zod.output<typeof CardFieldSet>;
|
||||
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const cardPreviewFieldsMin = 0;
|
||||
export const cardPreviewFieldsMax = 6;
|
||||
|
||||
export const cardPreviewCardOneCategoriesMax = 9;
|
||||
|
||||
export const cardPreviewCardOneStackItemMax = 50;
|
||||
|
||||
|
||||
export const cardPreviewCardOneStackItemRegExp = new RegExp('^\\S(?:.*\\S)?$');
|
||||
export const cardPreviewCardOneStackMax = 30;
|
||||
|
||||
export const cardPreviewCardOneExperienceMonthsMin = 0;
|
||||
export const cardPreviewCardOneExperienceMonthsMax = 1200;
|
||||
|
||||
export const cardPreviewCardOneSoftSkillsItemMax = 50;
|
||||
|
||||
|
||||
export const cardPreviewCardOneSoftSkillsItemRegExp = new RegExp('^\\S(?:.*\\S)?$');
|
||||
export const cardPreviewCardOneSoftSkillsMax = 10;
|
||||
|
||||
export const cardPreviewCardOneLocationMax = 100;
|
||||
|
||||
|
||||
export const cardPreviewCardOneLocationRegExp = new RegExp('^\\S(?:.*\\S)?$');
|
||||
|
||||
export const CardPreview = zod.object({
|
||||
"state": zod.enum(['closed', 'published']).describe('Whether the candidate card can be read by organizations at all. It is computed from the stored publication and the consent ledger: a profile is closed unless the candidate published it and the C2 consent that backs the publication is still unrevoked.\n\n- closed: no organization reads the card. This is the state of every new profile and of a profile whose publication was closed or whose C2 was revoked.\n- published: organizations may read exactly the fields in `fields`, except for the organizations the candidate hid.'),
|
||||
"fields": zod.array(zod.enum(['categories', 'stack', 'experience', 'soft_skills', 'location', 'relocation']).describe('A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.\n\n- categories: the categories confirmed by assessment results (specialization and confirmed grade). A self-assessed grade is not a category and is never published.\n- stack: the technology tags of the profile.\n- experience: the total months of work experience, without employers, periods, or descriptions.\n- soft_skills: the soft skills of the profile.\n- location: the city or region of the profile.\n- relocation: whether the candidate is ready to relocate.\n\nOnly values that the candidate confirmed ever reach the card: an unconfirmed suggestion (status `extracted`) and an unknown value never do, whatever the field set says.\n\nAdding a value is a contract change that lets a candidate publish more, and it is also a migration (the function `candidate_card_fields_are_canonical` and the CHECK constraints of the publication and event tables list the codes). A client treats an unknown value as a reason to ask for an update, and the server never adds a new value to a published set on its own.')).min(cardPreviewFieldsMin).max(cardPreviewFieldsMax).describe('Distinct card fields. The server stores them in ascending order of the codes and answers them in that order, whatever order the client sent, so equal sets are equal arrays.'),
|
||||
"card": zod.union([zod.object({
|
||||
"categories": zod.array(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 category confirmed by assessment results, as the card shows it.')).max(cardPreviewCardOneCategoriesMax).nullable().describe('Categories confirmed by assessment results, or null.'),
|
||||
"stack": zod.array(zod.string().min(1).max(cardPreviewCardOneStackItemMax).regex(cardPreviewCardOneStackItemRegExp).describe('Free technology tag of the candidate\'s stack, for example PostgreSQL, Kubernetes, or Django. A tag is a descriptive attribute: it never forms a category, never selects the task language, and never changes a grade, so a tag such as "Senior" has no effect on any category. It has no leading or trailing whitespace and no line breaks. The server compares tags without regard to letter case. Clients show tags as text, never as HTML.')).max(cardPreviewCardOneStackMax).nullable().describe('Technology tags of the candidate, or null.'),
|
||||
"experience_months": zod.int().min(cardPreviewCardOneExperienceMonthsMin).max(cardPreviewCardOneExperienceMonthsMax).nullable().describe('Total months of work experience, summed by the server without the employers, periods, or descriptions, or null.'),
|
||||
"soft_skills": zod.array(zod.string().min(1).max(cardPreviewCardOneSoftSkillsItemMax).regex(cardPreviewCardOneSoftSkillsItemRegExp).describe('Plain text; clients show it as text, never as HTML.')).max(cardPreviewCardOneSoftSkillsMax).nullable().describe('Soft skills of the candidate, or null.'),
|
||||
"location": zod.string().min(1).max(cardPreviewCardOneLocationMax).regex(cardPreviewCardOneLocationRegExp).nullable().describe('City or region as free text, never a street address, or null. Plain text; clients show it as text, never as HTML.'),
|
||||
"relocation": zod.boolean().nullable().describe('Whether the candidate is ready to relocate, or null.')
|
||||
}).describe('The anonymous candidate card as an organization reads it. Only values that the candidate confirmed reach it; an unconfirmed suggestion and an unknown value never do. A free text value (a stack tag, a soft skill, the location) that looks like a contact (an email address, a phone number, a URL or domain, a Telegram link, an @handle) is dropped by the builder (TASK-089) and never published. It carries no name, contact, resume text, employer, salary figure, account or profile identifier, and no schema of the private profile or of a contact disclosure is reachable from it; a contact reaches an organization only through the contact grant of an accepted invitation. Each property is null when its field is not published or the candidate has no value for it, so the card does not tell the two apart. The set of properties is closed, and an organization-visible card must never gain a property that identifies the candidate. The search ranking and the full card of an organization\'s search result are defined by the search contract (TASK-185), which reuses this content.'),zod.null()]),
|
||||
"generated_at": zod.iso.datetime({"offset":true}).describe('UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.')
|
||||
}).describe('What an organization that the candidate does not hide the profile from would read now, computed from the current profile, the current publication, and the consent ledger. It is a read for the candidate: it creates no view and no history record, and it never reaches an organization. `card` is null while the profile is closed.')
|
||||
|
||||
export type CardPreview = zod.input<typeof CardPreview>;
|
||||
export type CardPreviewOutput = zod.output<typeof CardPreview>;
|
||||
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const hiddenOrganizationOrganizationNameMax = 200;
|
||||
|
||||
|
||||
export const HiddenOrganization = zod.object({
|
||||
"organization": zod.object({
|
||||
"id": zod.uuid().describe('Identifier of the organization.'),
|
||||
"name": zod.string().min(1).max(hiddenOrganizationOrganizationNameMax).describe('Current name of the organization. Plain text; clients show it as text, never as HTML.')
|
||||
}).describe('Organization as the candidate who hid it reads it. The name is the current name of the organization. The candidate must already have been able to see the organization to hide it, so the reference tells them nothing that they could not read before.'),
|
||||
"hidden_at": zod.iso.datetime({"offset":true}).describe('UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.')
|
||||
}).describe('One organization that the candidate hides the profile from. The record belongs to the candidate: no organization reads it, learns that it was hidden, or can tell a hidden candidate from one who is not published.')
|
||||
|
||||
export type HiddenOrganization = zod.input<typeof HiddenOrganization>;
|
||||
export type HiddenOrganizationOutput = zod.output<typeof HiddenOrganization>;
|
||||
@@ -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 hiddenOrganizationListItemsItemOrganizationNameMax = 200;
|
||||
|
||||
export const hiddenOrganizationListItemsMax = 100;
|
||||
|
||||
export const hiddenOrganizationListPageNextCursorMax = 512;
|
||||
|
||||
|
||||
export const hiddenOrganizationListPageNextCursorRegExp = new RegExp('^[A-Za-z0-9_-]+$');
|
||||
|
||||
export const HiddenOrganizationList = zod.object({
|
||||
"items": zod.array(zod.object({
|
||||
"organization": zod.object({
|
||||
"id": zod.uuid().describe('Identifier of the organization.'),
|
||||
"name": zod.string().min(1).max(hiddenOrganizationListItemsItemOrganizationNameMax).describe('Current name of the organization. Plain text; clients show it as text, never as HTML.')
|
||||
}).describe('Organization as the candidate who hid it reads it. The name is the current name of the organization. The candidate must already have been able to see the organization to hide it, so the reference tells them nothing that they could not read before.'),
|
||||
"hidden_at": zod.iso.datetime({"offset":true}).describe('UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.')
|
||||
}).describe('One organization that the candidate hides the profile from. The record belongs to the candidate: no organization reads it, learns that it was hidden, or can tell a hidden candidate from one who is not published.')).max(hiddenOrganizationListItemsMax).describe('Hidden organizations of the page.'),
|
||||
"page": zod.object({
|
||||
"has_more": zod.boolean().describe('Whether another page follows this one.'),
|
||||
"next_cursor": zod.string().min(1).max(hiddenOrganizationListPageNextCursorMax).regex(hiddenOrganizationListPageNextCursorRegExp).nullable().describe('Opaque cursor of the next page, or null on the last page. Clients must not parse, build, or store it beyond the current listing.')
|
||||
}).describe('Cursor pagination state of a list response. Lists are ordered by a stable server-defined key. To read the next page, repeat the request with the same filters and `cursor` set to `next_cursor`.')
|
||||
}).describe('One page of the organizations that the candidate hides the profile from, newest first with the organization identifier as the tie-breaker.')
|
||||
|
||||
export type HiddenOrganizationList = zod.input<typeof HiddenOrganizationList>;
|
||||
export type HiddenOrganizationListOutput = zod.output<typeof HiddenOrganizationList>;
|
||||
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export * from './anonymousCardContent.zod';
|
||||
export * from './cardAccess.zod';
|
||||
export * from './cardAccessKind.zod';
|
||||
export * from './cardAccessList.zod';
|
||||
export * from './cardCategory.zod';
|
||||
export * from './cardField.zod';
|
||||
export * from './cardFieldSet.zod';
|
||||
export * from './cardPreview.zod';
|
||||
export * from './hiddenOrganization.zod';
|
||||
export * from './hiddenOrganizationList.zod';
|
||||
export * from './listMyCardAccessHistoryParams.zod';
|
||||
export * from './listMyHiddenOrganizationsParams.zod';
|
||||
export * from './listMyPrivacyHistoryParams.zod';
|
||||
export * from './privacyEvent.zod';
|
||||
export * from './privacyEventKind.zod';
|
||||
export * from './privacyEventList.zod';
|
||||
export * from './privacyOrganization.zod';
|
||||
export * from './privacySettings.zod';
|
||||
export * from './publication.zod';
|
||||
export * from './publicationClosedReason.zod';
|
||||
export * from './publicationState.zod';
|
||||
export * from './publicationUpdate.zod';
|
||||
export * from './publicationVersion.zod';
|
||||
export * from './searchStatus.zod';
|
||||
export * from './searchStatusUpdate.zod';
|
||||
export * from './searchStatusValue.zod';
|
||||
export * from './searchStatusVersion.zod';
|
||||
export * from './setMyPublicationBody.zod';
|
||||
export * from './setMySearchStatusBody.zod';
|
||||
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const listMyCardAccessHistoryParamsLimitDefault = 20;
|
||||
export const listMyCardAccessHistoryParamsLimitMax = 100;
|
||||
|
||||
export const listMyCardAccessHistoryParamsCursorMax = 512;
|
||||
|
||||
|
||||
export const listMyCardAccessHistoryParamsCursorRegExp = new RegExp('^[A-Za-z0-9_-]+$');
|
||||
|
||||
export const ListMyCardAccessHistoryParams = zod.object({
|
||||
"limit": zod.int().min(1).max(listMyCardAccessHistoryParamsLimitMax).default(listMyCardAccessHistoryParamsLimitDefault),
|
||||
"cursor": zod.string().min(1).max(listMyCardAccessHistoryParamsCursorMax).regex(listMyCardAccessHistoryParamsCursorRegExp).exactOptional()
|
||||
})
|
||||
|
||||
export type ListMyCardAccessHistoryParams = zod.input<typeof ListMyCardAccessHistoryParams>;
|
||||
export type ListMyCardAccessHistoryParamsOutput = zod.output<typeof ListMyCardAccessHistoryParams>;
|
||||
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const listMyHiddenOrganizationsParamsLimitDefault = 20;
|
||||
export const listMyHiddenOrganizationsParamsLimitMax = 100;
|
||||
|
||||
export const listMyHiddenOrganizationsParamsCursorMax = 512;
|
||||
|
||||
|
||||
export const listMyHiddenOrganizationsParamsCursorRegExp = new RegExp('^[A-Za-z0-9_-]+$');
|
||||
|
||||
export const ListMyHiddenOrganizationsParams = zod.object({
|
||||
"limit": zod.int().min(1).max(listMyHiddenOrganizationsParamsLimitMax).default(listMyHiddenOrganizationsParamsLimitDefault),
|
||||
"cursor": zod.string().min(1).max(listMyHiddenOrganizationsParamsCursorMax).regex(listMyHiddenOrganizationsParamsCursorRegExp).exactOptional()
|
||||
})
|
||||
|
||||
export type ListMyHiddenOrganizationsParams = zod.input<typeof ListMyHiddenOrganizationsParams>;
|
||||
export type ListMyHiddenOrganizationsParamsOutput = zod.output<typeof ListMyHiddenOrganizationsParams>;
|
||||
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const listMyPrivacyHistoryParamsLimitDefault = 20;
|
||||
export const listMyPrivacyHistoryParamsLimitMax = 100;
|
||||
|
||||
export const listMyPrivacyHistoryParamsCursorMax = 512;
|
||||
|
||||
|
||||
export const listMyPrivacyHistoryParamsCursorRegExp = new RegExp('^[A-Za-z0-9_-]+$');
|
||||
|
||||
export const ListMyPrivacyHistoryParams = zod.object({
|
||||
"limit": zod.int().min(1).max(listMyPrivacyHistoryParamsLimitMax).default(listMyPrivacyHistoryParamsLimitDefault),
|
||||
"cursor": zod.string().min(1).max(listMyPrivacyHistoryParamsCursorMax).regex(listMyPrivacyHistoryParamsCursorRegExp).exactOptional()
|
||||
})
|
||||
|
||||
export type ListMyPrivacyHistoryParams = zod.input<typeof ListMyPrivacyHistoryParams>;
|
||||
export type ListMyPrivacyHistoryParamsOutput = zod.output<typeof ListMyPrivacyHistoryParams>;
|
||||
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const privacyEventFieldsOneMin = 0;
|
||||
export const privacyEventFieldsOneMax = 6;
|
||||
|
||||
export const privacyEventOrganizationOneNameMax = 200;
|
||||
|
||||
|
||||
export const PrivacyEvent = zod.object({
|
||||
"id": zod.uuid().describe('Identifier of the event.'),
|
||||
"kind": zod.enum(['publication_opened', 'publication_changed', 'publication_closed', 'search_status_confirmed', 'search_status_cleared', 'organization_hidden', 'organization_unhidden']).describe('Kind of a change of the visibility settings that the history records.\n\n- publication_opened: the candidate published a closed profile.\n- publication_changed: the candidate changed the published fields of a published profile, or published it again under a new C2 record.\n- publication_closed: the candidate closed the publication. A revocation of C2 closes the card by the ledger and is read from the consent history, not recorded here.\n- search_status_confirmed: the candidate set or confirmed `looking`.\n- search_status_cleared: the candidate set `not_looking`. A lapse is not an event: it is computed.\n- organization_hidden: the candidate hid the profile from an organization.\n- organization_unhidden: the candidate lifted the hiding for an organization.'),
|
||||
"occurred_at": zod.iso.datetime({"offset":true}).describe('UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.'),
|
||||
"fields": zod.union([zod.array(zod.enum(['categories', 'stack', 'experience', 'soft_skills', 'location', 'relocation']).describe('A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.\n\n- categories: the categories confirmed by assessment results (specialization and confirmed grade). A self-assessed grade is not a category and is never published.\n- stack: the technology tags of the profile.\n- experience: the total months of work experience, without employers, periods, or descriptions.\n- soft_skills: the soft skills of the profile.\n- location: the city or region of the profile.\n- relocation: whether the candidate is ready to relocate.\n\nOnly values that the candidate confirmed ever reach the card: an unconfirmed suggestion (status `extracted`) and an unknown value never do, whatever the field set says.\n\nAdding a value is a contract change that lets a candidate publish more, and it is also a migration (the function `candidate_card_fields_are_canonical` and the CHECK constraints of the publication and event tables list the codes). A client treats an unknown value as a reason to ask for an update, and the server never adds a new value to a published set on its own.')).min(privacyEventFieldsOneMin).max(privacyEventFieldsOneMax).describe('Distinct card fields. The server stores them in ascending order of the codes and answers them in that order, whatever order the client sent, so equal sets are equal arrays.'),zod.null()]).describe('Published fields after the change for `publication_opened` and `publication_changed`, an empty set for `publication_closed`, and null for every other kind.'),
|
||||
"consent_id": zod.union([zod.uuid(),zod.null()]).describe('C2 record that backs the publication, for `publication_opened` and `publication_changed`, or null.'),
|
||||
"organization": zod.union([zod.object({
|
||||
"id": zod.uuid().describe('Identifier of the organization.'),
|
||||
"name": zod.string().min(1).max(privacyEventOrganizationOneNameMax).describe('Current name of the organization. Plain text; clients show it as text, never as HTML.')
|
||||
}).describe('Organization as the candidate who hid it reads it. The name is the current name of the organization. The candidate must already have been able to see the organization to hide it, so the reference tells them nothing that they could not read before.'),zod.null()]).describe('Organization of `organization_hidden` and `organization_unhidden` with its current name, resolved when the history is read (the event stores only the identifier), or null.')
|
||||
}).describe('One recorded change of the visibility settings of the current candidate, as evidence of what was published, hidden, or announced and when. The history is append-only and returns only the caller\'s own records. A publication event carries the published fields and the C2 record behind them; an organization event names the organization; the other properties are null.')
|
||||
|
||||
export type PrivacyEvent = zod.input<typeof PrivacyEvent>;
|
||||
export type PrivacyEventOutput = zod.output<typeof PrivacyEvent>;
|
||||
@@ -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 PrivacyEventKind = zod.enum(['publication_opened', 'publication_changed', 'publication_closed', 'search_status_confirmed', 'search_status_cleared', 'organization_hidden', 'organization_unhidden']).describe('Kind of a change of the visibility settings that the history records.\n\n- publication_opened: the candidate published a closed profile.\n- publication_changed: the candidate changed the published fields of a published profile, or published it again under a new C2 record.\n- publication_closed: the candidate closed the publication. A revocation of C2 closes the card by the ledger and is read from the consent history, not recorded here.\n- search_status_confirmed: the candidate set or confirmed `looking`.\n- search_status_cleared: the candidate set `not_looking`. A lapse is not an event: it is computed.\n- organization_hidden: the candidate hid the profile from an organization.\n- organization_unhidden: the candidate lifted the hiding for an organization.')
|
||||
|
||||
export type PrivacyEventKind = zod.input<typeof PrivacyEventKind>;
|
||||
export type PrivacyEventKindOutput = zod.output<typeof PrivacyEventKind>;
|
||||
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const privacyEventListItemsItemFieldsOneMin = 0;
|
||||
export const privacyEventListItemsItemFieldsOneMax = 6;
|
||||
|
||||
export const privacyEventListItemsItemOrganizationOneNameMax = 200;
|
||||
|
||||
export const privacyEventListItemsMax = 100;
|
||||
|
||||
export const privacyEventListPageNextCursorMax = 512;
|
||||
|
||||
|
||||
export const privacyEventListPageNextCursorRegExp = new RegExp('^[A-Za-z0-9_-]+$');
|
||||
|
||||
export const PrivacyEventList = zod.object({
|
||||
"items": zod.array(zod.object({
|
||||
"id": zod.uuid().describe('Identifier of the event.'),
|
||||
"kind": zod.enum(['publication_opened', 'publication_changed', 'publication_closed', 'search_status_confirmed', 'search_status_cleared', 'organization_hidden', 'organization_unhidden']).describe('Kind of a change of the visibility settings that the history records.\n\n- publication_opened: the candidate published a closed profile.\n- publication_changed: the candidate changed the published fields of a published profile, or published it again under a new C2 record.\n- publication_closed: the candidate closed the publication. A revocation of C2 closes the card by the ledger and is read from the consent history, not recorded here.\n- search_status_confirmed: the candidate set or confirmed `looking`.\n- search_status_cleared: the candidate set `not_looking`. A lapse is not an event: it is computed.\n- organization_hidden: the candidate hid the profile from an organization.\n- organization_unhidden: the candidate lifted the hiding for an organization.'),
|
||||
"occurred_at": zod.iso.datetime({"offset":true}).describe('UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.'),
|
||||
"fields": zod.union([zod.array(zod.enum(['categories', 'stack', 'experience', 'soft_skills', 'location', 'relocation']).describe('A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.\n\n- categories: the categories confirmed by assessment results (specialization and confirmed grade). A self-assessed grade is not a category and is never published.\n- stack: the technology tags of the profile.\n- experience: the total months of work experience, without employers, periods, or descriptions.\n- soft_skills: the soft skills of the profile.\n- location: the city or region of the profile.\n- relocation: whether the candidate is ready to relocate.\n\nOnly values that the candidate confirmed ever reach the card: an unconfirmed suggestion (status `extracted`) and an unknown value never do, whatever the field set says.\n\nAdding a value is a contract change that lets a candidate publish more, and it is also a migration (the function `candidate_card_fields_are_canonical` and the CHECK constraints of the publication and event tables list the codes). A client treats an unknown value as a reason to ask for an update, and the server never adds a new value to a published set on its own.')).min(privacyEventListItemsItemFieldsOneMin).max(privacyEventListItemsItemFieldsOneMax).describe('Distinct card fields. The server stores them in ascending order of the codes and answers them in that order, whatever order the client sent, so equal sets are equal arrays.'),zod.null()]).describe('Published fields after the change for `publication_opened` and `publication_changed`, an empty set for `publication_closed`, and null for every other kind.'),
|
||||
"consent_id": zod.union([zod.uuid(),zod.null()]).describe('C2 record that backs the publication, for `publication_opened` and `publication_changed`, or null.'),
|
||||
"organization": zod.union([zod.object({
|
||||
"id": zod.uuid().describe('Identifier of the organization.'),
|
||||
"name": zod.string().min(1).max(privacyEventListItemsItemOrganizationOneNameMax).describe('Current name of the organization. Plain text; clients show it as text, never as HTML.')
|
||||
}).describe('Organization as the candidate who hid it reads it. The name is the current name of the organization. The candidate must already have been able to see the organization to hide it, so the reference tells them nothing that they could not read before.'),zod.null()]).describe('Organization of `organization_hidden` and `organization_unhidden` with its current name, resolved when the history is read (the event stores only the identifier), or null.')
|
||||
}).describe('One recorded change of the visibility settings of the current candidate, as evidence of what was published, hidden, or announced and when. The history is append-only and returns only the caller\'s own records. A publication event carries the published fields and the C2 record behind them; an organization event names the organization; the other properties are null.')).max(privacyEventListItemsMax).describe('Events of the page.'),
|
||||
"page": zod.object({
|
||||
"has_more": zod.boolean().describe('Whether another page follows this one.'),
|
||||
"next_cursor": zod.string().min(1).max(privacyEventListPageNextCursorMax).regex(privacyEventListPageNextCursorRegExp).nullable().describe('Opaque cursor of the next page, or null on the last page. Clients must not parse, build, or store it beyond the current listing.')
|
||||
}).describe('Cursor pagination state of a list response. Lists are ordered by a stable server-defined key. To read the next page, repeat the request with the same filters and `cursor` set to `next_cursor`.')
|
||||
}).describe('One page of the settings history of the current candidate, newest first.')
|
||||
|
||||
export type PrivacyEventList = zod.input<typeof PrivacyEventList>;
|
||||
export type PrivacyEventListOutput = zod.output<typeof PrivacyEventList>;
|
||||
@@ -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 privacyOrganizationNameMax = 200;
|
||||
|
||||
|
||||
export const PrivacyOrganization = zod.object({
|
||||
"id": zod.uuid().describe('Identifier of the organization.'),
|
||||
"name": zod.string().min(1).max(privacyOrganizationNameMax).describe('Current name of the organization. Plain text; clients show it as text, never as HTML.')
|
||||
}).describe('Organization as the candidate who hid it reads it. The name is the current name of the organization. The candidate must already have been able to see the organization to hide it, so the reference tells them nothing that they could not read before.')
|
||||
|
||||
export type PrivacyOrganization = zod.input<typeof PrivacyOrganization>;
|
||||
export type PrivacyOrganizationOutput = zod.output<typeof PrivacyOrganization>;
|
||||
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const privacySettingsPublicationFieldsOneMin = 0;
|
||||
export const privacySettingsPublicationFieldsOneMax = 6;
|
||||
|
||||
export const privacySettingsPublicationVersionMin = 0;
|
||||
|
||||
export const privacySettingsSearchStatusVersionMin = 0;
|
||||
|
||||
export const privacySettingsHiddenOrganizationsTotalMin = 0;
|
||||
export const privacySettingsHiddenOrganizationsTotalMax = 1000;
|
||||
|
||||
|
||||
export const PrivacySettings = zod.object({
|
||||
"publication": zod.object({
|
||||
"state": zod.enum(['closed', 'published']).describe('Whether the candidate card can be read by organizations at all. It is computed from the stored publication and the consent ledger: a profile is closed unless the candidate published it and the C2 consent that backs the publication is still unrevoked.\n\n- closed: no organization reads the card. This is the state of every new profile and of a profile whose publication was closed or whose C2 was revoked.\n- published: organizations may read exactly the fields in `fields`, except for the organizations the candidate hid.'),
|
||||
"closed_reason": zod.union([zod.enum(['never_published', 'closed_by_candidate', 'consent_revoked']).describe('Why a closed profile is closed, shown only to the candidate.\n\n- never_published: the candidate has never published the profile.\n- closed_by_candidate: the candidate closed the publication.\n- consent_revoked: the C2 consent that backed the publication was revoked. A later C2 grant never reopens the publication; the candidate publishes again explicitly and the new publication refers to the new consent record.'),zod.null()]).describe('Why the profile is closed, or null while it is published.'),
|
||||
"fields": zod.array(zod.enum(['categories', 'stack', 'experience', 'soft_skills', 'location', 'relocation']).describe('A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.\n\n- categories: the categories confirmed by assessment results (specialization and confirmed grade). A self-assessed grade is not a category and is never published.\n- stack: the technology tags of the profile.\n- experience: the total months of work experience, without employers, periods, or descriptions.\n- soft_skills: the soft skills of the profile.\n- location: the city or region of the profile.\n- relocation: whether the candidate is ready to relocate.\n\nOnly values that the candidate confirmed ever reach the card: an unconfirmed suggestion (status `extracted`) and an unknown value never do, whatever the field set says.\n\nAdding a value is a contract change that lets a candidate publish more, and it is also a migration (the function `candidate_card_fields_are_canonical` and the CHECK constraints of the publication and event tables list the codes). A client treats an unknown value as a reason to ask for an update, and the server never adds a new value to a published set on its own.')).min(privacySettingsPublicationFieldsOneMin).max(privacySettingsPublicationFieldsOneMax).describe('Distinct card fields. The server stores them in ascending order of the codes and answers them in that order, whatever order the client sent, so equal sets are equal arrays.').describe('Card fields that organizations may read. Empty exactly when `state` is `closed`.'),
|
||||
"consent_id": zod.union([zod.uuid(),zod.null()]).describe('Identifier of the C2 record of the consent ledger that backs the current or the last publication, the `id` of a `ConsentRecord` of this account, or null when the profile was never published.'),
|
||||
"published_at": zod.union([zod.iso.datetime({"offset":true}).describe('UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.'),zod.null()]).describe('Moment of the latest change that published or republished the card, or null while the profile was never published. It stays after a closing, as the time of the last publication.'),
|
||||
"version": zod.int().min(privacySettingsPublicationVersionMin).describe('Version of the publication setting of the candidate. A candidate who has never published has version 0 and the profile is closed; every change that alters the setting advances it by one. The client sends the version it read as `expected_version`. It is independent of the versions of the profile and of the search status, so a change of one never makes another stale.')
|
||||
}).describe('Publication setting of the candidate card. It is separate from the consent: the C2 consent in the ledger proves that the candidate accepted the publication text, and this setting records whether and which fields are published. `state` is `published` only while the referenced C2 record is unrevoked, whatever the stored setting says, so a revocation closes the card at once. The state, the fields, and the times belong to the history that the C2 consent record does not carry.'),
|
||||
"search_status": zod.object({
|
||||
"value": zod.enum(['looking', 'not_looking']).describe('Whether the candidate says they are searching for work. The status is a statement, never a consent: it publishes nothing, hides nothing, and grants nothing, and no value of it changes the C2 consent, the publication, or the hidden organizations.\n\n- looking: the candidate is searching ("Ищу"). It holds only while it is confirmed in time; see `SearchStatus.lapsed`.\n- not_looking: the candidate is not announcing a search. It is the state of every new account and the state to which a lapsed status falls.').describe('The status that holds now: `looking` only while the confirmation has not lapsed.'),
|
||||
"lapsed": zod.boolean().describe('True when the candidate set `looking`, did not confirm it again, and the interval ended, so `value` is `not_looking`. False otherwise, including a status the candidate cleared.'),
|
||||
"confirmed_at": zod.union([zod.iso.datetime({"offset":true}).describe('UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.'),zod.null()]).describe('Moment of the latest confirmation of `looking`, or null when the candidate never set it or cleared it.'),
|
||||
"lapses_at": zod.union([zod.iso.datetime({"offset":true}).describe('UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.'),zod.null()]).describe('Moment at which the confirmed status lapses, fixed when it was confirmed from the `search_status` section of the product policy version in force then, or null when `confirmed_at` is null. A later policy change does not move it; it stays in the past for a lapsed status.'),
|
||||
"version": zod.int().min(privacySettingsSearchStatusVersionMin).describe('Version of the search status of the candidate. A candidate who never set the status has version 0 and the status `not_looking`; every confirmation or change advances it by one. The client sends the version it read as `expected_version`.')
|
||||
}).describe('Search status of the candidate as it holds now. The status `looking` stores the moment of its confirmation and lapses when the confirmation interval of the product policy passes without a new confirmation. A lapse only ever narrows: the status falls to `not_looking`, which is the non-public state, and a lapse never changes the publication or the hidden organizations. It needs no stored change, so no process can make a candidate more visible by expiry, and a lapsed candidate confirms again explicitly.'),
|
||||
"hidden_organizations_total": zod.int().min(privacySettingsHiddenOrganizationsTotalMin).max(privacySettingsHiddenOrganizationsTotalMax).describe('Number of organizations that the candidate hides the profile from. The list is read with `ListMyHiddenOrganizations`.')
|
||||
}).describe('The visibility settings of the current candidate in one read: the publication, the search status, and the number of hidden organizations. The three are independent: each has its own version and its own operation, and a change of one leaves the others as they were. A new account reads a closed profile, `not_looking`, and no hidden organization.')
|
||||
|
||||
export type PrivacySettings = zod.input<typeof PrivacySettings>;
|
||||
export type PrivacySettingsOutput = zod.output<typeof PrivacySettings>;
|
||||
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const publicationFieldsOneMin = 0;
|
||||
export const publicationFieldsOneMax = 6;
|
||||
|
||||
export const publicationVersionMin = 0;
|
||||
|
||||
|
||||
export const Publication = zod.object({
|
||||
"state": zod.enum(['closed', 'published']).describe('Whether the candidate card can be read by organizations at all. It is computed from the stored publication and the consent ledger: a profile is closed unless the candidate published it and the C2 consent that backs the publication is still unrevoked.\n\n- closed: no organization reads the card. This is the state of every new profile and of a profile whose publication was closed or whose C2 was revoked.\n- published: organizations may read exactly the fields in `fields`, except for the organizations the candidate hid.'),
|
||||
"closed_reason": zod.union([zod.enum(['never_published', 'closed_by_candidate', 'consent_revoked']).describe('Why a closed profile is closed, shown only to the candidate.\n\n- never_published: the candidate has never published the profile.\n- closed_by_candidate: the candidate closed the publication.\n- consent_revoked: the C2 consent that backed the publication was revoked. A later C2 grant never reopens the publication; the candidate publishes again explicitly and the new publication refers to the new consent record.'),zod.null()]).describe('Why the profile is closed, or null while it is published.'),
|
||||
"fields": zod.array(zod.enum(['categories', 'stack', 'experience', 'soft_skills', 'location', 'relocation']).describe('A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.\n\n- categories: the categories confirmed by assessment results (specialization and confirmed grade). A self-assessed grade is not a category and is never published.\n- stack: the technology tags of the profile.\n- experience: the total months of work experience, without employers, periods, or descriptions.\n- soft_skills: the soft skills of the profile.\n- location: the city or region of the profile.\n- relocation: whether the candidate is ready to relocate.\n\nOnly values that the candidate confirmed ever reach the card: an unconfirmed suggestion (status `extracted`) and an unknown value never do, whatever the field set says.\n\nAdding a value is a contract change that lets a candidate publish more, and it is also a migration (the function `candidate_card_fields_are_canonical` and the CHECK constraints of the publication and event tables list the codes). A client treats an unknown value as a reason to ask for an update, and the server never adds a new value to a published set on its own.')).min(publicationFieldsOneMin).max(publicationFieldsOneMax).describe('Distinct card fields. The server stores them in ascending order of the codes and answers them in that order, whatever order the client sent, so equal sets are equal arrays.').describe('Card fields that organizations may read. Empty exactly when `state` is `closed`.'),
|
||||
"consent_id": zod.union([zod.uuid(),zod.null()]).describe('Identifier of the C2 record of the consent ledger that backs the current or the last publication, the `id` of a `ConsentRecord` of this account, or null when the profile was never published.'),
|
||||
"published_at": zod.union([zod.iso.datetime({"offset":true}).describe('UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.'),zod.null()]).describe('Moment of the latest change that published or republished the card, or null while the profile was never published. It stays after a closing, as the time of the last publication.'),
|
||||
"version": zod.int().min(publicationVersionMin).describe('Version of the publication setting of the candidate. A candidate who has never published has version 0 and the profile is closed; every change that alters the setting advances it by one. The client sends the version it read as `expected_version`. It is independent of the versions of the profile and of the search status, so a change of one never makes another stale.')
|
||||
}).describe('Publication setting of the candidate card. It is separate from the consent: the C2 consent in the ledger proves that the candidate accepted the publication text, and this setting records whether and which fields are published. `state` is `published` only while the referenced C2 record is unrevoked, whatever the stored setting says, so a revocation closes the card at once. The state, the fields, and the times belong to the history that the C2 consent record does not carry.')
|
||||
|
||||
export type Publication = zod.input<typeof Publication>;
|
||||
export type PublicationOutput = zod.output<typeof Publication>;
|
||||
@@ -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 PublicationClosedReason = zod.enum(['never_published', 'closed_by_candidate', 'consent_revoked']).describe('Why a closed profile is closed, shown only to the candidate.\n\n- never_published: the candidate has never published the profile.\n- closed_by_candidate: the candidate closed the publication.\n- consent_revoked: the C2 consent that backed the publication was revoked. A later C2 grant never reopens the publication; the candidate publishes again explicitly and the new publication refers to the new consent record.')
|
||||
|
||||
export type PublicationClosedReason = zod.input<typeof PublicationClosedReason>;
|
||||
export type PublicationClosedReasonOutput = zod.output<typeof PublicationClosedReason>;
|
||||
@@ -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 PublicationState = zod.enum(['closed', 'published']).describe('Whether the candidate card can be read by organizations at all. It is computed from the stored publication and the consent ledger: a profile is closed unless the candidate published it and the C2 consent that backs the publication is still unrevoked.\n\n- closed: no organization reads the card. This is the state of every new profile and of a profile whose publication was closed or whose C2 was revoked.\n- published: organizations may read exactly the fields in `fields`, except for the organizations the candidate hid.')
|
||||
|
||||
export type PublicationState = zod.input<typeof PublicationState>;
|
||||
export type PublicationStateOutput = zod.output<typeof PublicationState>;
|
||||
@@ -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 publicationUpdateExpectedVersionMin = 0;
|
||||
|
||||
export const publicationUpdateFieldsMin = 0;
|
||||
export const publicationUpdateFieldsMax = 6;
|
||||
|
||||
|
||||
export const PublicationUpdate = zod.object({
|
||||
"expected_version": zod.int().min(publicationUpdateExpectedVersionMin).describe('Version of the publication setting of the candidate. A candidate who has never published has version 0 and the profile is closed; every change that alters the setting advances it by one. The client sends the version it read as `expected_version`. It is independent of the versions of the profile and of the search status, so a change of one never makes another stale.'),
|
||||
"state": zod.enum(['closed', 'published']).describe('Whether the candidate card can be read by organizations at all. It is computed from the stored publication and the consent ledger: a profile is closed unless the candidate published it and the C2 consent that backs the publication is still unrevoked.\n\n- closed: no organization reads the card. This is the state of every new profile and of a profile whose publication was closed or whose C2 was revoked.\n- published: organizations may read exactly the fields in `fields`, except for the organizations the candidate hid.'),
|
||||
"fields": zod.array(zod.enum(['categories', 'stack', 'experience', 'soft_skills', 'location', 'relocation']).describe('A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.\n\n- categories: the categories confirmed by assessment results (specialization and confirmed grade). A self-assessed grade is not a category and is never published.\n- stack: the technology tags of the profile.\n- experience: the total months of work experience, without employers, periods, or descriptions.\n- soft_skills: the soft skills of the profile.\n- location: the city or region of the profile.\n- relocation: whether the candidate is ready to relocate.\n\nOnly values that the candidate confirmed ever reach the card: an unconfirmed suggestion (status `extracted`) and an unknown value never do, whatever the field set says.\n\nAdding a value is a contract change that lets a candidate publish more, and it is also a migration (the function `candidate_card_fields_are_canonical` and the CHECK constraints of the publication and event tables list the codes). A client treats an unknown value as a reason to ask for an update, and the server never adds a new value to a published set on its own.')).min(publicationUpdateFieldsMin).max(publicationUpdateFieldsMax).describe('Distinct card fields. The server stores them in ascending order of the codes and answers them in that order, whatever order the client sent, so equal sets are equal arrays.')
|
||||
}).describe('The complete new publication setting. `published` needs a non-empty set of fields and an active C2 consent of the account; `closed` needs an empty set and never fails for a missing consent. The body names no consent: the server binds the publication to the account\'s current unrevoked C2 record, and a client can neither supply nor forge one.')
|
||||
|
||||
export type PublicationUpdate = zod.input<typeof PublicationUpdate>;
|
||||
export type PublicationUpdateOutput = zod.output<typeof PublicationUpdate>;
|
||||
@@ -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 PublicationVersionMin = 0;
|
||||
|
||||
|
||||
export const PublicationVersion = zod.int().min(PublicationVersionMin).describe('Version of the publication setting of the candidate. A candidate who has never published has version 0 and the profile is closed; every change that alters the setting advances it by one. The client sends the version it read as `expected_version`. It is independent of the versions of the profile and of the search status, so a change of one never makes another stale.')
|
||||
|
||||
export type PublicationVersion = zod.input<typeof PublicationVersion>;
|
||||
export type PublicationVersionOutput = zod.output<typeof PublicationVersion>;
|
||||
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Generated by orval 🍺
|
||||
* Do not edit manually.
|
||||
* Lincodex API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from 'zod';
|
||||
|
||||
export const searchStatusVersionMin = 0;
|
||||
|
||||
|
||||
export const SearchStatus = zod.object({
|
||||
"value": zod.enum(['looking', 'not_looking']).describe('Whether the candidate says they are searching for work. The status is a statement, never a consent: it publishes nothing, hides nothing, and grants nothing, and no value of it changes the C2 consent, the publication, or the hidden organizations.\n\n- looking: the candidate is searching ("Ищу"). It holds only while it is confirmed in time; see `SearchStatus.lapsed`.\n- not_looking: the candidate is not announcing a search. It is the state of every new account and the state to which a lapsed status falls.').describe('The status that holds now: `looking` only while the confirmation has not lapsed.'),
|
||||
"lapsed": zod.boolean().describe('True when the candidate set `looking`, did not confirm it again, and the interval ended, so `value` is `not_looking`. False otherwise, including a status the candidate cleared.'),
|
||||
"confirmed_at": zod.union([zod.iso.datetime({"offset":true}).describe('UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.'),zod.null()]).describe('Moment of the latest confirmation of `looking`, or null when the candidate never set it or cleared it.'),
|
||||
"lapses_at": zod.union([zod.iso.datetime({"offset":true}).describe('UTC instant in RFC 3339 format with the Z suffix, for example 2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in this contract uses this schema.'),zod.null()]).describe('Moment at which the confirmed status lapses, fixed when it was confirmed from the `search_status` section of the product policy version in force then, or null when `confirmed_at` is null. A later policy change does not move it; it stays in the past for a lapsed status.'),
|
||||
"version": zod.int().min(searchStatusVersionMin).describe('Version of the search status of the candidate. A candidate who never set the status has version 0 and the status `not_looking`; every confirmation or change advances it by one. The client sends the version it read as `expected_version`.')
|
||||
}).describe('Search status of the candidate as it holds now. The status `looking` stores the moment of its confirmation and lapses when the confirmation interval of the product policy passes without a new confirmation. A lapse only ever narrows: the status falls to `not_looking`, which is the non-public state, and a lapse never changes the publication or the hidden organizations. It needs no stored change, so no process can make a candidate more visible by expiry, and a lapsed candidate confirms again explicitly.')
|
||||
|
||||
export type SearchStatus = zod.input<typeof SearchStatus>;
|
||||
export type SearchStatusOutput = zod.output<typeof SearchStatus>;
|
||||
@@ -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 searchStatusUpdateExpectedVersionMin = 0;
|
||||
|
||||
|
||||
export const SearchStatusUpdate = zod.object({
|
||||
"expected_version": zod.int().min(searchStatusUpdateExpectedVersionMin).describe('Version of the search status of the candidate. A candidate who never set the status has version 0 and the status `not_looking`; every confirmation or change advances it by one. The client sends the version it read as `expected_version`.'),
|
||||
"value": zod.enum(['looking', 'not_looking']).describe('Whether the candidate says they are searching for work. The status is a statement, never a consent: it publishes nothing, hides nothing, and grants nothing, and no value of it changes the C2 consent, the publication, or the hidden organizations.\n\n- looking: the candidate is searching ("Ищу"). It holds only while it is confirmed in time; see `SearchStatus.lapsed`.\n- not_looking: the candidate is not announcing a search. It is the state of every new account and the state to which a lapsed status falls.')
|
||||
}).describe('The complete new search status. `looking` is also the confirmation of a status that still holds or has lapsed: it sets the confirmation time to now. The body carries no time, interval, or policy version; the server takes them from the effective product policy.')
|
||||
|
||||
export type SearchStatusUpdate = zod.input<typeof SearchStatusUpdate>;
|
||||
export type SearchStatusUpdateOutput = zod.output<typeof SearchStatusUpdate>;
|
||||
@@ -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 SearchStatusValue = zod.enum(['looking', 'not_looking']).describe('Whether the candidate says they are searching for work. The status is a statement, never a consent: it publishes nothing, hides nothing, and grants nothing, and no value of it changes the C2 consent, the publication, or the hidden organizations.\n\n- looking: the candidate is searching ("Ищу"). It holds only while it is confirmed in time; see `SearchStatus.lapsed`.\n- not_looking: the candidate is not announcing a search. It is the state of every new account and the state to which a lapsed status falls.')
|
||||
|
||||
export type SearchStatusValue = zod.input<typeof SearchStatusValue>;
|
||||
export type SearchStatusValueOutput = zod.output<typeof SearchStatusValue>;
|
||||
@@ -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 SearchStatusVersionMin = 0;
|
||||
|
||||
|
||||
export const SearchStatusVersion = zod.int().min(SearchStatusVersionMin).describe('Version of the search status of the candidate. A candidate who never set the status has version 0 and the status `not_looking`; every confirmation or change advances it by one. The client sends the version it read as `expected_version`.')
|
||||
|
||||
export type SearchStatusVersion = zod.input<typeof SearchStatusVersion>;
|
||||
export type SearchStatusVersionOutput = zod.output<typeof SearchStatusVersion>;
|
||||
@@ -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 setMyPublicationBodyExpectedVersionMin = 0;
|
||||
|
||||
export const setMyPublicationBodyFieldsMin = 0;
|
||||
export const setMyPublicationBodyFieldsMax = 6;
|
||||
|
||||
|
||||
export const SetMyPublicationBody = zod.object({
|
||||
"expected_version": zod.int().min(setMyPublicationBodyExpectedVersionMin).describe('Version of the publication setting of the candidate. A candidate who has never published has version 0 and the profile is closed; every change that alters the setting advances it by one. The client sends the version it read as `expected_version`. It is independent of the versions of the profile and of the search status, so a change of one never makes another stale.'),
|
||||
"state": zod.enum(['closed', 'published']).describe('Whether the candidate card can be read by organizations at all. It is computed from the stored publication and the consent ledger: a profile is closed unless the candidate published it and the C2 consent that backs the publication is still unrevoked.\n\n- closed: no organization reads the card. This is the state of every new profile and of a profile whose publication was closed or whose C2 was revoked.\n- published: organizations may read exactly the fields in `fields`, except for the organizations the candidate hid.'),
|
||||
"fields": zod.array(zod.enum(['categories', 'stack', 'experience', 'soft_skills', 'location', 'relocation']).describe('A group of values of the anonymous candidate card that the candidate chooses to publish. The set is closed and has no value for the full name, a contact, or the lowest salary: the card never carries them, so no choice and no later contract change in this list can publish them by accident. Contacts leave only through the contact grant of an accepted invitation (C4), and the lowest salary never leaves.\n\n- categories: the categories confirmed by assessment results (specialization and confirmed grade). A self-assessed grade is not a category and is never published.\n- stack: the technology tags of the profile.\n- experience: the total months of work experience, without employers, periods, or descriptions.\n- soft_skills: the soft skills of the profile.\n- location: the city or region of the profile.\n- relocation: whether the candidate is ready to relocate.\n\nOnly values that the candidate confirmed ever reach the card: an unconfirmed suggestion (status `extracted`) and an unknown value never do, whatever the field set says.\n\nAdding a value is a contract change that lets a candidate publish more, and it is also a migration (the function `candidate_card_fields_are_canonical` and the CHECK constraints of the publication and event tables list the codes). A client treats an unknown value as a reason to ask for an update, and the server never adds a new value to a published set on its own.')).min(setMyPublicationBodyFieldsMin).max(setMyPublicationBodyFieldsMax).describe('Distinct card fields. The server stores them in ascending order of the codes and answers them in that order, whatever order the client sent, so equal sets are equal arrays.')
|
||||
}).describe('The complete new publication setting. `published` needs a non-empty set of fields and an active C2 consent of the account; `closed` needs an empty set and never fails for a missing consent. The body names no consent: the server binds the publication to the account\'s current unrevoked C2 record, and a client can neither supply nor forge one.')
|
||||
|
||||
export type SetMyPublicationBody = zod.input<typeof SetMyPublicationBody>;
|
||||
export type SetMyPublicationBodyOutput = zod.output<typeof SetMyPublicationBody>;
|
||||
@@ -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 setMySearchStatusBodyExpectedVersionMin = 0;
|
||||
|
||||
|
||||
export const SetMySearchStatusBody = zod.object({
|
||||
"expected_version": zod.int().min(setMySearchStatusBodyExpectedVersionMin).describe('Version of the search status of the candidate. A candidate who never set the status has version 0 and the status `not_looking`; every confirmation or change advances it by one. The client sends the version it read as `expected_version`.'),
|
||||
"value": zod.enum(['looking', 'not_looking']).describe('Whether the candidate says they are searching for work. The status is a statement, never a consent: it publishes nothing, hides nothing, and grants nothing, and no value of it changes the C2 consent, the publication, or the hidden organizations.\n\n- looking: the candidate is searching ("Ищу"). It holds only while it is confirmed in time; see `SearchStatus.lapsed`.\n- not_looking: the candidate is not announcing a search. It is the state of every new account and the state to which a lapsed status falls.')
|
||||
}).describe('The complete new search status. `looking` is also the confirmation of a status that still holds or has lapsed: it sets the confirmation time to now. The body carries no time, interval, or policy version; the server takes them from the effective product policy.')
|
||||
|
||||
export type SetMySearchStatusBody = zod.input<typeof SetMySearchStatusBody>;
|
||||
export type SetMySearchStatusBodyOutput = zod.output<typeof SetMySearchStatusBody>;
|
||||
Reference in new issue
Block a user