/** * 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 = 9; 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', 'salary_compatibility', 'self_assessment', 'stack', 'experience', 'soft_skills', 'location', 'relocation', 'work_formats']).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: specialization and grade confirmed by an authoritative assessment result. With it an organization receives the confirmed category and, with each category of the card, one supporting assessment fact: its skill, the passed grade, the trust level, the year of the assessment, and the basis and calibration that mark a synthetic, uncalibrated demonstration (`GetOrganizationCandidateEvidence`). The candidate sees the same on `GetMyCardPreview`.\n- self_assessment: the candidate\'s declared specialization and grade, separate from confirmed categories.\n- stack: only recognized technology codes from the server\'s closed taxonomy.\n- experience: a coarse total-experience band, without employers, periods, or descriptions.\n- work_formats: explicitly selected work formats from the private questionnaire.\n- salary_compatibility: a nullable compatibility outcome with no salary amounts or bounds.\n- soft_skills, location, and relocation: retained only for compatibility in existing saved sets; they are not returned by the anonymous card.\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; export type PrivacyEventListOutput = zod.output;